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

⚠️ATTENTION: Using version range like ^ or ~ for packages in this repo will fail. #1195

Closed
Mister-Hope opened this issue Dec 12, 2022 · 8 comments
Labels
good first issue Good for newcomers stale upstream bug Bug from upperchain or other tools, env, etc.

Comments

@Mister-Hope
Copy link
Member

Mister-Hope commented Dec 12, 2022

Description

If you use ^2.0.0-beta.xx for any packages in this repo, you may get an installation failure, or you may get your app broke when upgrading to latest next version.

This is because we published 2 test versions 2.0.0-beta.50-pre.0, 2.0.0-beta.50-pre.1, while 50-pre.x is higher than any number xx.

Solution

The easiest way to solve this is to upgrade vuepress with vp-update.

For:

npx vp-update

yarn dlx vp-update

pnpm dlx vp-update

Manual solution

You can solve this issue by specifying exact version in package.json. e.g.:

{
  "dependencies": {
    "@vuepress/client": "2.0.0-beta.62",
    "vue": "^3.3.4",
    "vuepress": "2.0.0-beta.62"
  }

Note that all the ^ or ~ marker shall be changed for packages in this repo, but you can keep others as is.

{
  "dependencies": {
-    "@vuepress/client": "~2.0.0-beta.62",
-    "@vuepress/client": "^2.0.0-beta.62",
+    "@vuepress/client": "2.0.0-beta.62",
    "vue": "^3.3.4",
-    "vuepress": "~2.0.0-beta.62",
-    "vuepress": "^2.0.0-beta.62",
+    "vuepress": "2.0.0-beta.62"
  }

Also you can use next tag (But we do not recommend this because we may introduce breaking changes in future versions)

{
  "dependencies": {
    "@vuepress/client": "next",
    "vue": "^3.3.4",
    "vuepress": "next"
  }
@Mister-Hope Mister-Hope pinned this issue Dec 12, 2022
@Mister-Hope Mister-Hope changed the title [Bug report] Using ^ for packages in this repo will fail. [Bug report] Using version range like ^ or ~ for packages in this repo will fail. Dec 12, 2022
@Mister-Hope Mister-Hope changed the title [Bug report] Using version range like ^ or ~ for packages in this repo will fail. ⚠️ATTENTION: Using version range like ^ or ~ for packages in this repo will fail. Dec 12, 2022
@init-qy
Copy link

init-qy commented Dec 14, 2022

If use Renovate to manage package version, this configure may be helpful.

"packageRules": [
    {
      "packageNames": ["vuepress", "@vuepress/client", "@vuepress/markdown", "@vuepress/utils"],
      "allowedVersions": "!/pre.*$/"
    }
]

@Mister-Hope
Copy link
Member Author

If use Renovate to manage package version, this configure may be helpful.

"packageRules": [

    {

      "packageNames": ["vuepress", "@vuepress/client"],

      "allowedVersions": "!/pre.*$/"

    }

]

Other official plug-in may be included as well

notheotherben added a commit to SierraSoftworks/blog that referenced this issue Dec 28, 2022
@github-actions github-actions bot added the stale label Dec 30, 2022
@meteorlxy meteorlxy added upstream bug Bug from upperchain or other tools, env, etc. and removed stale labels Dec 30, 2022
quadratz pushed a commit to grammyjs/website that referenced this issue Jan 9, 2023
Updated package.json to include the correct version range for dependencies. See vuepress/core#1195
@github-actions github-actions bot added the stale label Jan 15, 2023
@Mister-Hope Mister-Hope removed the stale label Jan 15, 2023
@github-actions github-actions bot added the stale label Feb 5, 2023
@Mister-Hope Mister-Hope removed the stale label Feb 5, 2023
@vuepress vuepress deleted a comment from github-actions bot Feb 9, 2023
@vuepress vuepress deleted a comment from github-actions bot Feb 9, 2023
@vuepress vuepress deleted a comment from github-actions bot Feb 9, 2023
@github-actions github-actions bot added the stale label Mar 7, 2023
@domnantas
Copy link
Contributor

Are there any plans to officially release v2? It has been in beta for 2+ years

@github-actions github-actions bot removed the stale label Mar 14, 2023
@github-actions github-actions bot added the stale label Mar 30, 2023
@github-actions github-actions bot closed this as completed Apr 7, 2023
@GreenImp
Copy link

If 2.0.0-beta.50-pre.0, and 2.0.0-beta.50-pre.1 are no longer needed, a potential solution would be to deprecate them in npm, which should stop them from being installed:

https://docs.npmjs.com/deprecating-and-undeprecating-packages-or-package-versions#deprecating-a-single-version-of-a-package

Something like this should do the trick:

npm deprecate vuepress@2.0.0-beta.50-pre "Old test version"
npm deprecate vuepress@2.0.0-beta.50-pre.1 "Old test version"

@github-actions github-actions bot removed the stale label May 11, 2023
@Mister-Hope
Copy link
Member Author

We already deprecated them, and deprecated version won't stop package manager installing them.

@jrappen
Copy link

jrappen commented May 22, 2023

Jumping to v2.0.1-beta.1 would be an option.

@Mister-Hope
Copy link
Member Author

Mister-Hope commented Jun 7, 2023

Jumping to v2.0.1-beta.1 would be an option.

Absolutely that could not be an option, what's the difference between yours and v2.0.0?

That's far worse than a version number like v2.0.0-chi.0 or v2.0.0-delta.0

LeonEck added a commit to LeonEck/eck-autocomplete that referenced this issue Jun 15, 2023
knightofbatons added a commit to knightofbatons/knightofbatons.github.io that referenced this issue Jun 15, 2023
GenPage added a commit to runatlantis/atlantis that referenced this issue Jul 18, 2023
GenPage added a commit to runatlantis/atlantis that referenced this issue Jul 25, 2023
* fix: vuepress-next breaking change

See vuepress/core#1195.

Other fixes:

* fix: website js tests triggering properly
* chore: clean up test workflows
* fix: yarn packages
* fix: renovate config & medium rate limit
* fix: don't need to require docker build for JS code
* fix: muffet config
* fix: properly name website test

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
@Mister-Hope Mister-Hope added the good first issue Good for newcomers label Oct 11, 2023
@Mister-Hope Mister-Hope reopened this Oct 11, 2023
@github-actions github-actions bot added the stale label Oct 27, 2023
@github-actions github-actions bot closed this as completed Nov 3, 2023
@Mister-Hope Mister-Hope reopened this Nov 3, 2023
@vuepress vuepress deleted a comment from github-actions bot Nov 3, 2023
@vuepress vuepress deleted a comment from github-actions bot Nov 3, 2023
@vuepress vuepress deleted a comment from github-actions bot Nov 3, 2023
@Mister-Hope Mister-Hope removed the stale label Nov 3, 2023
Copy link

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 7 days.

@github-actions github-actions bot added the stale label Nov 19, 2023
@Mister-Hope Mister-Hope unpinned this issue Nov 19, 2023
ijames-gc pushed a commit to gocardless/atlantis that referenced this issue Feb 13, 2024
* fix: vuepress-next breaking change

See vuepress/core#1195.

Other fixes:

* fix: website js tests triggering properly
* chore: clean up test workflows
* fix: yarn packages
* fix: renovate config & medium rate limit
* fix: don't need to require docker build for JS code
* fix: muffet config
* fix: properly name website test

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
ijames-gc pushed a commit to gocardless/atlantis that referenced this issue Feb 13, 2024
* fix: vuepress-next breaking change

See vuepress/core#1195.

Other fixes:

* fix: website js tests triggering properly
* chore: clean up test workflows
* fix: yarn packages
* fix: renovate config & medium rate limit
* fix: don't need to require docker build for JS code
* fix: muffet config
* fix: properly name website test

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers stale upstream bug Bug from upperchain or other tools, env, etc.
Projects
None yet
Development

No branches or pull requests

6 participants