Commit Graph

281 Commits

Author SHA1 Message Date
github-actions[bot] e8edba771b
feat: update package manager versions (#415) 2024-03-08 08:48:16 +00:00
Antoine du Hamel b7ec137210
fix: ignore `EROFS` errors (#421) 2024-03-08 08:39:08 +00:00
Maël Nison 3958d26462
Update config.json (#410) 2024-03-03 13:51:13 +01: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
Maël Nison a3ea1dd6b5
chore(build): upgrade TypeScript (#409) 2024-02-27 11:03:22 +01:00
zhyupe 47be27c9db
fix: improve support for `COREPACK_NPM_REGISTRY` with Yarn Berry (#396) 2024-02-27 10:55:04 +01:00
Maël Nison 88d504c1a5
doc: add note clarifying how to add new package managers (#408)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-02-27 10:49:02 +01:00
Maël Nison 835308c8d0
Removes the DESIGN document (#403)
* Removes the DESIGN document

* Removes the design document from the readme
2024-02-27 10:28:26 +01:00
Henry 295a1cdb9c
fix: Windows malicious file analysis waiting problem (#398)
Co-authored-by: Steven <steven@ceriously.com>
2024-02-27 09:16:55 +00: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] 476b7dc3c9
chore(main): release 0.25.2 (#387) 2024-02-21 15:58:33 +00:00
Antoine du Hamel bc137a0073
fix: do not show download prompt when downloading JSON (#383) 2024-02-21 16:46:37 +01:00
Antoine du Hamel 6aab5fc17f
chore: bump yarn version (#388) 2024-02-21 09:03:18 +01:00
Antoine du Hamel 31a1c5fa70
chore: remove Dockerfile (#389) 2024-02-21 09:02:19 +01:00
github-actions[bot] 1423312a0e
feat: update package manager versions (#362) 2024-02-21 04:11:13 +00:00
dependabot[bot] 09e33c0df6
build(deps): bump ip from 2.0.0 to 2.0.1 (#385) 2024-02-21 04:16:13 +01:00
Antoine du Hamel 9834f5790a
fix: do not hard fail if Corepack home folder cannot be created (#382) 2024-02-21 04:15:14 +01:00
github-actions[bot] 49ad33428b
chore(main): release 0.25.1 (#381)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-20 14:33:47 +00:00
Kristoffer K f2185fefa1
fix: use valid semver range for `engines.node` (#378) 2024-02-20 11:50:39 +01:00
github-actions[bot] 616893819e
chore(main): release 0.25.0 (#369) 2024-02-20 09:12:58 +01:00
Antoine du Hamel 4a8ce6d42f
feat: add support for URL in `"packageManager"` (#359) 2024-02-20 09:11:52 +01:00
Antoine du Hamel d9c70b91f6
feat!: remove `--all` flag (#351)
Force users to opt-in into the package managers they want to support.
As more and more package managers are added to Corepack, it's more and
more unlikely that our users will be interested in _all_ the package
managers Corepack supports, and it is unreasonable to expect Corepack
maintainers would be able to perform security audits.
2024-02-17 01:35:11 +01:00
dependabot[bot] 9066ea7995
build(deps-dev): bump undici from 6.4.0 to 6.6.1 (#376)
Bumps [undici](https://github.com/nodejs/undici) from 6.4.0 to 6.6.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.4.0...v6.6.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:development
...
2024-02-16 16:29:22 +00:00
Antoine du Hamel 9a1cb385bb
chore!: remove Node.js 19.x from the range of supported versions (#375)
We do not support EOL versions.
2024-02-16 15:55:08 +00:00
Antoine du Hamel f442366c1c
feat: add `corepack cache` command (#363) 2024-02-12 23:40:32 +00:00
Antoine du Hamel 12f1c31a0d
chore(tests): use separate envs for each tests (#371) 2024-02-12 22:33:51 +00:00
Kristoffer K fe6a3072f6
feat!: use `fetch` (#365)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-02-11 23:52:38 +01:00
Kristoffer K 65880cafed
fix: remove unsafe remove of install folder (#372)
* fix: remove unsafe remove of install folder

* test: update to use folderUtils

* perf: skip `existsSync` check
2024-02-11 21:13:45 +01:00
Kristoffer K 54e9510cda
feat!: remove old install folder migration (#373) 2024-02-10 00:52:18 +01:00
Antoine du Hamel b9eea589b4
chore(tests): add test that validates download warning is shown (#370) 2024-01-30 23:46:38 +00:00
Antoine du Hamel a56c13bd0b
feat: bump Known Good Release when downloading new version (#364) 2024-01-30 22:51:09 +00:00
Antoine du Hamel 6b8d87f237
feat!: prompt user before downloading software (#360) 2024-01-30 23:38:33 +01:00
Antoine du Hamel c2a6e4f313
chore(ci): bump actions and add dependabot config (#367) 2024-01-30 18:20:08 +00:00
Antoine du Hamel 4eb1fd92fb
chore(tests): increase timeout to get more green on Windows CI (#366)
For some reason this test times out quite frequently on Windows CI.
Hopefully if we give it more time to succeed, and we won't need to
restart Windows CI as often.
2024-01-30 18:55:55 +01:00
github-actions[bot] a3f271cdf0
chore(main): release 0.24.1 (#353) 2024-01-13 09:08:58 +00:00
github-actions[bot] cc3ada73bc
feat: update package manager versions (#348) 2024-01-13 01:04:10 +00:00
Antoine du Hamel 2950a8a30b
fix(use): create `package.json` when calling `corepack use` on empty dir (#350)
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2024-01-12 18:52:39 +01:00
github-actions[bot] 9bdd2960ce
chore(main): release 0.24.0 (#345) 2023-12-29 23:21:49 +00:00
github-actions[bot] cfcc28047a
feat: update package manager versions (#330) 2023-12-29 23:48:14 +01:00
Antoine du Hamel addf455f74
chore: bump dev dependencies (#346) 2023-12-29 23:45:32 +01:00
Medhansh 518bed8b7d
fix: clarify `EACCES` errors (#343) 2023-12-29 23:39:52 +01:00
Maël Nison 9bee415081
feat: add support for rangeless commands (#338)
This diff makes it possible to run the CLI commands without an explicit range, in which case we use an implicit `*`, e.g.: `corepack install -g yarn`.
2023-12-29 13:00:38 +01:00
Maël Nison 0717c6af89
feat(yarn): fallback to npm when `COREPACK_NPM_REGISTRY` is set (#339)
Yarn publishing its versions on its own was inconvenient for people using private npm mirrors, so it makes sense to offer a way to fallback to the npm store when requested. This diff changes the logic so that we use the `@yarnpkg/cli-dist` package when the `COREPACK_NPM_REGISTRY` variable is set. It should be backward-compatible, since the `registry` field is still the same.
2023-12-29 12:28:27 +01:00
Antoine du Hamel adcd989ca4
chore(ci): test on Node.js 21.x (#344) 2023-12-29 12:16:34 +01:00
guibwl 6df5063b14
feat: add support for HTTP redirect (#341)
Corepack will now follow the `Location` header when receiving a 30x HTTP status code. This should allow Corepack to work with proxies that redirect to a different URL.
2023-12-29 12:15:57 +01:00
Maël Nison e8ae337022
Switches Yarn to the "aliases" field (#340) 2023-12-20 20:58:36 +01:00
github-actions[bot] b7aa57644c
chore(main): release 0.23.0 (#327) 2023-11-05 10:40:10 +00:00
github-actions[bot] 450cd332d0
feat: update package manager versions (#325) 2023-11-05 10:29:19 +00:00