Zoltan Kochan
5da5e75e08
chore(release): 9.12.0
2024-10-02 12:19:20 +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
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
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
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
e9908b3185
refactor: rename lockfile-file to lockfile.fs
2024-07-28 01:15:20 +02:00
Zoltan Kochan
3b82169faf
chore(release): 9.6.0
2024-07-22 01:41:03 +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
341656f9b3
refactor: make workspace packages a map
2024-07-02 22:49:38 +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
9927c2855a
refactor(core): workspace packages ( #8248 )
...
Make workspace packages optional.
2024-06-30 15:17:07 +02:00
Zoltan Kochan
7678113d79
chore: use catalogs ( #8249 )
2024-06-27 17:22:38 +02:00
Zoltan Kochan
347c79a8cd
chore(release): 9.4.0
2024-06-17 17:44:19 +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
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
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
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
355ccd1243
chore(release): libs
2024-05-21 14:46:39 +02:00
Zoltan Kochan
c649954e41
refactor: create a separate type for DepPath ( #8094 )
2024-05-20 16:11:46 +02:00
Zoltan Kochan
c8655b465e
chore(release): libs
2024-05-12 01:57:58 +02:00
Zoltan Kochan
01a4566655
chore(release): 9.1.0
2024-05-06 11:13:30 +02:00
Zoltan Kochan
7e69321e53
chore(release): 9.1.0-0
2024-04-29 15:36:28 +02:00
Zoltan Kochan
b3d1495566
fix: recreate node_modules if virtual-store-dir-max-length changes ( #8032 )
2024-04-29 15:24:06 +02:00
Zoltan Kochan
9719a42d0e
feat: configurable max length of directories inside node_modules/.pnpm ( #7994 )
...
close #7355
2024-04-28 11:07:29 +02:00
Zoltan Kochan
88f53d4a78
chore(release): 9.0.6
2024-04-24 15:01:39 +02:00
Zoltan Kochan
63adcb5351
chore(release): 9.0.5
2024-04-21 23:02:35 +02:00
Zoltan Kochan
c9db742824
fix: update typescript to v5.4 ( #7905 )
2024-04-12 14:03:45 +02:00
Zoltan Kochan
43bd75c5b8
chore(release): libs
2024-04-09 17:14:05 +02:00
Khải
471f0b3420
refactor(pkg-manager): return type annotations for small modules in the pkg-manager directory ( #7875 )
...
* refactor(pkg-manager): return type annotations
* refactor(get-context): return type annotation
* refactor(headless): return type annotations
2024-04-09 12:00:41 +02:00
Zoltan Kochan
5c20db0dd2
feat!: use the same lockfile format in 1-pkg workspace as in multi-pkg one ( #7696 )
2024-02-29 10:28:29 +01:00
Zoltan Kochan
b378a945f9
fix: preserve versions when upgrading lockfile to v7
2024-02-23 00:56:31 +01:00
Steven Petryk
19c4b4f973
fix(get-context): avoid excess purge prompts ( #7639 )
...
* fix(get-context): avoid excess purge prompts
pnpm sometimes needs to purge modules folders (node_modules) when
certain configuration changes (in other words, when it needs to start
from scratch).
This prompt, problematically, was getting triggered asynchronously for
each importer in the workspace that needed a purge, which would
sometimes lead to gargantuan prompts instead of one consolidated prompt.
The fix is to queue up which importers need a purge, then fire the
prompter all at once.
Closes #7320
* fix: reuse ImporterToPurge type
* refactor: apply suggestions from code review
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2024-02-12 19:52:18 +01:00
Zoltan Kochan
793d523103
Merge branch 'v8'
2024-01-22 10:14:47 +01:00
Zoltan Kochan
b93bc1aa41
chore(release): 8.14.2
2024-01-22 10:10:27 +01:00
Zoltan Kochan
60bcc797fc
fix: registry configuration from previous install should not override current one ( #7515 )
...
close #7507
2024-01-11 15:43:27 +01:00
Zoltan Kochan
29adf17cfa
fix: registry configuration from previous install should not override current one ( #7515 )
...
close #7507
2024-01-11 09:54:39 +01:00
Zoltan Kochan
ecda06d7b5
Merge branch 'v8'
2024-01-10 16:04:26 +01:00
Zoltan Kochan
388e1cc1cb
chore(release): 8.14.1
2024-01-10 15:57:53 +01:00
Zoltan Kochan
6e3b75a42f
chore(release): 9.0.0-alpha.0
2024-01-08 19:12:45 +01:00
Zoltan Kochan
d381a6001c
feat!: use dependency path format from lockfile v6 ( #7470 )
...
Drop lockfile v5 support.
2024-01-08 11:57:44 +01:00
Zoltan Kochan
43cdd87c0c
feat!: drop Node.js 16 support
2024-01-08 11:57:44 +01:00
Zoltan Kochan
568860daae
chore(release): 8.13.1
2023-12-26 15:39:22 +01:00