-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: cache npm metadata #5491
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
Merged
Merged
feat: cache npm metadata #5491
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
d09c0d2
feat: cache npm metadata
paul-soporan 9cd8119
Merge branch 'master' into paul/feat/cache-npm-metadata
paul-soporan f0aaee3
Merge branch 'master' into paul/feat/cache-npm-metadata
paul-soporan c577e8b
refactor: tweaks
paul-soporan 175f1a1
refactor: more tweaks
paul-soporan dba9140
refactor: even more tweaks
paul-soporan 7ec0583
chore: versions
paul-soporan 2deff2a
chore: changelog
paul-soporan caa8e9c
test: update tests
paul-soporan a5ff389
chore: update benchmarks
paul-soporan a1bf470
chore: add todos
paul-soporan 5df66c1
perf: trim stored metadata
paul-soporan f3fc013
refactor: don't export the cache version
paul-soporan 9e42027
refactor: drop unnecessary `as Filename`s
paul-soporan f6fbaa5
fix: add name to stored metadata
paul-soporan 5a0e7c5
feat: automatically derive cache key
paul-soporan 7f7bde8
refactor: slice the cache key
paul-soporan 65b4138
test: update tests
paul-soporan 30a97dd
chore: fix benchmark script
paul-soporan 7cc1f1b
Merge branch 'master' into paul/feat/cache-npm-metadata
paul-soporan a82c891
refactor: remove redundant check
paul-soporan 47ab924
feat: disable metadata cache during hardened mode
paul-soporan 3efc7a9
fix: operator precedence
paul-soporan ede7a2a
refactor: final tweaks
paul-soporan 5268b7a
refactor: use return
paul-soporan c630d25
fix: ensure metadata cache is atomic
paul-soporan d838e3b
refactor: rename for consistency
paul-soporan dd07bf4
Apply suggestions from code review
paul-soporan e662c82
Revert "Apply suggestions from code review"
paul-soporan 6778080
Merge branch 'master' into paul/feat/cache-npm-metadata
paul-soporan 2b1e1ec
refactor: remove `deprecated` field
paul-soporan 07b4ceb
refactor: move `npm-metadata` folder to `metadata/npm`
paul-soporan 7e09021
refactor: use single argument
paul-soporan 600c358
Merge branch 'master' into paul/feat/cache-npm-metadata
arcanis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
releases: | ||
"@yarnpkg/cli": minor | ||
"@yarnpkg/core": minor | ||
"@yarnpkg/fslib": minor | ||
"@yarnpkg/plugin-npm": minor | ||
|
||
declined: | ||
- "@yarnpkg/plugin-compat" | ||
- "@yarnpkg/plugin-constraints" | ||
- "@yarnpkg/plugin-dlx" | ||
- "@yarnpkg/plugin-essentials" | ||
- "@yarnpkg/plugin-exec" | ||
- "@yarnpkg/plugin-file" | ||
- "@yarnpkg/plugin-git" | ||
- "@yarnpkg/plugin-github" | ||
- "@yarnpkg/plugin-http" | ||
- "@yarnpkg/plugin-init" | ||
- "@yarnpkg/plugin-interactive-tools" | ||
- "@yarnpkg/plugin-link" | ||
- "@yarnpkg/plugin-nm" | ||
- "@yarnpkg/plugin-npm-cli" | ||
- "@yarnpkg/plugin-pack" | ||
- "@yarnpkg/plugin-patch" | ||
- "@yarnpkg/plugin-pnp" | ||
- "@yarnpkg/plugin-pnpm" | ||
- "@yarnpkg/plugin-stage" | ||
- "@yarnpkg/plugin-typescript" | ||
- "@yarnpkg/plugin-version" | ||
- "@yarnpkg/plugin-workspace-tools" | ||
- vscode-zipfs | ||
- "@yarnpkg/builder" | ||
- "@yarnpkg/doctor" | ||
- "@yarnpkg/extensions" | ||
- "@yarnpkg/libzip" | ||
- "@yarnpkg/nm" | ||
- "@yarnpkg/pnp" | ||
- "@yarnpkg/pnpify" | ||
- "@yarnpkg/sdks" | ||
- "@yarnpkg/shell" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.