Commit Graph

616 Commits

Author SHA1 Message Date
Zoltan Kochan
a943fc9741 refactor: error message on out of date lockfile 2024-10-07 21:54:50 +02:00
Zoltan Kochan
d994f5178b chore(release): 9.12.1 2024-10-07 15:08:25 +02:00
Zoltan Kochan
4f4e0738cb fix(update): update latest should not update peer dependencies (#8615)
close #6657
2024-10-06 12:07:57 +02:00
Khải
51f3ba1df8 refactor: extract some logics from core/install (#8597) 2024-10-04 04:27:27 +02:00
Zoltan Kochan
5da5e75e08 chore(release): 9.12.0 2024-10-02 12:19:20 +02:00
Zoltan Kochan
d7b9ae5870 fix: installation hanging due to parent peers resolution dead lock (#8584)
This fixes an issue that appeared after merging #8457

close #8570
2024-10-02 12:09:33 +02:00
btea
807f2de798 refactor: remove unused parameters (#8593) 2024-10-01 13:35:34 +02:00
btea
9797a1e889 refactor: remove useless parameters from the catch statement (#8583) 2024-09-29 12:08:48 +02:00
Khải
b7fb704522 feat(overrides): remove dependencies (#8576)
close #8572
2024-09-28 14:27:13 +02:00
Khải
83681daf57 fix: install packages with incompatible libc (#8569)
close #7362
2024-09-27 22:46:16 +02:00
Zoltan Kochan
7f80c4f156 chore(release): 9.11.0 2024-09-20 12:21:07 +02:00
Khải
ad1fd64b64 fix(deploy): node-linker=hoisted produces empty node_modules (#8525)
close https://github.com/pnpm/pnpm/issues/6682

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-09-20 03:27:05 +02:00
Khải
24ad47cfb8 refactor: replace array.reduce (#8537) 2024-09-18 04:41:35 +02:00
Zoltan Kochan
0170b0faaf feat: add cache command (#8512) 2024-09-18 04:14:13 +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
e50baa8458 fix: don't print a warning when printing packages globally (#8529)
close #4761
2024-09-16 01:09:31 +02:00
Zoltan Kochan
eeb76cd1d0 fix: deploy with shared-workspace-lockfile=false (#8515)
close #8475
close #8504
2024-09-11 15:32:57 +02:00
Zoltan Kochan
fe996fee1d chore(release): 9.10.0 2024-09-09 15:43:02 +02:00
Zoltan Kochan
db420ab592 refactor(cafs): create a separate function for creating index file path (#8508) 2024-09-08 14:43:09 +02:00
btea
681fba52e4 refactor: remove unused parameter (#8505) 2024-09-07 14:07:11 +02:00
Khải
2ed45946db test: pin micromatch latest tag (#8484)
Resolves 0f5d841fc6 (commitcomment-146043552)
2024-08-31 23:16:01 +02:00
Zoltan Kochan
3247d44243 chore(release): libs 2024-08-29 22:15:01 +02:00
Zoltan Kochan
96aa4bc4a3 fix: reduce memory usage during peer dependencies resolution (#8478) 2024-08-29 20:07:42 +02:00
Zoltan Kochan
10d8007747 chore(release): 9.9.0 2024-08-26 17:12:28 +02:00
Zoltan Kochan
7ee59a166a fix(deploy): write node_modules/.modules.yaml to the deploy directory (#8465)
close #7731
2024-08-26 17:07:16 +02:00
Zoltan Kochan
0f5d841fc6 test: fix 2024-08-25 02:20:57 +02:00
Zoltan Kochan
cfa6c497ec chore(release): libs 2024-08-24 21:11:56 +02:00
Zoltan Kochan
2393a49ec6 fix: out-of-memory on peers resolution (#8457) 2024-08-24 20:58:41 +02:00
Zoltan Kochan
ed3ca011ce chore(release): 9.8.0 2024-08-22 12:22:59 +02:00
Zoltan Kochan
eb8bf2a993 feat: self-update command (#8424) 2024-08-19 14:26:17 +02:00
Zoltan Kochan
56861a569a chore(release): 9.7.1 2024-08-14 16:43:15 +02:00
Zoltan Kochan
af286ea28c chore(release): libs 2024-08-11 14:59:34 +02:00
Zoltan Kochan
39f693ba89 fix(core): don't fail on skipped optional deps, when calculating depsRequiringBuild (#8404) 2024-08-11 14:54:27 +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
7fa4599dbc chore(release): libs 2024-08-08 15:14:22 +02:00
Zoltan Kochan
8e055d2f05 fix(core): don't fail on skipped optional deps, when calculating depsRequiringBuild (#8390) 2024-08-08 14:04:47 +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
09876c931f feat(core): return the list of dependencies that require a build (#8371) 2024-08-02 23:37:23 +02:00
Khải
cb006df38c feat(patching): apply patch to all versions (#8337)
Related issue: #5686
2024-08-01 15:05:15 +02:00
Zoltan Kochan
5d059765a8 chore(release): libs 2024-07-29 15:58:56 +02:00
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