🌐 AI搜索 & 代理 主页
Skip to content
Merged
Prev Previous commit
Next Next commit
Build: Rename more mains to 3.x-stables
  • Loading branch information
mgol committed Feb 2, 2025
commit 946c36fb8f41bfcb83a0417f3759026d6687527f
2 changes: 1 addition & 1 deletion .github/workflows/browser-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- main
- 3.x-stable

env:
NODE_VERSION: 22.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Browserstack
on:
push:
branches:
- main
- 3.x-stable
# Once a week every Tuesday
schedule:
- cron: "12 2 * * 2"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/filestash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Filestash
on:
push:
branches:
- main
- 3.x-stable

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ Change directory to the newly created dir `jquery-migrate/`:
$ cd jquery-migrate
```

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

```bash
$ git remote add upstream git@github.com:jquery/jquery-migrate.git
```

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

```bash
$ git pull upstream main
$ git pull upstream 3.x-stable
```

Install the necessary dependencies:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![CI Status](https://github.com/jquery/jquery-migrate/actions/workflows/node.js.yml/badge.svg?branch=main)
![CI Status](https://github.com/jquery/jquery-migrate/actions/workflows/node.js.yml/badge.svg?branch=3.x-stable)

#### 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/).

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

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.

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).
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).


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

`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.

`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.
`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.

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

Expand Down
6 changes: 3 additions & 3 deletions build/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var releaseVersion,
prompt = enquirer.prompt,

repoURL = "git@github.com:jquery/jquery-migrate.git",
branch = "main",
branch = "3.x-stable",

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

function setNextVersion( next ) {
updateSourceVersion( nextVersion );
updatePackageVersion( nextVersion, "main" );
updatePackageVersion( nextVersion, "3.x-stable" );
git( [ "commit", "-a", "--no-verify", "-m", "Updating the source version to " + nextVersion ],
next );
}
Expand Down Expand Up @@ -281,7 +281,7 @@ function updateReadmeVersion() {
}

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

function writeJsonSync( fname, json ) {
Expand Down