Skip to content
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

latest version on npm is 0.2.0 #12

Closed
heavyk opened this issue Mar 28, 2020 · 5 comments
Closed

latest version on npm is 0.2.0 #12

heavyk opened this issue Mar 28, 2020 · 5 comments

Comments

@heavyk
Copy link

heavyk commented Mar 28, 2020

... not 0.2.2 -- even though npm says that you published 22 days ago same that github says pushed the 0.2.2 version to github. I use acorn 7, so it's pretty necessary.

you must have mistakenly published the wrong version to npm.. the package.json has "version": "0.2.0"which is probably how it happened. temporarily as a workaround I've set my package.json to point to this repository. just lettin you know, though..

cheers 👍

@jayaddison
Copy link

Hey @heavyk - I'm seeing the same issue. It looks like an accidental work-in-progress directory may have been uploaded to NPM.

Apart from one difference, 0.2.0 on NPM's file contents are identical to 0.2.2 on GitHub. An extra package-lock.json file exists in the download from NPM.

The package-lock.json might be from an old checkout or other branch because it declares version 0.1.0. Hopefully it's a relatively straightforward cleanup and just requires a re-upload of 0.2.2 to the correct NPM tag.

@heavyk
Copy link
Author

heavyk commented Apr 8, 2020

yeah, to get around it temporarily, add this to your dependencies in package.json

...
"acorn-private-class-elements": "github:heavyk/acorn-private-class-elements#patch-1",
...

that patch simply changes the version to be 0.2.2. I'm using yarn, and for whatever reason, it sees 0.2.0, gets confused and installs the 0.2.0 package, not the 0.2.2 one (which has the wrong version). I think it has to do with the yarn.lock pre-resolving the url of the package... kinda a funny bug

@adrianheine
Copy link
Member

adrianheine commented Apr 20, 2020

0.2.0 is the correct version, the wrong 0.2.2 only appears in the commit message. Edit: And there was a git tag, too.

@adrianheine
Copy link
Member

Sorry about the package-lock.json, though :/

@jayaddison
Copy link

@adrianheine No problem, thanks for clarifying :)

Would you mind releasing a 0.2.3 (even if it contains only cosmetic or no changes at all) to clear up any future confusion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants