7.0 KiB
@pnpm/auth.commands
1100.0.3
Patch Changes
1100.0.2
Patch Changes
- Updated dependencies [
cee550a] - Updated dependencies [
4ab3d9b] - Updated dependencies [
9af708a] - Updated dependencies [
ea2a7fb] - Updated dependencies [
ff7733c]- @pnpm/cli.utils@1101.0.0
- @pnpm/config.reader@1101.0.0
1100.0.1
Patch Changes
- Internally,
@pnpm/network.web-auth'spromptBrowserOpennow uses theopenpackage instead of spawning platform-specific commands. TheexecFilefield andPromptBrowserOpenExecFile/PromptBrowserOpenProcesstype exports have been removed fromPromptBrowserOpenContext. - Updated dependencies
- @pnpm/network.web-auth@1101.0.0
- @pnpm/cli.utils@1100.0.1
- @pnpm/config.reader@1100.0.1
- @pnpm/network.fetch@1100.0.1
1000.1.0
Minor Changes
-
de3dc74: During web-based authentication (pnpm login,pnpm publish), users can now press ENTER to open the authentication URL in their default browser. The background polling continues uninterrupted, so users who prefer to authenticate on their phone can still do so without pressing anything. -
d4a1d73: Addedpnpm logincommand for authenticating with npm registries. Supports web-based login (with QR code) and classic username/password login as a fallback. Theaddusercommand is aliased tologin. -
16cfde6: Addedpnpm logoutcommand for logging out of npm registries. Revokes the authentication token on the registry and removes it from the local configuration. -
2df8b71: pnpm no longer reads all settings from.npmrc. Only auth and registry settings are read from.npmrcfiles. All other settings (likehoist-pattern,node-linker,shamefully-hoist, etc.) must be configured inpnpm-workspace.yamlor the global~/.config/pnpm/config.yaml.What changed
.npmrcis now only for auth and registry settings. pnpm-specific settings in.npmrcare ignored. Move them topnpm-workspace.yaml.pnpm no longer reads
npm_config_*environment variables. Usepnpm_config_*environment variables instead (e.g.,pnpm_config_registryinstead ofnpm_config_registry).pnpm no longer reads the npm global config at
$PREFIX/etc/npmrc.pnpm loginwrites auth tokens to~/.config/pnpm/auth.ini.Settings still read from
.npmrcThe following settings continue to be read from
.npmrcfiles (project-level and~/.npmrc):registryand@scope:registry— registry URLs//registry.example.com/:_authToken— auth tokens per registry_auth,_authToken,_password,username,email— global auth credentials//registry.example.com/:tokenHelper— token helper commandsca,cafile,cert,key,certfile,keyfile— SSL certificatesstrict-ssl— SSL verificationproxy,https-proxy,no-proxy— proxy settingslocal-address— local network address bindinggit-shallow-hosts— git shallow clone hosts
New
npmrcAuthFilesettingA new
npmrcAuthFilesetting can be added topnpm-workspace.yamlor~/.config/pnpm/config.yamlto specify a custom path to the user.npmrcfile (defaults to~/.npmrc):npmrcAuthFile: /custom/path/.npmrcNew
registriessetting inpnpm-workspace.yamlRegistry URLs can now be configured in
pnpm-workspace.yaml, so there's no need to commit.npmrcfiles with registry mappings:registries: default: https://registry.npmjs.org/ "@my-org": https://private.example.com/ "@internal": https://nexus.corp.com/This replaces the
.npmrcsettingsregistry=...and@scope:registry=....Auth file read order (highest priority first)
~/.config/pnpm/auth.ini— pnpm's own auth file (written bypnpm login)<workspace>/.npmrc— workspace root (or project root)~/.npmrc(or customnpmrcAuthFile) — user-level fallback
Note:
.npmrcis only read from the workspace root, not from individual package directories.Migration guide
-
Move pnpm settings from
.npmrctopnpm-workspace.yaml:Before (
.npmrc):shamefully-hoist=true node-linker=hoistedAfter (
pnpm-workspace.yaml):shamefullyHoist: true nodeLinker: hoisted -
Move scoped registry mappings from
.npmrctopnpm-workspace.yaml:Before (
.npmrc):@my-org:registry=https://private.example.comAfter (
pnpm-workspace.yaml):registries: "@my-org": https://private.example.com/ -
If you use
npm_config_*env vars, switch topnpm_config_*:# Before npm_config_registry=https://registry.example.com # After pnpm_config_registry=https://registry.example.com -
Auth tokens in
~/.npmrcstill work. No migration needed for registry authentication — pnpm continues to read~/.npmrcas a fallback.
Patch Changes
- Updated dependencies [
7730a7f] - Updated dependencies [
ae8b816] - Updated dependencies [
facdd71] - Updated dependencies [
de3dc74] - Updated dependencies [
3c72b6b] - Updated dependencies [
9f5c0e3] - Updated dependencies [
76718b3] - Updated dependencies [
cc1b8e3] - Updated dependencies [
90bd3c3] - Updated dependencies [
1cc61e8] - Updated dependencies [
606f53e] - Updated dependencies [
c7203b9] - Updated dependencies [
bb17724] - Updated dependencies [
da2429d] - Updated dependencies [
1cc61e8] - Updated dependencies [
d4a1d73] - Updated dependencies [
491a84f] - Updated dependencies [
f0ae1b9] - Updated dependencies [
0dfa8b8] - Updated dependencies [
7fab2a2] - Updated dependencies [
cb367b9] - Updated dependencies [
543c7e4] - Updated dependencies [
075aa99] - Updated dependencies [
ae43ac7] - Updated dependencies [
ccec8e7] - Updated dependencies [
4158906] - Updated dependencies [
ac944ef] - Updated dependencies [
7d2fd48] - Updated dependencies [
cc7c0d2] - Updated dependencies [
d5d4eed] - Updated dependencies [
095f659] - Updated dependencies [
96704a1] - Updated dependencies [
bb8baa7] - Updated dependencies [
cb367b9] - Updated dependencies [
7b1c189] - Updated dependencies [
51b04c3] - Updated dependencies [
6c480a4] - Updated dependencies [
d01b81f] - Updated dependencies [
3ed41f4] - Updated dependencies [
71de2b3] - Updated dependencies [
10bc391] - Updated dependencies [
831f574] - Updated dependencies [
2df8b71] - Updated dependencies [
ed1a7fe] - Updated dependencies [
cc7c0d2] - Updated dependencies [
5bf7768] - Updated dependencies [
ae43ac7] - Updated dependencies [
a5fdbf9] - Updated dependencies [
9d3f00b] - Updated dependencies [
6b3d87a] - Updated dependencies [
9587dac] - Updated dependencies [
09a999a] - Updated dependencies [
559f903] - Updated dependencies [
3574905]- @pnpm/config.reader@1005.0.0
- @pnpm/network.web-auth@1001.0.0
- @pnpm/cli.utils@1002.0.0
- @pnpm/error@1001.0.0
- @pnpm/network.fetch@1001.0.0