Skip to content

jquery.slim.js v2.2.3 has "v3.0.0-beta1" in header comment #3094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Starefossen opened this issue Apr 29, 2016 · 15 comments
Closed

jquery.slim.js v2.2.3 has "v3.0.0-beta1" in header comment #3094

Starefossen opened this issue Apr 29, 2016 · 15 comments
Assignees
Milestone

Comments

@Starefossen
Copy link

Starefossen commented Apr 29, 2016

Description:

jQuery v2.2.3 has v3.0.0-beta1 in header comment for the following files:

  • dist/jquery.slim.js
  • dist/jquery.slim.min.js.

Steps to reproduce:

  1. npm install jquery@2.2.3
  2. head ./node_modules/jquery/dist/jquery.slim.js

Browser Information:

node v4.4.3
npm v2.15.1
@mgol
Copy link
Member

mgol commented Apr 29, 2016

Yikes, thanks for the report!

@timmywil This file shouldn't even exist in this version; it seems like the release was done on a non-fresh clone of the repo with files built from master which seems weird as jquery-release runs it all on a fresh repo clone... How did it happen?

Marking it as a blocker so that we don't have extra files from a different beta version in 2.2.4.

@mgol mgol added the Build label Apr 29, 2016
@mgol mgol added this to the 1.12.4/2.2.4 milestone Apr 29, 2016
@mgol mgol added the Blocker label Apr 29, 2016
@mgol
Copy link
Member

mgol commented Apr 29, 2016

The same applies to 1.12.3.

@timmywil
Copy link
Member

Oh, I know how it happened. It pushed to dist and ran publish from the dist repo, which had slim files sitting there from previous commits.

@mgol
Copy link
Member

mgol commented Apr 29, 2016

Ah, OK. I guess the fix that would kill similar issues in the future would be to git rm -r dist before adding new files?

@scottgonzalez
Copy link
Member

Were you using a local clone of jquery for the build? If you were using --remote=jquery/jquery, you should have been publishing from a fresh clone of jquery-dist (based on a quick glance at your release script).

@timmywil
Copy link
Member

@scottgonzalez It was a fresh clone, but it didn't overwrite the slim files.

@timmywil
Copy link
Member

timmywil commented Apr 29, 2016

Another solution (probably simpler), would be to add those files to the .npmignore/bower.json ignore on non-master branches.

@mgol
Copy link
Member

mgol commented Apr 29, 2016

Another solution (probably simpler), would be to add those files to the .npmignore/bower.json ignore on non-master branches.

That's not future-proof. I think we should ensure dist contains only what's generated in the current build.

@timmywil
Copy link
Member

Ok, perhaps a whilelist instead of a blacklist (files property).

@timmywil
Copy link
Member

I don't want to remove the whole dist before copying. This wouldn't work on windows, but rsync has a feature that removes files that aren't being copied over.

@beruic
Copy link

beruic commented May 9, 2016

While you are at it, can you fix the versions in the .map files too? They all state that they are version 3.

@mgol
Copy link
Member

mgol commented May 9, 2016

@beruic "version": 3 in the source map file means it uses the 3rd version of the source map spec (i.e. the latest one) so that's fine. Unless you're talking about sth else?

@Starefossen
Copy link
Author

Good work you guys 👏🏼🎉

On 13. mai 2016, at 17:38, Timmy Willison notifications@github.com wrote:

Closed #3094 via 95c7ab6.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@beruic
Copy link

beruic commented May 19, 2016

On CDNjs the slim files still have v3.0.0-beta1 in the header.

@dmethvin
Copy link
Member

@beruic if you mean the 2.2.3 files, we don't remove and republish files that have already been published elsewhere. Think of something like that as a force-push to a public repo here at Github, it's pretty disruptive. In many cases it would not even work, CDNs set long expiration dates for the cached files so browsers and proxies will pull from their cache regardless of whether the file has been updated or removed.

The fix committed here was for our release process to be sure the problem did not happen in the future. We've got a new release coming in the next couple of days.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

6 participants