siefkenj / unified-latex

Utilities for parsing and manipulating LaTeX ASTs with the Unified.js framework
MIT License
91 stars 24 forks source link

Seemingly accidental publish of version 2.4.2 makes npm miss out on 1.6.0+ #96

Open FelixZY opened 6 months ago

FelixZY commented 6 months ago

npm lists version 1.7.1 of @unified-latex/unified-latex-prettier as the most recent release. However, looking at the dependency list for prettier-plugin-latex, version 2.4.2 is listed.

Indeed, version 2.4.2 is available on npmjs as an 8 month old release:

Screenshot from 2024-05-03 23-33-12

But it is not listed as a formal release on GitHub.

I'm assuming version 2.4.2 was pushed manually by accident. However, its presence on npmjs and listing in prettier-plugin-latex causes this version to be installed instead of actually newer releases such as 1.6.0+.

siefkenj commented 6 months ago

Yes, that was a mistake. I have marked that version as deprecated. Hopefully that will solve the issue!

FelixZY commented 6 months ago

@siefkenj you probably want to fix the import in prettier-plugin-latex as well :)

Thank you for the quick response!

FelixZY commented 6 months ago

@siefkenj Attempting to install @unified-latex/unified-latex-prettier now produces a deprecation warning but still installs version 2.4.2:

$ npm i @unified-latex/unified-latex-prettier
npm WARN deprecated @unified-latex/unified-latex-prettier@2.4.2: Incorrect version number

added 213 packages, and audited 214 packages in 18s

58 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
siefkenj commented 6 months ago

I'm not sure what else I can do. NPM doesn't let me unpublish...

FelixZY commented 6 months ago

You could bump the current version beyond 2.4.2. Not ideal but it's probably the best solution...