Skip to content

Commit 25d0afa

Browse files
committed
Release: compat -> 1.x. Remove compat-specific release semantics
1 parent 704de81 commit 25d0afa

File tree

10 files changed

+28
-55
lines changed

10 files changed

+28
-55
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ This will only run the "css" module tests. This will significantly speed up your
129129

130130
Remember that jQuery supports multiple browsers and their versions; any contributed code must work in all of them. You can refer to the [browser support page](http://jquery.com/browser-support/) for the current list of supported browsers.
131131

132-
Note that browser support differs depending on whether you are targeting the `master` or `compat` branch.
132+
Note that browser support differs depending on whether you are targeting the `master` or `1.x` branch.

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ module.exports = function( grunt ) {
174174
beautify: {
175175
"ascii_only": true
176176
},
177-
banner: "/*! jQuery Compat v<%= pkg.version %> | " +
177+
banner: "/*! jQuery v<%= pkg.version %> | " +
178178
"(c) jQuery Foundation | jquery.org/license */",
179179
compress: {
180180
"hoist_funs": false,

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ In the spirit of open source software development, jQuery always encourages comm
1414
Environments in which to use jQuery
1515
--------------------------------------
1616

17-
- [Browser support](http://jquery.com/browser-support/) differs between the master branch and the compat branch. Specifically, the master branch does not support legacy browsers such as IE6-8. The jQuery team continues to provide support for legacy browsers on the compat branch. Use the latest compat release if support for those browsers is required. See [browser support](http://jquery.com/browser-support/) for more info.
18-
- To use jQuery in Node, browser extensions, and other non-browser environments, use only master branch releases given the name "jquery" rather than "jquery-compat". The compat branch does not support these environments.
17+
- [Browser support](http://jquery.com/browser-support/) differs between the master branch and the 1.x branch. Specifically, the master branch does not support legacy browsers such as IE6-8. The jQuery team continues to provide support for legacy browsers on the 1.x branch. Use the latest 1.x release if support for those browsers is required. See [browser support](http://jquery.com/browser-support/) for more info.
18+
- To use jQuery in Node, browser extensions, and other non-browser environments, use only master branch releases (2.x). The 1.x branch does not support these environments.
1919

2020

2121
What you need to build your own jQuery
@@ -94,7 +94,7 @@ Some example modules that can be excluded are:
9494
- **exports/global**: Exclude the attachment of global jQuery variables ($ and jQuery) to the window.
9595
- **exports/amd**: Exclude the AMD definition.
9696

97-
Removing Sizzle is not supported on the `compat` branch.
97+
Removing Sizzle is not supported on the `1.x` branch.
9898

9999
The build process shows a message for each dependent module it excludes or includes.
100100

build/release.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ module.exports = function( Release ) {
77
dist = require( "./release/dist" ),
88
ensureSizzle = require( "./release/ensure-sizzle" ),
99

10-
npmTags = Release.npmTags,
11-
createTag = Release._createTag;
10+
npmTags = Release.npmTags;
1211

1312
Release.define( {
1413
npmPublish: true,
@@ -20,17 +19,6 @@ module.exports = function( Release ) {
2019
checkRepoState: function( callback ) {
2120
ensureSizzle( Release, callback );
2221
},
23-
/**
24-
* The tag for compat is different
25-
* This sets a different new version for the source repo,
26-
* but after building with the correct tag
27-
* e.g. 3.0.0+compat
28-
*/
29-
_createTag: function( paths ) {
30-
Release.distVersion = Release.newVersion;
31-
Release.newVersion = Release.newVersion + "+compat";
32-
return createTag( paths );
33-
},
3422
/**
3523
* Generates any release artifacts that should be included in the release.
3624
* The callback must be invoked with an array of files that should be

build/release/cdn.js

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,29 @@ var
1010
mapFile = "dist/jquery.min.map",
1111

1212
releaseFiles = {
13-
"jquery-compat-VER.js": devFile,
14-
"jquery-compat-VER.min.js": minFile,
15-
"jquery-compat-VER.min.map": mapFile
13+
"jquery-VER.js": devFile,
14+
"jquery-VER.min.js": minFile,
15+
"jquery-VER.min.map": mapFile
1616
},
1717

1818
googleFilesCDN = [
19-
"jquery-compat.js", "jquery-compat.min.js", "jquery-compat.min.map"
19+
"jquery.js", "jquery.min.js", "jquery.min.map"
2020
],
2121

2222
msFilesCDN = [
23-
"jquery-compat-VER.js", "jquery-compat-VER.min.js", "jquery-compat-VER.min.map"
24-
],
25-
26-
rver = /VER/,
27-
rcompat = /\-compat\./g;
23+
"jquery-VER.js", "jquery-VER.min.js", "jquery-VER.min.map"
24+
];
2825

2926
/**
3027
* Generates copies for the CDNs
3128
*/
3229
function makeReleaseCopies( Release ) {
33-
var version = Release.newVersion.replace( "-compat", "" );
3430
shell.mkdir( "-p", cdnFolder );
3531

3632
Object.keys( releaseFiles ).forEach( function( key ) {
3733
var text,
3834
builtFile = releaseFiles[ key ],
39-
unpathedFile = key.replace( /VER/g, version ),
35+
unpathedFile = key.replace( /VER/g, Release.newVersion ),
4036
releaseFile = cdnFolder + "/" + unpathedFile;
4137

4238
if ( /\.map$/.test( releaseFile ) ) {
@@ -59,8 +55,6 @@ function makeArchives( Release, callback ) {
5955

6056
Release.chdir( Release.dir.repo );
6157

62-
var version = Release.newVersion.replace( "-compat", "" );
63-
6458
function makeArchive( cdn, files, callback ) {
6559
if ( Release.preRelease ) {
6660
console.log( "Skipping archive creation for " + cdn + "; this is a beta release." );
@@ -74,8 +68,9 @@ function makeArchives( Release, callback ) {
7468
archiver = require( "archiver" )( "zip" ),
7569
md5file = cdnFolder + "/" + cdn + "-md5.txt",
7670
output = fs.createWriteStream(
77-
cdnFolder + "/" + cdn + "-jquery-compat-" + version + ".zip"
78-
);
71+
cdnFolder + "/" + cdn + "-jquery-" + Release.newVersion + ".zip"
72+
),
73+
rver = /VER/;
7974

8075
output.on( "close", callback );
8176

@@ -87,22 +82,15 @@ function makeArchives( Release, callback ) {
8782

8883
files = files.map( function( item ) {
8984
return "dist" + ( rver.test( item ) ? "/cdn" : "" ) + "/" +
90-
item.replace( rver, version );
85+
item.replace( rver, Release.newVersion );
9186
} );
9287

93-
sum = Release.exec(
94-
95-
// Read jQuery files
96-
"md5sum " + files.join( " " ).replace( rcompat, "." ),
97-
"Error retrieving md5sum"
98-
);
99-
fs.writeFileSync( "./" + md5file, sum );
88+
sum = Release.exec( "md5sum " + files.join( " " ), "Error retrieving md5sum" );
89+
fs.writeFileSync( md5file, sum );
10090
files.push( md5file );
10191

10292
files.forEach( function( file ) {
103-
104-
// For Google, read jquery.js, write jquery-compat.js
105-
archiver.append( fs.createReadStream( file.replace( rcompat, "." ) ),
93+
archiver.append( fs.createReadStream( file ),
10694
{ name: path.basename( file ) } );
10795
} );
10896

build/release/dist.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function( Release, complete ) {
44
fs = require( "fs" ),
55
shell = require( "shelljs" ),
66
pkg = require( Release.dir.repo + "/package.json" ),
7-
distRemote = Release.remote.replace( "jquery.git", "jquery-compat-dist.git" ),
7+
distRemote = Release.remote.replace( "jquery.git", "jquery-dist.git" ),
88

99
// These files are included with the distribution
1010
files = [
@@ -32,7 +32,7 @@ module.exports = function( Release, complete ) {
3232
}
3333

3434
/**
35-
* Generate bower file for jquery-compat-dist
35+
* Generate bower file for jquery-dist
3636
*/
3737
function generateBower() {
3838
return JSON.stringify( {
@@ -70,9 +70,6 @@ module.exports = function( Release, complete ) {
7070
// Write generated bower file
7171
fs.writeFileSync( Release.dir.dist + "/bower.json", generateBower() );
7272

73-
// Restore newVersion
74-
Release.newVersion = Release.distVersion;
75-
7673
console.log( "Adding files to dist..." );
7774
Release.exec( "git add .", "Error adding files." );
7875
Release.exec(

build/tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ module.exports = function( grunt ) {
173173

174174
// Can't exclude sizzle on this branch
175175
if ( module === "sizzle" ) {
176-
grunt.log.error( "Sizzle cannot be excluded on the compat branch." );
176+
grunt.log.error( "Sizzle cannot be excluded on the 1.x branch." );
177177

178178
// Can't exclude certain modules
179179
} else if ( minimum.indexOf( module ) === -1 ) {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "jquery-compat",
2+
"name": "jquery",
33
"title": "jQuery",
44
"description": "JavaScript library for DOM operations",
5-
"version": "3.0.0-pre",
5+
"version": "1.12.0-pre",
66
"main": "dist/jquery.js",
77
"homepage": "http://jquery.com",
88
"author": {
99
"name": "jQuery Foundation and other contributors",
10-
"url": "https://github.com/jquery/jquery/blob/compat/AUTHORS.txt"
10+
"url": "https://github.com/jquery/jquery/blob/1.12-stable/AUTHORS.txt"
1111
},
1212
"repository": {
1313
"type": "git",

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ define( [
1313
class2type, toString, hasOwn, support ) {
1414

1515
var
16-
version = "@VERSION+compat",
16+
version = "@VERSION",
1717

1818
// Define a local copy of jQuery
1919
jQuery = function( selector, context ) {

src/intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Compat JavaScript Library v@VERSION
2+
* jQuery JavaScript Library v@VERSION
33
* http://jquery.com/
44
*
55
* Includes Sizzle.js

0 commit comments

Comments
 (0)