Zoltan Kochan
3278c588cd
chore(release): 10.0.0-rc.0
2024-12-16 02:31:45 +01:00
Zoltan Kochan
d47c4266db
perf: faster repeat install ( #8838 )
2024-12-08 23:42:33 +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
Khải
19d5b51558
feat(exec): check dependencies before running scripts ( #8645 )
...
* refactor: break a long line into multiple lines
* feat: cache that tracks workspace structures
* feat: handle hash collisions
* docs(changeset): packages-list-cache
* feat(packages-list-cache): store mtime
* fix(packages-list-cache): JSON5 and YAML manifests
* feat(packages-list-cache): add catalogs
* style: sort fields alphabetically
* fix: actually fix it
* lint: fix
* lint: fix
* test(packages-list-cache): test
* feat(exec): check deps before run scripts
Resolves https://github.com/pnpm/pnpm/issues/8585
* style: fix eslint
* feat: use a single lastValidatedTimestamp
* refactor: rearrange
* perf: don't do pointless comparisons
* perf: optimize non-workspace
* perf: optimize sharedWorkspaceLockfile=false
* perf: remove unnecessary fs reads
* refactor: statManifestFile
* perf: skip comparing manifest to lockfile by stats
* feat: add wantedLockfileDir to error message
* refactor: shorten a function name
* refactor: rename a function
* docs: improve wordings
* feat: export `linkedPackagesAreUpToDate`
* feat: make sure lockfile specs satisfy manifest (wip)
* docs: todo
* fix: projectId
* feat: skip install-related scripts
* fix: type errors
* refactor: use tagged union
* refactor: remove unnecessary type expression
* docs: todo
* feat: add linkedPackagesAreUpToDate (wip)
* refactor: rearrange fields
* refactor: remove a temporary variable
* feat: export `getWorkspacePackagesByDirectory`
* feat: make workspacePackages optional
* feat: complete `linkedPackagesAreUpToDate`
* docs: remove unapplicable todo
* docs: explain why check is skipped
* feat: load allProjects and try again
* refactor: remove unused dependencies
* refactor: remove commented-out code
* refactor: replace `else if` with `return`
* feat: use-case without workspace manifest
* perf: skip unnecessary work
* feat: add a guard
* fix: eslint
* refactor: move code to new package
* refactor: sort dependencies
* test: outline
* refactor: extract assertLockfilesEqual for testing
* test: skip failing tests for now
* fix: eslint
* test: assertLockfilesEqual
* refactor: extract statManifestFile for testing
* test: todo
* test: statManifestFile
* test: shouldRunCheck
* refactor: rename a test file
* test: add
* test: todo
* docs: remove a commented-out code
* test: create groups
* test: todo
* test: add
* test: platform agnostic
* test: remove unnecessary scripts
* test: use `assert.strictEqual` instead
* test: export bin locations
* test: nested `pnpm run`
* test: todo
* test: add `cwd` option to `execPnpmSync`
* test: add
* fix: recursive
* test: add
* test: fix package names
* fix: catalogs comparison
* test: add
* refactor: just use ramda filter
* test: add
* test: mutations
* fix: package.json
* fix: jest
* feat(packages-list): debug logs
* feat: add debug messages
* fix: eslint
* test: check debug messages in other case
* docs: add next step
* test: mtime updates without modification
* docs: correct test description
* test: mtime changes
* test: check should be skipped
* docs: remove fulfilled todos
* fix: remove `.only`
* docs: todo
* docs: correct test names
* test: workspace structure changes
* test: packages list cache
* test: add
* refactor: divide a test file into 2
* docs: consistent wordings
* refactor: clearer error messages
* fix: ignore check in recursive nested scripts
* test: no dependencies
* test: print error messages on failures
* test: improve stdout/stderr in error messages
* docs: consistent wordings
* docs: clarify what did what
* test: nested script
* docs: consistent test descriptions
* docs(changeset): correction
* fix: save catalogs to packages list
* test: catalogs
* test: fix
* test: fix windows
* refactor: remove unused option field
* refactor: prefer `!= null`
* feat: use `node_modules` instead
* refactor: rename a package
* refactor: apply suggestion
* refactor: remove workspaceDir
* refactor: move `shouldRunCheck` to `exec`
* feat: rename config key
* refactor: rename a test dir
* refactor: correct grammar
* refactor: make loadPackagesList sync
* test: multiple lockfiles
* feat: prevent deletion of `node_modules`
* feat: skip checking on filtered install
* fix: accidentally dropping catalogs
* refactor: remove unnecessary `Promise.all`
* refactor: use `virtualStoreDir` from config
* refactor: split `opts` into `ctx` and `opts`
* test: fix
* style: fix eslint
* test: fix windows
* feat(exec): add `verifyDepsBeforeRun` to `exec`
* refactor: sync stat
* feat: stop ignoring filtered install
* test: filtered install
* refactor: rearrange imports
* feat: rename "packages list" to "workspace state"
* test: fix
* fix: workspace state on failed install
2024-11-15 01:01:09 +01:00
Zoltan Kochan
26a910cbf8
chore(release): 10.0.0-alpha.0
2024-10-28 04:16:49 +01:00
Zoltan Kochan
0309365fda
chore(release): 9.12.3
2024-10-28 03:11:09 +01:00
Zoltan Kochan
1dd419cbb4
test: fix killing the registry mock server on teardown ( #8695 )
2024-10-25 21:24:08 +02:00
Zoltan Kochan
5da5e75e08
chore(release): 9.12.0
2024-10-02 12:19:20 +02:00
btea
9797a1e889
refactor: remove useless parameters from the catch statement ( #8583 )
2024-09-29 12:08:48 +02:00
Khải
f071d00815
refactor: replace forEach with for-loops ( #8535 )
...
* refactor: replace `forEach` with `for`-loops
Changes:
* Most `Object.keys(o).forEach` are replaced by `for in`.
* Most `Array.filter(c).forEach` are replaced by `for of` + `if continue`.
* `return` in `forEach` callbacks are replaced by `continue`.
There may be minor improvement to memory footprint as this change would
reduce the creations of temporary arrays and temporary functions.
* fix: return -> continue
* refactor: remove the commented out code
2024-09-18 03:58:25 +02:00
Zoltan Kochan
fe996fee1d
chore(release): 9.10.0
2024-09-09 15:43:02 +02:00
Zoltan Kochan
10d8007747
chore(release): 9.9.0
2024-08-26 17:12:28 +02:00
Zoltan Kochan
ed3ca011ce
chore(release): 9.8.0
2024-08-22 12:22:59 +02:00
Zoltan Kochan
56861a569a
chore(release): 9.7.1
2024-08-14 16:43:15 +02:00
Khải
82f7ed2112
fix: replace pnpm warnings with subfield warnings ( #8415 )
...
close #8413
2024-08-13 16:55:54 +02:00
Khải
9b4f73caaf
chore(scripts): typecheck-only ( #8395 )
...
* chore(scripts): typecheck-only
* feat: change all configuration
* feat: include pnpm/ and pnpm/test/
* chore(deps): remove unused dependency
* refactor(typescript-only): use find-packages
* refactor(typescript-only): refactor paths
* fix: typescript-only
* fix: update compile-only
* fix: compile pnpm
* fix: windows
* fix: windows
* chore: meta-updater
* refactor(tsconfig): remove explicit composite
* fix: path in windows
* feat: don't depend on cwd
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2024-08-11 08:26:01 +02:00
Zoltan Kochan
97c95cca48
chore: update typescript to v5.5 ( #8364 )
...
* chore: update typescript to v5.5
* fix: some errors
* chore(deps): update @pnpm/logger
* chore(deps): use catalogs
* refactor: remove a type no longer necessary
* chore(deps): revert the catalog changes
This reverts commit 5a3d4394f1 .
* refactor: move types to their own files
* refactor: change logger error type
* feat: add pkgsStack to LogBase
* feat: add type param to StreamParser
* refactor: move error fields out for clarity
* style: fix eslint
* feat: nullify non existence fields
* feat: add hint
* feat: remove the nullifications
This reverts commit 955e196032 .
* feat: add `package` field
* feat: extend `RequestRetryMessage.error`
* fix: missing `id` field
* fix: statsLogger
* fix: correct types
* fix: pkgsDiff
* refactor: use interfaces
* fix: reportSummary
* fix: revert erroneous change
This reverts commit 81042a0783 .
* fix: audit
* fix: silentReporter
* fix: reporter
* fix: eslint
* fix: main.ts
* fix: errorHandler
* refactor: share code
* fix: test/reportingPeerDependencyIssues
* fix: default-reporter/test/index.ts
* fix: test/reportingErrors.ts
* fix: test/execPnpm
---------
Co-authored-by: khai96_ <hvksmr1996@gmail.com >
2024-08-09 19:18:32 +02:00
Zoltan Kochan
449041c5aa
chore(release): libs
2024-08-07 18:07:03 +02:00
Khải
5bf6aaa407
refactor: move @pnpm/logger to the monorepo ( #8385 )
...
* chore: create @pnpm/logger
* fix: workaround typescript error
* chore: update manifests
* chore(deps): link @pnpm/logger from workspace
2024-08-07 18:02:08 +02:00
Zoltan Kochan
2d3a119bb4
chore(release): 9.7.0
2024-08-07 02:13:26 +02:00
Zoltan Kochan
87439cdf35
chore(release): libs
2024-08-05 13:45:55 +02:00
Zoltan Kochan
5d059765a8
chore(release): libs
2024-07-29 15:58:56 +02:00
Zoltan Kochan
3b82169faf
chore(release): 9.6.0
2024-07-22 01:41:03 +02:00
Zoltan Kochan
07a7ac4a93
chore(release): 9.5.0
2024-07-07 18:27:55 +02:00
Zoltan Kochan
a3d5f609d0
chore(release): 9.5.0-beta.1
2024-07-04 15:54:08 +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
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
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
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
7f4cea45e8
fix: use --workspace-packages CLI over pnpm-workspace.yaml in more cases ( #8215 )
...
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2024-06-17 02:49:29 +02:00
Brandon Cheng
5d1ed94e6c
fix: update WorkspaceManifest packages field to be non-null ( #8205 )
2024-06-14 02:54:43 +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
1e5985a937
chore(release): 9.2.0
2024-06-05 14:46:23 +02:00
Zoltan Kochan
b7ca13f7f2
fix: don't fail if the pnpm version doesn't match the one in the packageManager field ( #8166 )
...
close #8087
2024-06-05 14:38:21 +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
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
838b7f0125
chore(release): libs
2024-05-22 00:24:34 +02:00
Zoltan Kochan
355ccd1243
chore(release): libs
2024-05-21 14:46:39 +02:00
Zoltan Kochan
c8655b465e
chore(release): libs
2024-05-12 01:57:58 +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
01a4566655
chore(release): 9.1.0
2024-05-06 11:13:30 +02:00
Khải
cb0f459c54
fix: recursive update with workspace alias ( #7999 )
...
close #7975
2024-04-30 01:17:12 +02:00