Commit Graph

546 Commits

Author SHA1 Message Date
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
Zoltan Kochan
1865472bde chore: use catalogs 2024-06-27 22:06:05 +02:00
Zoltan Kochan
79830ff0b9 chore: use catalogs 2024-06-27 21:18:27 +02:00
Zoltan Kochan
7678113d79 chore: use catalogs (#8249) 2024-06-27 17:22:38 +02:00
Brandon Cheng
9c63679df1 feat: catalogs (#8122)
* feat: create new @pnpm/catalogs.types package (#8026)

* feat: read catalog configs from workspace manifest (#8123)

* refactor: move InvalidWorkspaceManifestError to its own file

* feat: read catalogs config from workspace manifest

* chore: add changeset for new catalog config parsing

* feat: create new `@pnpm/catalogs.protocol-parser` package (#8124)

This works around a problem with pnpm's CI setup not compiling
packages that are not dependencies of the main pnpm package before
running these tests.

https://github.com/pnpm/pnpm/pull/8027#issuecomment-2081650304

* refactor: factor out isWantedDepPrefSame to extend in a future commit (#8125)

* feat: create new `@pnpm/catalogs.config` package (#8220)

* refactor: remove single default catalog check

This check will happen in  `@pnpm/catalogs.config` instead.

* feat: create new @pnpm/catalogs.config package

* fix: work around CI setup not compiling orphan packages before testing

This works around a problem with pnpm's CI setup not compiling
packages that are not dependencies of the main pnpm package before
running these tests.

https://github.com/pnpm/pnpm/pull/8027#issuecomment-2081650304

* feat: create new `@pnpm/catalogs.resolver` package (#8219)

* feat: create new @pnpm/catalogs.resolver package

* fix: work around CI setup not compiling orphan packages before testing

This works around a problem with pnpm's CI setup not compiling
packages that are not dependencies of the main pnpm package before
running these tests.

https://github.com/pnpm/pnpm/pull/8027#issuecomment-2081650304

* feat: implement catalog protocol for publish (#8225)

* feat: implement catalog protocol for install (#8221)

* feat: add catalogs to @pnpm/config

* refactor: factor out resolveDependenciesOfImporterDependency function

* feat: implement catalog resolver and replace prefs

* revert: work around CI setup not compiling orphan packages before testing

* feat: record catalog lookup snapshots through propagated metadata

* feat: update projects when catalogs config changes

* test: add catalog protocol install tests

* refactor: remove filter-packages-from-dir dependency from core tests (#8244)

* refactor: remove filter-packages-from-dir dependency from core tests

* test: refactor

* test: refactor

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-27 14:19:38 +02:00
Zoltan Kochan
6e031e7428 test: fix auth tests 2024-06-18 02:45:48 +02:00
Zoltan Kochan
347c79a8cd chore(release): 9.4.0 2024-06-17 17:44:19 +02:00
Brandon Cheng
75a98e12b3 refactor: improve type checking when finding workspace packages (#8214)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-17 17:34:54 +02:00
Brandon Cheng
04b8363a8d refactor: store workspace manifest in @pnpm/config for reuse (#8213)
* feat: store workspacePackagePatterns in @pnpm/config

* refactor: pass workspace patterns from config to findWorkspacePackages

* chore: add changeset
2024-06-17 01:26:45 +02:00
Zoltan Kochan
7c6c923a3d feat: a new option strict-store-pkg-content-check (#8212)
ref #4724
2024-06-16 21:37:58 +02:00
Zoltan Kochan
13e55b2865 fix: a filtered install should update the lockfile first (#8183)
close #8165
2024-06-12 14:49:39 +02:00
Zoltan Kochan
ed9c041f61 fix(deps): update 2024-06-11 11:27:03 +02:00
Zoltan Kochan
d24d7974ac chore(release): 9.3.0 2024-06-10 13:58:41 +02:00
Zoltan Kochan
47341e5004 fix: make the peers suffix shorter (#8177)
ref #7079
2024-06-07 23:37:07 +02:00
Zoltan Kochan
1e5985a937 chore(release): 9.2.0 2024-06-05 14:46:23 +02:00
Zoltan Kochan
3dd30b1909 refactor: create branded type for project ID (#8164) 2024-06-04 18:30:59 +02:00
Brandon Cheng
c7e1b6fae8 chore: configure TypeScript project references for tests (#8128)
* refactor: store link values before converting to references

* fix: use .sort() without localeCompare

https://github.com/pnpm/pnpm/pull/8128#discussion_r1614031566

> Nit, but you probably just want to call sort without a comparison
> function; these are already strings and locale compare is not a good
> comparison for anything but human readable strings since it will
> differ on different people's machines based on their language setting.
> I've hit this too many times before for code gen.

* feat: configure meta-updater to write test/tsconfig.json files

* fix: relative imports for __typings__

* chore: `pnpm run meta-updater`

* fix: explicitly use test/tsconfig.json for ts-jest
2024-05-31 12:48:13 +02:00
Khải
80aaa9f378 fix: race condition that creates corrupted scripts (#8126)
close #7833
2024-05-31 02:07:32 +02:00
Zoltan Kochan
13518c9916 chore(release): 9.1.4 2024-05-30 12:59:22 +02:00
Zoltan Kochan
74c1057778 perf: fix hoisting peers (#8144)
Reverts 4b65113

ref #8072

This change makes install faster at least 3 times in some Bit workspaces.
2024-05-30 12:17:17 +02:00
Zoltan Kochan
63da0f654f chore(release): libs 2024-05-29 14:32:53 +02:00
Zoltan Kochan
4b65113b9c fix: temporarily don't hoist peers when dedupe peers is on 2024-05-29 14:01:15 +02:00
Zoltan Kochan
6820001e48 refactor(resolve-dependencies): types 2024-05-28 22:27:36 +02:00
Brandon Cheng
5de89d81a6 chore: remove top-level composite property from tsconfig.json files (#8130)
* chore: remove no-op composite property

* chore: remove top-level composite property from existing files
2024-05-28 02:37:40 +02:00
Zoltan Kochan
2988e25b87 chore(release): libs 2024-05-27 01:49:24 +02:00
Zoltan Kochan
81d90c9dd2 fix: reduce memory usage by using numbers for Node IDs (#8135) 2024-05-27 00:54:34 +02:00
Khải
006f4c8a81 refactor: type checking perf (#8132)
* refactor: type checking perf

* fix: eslint
2024-05-26 22:13:02 +02:00
Zoltan Kochan
27c33f0319 fix: dependencies that are not only optional should be installed when optionals are skipped (#8076)
close #8066

Co-authored-by: khai96_ <hvksmr1996@gmail.com>
2024-05-23 13:20:13 +02:00
Zoltan Kochan
04eb86af77 test: fix 2024-05-23 12:48:06 +02:00
Zoltan Kochan
838b7f0125 chore(release): libs 2024-05-22 00:24:34 +02:00
Zoltan Kochan
0c08e1c50f fix: clear metadata cache after resolution is finished (#8109) 2024-05-22 00:23:14 +02:00
Zoltan Kochan
355ccd1243 chore(release): libs 2024-05-21 14:46:39 +02:00
Zoltan Kochan
471ee65532 fix: reduce memory usage during peers resolution (#8106)
ref #8072
2024-05-21 13:53:19 +02:00
Zoltan Kochan
771d7a25c6 test(plugin-commands-installation): fix 2024-05-21 12:47:35 +02:00
Zoltan Kochan
f520ad750c refactor: resolve peers 2024-05-21 11:45:59 +02:00
Zoltan Kochan
f0b51bb444 refactor: use branded types for IDs (#8105) 2024-05-20 22:30:09 +02:00
Zoltan Kochan
c649954e41 refactor: create a separate type for DepPath (#8094) 2024-05-20 16:11:46 +02:00
Zoltan Kochan
45f4262f03 refactor: create a separate type for NodeId (#8092) 2024-05-17 11:23:52 +02:00
Zoltan Kochan
ef73c19f15 perf: reduce memory usage (#8084)
ref #8072
2024-05-16 20:55:08 +02:00
Zoltan Kochan
c8655b465e chore(release): libs 2024-05-12 01:57:58 +02:00
Zoltan Kochan
5a03c1f284 perf: improve performance of peer dependencies resolution (#8060) 2024-05-12 01:29:19 +02:00
Khải
b1d7f8c6cf fix(override): relative file in workspace (#8055)
close #8053

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-05-10 23:31:33 +02:00
Zoltan Kochan
fd6cd27817 test: don't skip deep recursion test 2024-05-07 16:49:44 +02:00
Zoltan Kochan
d6d31d6adc fix(deps): update 2024-05-07 15:27:13 +02:00
Zoltan Kochan
72928a633d chore(release): libs 2024-05-07 13:46:24 +02:00
Zoltan Kochan
2cb67d7294 fix: out-of-memory error during peers resolution (#8058) 2024-05-07 13:37:47 +02:00
Zoltan Kochan
01a4566655 chore(release): 9.1.0 2024-05-06 11:13:30 +02:00
Zoltan Kochan
7a0536e23d fix: cannot read properties of undefined (reading missingPeersOfChildren) (#8054)
close #8041
2024-05-06 09:21:08 +02:00