Commit Graph

54 Commits

Author SHA1 Message Date
Frieder Bluemle 09528a8ea8
chore: fix typos and add `.idea` to `.gitignore` (#482) 2024-05-17 06:20:17 +00:00
Leonardo Rocha f15ebc289e
feat: add support for `COREPACK_INTEGRITY_KEYS=0` (#470) 2024-05-10 10:05:26 +02:00
Trivikram Kamat a62cd7b977
docs: add link to OpenJS slack channel (#461) 2024-04-19 09:40:31 +02: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
Steven 07b58cc65a
chore(docs): update readme to remove silently (#455) 2024-04-12 12:18:17 +02: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 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
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
Antoine du Hamel f442366c1c
feat: add `corepack cache` command (#363) 2024-02-12 23:40:32 +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
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 fe3e5cd86c
Refactoring of the CLI interface (#291)
* Refactoring of the CLI interface

* Updates the Nock snapshots

* Regenerates the Nock files on Node 16

* Update README.md

* Adds --cache-only to corepack install -g

* Fixes hash generation
2023-08-28 22:01:48 +02:00
Spencer Kaiser 321180492d
doc: update DNS troubleshooting section to mention IPv6 (#263) 2023-05-19 10:43:24 +00:00
Antoine du Hamel 74f679d8a7
chore: update supported Node.js versions (#258)
BREAKING CHANGE: remove support for Node.js 14.x
2023-05-19 10:29:33 +02:00
Antoine du Hamel d5ef940ec5
chore(docs): document how to use aliases instead of jumper binaries (#244)
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2023-05-19 10:16:48 +02:00
Spencer Kaiser aa3cbdb54f
fix(doc): add a note about troubleshooting network errors (#259)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-29 14:02:40 +02:00
Antoine du Hamel 5633a15898
chore(doc): prettify README 2023-02-24 19:42:11 +01:00
Mike Scott 662ae9057c
feat: add support for configurable registries and applicable auth options (#186)
Fixes: https://github.com/nodejs/corepack/issues/66
2022-10-28 04:50:07 +02:00
Kenrick 5eadc50192
feat: when strict checking is off, treat like transparent (#197) 2022-10-24 17:06:47 +02:00
Antoine du Hamel 55005a9b7c
chore(doc): fix outdated "Contributing" section (#199) 2022-10-24 13:35:14 +02:00
Colin Kennedy 0b7abb9833
fix(doc): add package configuration instruction to readme (#188) 2022-10-13 16:32:26 +02:00
Antoine du Hamel 92b52f6b49
feat: add `COREPACK_ENABLE_STRICT` env variable (#167) 2022-09-01 10:13:16 +02:00
Antoine du Hamel 055b92807f
feat: download the latest version instead of a pinned one (#134)
Fixes: https://github.com/nodejs/corepack/issues/93
2022-08-19 23:53:18 +02:00
Antoine du Hamel 09e24cf497
feat: do not use `~/.node` as default value for `COREPACK_HOME` (#152)
* feat: do not use `~/.node` as default value for `COREPACK_HOME`

Fixes: https://github.com/nodejs/corepack/issues/145
Refs: https://github.com/nodejs/node/issues/43859

* fixup! feat: do not use `~/.node` as default value for `COREPACK_HOME`

* Update sources/folderUtils.ts

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>

* Update README

* migrate old corepack home folder

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2022-08-15 20:35:45 +02:00
Kirill Romanov 876ce02fe7
feat: auto setup proxy for http requests (#69)
* feat: auto setup proxy for http requests

* Adds dependencies

* Triggers CI again

Co-authored-by: Maël Nison <nison.mael@gmail.com>
2022-04-08 00:05:54 +02:00
Maël Nison e86da78a49
Update README.md (#86) 2022-02-03 10:53:23 +01:00
Steven efe45b5341
Add Node.js 14.19.0 to readme (#87)
https://github.com/nodejs/node/releases/tag/v14.19.0

https://nodejs.org/dist/latest-v14.x/docs/api/corepack.html
2022-02-03 10:53:02 +01:00
Maël Nison a9041903fe
Update README.md (#61) 2021-10-06 12:04:36 +02:00
Tierney Cyren 00c2ab1e2c
docs: fix README to use the project's actual name (#56) 2021-09-15 09:27:49 +02:00
Maël Nison d6e3e652ed
Makes it possible to call arbitrary package manager versions from the Corepack CLI (#47) 2021-08-15 20:05:04 +02:00
Maël Nison b77ed59321
Set of tweaks (#38)
* Inlines tar rather than move it as a separate vendor

* Updates network queries
2021-07-05 12:05:32 +02:00
Masashi Hirano 0c912534d5
docs: fix pmm -> corepack in Contributing (#34) 2021-05-21 15:17:22 +02:00
Maël Nison 4714eeb7ff
Prevents npm from being accidentally set (#24)
* Prevents npm from being accidentally set

* Updates a test
2020-10-08 21:53:53 +02:00
Maël Nison fa627ba513
Turns `--cache-only` into `--output` (#23)
* Inverses the workflow

* Adds support for multiple package managers per archive

* Updates the readme

* Fixes --all check
2020-10-08 20:23:12 +02:00
Maël Nison 25e91d8ad2
Adds documentation (#14)
* Adds documentation

* Apply suggestions from code review

Co-authored-by: James M Snell <jasnell@gmail.com>

Co-authored-by: James M Snell <jasnell@gmail.com>
2020-10-01 00:47:56 +02:00
Maël Nison 9e5e65be0f
Update README.md 2020-09-28 15:55:20 +02:00
Maël Nison 4faf79546c
Update README.md 2020-09-28 15:44:58 +02:00
Maël Nison b70e7b2616 Updates the workflow 2020-09-27 01:26:28 +02:00
Maël Nison 9809b8f856 Refactors pmm -> corepack 2020-09-27 00:51:52 +02:00
Maël Nison 0985889458 Renames engines.pm into packageManager 2020-09-08 12:45:32 +02:00
Maël Nison 757110995e
Update README.md 2020-08-05 02:09:31 +02:00
Maël Nison 32acd24542 Adds a build workflow, test 2020-08-04 21:12:39 +02:00
Maël Nison 8c29576ca8 Refactors the code 2020-08-03 18:54:16 +02:00
Maël Nison d592c12eca Adds docker instructions 2020-05-08 01:40:23 +02:00
Maël Nison 9b2875af2a
Update README.md 2020-05-07 09:58:56 +02:00
Maël Nison 3e71c008e9 Fixes typo 2020-05-07 09:58:26 +02:00
Maël Nison 2d3171ec56 Adds more details 2020-05-07 02:03:04 +02:00
Maël Nison 7987166d67 Adds more details 2020-05-07 01:57:56 +02:00