Commit Graph

10667 Commits

Author SHA1 Message Date
Zoltan Kochan
9b344c8982 perf: use v8 serialize/deserialize instead of JSON (#9971)
close #9965
2025-11-06 01:01:06 +01:00
Khải
d392c3d059 fix: explicitly tell npm the config file path (#10154)
* fix: explicitly tell npm the config file path

* fix: `managingAuthSettings`

* feat: other `npm` call-sites

* docs: changeset

* fix: make optional again

* feat: remove the change from `publish`

* fix: eslint

* refactor: just one is sufficient
2025-11-05 23:46:20 +01:00
dependabot[bot]
5e65855aa8 chore(deps): bump the github-actions group across 1 directory with 2 updates (#10152)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [cbrgm/mastodon-github-action](https://github.com/cbrgm/mastodon-github-action).


Updates `github/codeql-action` from 4.30.9 to 4.31.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](16140ae1a1...0499de31b9)

Updates `cbrgm/mastodon-github-action` from 2.1.20 to 2.1.21
- [Release notes](https://github.com/cbrgm/mastodon-github-action/releases)
- [Commits](92418eedbe...96ff691bc4)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: cbrgm/mastodon-github-action
  dependency-version: 2.1.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-05 11:48:42 +01:00
Zoltan Kochan
817804a787 chore: fix build artifacts script 2025-11-05 01:55:22 +01:00
Zoltan Kochan
75898b144a chore: fix build artifacts script 2025-11-05 01:26:24 +01:00
Zoltan Kochan
efb48dcab5 feat: install js runtime as prod dependency (#10141) 2025-10-31 17:12:50 +01:00
Khải
d4bf2d0e60 feat(cli/config)!: config command outputs changed from INI to JSON with camelCase keys (#10142) 2025-10-30 11:34:48 +01:00
Zoltan Kochan
2d8c6307f5 ci: run all tests on the main branch 2025-10-28 22:03:11 +01:00
Zoltan Kochan
0e738e4e97 ci: run all tests on the main branch 2025-10-28 21:58:50 +01:00
Zoltan Kochan
3ce5f82bd7 Merge remote-tracking branch 'origin/main' into v11 2025-10-28 18:40:05 +01:00
Zoltan Kochan
49f03d14ee chore(release): 10.20.0 v10.20.0 2025-10-28 17:35:21 +01:00
Zoltan Kochan
66d7a9af0c Merge remote-tracking branch 'origin/main' into v11 2025-10-28 17:24:42 +01:00
Khải
ae43ac79fa feat(cli/config)!: breaking changes (#9854)
* feat(cli/config)!: breaking changes

* refactor(test): remove `deepNullProto` and reuse `getOutputString`

* feat(cli/config/list): censor protected settings

* test: censorship of protected settings

* docs(changeset): censorship of protected settings

* fix: eslint

* feat(config)!: exclude non-option from `rawConfig`

* fix: eslint

* refactor: move default registries to builtin (#9886)

* feat(config)!: filter rc settings

* feat(config): don't exclude non-options

This reverts commit a79f72dbfb.

* feat(cli/config/get)!: print array as json

* test: fix

* docs(changeset): correct

* test: fix

* feat(cli/config)!: only kebabize option fields (wip)

* chore(git): revert the implementation

This reverts commit 529f9bdd47.

* test: restore

This reverts commit d8191e0ed8.

* feat(cli/config)!: only kebabize option fields (wip)

* feat: use `types` instead

* feat(cli/config/get)!: only kebabize rc fields

* test: add

* test: non-rc kebab-case keys

* test: correct

* docs(changeset): correct

* docs(changeset): style

* docs(changeset): correct

* test: only kebabize rc fields

* fix: import path

* fix: eslint

* fix: `isCamelCase`

* feat(cli/config/set)!: forbid unknown rc fields

* test: fix existing test

* test: refuse unsupported rc settings

* feat: hint

* feat(cli/config/set)!: refuse kebab-case workspace-specific settings

* feat(config)!: ignore non-camelCase from `pnpm-workspace.yaml`

* test: config get

* test: config list

* refactor: extract shared code into its own package

* test: `isCamelCase`

* feat(cli/config/list)!: consistent naming cases

* refactor: make it more reusable

* feat(cli/config/get)!: consistent naming cases

* feat(cli/config/get): censor protected settings

* test: `get ''` should be the same as `list`

* docs(test): quotation marks

* refactor: remove unnecessary `test.each`

* docs(changeset): case changes

* test: unknown keys

* docs(changeset): correct

* docs(changeset): non camelCase from `pnpm-workspace.yaml`

* fix: eslint

* docs(changeset): correct terminology

* docs(changeset): clarify

* feat!: do not load non-auth and non-registry

* fix: implementation

* test: no hidden settings

* fix: eslint

* fix: do not drop default values

* test: fix

* test: remove irrelevant tests

* test: fix (wip)

* fix: auth

* test: skip an inapplicable test

* test: temporary skip a test

* test: fix 'respects testPattern'

* test: fix 'respects changedFilesIgnorePattern'

* test: fix 'changedFilesIgnorePattern is respected'

* test: rename a test

* test: fix `package-lock=false`

* feat: exception for `managePackageManagerVersions`

* test: `managePackageManagerVersions: false`

* test: fix (wip)

* test: workaround

* fix: default `optional` to `true`

* fix: `filter` on `pnpm-workspace.yaml`

* test: fix

* test: disable ones that no longer apply

* chore(git): revert incorrect change

* fix: `filter` on `pnpm-workspace.yaml` (#10127)

* fix: `filter` on `pnpm-workspace.yaml`

* docs: changeset

* fix: actual fix

* fix: don't set default on config

* docs(readme): correct a package description

* fix: typo

* test: fix

* test: use a field that wouldn't be ignored

* test: replace some `.npmrc` with `pnpm-workspace.yaml`

* docs(changeset): less awkward wordings

* docs(changeset): correction
2025-10-28 17:09:15 +01:00
Daiki Nishikawa
0152a51061 fix: omit the major version matching restriction when filtering latest dist-tags in pkg metadata (#10130)
close #10100

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-10-28 17:05:36 +01:00
Khải
ed1a7fe7cd fix: filter on pnpm-workspace.yaml (#10127)
* fix: `filter` on `pnpm-workspace.yaml`

* docs: changeset

* fix: actual fix

* fix: don't set default on config
2025-10-27 13:36:35 +01:00
SJ Hayman
6c3dcb8bf7 fix: skip time field validation for packages excluded by minimumReleaseAgeExclude (#10118)
Co-authored-by: SJ Hayman <sj@e2.ltd>
2025-10-27 11:34:56 +01:00
Zoltan Kochan
eb4cb0f9e2 chore: update pnpm and minimum release age policy 2025-10-27 11:18:46 +01:00
btea
5c27936699 fix(create): create command should not verify patch info (#10122)
close #10114
2025-10-27 01:47:00 +01:00
chlorine
6e9ad42eda feat: support -a option in pnpm --help to list all commands (#8628)
close #8624

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-10-27 01:31:20 +01:00
Zoltan Kochan
66659a7455 test(outdated): fix 2025-10-24 15:31:55 +02:00
Zoltan Kochan
76ee779b41 test(builder.policy): fix 2025-10-24 14:37:21 +02:00
Zoltan Kochan
dab9abef5c Merge remote-tracking branch 'origin/main' into v11 2025-10-24 14:19:07 +02:00
Zoltan Kochan
a1a1ab3f90 fix: don't ever switch to another version of pnpm when it has beens switched already (#10112)
close #10063
2025-10-24 11:50:51 +02:00
Zoltan Kochan
d9bcd616ea chore(release): 10.19.1-oidc-test.3 v10.19.1-oidc-test.3 2025-10-24 01:36:02 +02:00
Zoltan Kochan
34c727a888 chore(release): 10.19.1-oidc-test.2 v10.19.1-oidc-test.2 2025-10-23 12:34:43 +02:00
Zoltan Kochan
ddf6fa4812 ci: remove printing of npm version v10.19.1-oidc-test.1 2025-10-23 11:59:23 +02:00
Zoltan Kochan
0cde1287c8 chore: update repository fields 2025-10-23 11:57:12 +02:00
Zoltan Kochan
f5b02ff88a ci: update release.yml 2025-10-23 11:28:11 +02:00
Zoltan Kochan
ac5c335686 chore: update npm in the release workflow 2025-10-23 11:10:44 +02:00
Zoltan Kochan
eb0df0dca1 chore(release): 10.19.1-oidc-test.1 2025-10-23 10:56:22 +02:00
Zoltan Kochan
e5ac91fa67 chore(release): 10.19.1-oidc-test.0 v10.19.1-oidc-test.0 2025-10-23 10:30:03 +02:00
Zoltan Kochan
51119529a2 ci: enable trusted publish 2025-10-23 10:30:03 +02:00
Zoltan Kochan
afdc1e910f chore: add artifact keyword to artifact packages 2025-10-23 10:30:03 +02:00
Ryo Matsukawa
5ebc45bcc2 chore: pin actions for security (#10111) 2025-10-22 13:36:19 +02:00
Zoltan Kochan
43d7b18c2f chore(release): 10.19.0 v10.19.0 2025-10-21 15:30:20 +02:00
Zoltan Kochan
8993f682cc feat: export a startWorker function from @pnpm/worker (#10110) 2025-10-21 15:24:52 +02:00
dependabot[bot]
a9257e34be chore(deps): bump actions/setup-node from 5 to 6 in the github-actions group (#10106)
* chore(deps): bump actions/setup-node in the github-actions group

Bumps the github-actions group with 1 update: [actions/setup-node](https://github.com/actions/setup-node).


Updates `actions/setup-node` from 5 to 6
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply suggestion from @ryo-manba

Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zoltan Kochan <z@kochan.io>
Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com>
2025-10-21 15:18:13 +02:00
Zoltan Kochan
dee39ecb8a feat: support allowing the build of specific versions of dependencies (#10104)
close #10076
2025-10-21 12:38:16 +02:00
Ryo Matsukawa
7c1382f7b7 feat: add support for exact versions in minimumReleaseAgeExclude (#10059)
close #9985

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-10-18 11:10:08 +02:00
Zoltan Kochan
3321cb05f8 ci: run tests on Node.js 25 2025-10-15 21:52:21 +02:00
Khải
91aae6c302 fix(config/env): pnpm_config_registry (#10069)
* feat(config): load env `pnpm_config_*`

* fix: `getEnvKeySuffix`

* fix: regex in `isEnvKeySuffix`

* refactor: use regex `+`

* test: parseEnvVars

* feat: read from `opts.env`

* test: load env `pnpm_config_*`

* fix: `types['only-built-dependencies']`

* feat: json and schema (wip)

* feat: json and schema

* test: fix

* feat: override workspace but not CLI

* fix: don't override kebab-case CLI arguments

* test: correct syntax

* docs(changeset): add information

* test: use `pnpm_config_*` env

* fix(config/env): `pnpm_config_registry`

* refactor: replace `if` with `switch`

* docs: remove outdated comment

* fix: eslint

* refactor: use `JSON.stringify`

* fix: use `npm_config_store_dir` for now

* fix(test): do not override pnpm-workspace.yaml

* test: `pnpm_config_registry`
2025-10-14 18:37:26 +02:00
Zoltan Kochan
1bfc105da0 chore(release): 10.18.3 v10.18.3 2025-10-14 11:27:45 +02:00
Zoltan Kochan
4163d22002 chore: ignore vulnerability in verdaccio 2025-10-14 09:54:21 +02:00
Ryo Matsukawa
47295e2d25 fix: handle scoped registry keys in config get (#10082)
* fix: handle scoped registry keys in config get

* Update config/plugin-commands-config/test/configGet.test.ts

Co-authored-by: Khải <hvksmr1996@gmail.com>

* Update config/plugin-commands-config/test/configGet.test.ts

Co-authored-by: Khải <hvksmr1996@gmail.com>

* Update config/plugin-commands-config/test/configGet.test.ts

Co-authored-by: Khải <hvksmr1996@gmail.com>

* chore: add a comment

---------

Co-authored-by: Khải <hvksmr1996@gmail.com>

close #9362
2025-10-14 00:23:08 +02:00
月正海角
6089939e15 fix: sync bin links after injected deps sync (#10064)
* fix: sync bin links after injected deps sync

* test: add integration test for bin sync after scripts

* docs: add changeset for bin sync fix

* style: apply Copilot's suggestion
2025-10-13 15:45:59 +02:00
Khải
7fab2a224d feat(config): load env pnpm_config_* (#10029)
* feat(config): load env `pnpm_config_*`

* fix: `getEnvKeySuffix`

* fix: regex in `isEnvKeySuffix`

* refactor: use regex `+`

* test: parseEnvVars

* feat: read from `opts.env`

* test: load env `pnpm_config_*`

* fix: `types['only-built-dependencies']`

* feat: json and schema (wip)

* feat: json and schema

* test: fix

* feat: override workspace but not CLI

* fix: don't override kebab-case CLI arguments

* test: correct syntax

* docs(changeset): add information

* refactor: replace `if` with `switch`

* docs: remove outdated comment

* fix: eslint

* refactor: use `JSON.stringify`
2025-10-13 14:38:40 +02:00
dependabot[bot]
f3195f0de8 chore(deps): bump the github-actions group with 2 updates (#10085)
Bumps the github-actions group with 2 updates: [pnpm/action-setup](https://github.com/pnpm/action-setup) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `pnpm/action-setup` from 4.1.0 to 4.2.0
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v4.1.0...v4.2.0)

Updates `github/codeql-action` from 3 to 4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-13 14:15:58 +02:00
Ryo Matsukawa
9c65b96f2c fix: preserve version and hasBin for variations packages (#10065)
close #10022
2025-10-13 10:00:56 +02:00
Ryo Matsukawa
a8797c4e59 fix: handle EISDIR error when bin field points to directory (#10080)
close #9441
2025-10-13 10:00:06 +02:00
Ryo Matsukawa
3abd394623 fix: remove pnpm-specific options before calling npm publish (#10077)
* fix(publish): remove pnpm-specific options before calling npm publish

* fix: distinguish boolean and value options when filtering

close #9646
2025-10-12 20:20:48 +02:00