Skip to content

Commit 084a64e

Browse files
committed
Build: Rename more mains to 3.x-stables
1 parent 3b053e2 commit 084a64e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/browser-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- main
7+
- 3.x-stable
88

99
env:
1010
NODE_VERSION: 20.x

.github/workflows/browserstack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Browserstack
33
on:
44
push:
55
branches:
6-
- main
6+
- 3.x-stable
77
# Once a week every Tuesday
88
schedule:
99
- cron: "12 2 * * 2"

.github/workflows/filestash.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Filestash
33
on:
44
push:
55
branches:
6-
- main
6+
- 3.x-stable
77

88
permissions:
99
contents: read # to fetch code (actions/checkout)

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ Change directory to the newly created dir `jquery-migrate/`:
7878
$ cd jquery-migrate
7979
```
8080

81-
Add the jQuery Migrate `main` as a remote (e.g. `upstream`):
81+
Add the jQuery Migrate `3.x-stable` as a remote (e.g. `upstream`):
8282

8383
```bash
8484
$ git remote add upstream [email protected]:jquery/jquery-migrate.git
8585
```
8686

87-
Get in the habit of pulling in the "upstream" main to stay up to date as jQuery Migrate receives new commits:
87+
Get in the habit of pulling in the "upstream" `3.x-stable` to stay up to date as jQuery Migrate receives new commits:
8888

8989
```bash
90-
$ git pull upstream main
90+
$ git pull upstream 3.x-stable
9191
```
9292

9393
Install the necessary dependencies:

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![CI Status](https://github.com/jquery/jquery-migrate/actions/workflows/node.js.yml/badge.svg?branch=main)
1+
![CI Status](https://github.com/jquery/jquery-migrate/actions/workflows/node.js.yml/badge.svg?branch=3.x-stable)
22

33
#### NOTE: To upgrade to jQuery 3.0, you first need version 1.12.x or 2.2.x. If you're using an older version, first upgrade to one of these versions using [jQuery Migrate 1.x](https://github.com/jquery/jquery-migrate/tree/1.x-stable#readme), to resolve any compatibility issues. For more information about the changes made in jQuery 3.0, see the [upgrade guide](https://jquery.com/upgrade-guide/3.0/) and [blog post](https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/).
44

@@ -50,7 +50,7 @@ The production build is minified and does not generate console warnings. It will
5050

5151
The development version of the plugin displays warnings in the browser console. Older browsers such as IE9 doesn't support the console interface. No messages will be generated unless you include a debugging library such as [Firebug Lite](https://getfirebug.com/firebuglite) before including the jQuery Migrate plugin. Developers can also inspect the `jQuery.migrateWarnings` array to see what error messages have been generated.
5252

53-
All warnings generated by this plugin start with the string "JQMIGRATE". A list of the warnings you may see are in [warnings.md](https://github.com/jquery/jquery-migrate/blob/main/warnings.md).
53+
All warnings generated by this plugin start with the string "JQMIGRATE". A list of the warnings you may see are in [warnings.md](https://github.com/jquery/jquery-migrate/blob/3.x-stable/warnings.md).
5454

5555

5656
## Migrate Plugin API
@@ -69,7 +69,7 @@ This plugin adds some properties to the `jQuery` object that can be used to prog
6969

7070
`jQuery.migrateDeduplicateWarnings`: By default, Migrate only gives a specific warning once. If you set this property to `false` it will give a warning for every occurrence each time it happens. Note that this can generate a lot of output, for example when a warning occurs in a loop.
7171

72-
`jQuery.migrateDisablePatches`: Disables patches by their codes. You can find a code for each patch in square brackets in [warnings.md](https://github.com/jquery/jquery-migrate/blob/main/warnings.md). A limited number of warnings doesn't have codes defined and cannot be disabled. These are mostly setup issues like using an incorrect version of jQuery or loading Migrate multiple times.
72+
`jQuery.migrateDisablePatches`: Disables patches by their codes. You can find a code for each patch in square brackets in [warnings.md](https://github.com/jquery/jquery-migrate/blob/3.x-stable/warnings.md). A limited number of warnings doesn't have codes defined and cannot be disabled. These are mostly setup issues like using an incorrect version of jQuery or loading Migrate multiple times.
7373

7474
`jQuery.migrateDisablePatches`: Disables patches by their codes.
7575

build/release.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var releaseVersion,
2222
prompt = enquirer.prompt,
2323

2424
repoURL = "[email protected]:jquery/jquery-migrate.git",
25-
branch = "main",
25+
branch = "3.x-stable",
2626

2727
// Windows needs the .cmd version but will find the non-.cmd
2828
// On Windows, also ensure the HOME environment variable is set
@@ -211,7 +211,7 @@ async function publishToNPM( next ) {
211211

212212
function setNextVersion( next ) {
213213
updateSourceVersion( nextVersion );
214-
updatePackageVersion( nextVersion, "main" );
214+
updatePackageVersion( nextVersion, "3.x-stable" );
215215
git( [ "commit", "-a", "--no-verify", "-m", "Updating the source version to " + nextVersion ],
216216
next );
217217
}
@@ -281,7 +281,7 @@ function updateReadmeVersion() {
281281
}
282282

283283
function setBlobVersion( s, v ) {
284-
return s.replace( /\/blob\/(?:(\d+\.\d+[^\/]+)|main)/, "/blob/" + v );
284+
return s.replace( /\/blob\/(?:(\d+\.\d+[^\/]+)|3.x-stable)/, "/blob/" + v );
285285
}
286286

287287
function writeJsonSync( fname, json ) {

0 commit comments

Comments
 (0)