github-actions[bot]
7707ea7350
feat: update package manager versions ( #719 )
2025-07-19 18:02:15 +00:00
Maël Nison
5fc3691354
feat: Adds guard to avoid stepping on Yarn's feet ( #714 )
...
* feat: Adds guard to avoid stepping on Yarn's feet
* Makes the path more specific
* Apply feedback
* Fixes test
2025-06-02 09:40:35 +02:00
github-actions[bot]
b45b3a3244
feat: update package manager versions ( #671 )
...
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* Trigger actions?
* Fixes mocks
* nock again
---------
Co-authored-by: Create or Update Pull Request Action <create-or-update-pull-request@users.noreply.github.com>
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2025-05-27 09:37:08 +02:00
Maël Nison
77fff3c1f3
Disables auto-pinning by default ( #709 )
...
* Disables auto-pinning by default
* Updates tests
* Updates the README
2025-05-16 19:14:38 +02:00
Mike McCready
633764f7c4
chore(deps): update eslint to 9.22.0 ( #676 )
...
update @yarnpkg/eslint-config to 3.0.0
fix fixable eslint formatting errors
add @typescript-eslint/no-unused-vars caughtErrors:none
change VScode setting to eslint.useFlatConfig true
2025-03-26 20:26:06 +01:00
github-actions[bot]
b83bb5ec15
feat: update package manager versions ( #617 )
2025-02-28 19:46:59 +00:00
Antoine du Hamel
9b95b46f05
feat: add support for `.corepack.env` ( #642 )
2025-02-28 19:25:03 +00:00
Antoine du Hamel
b456268851
feat: add limited support for `devEngines` ( #643 )
2025-02-28 20:06:33 +01:00
Antoine du Hamel
4be72f6941
fix(use): do not throw on invalid `packageManager` ( #663 )
2025-02-28 19:20:09 +01:00
Antoine du Hamel
bb16184b7b
chore(tests): remove temporary directories in test teardown ( #666 )
2025-02-28 11:21:15 +00:00
Thomas Scholtes
b0608d1a60
chore(tests): remove temporary directories in test teardown ( #662 )
2025-02-28 12:09:16 +01:00
Antoine du Hamel
d26a552daa
chore(tests): split `invalid_signature` test in two ( #651 )
...
Ranges and tags are not the same thing, it can be useful to have two
different tests in case only one of them fail.
2025-02-12 10:14:34 +00:00
Thomas Scholtes
7b193d8498
chore(tests): fix string matching expectations ( #648 )
...
Vitest does not support matching a regex with a string, it would fail to report unmatched output.
2025-02-12 10:01:48 +00:00
Antoine du Hamel
91ea527475
chore(test): fix some custom registry tests ( #649 )
...
Co-authored-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2025-02-11 18:56:39 +01:00
Thomas Scholtes
c388c64805
chore(tests): don’t keep HTTP connections alive ( #645 )
...
This change almost halves the time it takes to run `tests/main.test.ts`.
2025-02-10 23:37:21 +01:00
Antoine du Hamel
12e77e5069
fix: do not resolve fallback descriptor when `packageManager` is defined ( #632 )
2025-02-08 18:55:54 +01:00
Antoine du Hamel
9317593dda
chore(tests): await promise in `config.test.js` ( #639 )
2025-02-07 14:35:44 +00:00
Antoine du Hamel
ab38255f24
chore(tests): do not fail tests when `DEBUG` is set in the env ( #615 )
2025-01-27 22:42:16 +00:00
github-actions[bot]
c7a9bde16d
feat: update package manager versions ( #595 )
...
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* feat: update package manager versions
* update Nock files
---------
Co-authored-by: Create or Update Pull Request Action <create-or-update-pull-request@users.noreply.github.com>
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2025-01-14 13:09:52 +01:00
Antoine du Hamel
a286c8f553
feat: update package manager versions ( #578 )
2024-11-23 12:25:31 +00:00
github-actions[bot]
b819e404db
feat: update package manager versions ( #543 )
2024-09-07 10:54:43 +00:00
Antoine du Hamel
eb63873c6c
fix: fallback to `shasum` when `integrity` is not defined ( #542 )
...
Some npm registries do not define an `integrity` field, in which case
we can try using the `shasum` field instead.
2024-07-21 16:38:30 +02:00
Kristoffer K.
85e556a1a9
test: migrate to vitest ( #349 )
2024-07-16 23:31:15 +02:00
github-actions[bot]
3e3b04619c
feat: update package manager versions ( #492 )
2024-07-12 12:59:07 +00:00
Antoine du Hamel
db6fae50cf
fix: replace npm registry domain in tarball URL ( #502 )
2024-07-12 10:43:09 +02:00
Antoine du Hamel
7b8e33ac01
chore(tests): do not use outdated `fs.rmdir` API ( #487 )
2024-05-31 10:15:34 +00:00
github-actions[bot]
e1abb83241
feat: update package manager versions ( #481 )
2024-05-31 10:14:53 +00:00
github-actions[bot]
985895bccb
feat: update package manager versions ( #469 )
2024-05-10 08:21:32 +00:00
Leonardo Rocha
f15ebc289e
feat: add support for `COREPACK_INTEGRITY_KEYS=0` ( #470 )
2024-05-10 10:05:26 +02:00
Alex Kessock
6efa349882
fix: COREPACK_NPM_REGISTRY should allow for username/password auth ( #466 )
2024-04-24 17:13:00 +02:00
Kristoffer K
0f9b748640
fix!: call `executePackageManagerRequest` directly ( #430 )
...
* fix!: call `executePackageManagerRequest` directly
* Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* test: update assertions
---------
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-20 19:33:05 +02:00
github-actions[bot]
56816c2b7e
feat: update package manager versions ( #462 )
2024-04-19 07:57:43 +00:00
stduhpf
e033b5f36c
chore(tests): handle windows path formatting more gracefully ( #460 )
2024-04-16 16:07:23 +02:00
Antoine du Hamel
32a93ea4f5
fix: add path to `package.json` in error message ( #456 )
2024-04-15 18:17:33 +00:00
github-actions[bot]
1423190564
feat: update package manager versions ( #425 )
2024-04-13 14:16:04 +00:00
Jakob Ackermann
c449adc818
feat: separate read and write operations on lastKnownGood.json ( #446 )
...
Also skip overwriting `lastKnownGood.json` with same content.
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-13 11:38:56 +00:00
Antoine du Hamel
e561dd00bb
feat: verify integrity signature when downloading from npm registry ( #432 )
...
When the user has not provided any hash (so when running `corepack up`/`corepack use …`), and the package manager is downloaded from the npm registry, we can verify the signature.
BREAKING CHANGE: attempting to download a version from the npm registry (or a mirror) that was published using the now deprecated PGP signature without providing a hash will trigger an error. Users can disable the signature verification using a environment variable.
2024-04-12 22:49:11 +00:00
Gavin King
2d63536413
fix: Incorrect authorization prefix for basic auth, and undocumented env var ( #454 )
...
Co-authored-by: Gavin King <gavin.king@cgi.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-12 23:28:11 +02:00
Antoine du Hamel
73d9a1e2d2
fix: correctly set `Dispatcher` prototype for `ProxyAgent` ( #451 )
...
In an attempt to bundle only a subset of Undici code, we forgot to take
some side-effect into account.
2024-04-12 23:27:26 +02:00
zhyupe
467216281e
fix: hash check when downloading Yarn Berry from npm ( #439 )
...
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2024-04-01 14:27:26 +02:00
Antoine du Hamel
14b8a01abb
chore: fix tests on custom registry ( #445 )
2024-04-01 11:46:16 +02:00
Antoine du Hamel
d2677538cd
fix: re-add support for custom registries with auth ( #397 )
2024-03-27 19:23:43 +01:00
Antoine du Hamel
082fabf8b1
fix: download fewer metadata from npm registry ( #436 )
2024-03-26 15:08:33 +01:00
github-actions[bot]
e8edba771b
feat: update package manager versions ( #415 )
2024-03-08 08:48:16 +00:00
Maël Nison
8b6c6d4b2b
feat: Pins the package manager as it's used for the first time ( #413 )
...
* feat: Pins the package manager as it's used for the first time
* Adds a warning when auto-pinning the package manager version
* Updates wording
2024-03-03 13:50:18 +01:00
zhyupe
47be27c9db
fix: improve support for `COREPACK_NPM_REGISTRY` with Yarn Berry ( #396 )
2024-02-27 10:55:04 +01:00
Kristoffer K
967e2666b5
test: store nocks in a sqlite database ( #374 )
...
* test: store nocks in a sqlite3 database
* chore: remove nock files
* refactor: reuse statement
* Update tests/recordRequests.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* refactor: only create statements when needed
* refactor: move nocks db up one level
* fix: close db on exit
---------
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-02-24 00:59:12 +01:00
Kristoffer K
451dcf8229
test: clear all `COREPACK_*` environment variables ( #392 )
...
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2024-02-21 20:29:52 +00:00
Maël Nison
00506b2a15
fix: group the download prompt together ( #391 )
2024-02-21 21:24:13 +01:00
github-actions[bot]
1423312a0e
feat: update package manager versions ( #362 )
2024-02-21 04:11:13 +00:00