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

fix: fix canary release versions, use 0.0.0 scheme #5295

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Aug 5, 2021

Motivation

Another attempt to fix the canary release naming convention to avoid ^2.0.0-beta.0a668366c2 picking up another version in lockfile after install.

The commit hash should rather not be used as a semver pre-release identifier because commit hashes won't be ordered properly in semver order. Adding the commit hash after the + is not used to determine precedence of the canary releases.

Also we can't use 2.0.0 prefix because non pre-release versions are picked up in priority over pre-release versions, so user might end-up with a stable release instead of a canary in the future. Switching to 0.0.0 makes sure that an user that really wants a canary will get a canary (assuming we'll never publish 0.0.0). React/RN also use 0.0.0

https://semver.org/

Relevant spec paragraphs:

image

image

Useful for testing: https://semver.npmjs.com/

@slorber slorber added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Aug 5, 2021
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 5, 2021
@netlify
Copy link

netlify bot commented Aug 5, 2021

✔️ [V2]

🔨 Explore the source changes: 2a65dda

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/610bc01986259400073b48fb

😎 Browse the preview: https://deploy-preview-5295--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Aug 5, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 98
🟢 Accessibility 98
🟢 Best practices 93
🟢 SEO 100
🟢 PWA 91

Lighthouse ran on https://deploy-preview-5295--docusaurus-2.netlify.app/

@github-actions
Copy link

github-actions bot commented Aug 5, 2021

Size Change: -2 B (0%)

Total Size: 787 kB

ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 35.9 kB 0 B
website/build/assets/css/styles.********.css 93.4 kB 0 B
website/build/assets/js/main.********.js 402 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 63.9 kB 0 B
website/build/blog/index.html 27.8 kB 0 B
website/build/docs/index.html 41.9 kB -1 B (0%)
website/build/docs/installation/index.html 49.6 kB -1 B (0%)
website/build/index.html 28.7 kB 0 B
website/build/tests/docs/index.html 22.6 kB 0 B
website/build/tests/docs/standalone/index.html 20.5 kB 0 B

compressed-size-action

@slorber slorber merged commit b5ecf27 into master Aug 5, 2021
@slorber slorber deleted the slorber/fix-canary-again branch August 5, 2021 12:19
@slorber slorber mentioned this pull request Aug 5, 2021
@slorber slorber changed the title fix: fix canary release versions fix: fix canary release versions, use 0.0.0 scheme Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants