Commit Graph

9145 Commits

Author SHA1 Message Date
Zoltan Kochan
daa45dfd91 refactor: rename prune-lockfile to lockfile.pruner 2024-07-28 01:48:23 +02:00
Zoltan Kochan
c92f4bf282 refactor: rename lockfile-walker to lockfile.walker 2024-07-28 01:42:38 +02:00
Zoltan Kochan
c5ef9b0643 refactor: rename filter-utils to lockfile.utils 2024-07-28 01:35:40 +02:00
Zoltan Kochan
8055a30be1 refactor: rename filter-lockfile to lockfile.filtering 2024-07-28 01:24:55 +02:00
Zoltan Kochan
e9908b3185 refactor: rename lockfile-file to lockfile.fs 2024-07-28 01:15:20 +02:00
Zoltan Kochan
797ef0fc46 refactor: rename lockfile-types to lockfile.types 2024-07-27 14:46:23 +02:00
Zoltan Kochan
2e3eae3990 refactor: create @pnpm/lockfile.verification (#8350) 2024-07-27 14:18:38 +02:00
Zoltan Kochan
1b349deba5 test(core): remove only from lockfile tests 2024-07-27 12:35:16 +02:00
Zoltan Kochan
a3e2a182a6 test: fix a lockfile test 2024-07-26 18:10:40 +02:00
Zoltan Kochan
96821291a8 fix: install peer of optional peer (#8330)
close #8323
2024-07-25 18:00:24 +02:00
Zoltan Kochan
4398d20f2c test: improve error message in dlx tests 2024-07-25 17:58:08 +02:00
Zoltan Kochan
7329b9afc4 ci: test on Node.js 22 (#8010) 2024-07-25 16:45:47 +02:00
Zoltan Kochan
068ea7da35 chore: use catalogs in overrides 2024-07-22 02:13:25 +02:00
Zoltan Kochan
3b82169faf chore(release): 9.6.0 v9.6.0 2024-07-22 01:41:03 +02:00
Zoltan Kochan
0f0e44101d fix: resolve catalogs in overrides (#8321)
close #8303
2024-07-22 01:35:30 +02:00
Zoltan Kochan
b0e8ae8761 refactor: lockfile utils 2024-07-19 17:17:04 +02:00
Khải
726753f05d fix(patch): error message for missing .modules.yaml (#8315)
close #8257
2024-07-16 17:46:12 +02:00
Brandon Cheng
f6e7ace2a2 fix: pnpm outdated should work with catalog: protocol (#8304)
* fix: pnpm outdated works with catalog: protocol

* test: add has-outdated-deps-using-catalog-protocol fixture

* test: add pnpm outdated catalog protocol test

* chore: changeset

* refactor: outdated

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-07-15 18:45:10 +02:00
Anton Stoychev
999d2ef2f8 fix(plugin-commands-script-runners): align runRecursive with how run assigns silent loglevel (#8302)
close #7608
2024-07-14 02:59:21 +02:00
Brandon Cheng
1e4dd79163 fix: install failure on pnpm deploy when using catalogs (#8298)
* fix: install failure on pnpm deploy when using catalogs

* test: add test for pnpm deploy when using catalogs

* chore: changeset
2024-07-14 02:45:35 +02:00
Khải
5aa98b6d6f fix(dlx/cache): account for customized registries (#8299)
* fix(dlx/cache): account for customized registries

Different registries potentially return different packages for the same
name, so reusing dlx cache for packages from a different registry would
be incorrect.

* style: eslint

* refactor: dlx

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-07-13 17:06:14 +02:00
Khải
0ef168b77d feat: per-package node version (#8277)
close #6720
2024-07-13 14:08:57 +02:00
Zoltan Kochan
a2e9bdcc02 refactor: remove path-exists from tests 2024-07-08 17:51:23 +02:00
Simon He
b6acfcf8d1 refactor(cli): conditional branch (#8290) 2024-07-08 16:03:17 +02:00
Zoltan Kochan
07a7ac4a93 chore(release): 9.5.0 v9.5.0 2024-07-07 18:27:55 +02:00
Zoltan Kochan
afe520dc01 fix(deps): update 2024-07-07 16:01:46 +02:00
Brandon Cheng
f30590bdfc fix: skip cataloged dependencies when running pnpm update --latest (#8286)
* fix: skip over cataloged deps on `pnpm update --latest`

* Update pkg-manager/core/test/catalogs.ts
2024-07-07 15:53:34 +02:00
Brandon Cheng
824363b0ba fix: preserve catalog protocol when updating project manifest (#8285)
* fix: preserve catalog protocol when updating project manifest

This makes `pnpm add foo@catalog:` preserve the catalog protocol when
updating `package.json`.

This also fixes a quirk with `pnpm update --latest <name>` when <name>
is a catalog'ed dep. The `updateSpec` field is set on all deps if
`wantedDependencies` filters to 0.

341656f9b3/pkg-manager/resolve-dependencies/src/toResolveImporter.ts (L44-L48)

* test: ensure pnpm update does not update catalog dependencies (yet)

* test: `pnpm add is-positive@catalog:`
2024-07-07 14:27:22 +02:00
Sandro
7ddbed7e4a docs(matcher): fix user example (#8283) 2024-07-07 00:51:16 +02:00
Zoltan Kochan
50787c8fab chore(release): 9.5.0-beta.3 v9.5.0-beta.3 2024-07-05 16:09:33 +02:00
Zoltan Kochan
5b8c917654 fix: win-arm64 build 2024-07-05 16:09:08 +02:00
Zoltan Kochan
d29351fa5c chore(release): 9.5.0-beta.2 v9.5.0-beta.2 2024-07-05 15:38:47 +02:00
Zoltan Kochan
2f81b59e0d chore: remove redundant script from prepublish step 2024-07-05 14:29:02 +02:00
Zoltan Kochan
23820736bd chore: don't use catalogs in pnpm CLI package 2024-07-05 14:26:54 +02:00
Brandon Cheng
08fd918dd3 fix: reuse catalog resolutions of npm aliases correctly (#8281)
* fix: reuse catalog resolutions of npm aliases correctly

* test: catalog resolution can be reused for npm aliases
2024-07-05 13:51:04 +02:00
Zoltan Kochan
a3d5f609d0 chore(release): 9.5.0-beta.1 v9.5.0-beta.1 2024-07-04 15:54:08 +02:00
Zoltan Kochan
d74ecc4ce5 fix(deps): update lockfile 2024-07-04 15:24:52 +02:00
Zoltan Kochan
1443f0ffdb fix(deps): update 2024-07-04 15:19:18 +02:00
Zoltan Kochan
466ee0ed26 revert: "fix(deps): update"
This reverts commit ab45fdfee1.
2024-07-04 13:24:54 +02:00
Zoltan Kochan
0406d4ad3d refactor: use a branded type for project root dir paths (#8272) 2024-07-04 13:13:34 +02:00
Zoltan Kochan
ab45fdfee1 fix(deps): update 2024-07-04 11:43:07 +02:00
Zoltan Kochan
84654bd2ad fix: installation with filtering and dedupe-peer-dependents=true (#8270)
close #6300
2024-07-03 15:43:01 +02:00
Zoltan Kochan
341656f9b3 refactor: make workspace packages a map 2024-07-02 22:49:38 +02:00
Khải
98f20a70b6 fix(dlx): use-node-version (#8263) 2024-07-02 00:37:19 +02:00
Zoltan Kochan
576f13878e refactor: deduplicate arrayOfWorkspacePackagesToMap (#8265) 2024-07-01 14:45:13 +02:00
Zoltan Kochan
dd00eeb18c refactor: normalize dir field names across project objects (#8262) 2024-07-01 11:27:04 +02:00
Brandon Cheng
6efda2ea03 fix: reuse existing cataloged resolutions for consistency (#8259)
* test: add a test to ensure catalog resolutions are consistent

* fix: reuse existing cataloged resolutions for consistency
2024-07-01 01:58:17 +02:00
Zoltan Kochan
9927c2855a refactor(core): workspace packages (#8248)
Make workspace packages optional.
2024-06-30 15:17:07 +02:00
Brandon Cheng
9bf9f71ad3 fix: show better error when encountering external catalog protocol usage (#8254)
* fix: show better error when encountering external catalog protocol usage

* refactor: reuse SPEC_NOT_SUPPORTED error

* Apply suggestions from code review

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-30 09:53:39 +02:00
Brandon Cheng
b339e10855 fix: prevent catalogs using the workspace:, link:, and file: protocols (#8255)
* fix: prevent catalogs using workspace: specifiers

* fix: prevent catalogs from using link: or file: specifiers
2024-06-28 09:18:00 +02:00