Commit Graph

412 Commits

Author SHA1 Message Date
Mike McCready 2a04e7c8da
docs: fix new shims contributing typo (#599) 2025-01-20 09:46:47 +01:00
Mike McCready 8bebc0c0a5
chore!: drop support for Node.js 21.x (#594)
Node.js 21.x EOL was June 6th 2024.

* chore(deps): update better-sqlite3 to 11.7.2

Required for running tests with Node.js 23.x.

* chore(ci): add Node.js 23 to tested versions

Windows tests are excluded due to an upstream bug.
2025-01-19 13:47:59 +01: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
dependabot[bot] 0ae3c3c1f5
build(deps): bump nanoid from 3.3.7 to 3.3.8 (#582)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 18:02:19 +01:00
Mike McCready afd939011f
chore(ci): add `pull_requests: write` permissions to `sync.yml` (#593) 2025-01-13 16:40:29 +00:00
Hamir Mahal 256cf8aaa4
chore(ci): move away from archived `google-github` action (#581) 2024-12-05 15:31:16 +01:00
github-actions[bot] 1bb0fb5d67
chore(main): release 0.30.0 (#577) 2024-11-23 12:39:40 +00:00
Antoine du Hamel a286c8f553
feat: update package manager versions (#578) 2024-11-23 12:25:31 +00:00
Kristoffer K. cba690575b
perf: prefer `module.enableCompileCache` over `v8-compile-cache` (#574) 2024-11-23 11:40:37 +01:00
dependabot[bot] 72ed05b775
build(deps): bump cross-spawn from 7.0.3 to 7.0.6 (#575)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-23 11:39:07 +01:00
dependabot[bot] 98d0e43cbc
build(deps): bump vite from 5.3.3 to 5.4.6 (#562)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.3.3 to 5.4.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-23 11:38:24 +01:00
chlorine d732259faf
doc: update directories to directory in corepack --help (#565) 2024-09-29 08:12:08 +00:00
github-actions[bot] 095903b3a8
chore(main): release 0.29.4 (#558) 2024-09-07 11:14:44 +00:00
Antoine du Hamel 8ba6e0b3ba
chore: fix permissions in `publish.yml` (#557)
Refs: https://github.com/googleapis/release-please-action#workflow-permissions
2024-09-07 12:58:33 +02:00
github-actions[bot] b819e404db
feat: update package manager versions (#543) 2024-09-07 10:54:43 +00:00
Antoine du Hamel 2c2005cc42
chore: fix permissions of `update-nock-files.yml` (#556) 2024-09-07 10:50:48 +00:00
dependabot[bot] cb2c063dd6
build(deps): bump micromatch from 4.0.7 to 4.0.8 (#555)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-07 10:35:12 +00:00
Antoine du Hamel 4ca33d3974
chore: fix `sync.yml` permissions (#554) 2024-09-07 12:20:26 +02:00
github-actions[bot] bc13d40037
chore(main): release 0.29.3 (#539) 2024-07-21 14:57:40 +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
Wojciech Maj 93a49c8b2b
chore(deps): bump semver from 7.6.2 to 7.6.3 (#534)
This bugfix version of semver includes significant performance improvements that I guess we would like to see in corepack.

See: https://github.com/npm/node-semver/pull/726
2024-07-20 11:33:00 +02:00
Wojciech Maj 67463b2a3b
chore(deps): bump tar from 6.x to 7.x, selectively import required functions (#533)
Changes from 06e5872189 made it possible to update tar from 6.x to 7.x and use new `package.json` exports that are included in 7.x, allowing us to further reduce our bundle size.
2024-07-18 13:53:41 +02:00
Antoine du Hamel 6019d7b56e
fix: make `DEBUG=corepack` more useful (#538) 2024-07-18 13:52:19 +02:00
Wojciech Maj 06e5872189
chore: adjust tsconfig.json settings (#532)
Because Corepack is bundled with esbuild, the correct, recommended tsconfig.json settings are:
- module: preserve
- moduleResolution: bundler

This ensures that modules are resolved the way esbuild resolves them, and opens us to using e.g. package.json exports (which will come in handy in the next PR in which I update tar dependency).
2024-07-17 11:19:03 +02:00
Kristoffer K. 85e556a1a9
test: migrate to vitest (#349) 2024-07-16 23:31:15 +02:00
github-actions[bot] d337b348a9
chore(main): release 0.29.2 (#531) 2024-07-13 11:37:59 +02:00
Antoine du Hamel 18e29ce3c4
fix: trigger release after 0.29.1 failed to publish 2024-07-13 11:29:21 +02:00
Antoine du Hamel 72c2951ee5
Revert "chore: publish to npm with `--provenance` (#520)" (#530)
This reverts commit 1828961d81.
2024-07-13 11:01:24 +02:00
Antoine du Hamel b498551005
Revert "chore(ci): pass `NPM_TOKEN` to `npm publish` step (#527)" (#529)
This reverts commit dece8891bb.
2024-07-13 10:59:47 +02:00
github-actions[bot] b8356088c7
chore(main): release 0.29.1 (#528) 2024-07-13 08:28:55 +00:00
Antoine du Hamel e6ba06657b
fix: trigger release after 0.29.0 failed to publish 2024-07-13 10:11:19 +02:00
Antoine du Hamel dece8891bb
chore(ci): pass `NPM_TOKEN` to `npm publish` step (#527) 2024-07-13 08:07:47 +00:00
github-actions[bot] aa6fd836f2
chore(main): release 0.29.0 (#525) 2024-07-13 00:30:06 +02:00
Antoine du Hamel d2e813e44d
chore: bump Yarn to 4.3.1 and npm deps (#526) 2024-07-12 23:48:04 +02:00
github-actions[bot] 3e3b04619c
feat: update package manager versions (#492) 2024-07-12 12:59:07 +00:00
Wojciech Maj 1828961d81
chore: publish to npm with `--provenance` (#520)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-07-12 12:43:52 +00:00
Wojciech Maj 932bd4edb9
chore: replace `ts-node` with `tsx` (#518) 2024-07-12 14:42:57 +02:00
Wojciech Maj f0734e6e80
feat: parallelize linking, unlinking and installing (#524) 2024-07-12 12:42:41 +00:00
Wojciech Maj c01af88a87
chore: bump esbuild from 0.19.x to 0.21.x (#517) 2024-07-12 09:07:35 +00:00
Wojciech Maj 0cc6c866ee
chore(ci): test on Node.js 22.x (#519)
With Node.js 22 quickly getting closer to LTS, we should be testing Corepack using it.
2024-07-12 10:53:43 +02:00
Wojciech Maj 4f3e28fcf0
chore: use renameSafe where applicable (#515) 2024-07-12 10:48:51 +02:00
Wojciech Maj d3d7780193
chore: bump better-sqlite3 to 10.x (#513)
Why bump from 9.x:
better-sqlite3 v9 fails to install on Node.js 22, which as an upcoming LTS version is likely going to become a primary development tool for contributors.

Why bump to 10.x and not 11.x:
better-sqlite3 v11 drops support for Node.js 21.
2024-07-12 10:47:58 +02:00
Wojciech Maj e7ad533d43
fix: selectively import required semver functions (#511)
By selectively importing only the functions and classes we use, we avoid bundling in the entire semver package, and shave a few kB off from the Corepack bundle.
2024-07-12 10:47:18 +02:00
dependabot[bot] 004c0289cb
build(deps-dev): bump undici from 6.18.2 to 6.19.2 (#509)
Bumps [undici](https://github.com/nodejs/undici) from 6.18.2 to 6.19.2.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.18.2...v6.19.2)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-12 10:43:39 +02:00
Antoine du Hamel db6fae50cf
fix: replace npm registry domain in tarball URL (#502) 2024-07-12 10:43:09 +02:00
Wojciech Maj 56de2ed53e
chore: migrate to ESLint Flat Config (#521) 2024-07-12 10:42:33 +02:00
Wojciech Maj 22c58fc88b
Add .DS_Store to .gitignore (#514)
For macOS contributors, .DS_Store keeps appearing in diffs and prevents the use of `git add .`, which is a major pain in the butt when contributing.
2024-07-11 18:34:20 +02:00
liwakin d4c5709f1c
chore: fix build script for Windows (#501)
Replace `rm -rf` with `node -e fs.rm` for cross-platform file deletion.
2024-06-13 20:52:10 +00:00
Antoine du Hamel 5b5f76ca14
chore: validate head of branch when running workflow on forks PRs (#490) 2024-06-09 00:45:35 +02:00
Antoine du Hamel 3da534695e
chore(ci): better check for Nocks changes (#491)
When there are no changes, asking Git to compare the db file directly
will always report change even though the actual data stored is the
same. Instead, we can compare a SQL dump to detect actual changes.

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2024-06-06 12:20:01 +00:00