Commit Graph
520 Commits
Author SHA1 Message Date
Zoltan Kochan 2c04ef22c4 Merge branch 'v10' 2025-03-17 15:20:31 +01:00
Zoltan Kochan cae084888c chore(release): 10.6.4 2025-03-17 14:46:34 +01:00
Khải 5f7be645e4 feat(patching): version ranges and strict patches (#9236)
* feat: replace a config

This is a test commit to see if CI fails

* feat: `strictPatches`

* docs: future instruction

* feat: `strictPatches` → `allowPatchFailure`

* docs(changeset): correction

* test: getOptionsFromRootManifest

* fix: allowFailure

* feat: groupPatchedDependencies

* fix: update code after merge

* fix: star spec

* feat: error on invalid ranges

* fix: eslint

* docs: change task

* feat(patching): version ranges

* fix: `verifyPatches`

* refactor: move types to `@pnpm/patching.types`

* docs(changeset): add missing package

* refactor: move `verifyPatches` to `@pnpm/patching.config`

* test: fix

* feat: change error message of unused patches

* refactor: exact options into an interface

* test(patching): version range

* test(patching): allowPatchFailure

* docs: change wording

* docs: change wording

* test(patching): version range error

* test(patching): legacy behavior

* test: don't use star

* test(patching): strict versionless

* test: strictPatches

* chore(deps): `@pnpm/logger` must be peer

* docs: fix grammar

* refactor: rename `blank` to `all`

* refactor: use string

* refactor: use array for `PatchGroup.range`

* refactor: stop re-exporting `allPatchKeys`

* feat: re-export `PatchGroupRangeItem`

* refactor: move error creation into a class

* docs: replace "versionless" with "name-only"

* docs: coherent wordings

* test: exact version overrides range conflict

* test: tweak

* docs: consistent wordings

* docs: correct wordings

* refactor: rename `allowPatchFailure` to `ignorePatchFailures`

* feat: replace `strictPatches` with `ignorePatchFailures`

* docs: legacy behavior

* feat: introduce `allowUnusedPatches`

* docs(changeset): update

* docs: remove outdated comment

* docs: backward-compatibility
2025-03-13 12:13:06 +01:00
Zoltan Kochan 65da4d9e6a chore(release): 10.6.2 2025-03-10 03:15:12 +01:00
Zoltan Kochan a2d46b4570 chore(release): 10.6.1 2025-03-07 02:29:19 +01:00
Zoltan Kochan 86ff415755 chore(release): 10.6.0 2025-03-06 12:09:26 +01:00
btea adb236f1a1 refactor: improve regexp (#9203) 2025-03-02 13:17:09 +01:00
Brandon Cheng e4eeafdb55 fix: catalog snapshots removed on filtered install with dedupe-peer-dependents=false (#9175)
* test: add catalog test for --filter and dedupe-peer-dependents=false

* fix: disable dedupe-injected-deps when deploying

* fix: catalog snapshots removed with dedupe-peer-dependents=false
2025-03-02 12:42:46 +01:00
Zoltan Kochan 5e78da2d57 style: order the keys in package.json files 2025-03-01 21:45:13 +01:00
Zoltan Kochan 0e9fff7bef chore(release): 10.5.0 2025-02-25 12:27:14 +01:00
Brandon Cheng 41dada429b fix: catalog snapshots removed on filtered install with --fix-lockfile (#9152)
close #8639
2025-02-24 02:41:27 +01:00
Brandon ChengandZoltan Kochan 43681529cf refactor: make frozen install logic clearer (#9148)
* refactor: declare interface for `_install` function result

* refactor: create new function for attempting frozen install

* refactor: early return if frozen-like install is not possible

* refactor: early return in frozenInstall() for empty/missing lockfile

* refactor: return `null` from tryFrozenInstall() if attempt failed

* refactor: add comments to `isFrozenInstallPossible`

* refactor: move tryFrozenInstall out from _install

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-02-23 13:34:07 +01:00
Brandon Cheng 2d16f7a4a9 fix: stale catalog protocol reference on filtered install (#9126)
#8638
2025-02-22 13:22:36 +01:00
Zoltan Kochan 8fcc221394 feat: reading settings from pnpm-workspace.yaml (#9121)
Related discussion: https://github.com/orgs/pnpm/discussions/9037

close #9033
2025-02-22 02:10:43 +01:00
Zoltan Kochan ee72c62db9 chore(release): 10.4.1 2025-02-16 22:37:26 +01:00
Zoltan Kochan 2a6b51f483 chore(release): 10.4.0 2025-02-14 01:18:32 +01:00
Zoltan Kochan 1dc2804f7a chore(release): 10.3.0 2025-02-11 00:34:43 +01:00
Zoltan Kochan f6006f2b4b feat: add an option to fail on unapproved dependency builds (#9071) 2025-02-11 00:26:25 +01:00
Zoltan Kochan 371734043a fix: make the warning about blocked install scripts more prominent (#9067) 2025-02-09 01:34:18 +01:00
Zoltan Kochan d40dfebdca chore(release): 10.2.1 2025-02-06 20:00:29 +01:00
Zoltan Kochan 9843aedd76 fix: don't read from side-effects cache packages that aren't allowed to be built (#9047)
close #9042
2025-02-06 00:12:54 +01:00
Zoltan Kochan 97e0f5da61 chore(release): 10.2.0 2025-02-03 18:32:38 +01:00
KhảiandZoltan Kochan e8c2b173ca fix(overrides): move invalid peers to prod deps (#9000)
close #8978

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-01-28 18:00:59 +01:00
Zoltan Kochan c5a0b9ea43 chore(release): 10.1.0 2025-01-26 22:26:45 +01:00
bteaandZoltan Kochan 2b49ee77c7 fix: install dependencies execute preprepare and postprepare scripts (#8989)
* fix: install dependencies execute preprepare script

* chore: remove unnecessary code

* fix: postprepare should run

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-01-26 20:31:00 +01:00
bteaandZoltan Kochan 7a9473b237 fea: pnpm.ignoredBuiltDependencies for muting warnings about ignored dependency builds (#8958)
close #8935

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-01-12 02:17:44 +01:00
Zoltan Kochan 040e67b88d fix: don't print patched dependencies in list of non-built deps (#8961)
close #8952
2025-01-11 02:20:12 +01:00
Zoltan Kochan 42ecf04fd0 chore(release): 10.0.0 2025-01-07 15:28:17 +01:00
Zoltan Kochan c5080ded56 chore(release): 10.0.0-rc.3 2025-01-05 13:26:28 +01:00
Zoltan Kochan cc3bbc950d fix: don't load side-effects cache for packages that are not allowed to be built (#8901)
* fix: don't read ignored deps from side effects cache

* test: fix

* test: fix
2025-01-05 03:17:54 +01:00
Fotis Papadogeorgopoulos c7eefdd082 fix: pnpm update --filter --latest should only change relevant packages and projects, with dedupe-peer-dependents=true (#8905)
* test(update): add failing tests for update with dedupe-peer-dependents=true

Relates to https://github.com/pnpm/pnpm/issues/8877

* fix: update --filter --latest should work with dedupe-peer-dependents

Fixes https://github.com/pnpm/pnpm/issues/8877, whereby
`update --filter --latest` with `dedupe-peer-dependents` would end up
updating all available dependencies for all projects.

* test(pnpm): more accurate dedupePeers filtered install case

* docs: add changeset for updateToLatest moving to projects/importers

* docs: add changesets for pnpm and plugin-commands-installation

* chore: fix tsc issue by removing unknown bound resolver property

This unknown property was accepted by tsc prior to adding updateToLatest
in toResovleImporter options, but now it was erroring out. This is
likely a tsc quirk about the shape of the object; regardless that
property is not defined, and should not be present.

* test: keep only pnpm/test/monorepo/dedupePeers.test.ts

There was duplicate coverage of the pnpm update --filter --latest
command between two tests, so this keeps only the one dedicated
to testing the dedupe-peer-dependents feature.

* chore: fix unused import error
2024-12-29 17:30:36 +01:00
Zoltan Kochan b27e7f553a chore(release): 10.0.0-rc.1 2024-12-27 14:20:04 +01:00
Zoltan Kochan 4771813309 feat: store ignored dependencies list in modules state file (#8903) 2024-12-24 03:01:35 +01:00
Zoltan Kochan 512465c4ce refactor: remove allowBuild from options of resolveDependencies() (#8902) 2024-12-23 01:24:50 +01:00
Zoltan Kochan 3bc9d5c50e fix: hoisted install with dependency that is a peer of itself (#8892)
close #8854
2024-12-20 01:05:54 +01:00
Zoltan Kochan 38eb97a8b3 chore(release): libs 2024-12-18 13:40:41 +01:00
Zoltan Kochan 7ec017e13f chore: move all tarball files out from Git LFS to a package dependency (#8885) 2024-12-18 03:06:51 +01:00
Zoltan Kochan 3278c588cd chore(release): 10.0.0-rc.0 2024-12-16 02:31:45 +01:00
martinkors c0895e8b12 feat(add): pnpm add should use the default catalog (#8870)
close #8640
2024-12-16 02:10:24 +01:00
Zoltan Kochan fb9e3b4ee0 feat!: drop lockfile v6 support 2024-12-15 15:38:20 +01:00
Zoltan Kochan a76da0c53c feat!: remove conversion of lockfile v6 to v9 (#8866) 2024-12-15 14:39:19 +01:00
bteaandZoltan Kochan b0f3c71b7b fix: get the final address by installing package through links (#8842)
close #8833

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-12-11 13:22:15 +01:00
Zoltan Kochan 6483b646fe feat: a new setting for injecting workspace packages (#8836) 2024-12-05 17:37:15 +01:00
Zoltan Kochan d2e83b0f3e feat: bump metadata cache version 2024-12-01 10:40:09 +01:00
Zoltan Kochan 3fe70e7897 refactor!: all lib versions should start with pnpm major version 2024-11-29 01:04:45 +01:00
Zoltan Kochan 9fcc7e808e chore(release): 10.0.0-beta.0 2024-11-28 12:35:01 +01:00
Zoltan Kochan 4b80c2c648 fix: do not fail if the active store directory was created by pnpm v9 (#8814)
* fix: do not fail if the active store directory was created by pnpm v9

* test: checkCompatibility
2024-11-28 08:55:19 +01:00
Zoltan Kochan bd01a2a5a9 fix: crash during peers resolution (#8760)
close #8759
2024-11-15 02:56:12 +01:00
Zoltan Kochan 26a910cbf8 chore(release): 10.0.0-alpha.0 2024-10-28 04:16:49 +01:00
Zoltan Kochan 32613a05af Merge remote-tracking branch 'origin/main' into v10 2024-10-28 04:01:43 +01:00