From d9564e35468b6cc6f9302eeb3f0eaeb580daab80 Mon Sep 17 00:00:00 2001 From: Michel TURPIN Date: Tue, 9 Jan 2024 00:52:06 +0100 Subject: [PATCH 1/8] fix: use real path for module root dir (#6524) (#7491) close #6524 --- .changeset/real-knives-bathe.md | 7 +++++++ config/config/src/index.ts | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/real-knives-bathe.md diff --git a/.changeset/real-knives-bathe.md b/.changeset/real-knives-bathe.md new file mode 100644 index 0000000000..6b49716754 --- /dev/null +++ b/.changeset/real-knives-bathe.md @@ -0,0 +1,7 @@ +--- +"@pnpm/config": patch +"pnpm": patch +--- + +Resolve the current working directory to its real location before doing any operations [#6524](https://github.com/pnpm/pnpm/issues/6524). + diff --git a/config/config/src/index.ts b/config/config/src/index.ts index cde1899c38..a456d00dcd 100644 --- a/config/config/src/index.ts +++ b/config/config/src/index.ts @@ -291,7 +291,9 @@ export async function getConfig ( ...rcOptions.map((configKey) => [camelcase(configKey), npmConfig.get(configKey)]) as any, // eslint-disable-line ...Object.entries(cliOptions).filter(([name, value]) => typeof value !== 'undefined').map(([name, value]) => [camelcase(name), value]), ]) as unknown as ConfigWithDeprecatedSettings - const cwd = betterPathResolve(cliOptions.dir ?? npmConfig.localPrefix) + // Resolving the current working directory to its actual location is crucial. + // This prevents potential inconsistencies in the future, especially when processing or mapping subdirectories. + const cwd = fs.realpathSync(betterPathResolve(cliOptions.dir ?? npmConfig.localPrefix)) pnpmConfig.maxSockets = npmConfig.maxsockets // @ts-expect-error From dcf3ef7e4f5127833cb5dae8a5fd5262f9b6e397 Mon Sep 17 00:00:00 2001 From: Eric Higgins <87031925+erichiggins0@users.noreply.github.com> Date: Tue, 9 Jan 2024 02:18:38 -0800 Subject: [PATCH 2/8] fix(license-scanner): handle git repo names with capital letters (#7488) --------- Co-authored-by: Zoltan Kochan --- .changeset/silly-dryers-pull.md | 7 ++++++ reviewing/license-scanner/src/getPkgInfo.ts | 14 +++++------ .../src/lockfileToLicenseNodeTree.ts | 1 + .../license-scanner/test/getPkgInfo.spec.ts | 1 + .../with-git-protocol-caps/package.json | 7 ++++++ .../plugin-commands-licenses/test/index.ts | 23 +++++++++++++++++++ 6 files changed, 45 insertions(+), 8 deletions(-) create mode 100644 .changeset/silly-dryers-pull.md create mode 100644 reviewing/plugin-commands-licenses/test/fixtures/with-git-protocol-caps/package.json diff --git a/.changeset/silly-dryers-pull.md b/.changeset/silly-dryers-pull.md new file mode 100644 index 0000000000..a6d3f47360 --- /dev/null +++ b/.changeset/silly-dryers-pull.md @@ -0,0 +1,7 @@ +--- +"@pnpm/plugin-commands-licenses": patch +"@pnpm/license-scanner": patch +"pnpm": patch +--- + +Handle Git repository names containing capital letters [#7488](https://github.com/pnpm/pnpm/pull/7488). diff --git a/reviewing/license-scanner/src/getPkgInfo.ts b/reviewing/license-scanner/src/getPkgInfo.ts index fedb4fa73a..08252d040a 100644 --- a/reviewing/license-scanner/src/getPkgInfo.ts +++ b/reviewing/license-scanner/src/getPkgInfo.ts @@ -158,7 +158,7 @@ async function readLicenseFileFromCafs (cafsDir: string, { integrity, mode }: Pa */ export async function readPackageIndexFile ( packageResolution: Resolution, - depPath: string, + id: string, opts: { cafsDir: string, storeDir: string, lockfileDir: string } ): Promise< | { @@ -195,10 +195,7 @@ export async function readPackageIndexFile ( 'index' ) } else if (!packageResolution.type && packageResolution.tarball) { - // If the package resolution has a tarball then we need to clean up - // the return value to depPathToFilename as it adds peer deps(e.g. a@1.0.0_peer-foo@18.0.0_peer-bar@18.0.0) or patch hash(a@1.0.0_patch_hash=xxxx) part to the - // directory for the package in the content-addressable store - const packageDirInStore = depPathToFilename(depPath).split('_')[0] + const packageDirInStore = depPathToFilename(id) pkgIndexFilePath = path.join( opts.storeDir, packageDirInStore, @@ -207,7 +204,7 @@ export async function readPackageIndexFile ( } else { throw new PnpmError( 'UNSUPPORTED_PACKAGE_TYPE', - `Unsupported package resolution type for ${depPath}` + `Unsupported package resolution type for ${id}` ) } @@ -221,7 +218,7 @@ export async function readPackageIndexFile ( if (err.code === 'ENOENT') { throw new PnpmError( 'MISSING_PACKAGE_INDEX_FILE', - `Failed to find package index file for ${depPath}, please consider running 'pnpm install'` + `Failed to find package index file for ${id}, please consider running 'pnpm install'` ) } @@ -230,6 +227,7 @@ export async function readPackageIndexFile ( } export interface PackageInfo { + id: string name?: string version?: string depPath: string @@ -270,7 +268,7 @@ export async function getPkgInfo ( const packageFileIndexInfo = await readPackageIndexFile( packageResolution as Resolution, - pkg.depPath, + pkg.id, { cafsDir, storeDir: opts.storeDir, diff --git a/reviewing/license-scanner/src/lockfileToLicenseNodeTree.ts b/reviewing/license-scanner/src/lockfileToLicenseNodeTree.ts index 642a0c7165..c573abeee7 100644 --- a/reviewing/license-scanner/src/lockfileToLicenseNodeTree.ts +++ b/reviewing/license-scanner/src/lockfileToLicenseNodeTree.ts @@ -68,6 +68,7 @@ export async function lockfileToLicenseNode ( const packageInfo = await getPkgInfo( { + id: pkgSnapshot.id ?? depPath, name, version, depPath, diff --git a/reviewing/license-scanner/test/getPkgInfo.spec.ts b/reviewing/license-scanner/test/getPkgInfo.spec.ts index c4b524ad07..1ee70a1b8e 100644 --- a/reviewing/license-scanner/test/getPkgInfo.spec.ts +++ b/reviewing/license-scanner/test/getPkgInfo.spec.ts @@ -11,6 +11,7 @@ describe('licences', () => { { name: 'bogus-package', version: '1.0.0', + id: '/bogus-package/1.0.0', depPath: '/bogus-package/1.0.0', snapshot: { resolution: { diff --git a/reviewing/plugin-commands-licenses/test/fixtures/with-git-protocol-caps/package.json b/reviewing/plugin-commands-licenses/test/fixtures/with-git-protocol-caps/package.json new file mode 100644 index 0000000000..1b65682175 --- /dev/null +++ b/reviewing/plugin-commands-licenses/test/fixtures/with-git-protocol-caps/package.json @@ -0,0 +1,7 @@ +{ + "name": "with-git-protocol-caps", + "version": "1.0.0", + "dependencies": { + "capitalized-repo": "github:pnpm-e2e/Capitalized-Repo" + } +} diff --git a/reviewing/plugin-commands-licenses/test/index.ts b/reviewing/plugin-commands-licenses/test/index.ts index a2eb7a743c..3d5e61ea17 100644 --- a/reviewing/plugin-commands-licenses/test/index.ts +++ b/reviewing/plugin-commands-licenses/test/index.ts @@ -255,3 +255,26 @@ test('pnpm licenses should work with git protocol dep that have peerDependencies expect(exitCode).toBe(0) }) + +test('pnpm licenses should work git repository name containing capital letters', async () => { + const workspaceDir = tempDir() + f.copy('with-git-protocol-caps', workspaceDir) + + const storeDir = path.join(workspaceDir, 'store') + await install.handler({ + ...DEFAULT_OPTS, + dir: workspaceDir, + pnpmHomeDir: '', + storeDir, + }) + + const { exitCode } = await licenses.handler({ + ...DEFAULT_OPTS, + dir: workspaceDir, + pnpmHomeDir: '', + long: false, + storeDir: path.resolve(storeDir, 'v3'), + }, ['list']) + + expect(exitCode).toBe(0) +}) From d349bc3a2deffc282d52cce268218420a3385c96 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 9 Jan 2024 11:51:29 +0100 Subject: [PATCH 3/8] fix(modules-yaml): don't crash on empty file (#7508) --- .changeset/nervous-beds-refuse.md | 5 +++++ pkg-manager/modules-yaml/src/index.ts | 1 + .../test/fixtures/empty-modules-yaml/.modules.yaml | 0 pkg-manager/modules-yaml/test/index.ts | 5 +++++ 4 files changed, 11 insertions(+) create mode 100644 .changeset/nervous-beds-refuse.md create mode 100644 pkg-manager/modules-yaml/test/fixtures/empty-modules-yaml/.modules.yaml diff --git a/.changeset/nervous-beds-refuse.md b/.changeset/nervous-beds-refuse.md new file mode 100644 index 0000000000..4cdd4feb53 --- /dev/null +++ b/.changeset/nervous-beds-refuse.md @@ -0,0 +1,5 @@ +--- +"@pnpm/modules-yaml": patch +--- + +readModulesYaml should not crash on empty file. diff --git a/pkg-manager/modules-yaml/src/index.ts b/pkg-manager/modules-yaml/src/index.ts index bdeeaf686d..0679b275e4 100644 --- a/pkg-manager/modules-yaml/src/index.ts +++ b/pkg-manager/modules-yaml/src/index.ts @@ -38,6 +38,7 @@ export async function readModulesManifest (modulesDir: string): Promise(modulesYamlPath) + if (!modules) return modules } catch (err: any) { // eslint-disable-line if ((err as NodeJS.ErrnoException).code !== 'ENOENT') { throw err diff --git a/pkg-manager/modules-yaml/test/fixtures/empty-modules-yaml/.modules.yaml b/pkg-manager/modules-yaml/test/fixtures/empty-modules-yaml/.modules.yaml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/pkg-manager/modules-yaml/test/index.ts b/pkg-manager/modules-yaml/test/index.ts index e9c4a190f0..4aac8fccba 100644 --- a/pkg-manager/modules-yaml/test/index.ts +++ b/pkg-manager/modules-yaml/test/index.ts @@ -113,3 +113,8 @@ test('readModulesManifest() should create a node_modules directory if makeModule await writeModulesManifest(modulesDir, modulesYaml, { makeModulesDir: true }) expect(await readModulesManifest(modulesDir)).toEqual(modulesYaml) }) + +test('readModulesManifest does not fail on empty file', async () => { + const modulesYaml = await readModulesManifest(path.join(__dirname, 'fixtures/empty-modules-yaml')) + expect(modulesYaml).toBeUndefined() +}) From fe737aeb4efebe381a244a7c899a4df0487b969d Mon Sep 17 00:00:00 2001 From: Eric Higgins <87031925+erichiggins0@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:40:13 -0800 Subject: [PATCH 4/8] fix(license-scanner): use deterministic version for each dependency (#7500) --- .changeset/silent-berries-cry.md | 5 + pnpm-lock.yaml | 9 ++ reviewing/license-scanner/package.json | 6 +- reviewing/license-scanner/src/licenses.ts | 11 ++- .../license-scanner/test/licenses.spec.ts | 99 +++++++++++++++++++ .../test/__snapshots__/index.ts.snap | 2 +- 6 files changed, 128 insertions(+), 4 deletions(-) create mode 100644 .changeset/silent-berries-cry.md diff --git a/.changeset/silent-berries-cry.md b/.changeset/silent-berries-cry.md new file mode 100644 index 0000000000..5b28cd5695 --- /dev/null +++ b/.changeset/silent-berries-cry.md @@ -0,0 +1,5 @@ +--- +"@pnpm/license-scanner": patch +--- + +Output license information for a deterministic version when multiple versions of a single package are depended on diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9945f30451..038826acbb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5247,6 +5247,9 @@ importers: ramda: specifier: npm:@pnpm/ramda@0.28.1 version: /@pnpm/ramda@0.28.1 + semver: + specifier: ^7.5.4 + version: 7.5.4 devDependencies: '@pnpm/constants': specifier: workspace:* @@ -5257,6 +5260,9 @@ importers: '@types/ramda': specifier: 0.28.20 version: 0.28.20 + '@types/semver': + specifier: ^7.5.3 + version: 7.5.3 reviewing/list: dependencies: @@ -11419,6 +11425,7 @@ packages: /err-code@2.0.3: resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==} + requiresBuild: true dev: false /error-ex@1.3.2: @@ -17933,9 +17940,11 @@ time: /@pnpm/which@3.0.1: '2023-05-14T22:08:27.551Z' /@reflink/reflink@0.1.16: '2024-01-02T17:41:22.200Z' /@types/byline@4.2.36: '2023-11-07T00:13:37.410Z' + /@types/semver@7.5.3: '2023-09-25T14:19:37.089Z' /@types/table@6.0.0: '2020-09-17T17:56:44.787Z' /@zkochan/hosted-git-info@4.0.2: '2021-09-05T21:33:51.709Z' /@zkochan/js-yaml@0.0.6: '2022-05-10T14:42:39.813Z' /fuse-native@2.2.6: '2020-06-03T19:26:36.838Z' /node-gyp@9.4.1: '2023-10-27T17:30:56.146Z' /safe-execa@0.1.2: '2022-07-18T01:09:17.517Z' + /semver@7.5.4: '2023-07-07T21:10:32.589Z' diff --git a/reviewing/license-scanner/package.json b/reviewing/license-scanner/package.json index b2ed8898fd..71ec54a185 100644 --- a/reviewing/license-scanner/package.json +++ b/reviewing/license-scanner/package.json @@ -47,12 +47,14 @@ "load-json-file": "^6.2.0", "p-limit": "^3.1.0", "path-absolute": "^1.0.1", - "ramda": "npm:@pnpm/ramda@0.28.1" + "ramda": "npm:@pnpm/ramda@0.28.1", + "semver": "^7.5.4" }, "devDependencies": { "@pnpm/constants": "workspace:*", "@pnpm/license-scanner": "workspace:*", - "@types/ramda": "0.28.20" + "@types/ramda": "0.28.20", + "@types/semver": "^7.5.3" }, "funding": "https://opencollective.com/pnpm", "exports": { diff --git a/reviewing/license-scanner/src/licenses.ts b/reviewing/license-scanner/src/licenses.ts index 33ff4a6394..48409c7557 100644 --- a/reviewing/license-scanner/src/licenses.ts +++ b/reviewing/license-scanner/src/licenses.ts @@ -11,6 +11,7 @@ import { type LicenseNode, lockfileToLicenseNodeTree, } from './lockfileToLicenseNodeTree' +import { gt } from 'semver' export interface LicensePackage { belongsTo: DependenciesField @@ -101,7 +102,15 @@ export async function findDependencyLicenses (opts: { const dependenciesOfNode = getDependenciesFromLicenseNode(licenseNode) dependenciesOfNode.forEach((dependencyNode) => { - licensePackages.set(dependencyNode.name, dependencyNode) + const existingVersion = licensePackages.get(dependencyNode.name)?.version + // This just ensures that we use a deterministic version of each dependency, + // in the event that multiple versions are depended on. + if ( + existingVersion === undefined || + gt(dependencyNode.version, existingVersion) + ) { + licensePackages.set(dependencyNode.name, dependencyNode) + } }) } diff --git a/reviewing/license-scanner/test/licenses.spec.ts b/reviewing/license-scanner/test/licenses.spec.ts index 232c7c2d45..47a3160bcb 100644 --- a/reviewing/license-scanner/test/licenses.spec.ts +++ b/reviewing/license-scanner/test/licenses.spec.ts @@ -174,4 +174,103 @@ describe('licences', () => { }, ] as LicensePackage[]) }) + + test('findDependencyLicenses uses most updated version of each package', async () => { + const lockfile: Lockfile = { + importers: { + '.': { + dependencies: { + foo: '1.0.0', + bar: '1.0.1', + baz: '2.0.0', + }, + specifiers: { + foo: '^1.0.0', + bar: '^1.0.1', + baz: '^2.0.0', + }, + }, + }, + lockfileVersion: LOCKFILE_VERSION, + packages: { + '/bar@1.0.1': { + resolution: { + integrity: 'bar1-integrity', + }, + }, + '/bar@1.0.0': { + resolution: { + integrity: 'bar2-integrity', + }, + }, + '/baz@2.0.1': { + resolution: { + integrity: 'baz1-integrity', + }, + }, + '/baz@2.0.0': { + resolution: { + integrity: 'baz2-integrity', + }, + }, + '/foo@1.0.0': { + dependencies: { + bar: '1.0.0', + baz: '2.0.1', + }, + resolution: { + integrity: 'foo-integrity', + }, + }, + }, + } + + const licensePackages = await findDependencyLicenses({ + lockfileDir: '/opt/pnpm', + manifest: {} as ProjectManifest, + virtualStoreDir: '/.pnpm', + registries: {} as Registries, + wantedLockfile: lockfile, + storeDir: '/opt/.pnpm', + }) + + expect(licensePackages).toEqual([ + { + belongsTo: 'dependencies', + description: 'Package Description', + version: '1.0.1', + name: 'bar', + license: 'MIT', + licenseContents: undefined, + author: 'Package Author', + homepage: 'Homepage', + repository: 'Repository', + path: '/path/to/package/bar@1.0.1/node_modules', + }, + { + belongsTo: 'dependencies', + description: 'Package Description', + version: '2.0.1', + name: 'baz', + license: 'Unknown', + licenseContents: 'The MIT License', + author: 'Package Author', + homepage: 'Homepage', + repository: 'Repository', + path: '/path/to/package/baz@2.0.1/node_modules', + }, + { + belongsTo: 'dependencies', + description: 'Package Description', + version: '1.0.0', + name: 'foo', + license: 'Unknown', + licenseContents: 'The MIT License', + author: 'Package Author', + homepage: 'Homepage', + repository: 'Repository', + path: '/path/to/package/foo@1.0.0/node_modules', + }, + ] as LicensePackage[]) + }) }) diff --git a/reviewing/plugin-commands-licenses/test/__snapshots__/index.ts.snap b/reviewing/plugin-commands-licenses/test/__snapshots__/index.ts.snap index 856eb9f13a..7032e54ae8 100644 --- a/reviewing/plugin-commands-licenses/test/__snapshots__/index.ts.snap +++ b/reviewing/plugin-commands-licenses/test/__snapshots__/index.ts.snap @@ -64,7 +64,7 @@ exports[`pnpm licenses: should correctly read LICENSE file with executable file │ │ │ https://github.com/feross/safe-buffer │ ├──────────────────────────────┼─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ string_decoder │ MIT │ The string_decoder module from Node core │ -│ │ │ https://github.com/rvagg/string_decoder │ +│ │ │ https://github.com/nodejs/string_decoder │ ├──────────────────────────────┼─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ string.fromcodepoint │ MIT │ Mathias Bynens │ │ │ │ A robust & optimized \`String.fromCodePoint\` polyfill, based on the ECMAScript 6 specification. │ From 8258e8641f47b4ad33473848b76b321eea62305a Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 9 Jan 2024 23:43:00 +0100 Subject: [PATCH 5/8] ci: change base branch to v8 --- .changeset/config.json | 2 +- .github/workflows/ci.yml | 4 ++-- package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 3193a36617..21f9b9dc84 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -4,6 +4,6 @@ "commit": false, "linked": [], "access": "public", - "baseBranch": "main", + "baseBranch": "v8", "bumpVersionsWithWorkspaceProtocolOnly": true } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92c1fc9ed0..8d3dbfa3e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,13 +64,13 @@ jobs: # restore-keys: ts-jest-${{ matrix.platform }}-${{ matrix.node }}- - name: run tests (main) timeout-minutes: 60 - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/v8' run: pnpm run test-main env: PNPM_WORKERS: 3 - name: run tests (branch) timeout-minutes: 60 - if: github.ref != 'refs/heads/main' + if: github.ref != 'refs/heads/v8' run: pnpm run test-branch env: PNPM_WORKERS: 3 diff --git a/package.json b/package.json index e036325642..4ee023276b 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "test-main": "pnpm pretest && pnpm lint --quiet && pnpm run test-pkgs-main", "remove-temp-dir": "shx rm -rf ../pnpm_tmp", "test-pkgs-main": "pnpm remove-temp-dir && pnpm run --no-sort --workspace-concurrency=1 -r _test", - "test-branch": "pnpm pretest && pnpm lint --quiet && git remote set-branches --add origin main && git fetch && pnpm run test-pkgs-branch", - "test-pkgs-branch": "pnpm remove-temp-dir && pnpm --workspace-concurrency=1 --filter=...[origin/main] run --no-sort _test", + "test-branch": "pnpm pretest && pnpm lint --quiet && git remote set-branches --add origin v8 && git fetch && pnpm run test-pkgs-branch", + "test-pkgs-branch": "pnpm remove-temp-dir && pnpm --workspace-concurrency=1 --filter=...[origin/v8] run --no-sort _test", "compile-only": "pnpm --workspace-concurrency=1 --filter=pnpm --filter=@pnpm/make-dedicated-lockfile --filter=@pnpm/mount-modules run compile", "compile": "pnpm compile-only && pnpm run update-manifests", "watch": "pnpm --filter=@pnpm/fetch run compile && pnpm --filter=pnpm run compile --watch", From 402fe55af5f7c0f7a38c7b18c32535ef0d8e291a Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 10 Jan 2024 00:18:23 +0100 Subject: [PATCH 6/8] test(license-scanner): fix --- reviewing/license-scanner/test/licenses.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reviewing/license-scanner/test/licenses.spec.ts b/reviewing/license-scanner/test/licenses.spec.ts index 47a3160bcb..885e3af33e 100644 --- a/reviewing/license-scanner/test/licenses.spec.ts +++ b/reviewing/license-scanner/test/licenses.spec.ts @@ -193,27 +193,27 @@ describe('licences', () => { }, lockfileVersion: LOCKFILE_VERSION, packages: { - '/bar@1.0.1': { + '/bar/1.0.1': { resolution: { integrity: 'bar1-integrity', }, }, - '/bar@1.0.0': { + '/bar/1.0.0': { resolution: { integrity: 'bar2-integrity', }, }, - '/baz@2.0.1': { + '/baz/2.0.1': { resolution: { integrity: 'baz1-integrity', }, }, - '/baz@2.0.0': { + '/baz/2.0.0': { resolution: { integrity: 'baz2-integrity', }, }, - '/foo@1.0.0': { + '/foo/1.0.0': { dependencies: { bar: '1.0.0', baz: '2.0.1', From 37ccff6373f2b7ee95723a80799c093713f8358b Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 10 Jan 2024 12:27:28 +0100 Subject: [PATCH 7/8] fix(store-path): throw an error when there's no pnpm home directory --- .changeset/nice-dolphins-jump.md | 5 +++++ pnpm-lock.yaml | 3 +++ store/store-path/package.json | 1 + store/store-path/src/index.ts | 4 ++++ store/store-path/test/index.ts | 8 ++++++++ store/store-path/tsconfig.json | 6 +++++- 6 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .changeset/nice-dolphins-jump.md diff --git a/.changeset/nice-dolphins-jump.md b/.changeset/nice-dolphins-jump.md new file mode 100644 index 0000000000..f931254d12 --- /dev/null +++ b/.changeset/nice-dolphins-jump.md @@ -0,0 +1,5 @@ +--- +"@pnpm/store-path": patch +--- + +Throw an error when calculating the store directory without the pnpm home directory. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 038826acbb..d334195b70 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6123,6 +6123,9 @@ importers: store/store-path: dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error '@zkochan/rimraf': specifier: ^2.1.3 version: 2.1.3 diff --git a/store/store-path/package.json b/store/store-path/package.json index 6dd2155db5..c8ff95c1b5 100644 --- a/store/store-path/package.json +++ b/store/store-path/package.json @@ -30,6 +30,7 @@ }, "homepage": "https://github.com/pnpm/pnpm/blob/main/store/store-path#readme", "dependencies": { + "@pnpm/error": "workspace:*", "@zkochan/rimraf": "^2.1.3", "can-link": "^2.0.0", "path-absolute": "^1.0.1", diff --git a/store/store-path/src/index.ts b/store/store-path/src/index.ts index 3a9d181515..1a8daf9dfc 100644 --- a/store/store-path/src/index.ts +++ b/store/store-path/src/index.ts @@ -1,4 +1,5 @@ import { promises as fs } from 'fs' +import { PnpmError } from '@pnpm/error' import rimraf from '@zkochan/rimraf' import canLink from 'can-link' import os from 'os' @@ -22,6 +23,9 @@ export function getStorePath ( } ) { if (!storePath) { + if (!pnpmHomeDir) { + throw new PnpmError('NO_PNPM_HOME_DIR', 'The pnpm home directory is unknown. Cannot calculate the store directory location.') + } return storePathRelativeToHome(pkgRoot, 'store', pnpmHomeDir) } diff --git a/store/store-path/test/index.ts b/store/store-path/test/index.ts index 3a98975581..14259175ee 100644 --- a/store/store-path/test/index.ts +++ b/store/store-path/test/index.ts @@ -26,3 +26,11 @@ skipOnWindows('a link can be created to the a subdir in the root of the drive', pnpmHomeDir: '/local/share/pnpm', })).toBe('/mnt/.pnpm-store/v3') }) + +test('fail when pnpm home directory is not defined', async () => { + expect(() => getStorePath({ + pkgRoot: 'pkgRoot', + // @ts-expect-error + pnpmHomeDir: undefined, + })).toThrow('The pnpm home directory is unknown. Cannot calculate the store directory location.') +}) diff --git a/store/store-path/tsconfig.json b/store/store-path/tsconfig.json index 441d43d55a..e162043135 100644 --- a/store/store-path/tsconfig.json +++ b/store/store-path/tsconfig.json @@ -8,6 +8,10 @@ "src/**/*.ts", "../../__typings__/**/*.d.ts" ], - "references": [], + "references": [ + { + "path": "../../packages/error" + } + ], "composite": true } From 388e1cc1cbcb54ca2242c3a1c65beb9ba377eebf Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 10 Jan 2024 15:56:17 +0100 Subject: [PATCH 8/8] chore(release): 8.14.1 --- .changeset/gentle-jars-check.md | 5 ----- .changeset/hot-lies-invite.md | 5 ----- .changeset/nervous-beds-refuse.md | 5 ----- .changeset/nice-dolphins-jump.md | 5 ----- .changeset/real-knives-bathe.md | 7 ------- .changeset/shiny-coins-walk.md | 7 ------- .changeset/silent-berries-cry.md | 5 ----- .changeset/silly-dryers-pull.md | 7 ------- .changeset/strange-actors-rescue.md | 7 ------- __utils__/assert-project/CHANGELOG.md | 7 +++++++ __utils__/assert-project/package.json | 2 +- __utils__/prepare/CHANGELOG.md | 6 ++++++ __utils__/prepare/package.json | 2 +- __utils__/test-fixtures/CHANGELOG.md | 6 ++++++ __utils__/test-fixtures/package.json | 2 +- cli/cli-utils/CHANGELOG.md | 8 ++++++++ cli/cli-utils/package.json | 2 +- cli/default-reporter/CHANGELOG.md | 7 +++++++ cli/default-reporter/package.json | 2 +- config/config/CHANGELOG.md | 6 ++++++ config/config/package.json | 2 +- config/plugin-commands-config/CHANGELOG.md | 11 +++++++++++ config/plugin-commands-config/package.json | 2 +- deps/graph-builder/CHANGELOG.md | 7 +++++++ deps/graph-builder/package.json | 2 +- env/plugin-commands-env/CHANGELOG.md | 11 +++++++++++ env/plugin-commands-env/package.json | 2 +- exec/plugin-commands-rebuild/CHANGELOG.md | 15 +++++++++++++++ exec/plugin-commands-rebuild/package.json | 2 +- .../CHANGELOG.md | 12 ++++++++++++ .../package.json | 2 +- exec/run-npm/CHANGELOG.md | 7 +++++++ exec/run-npm/package.json | 2 +- lockfile/audit/CHANGELOG.md | 6 ++++++ lockfile/audit/package.json | 2 +- lockfile/plugin-commands-audit/CHANGELOG.md | 11 +++++++++++ lockfile/plugin-commands-audit/package.json | 2 +- modules-mounter/daemon/CHANGELOG.md | 9 +++++++++ modules-mounter/daemon/package.json | 2 +- network/auth-header/CHANGELOG.md | 6 ++++++ network/auth-header/package.json | 2 +- packages/plugin-commands-doctor/CHANGELOG.md | 8 ++++++++ packages/plugin-commands-doctor/package.json | 2 +- packages/plugin-commands-init/CHANGELOG.md | 8 ++++++++ packages/plugin-commands-init/package.json | 2 +- packages/plugin-commands-setup/CHANGELOG.md | 6 ++++++ packages/plugin-commands-setup/package.json | 2 +- patching/plugin-commands-patching/CHANGELOG.md | 13 +++++++++++++ patching/plugin-commands-patching/package.json | 2 +- pkg-manager/client/CHANGELOG.md | 9 +++++++++ pkg-manager/client/package.json | 2 +- pkg-manager/core/CHANGELOG.md | 16 ++++++++++++++++ pkg-manager/core/package.json | 2 +- pkg-manager/get-context/CHANGELOG.md | 8 ++++++++ pkg-manager/get-context/package.json | 2 +- pkg-manager/headless/CHANGELOG.md | 13 +++++++++++++ pkg-manager/headless/package.json | 2 +- pkg-manager/modules-yaml/CHANGELOG.md | 6 ++++++ pkg-manager/modules-yaml/package.json | 2 +- .../plugin-commands-installation/CHANGELOG.md | 16 ++++++++++++++++ .../plugin-commands-installation/package.json | 2 +- pkg-manager/read-projects-context/CHANGELOG.md | 7 +++++++ pkg-manager/read-projects-context/package.json | 2 +- pnpm/CHANGELOG.md | 9 +++++++++ pnpm/artifacts/exe/package.json | 2 +- pnpm/artifacts/linux-arm64/package.json | 2 +- pnpm/artifacts/linux-x64/package.json | 2 +- pnpm/artifacts/macos-arm64/package.json | 2 +- pnpm/artifacts/macos-x64/package.json | 2 +- pnpm/artifacts/win-x64/package.json | 2 +- pnpm/package.json | 2 +- releasing/plugin-commands-deploy/CHANGELOG.md | 9 +++++++++ releasing/plugin-commands-deploy/package.json | 2 +- .../plugin-commands-publishing/CHANGELOG.md | 18 ++++++++++++++++++ .../plugin-commands-publishing/package.json | 2 +- reviewing/dependencies-hierarchy/CHANGELOG.md | 7 +++++++ reviewing/dependencies-hierarchy/package.json | 2 +- reviewing/license-scanner/CHANGELOG.md | 8 ++++++++ reviewing/license-scanner/package.json | 2 +- reviewing/list/CHANGELOG.md | 6 ++++++ reviewing/list/package.json | 2 +- reviewing/outdated/CHANGELOG.md | 9 +++++++++ reviewing/outdated/package.json | 2 +- .../plugin-commands-licenses/CHANGELOG.md | 14 ++++++++++++++ .../plugin-commands-licenses/package.json | 2 +- reviewing/plugin-commands-listing/CHANGELOG.md | 9 +++++++++ reviewing/plugin-commands-listing/package.json | 2 +- .../plugin-commands-outdated/CHANGELOG.md | 13 +++++++++++++ .../plugin-commands-outdated/package.json | 2 +- store/plugin-commands-server/CHANGELOG.md | 12 ++++++++++++ store/plugin-commands-server/package.json | 2 +- .../CHANGELOG.md | 10 ++++++++++ .../package.json | 2 +- store/plugin-commands-store/CHANGELOG.md | 12 ++++++++++++ store/plugin-commands-store/package.json | 2 +- store/store-connection-manager/CHANGELOG.md | 12 ++++++++++++ store/store-connection-manager/package.json | 2 +- store/store-path/CHANGELOG.md | 6 ++++++ store/store-path/package.json | 2 +- .../filter-workspace-packages/CHANGELOG.md | 6 ++++++ .../filter-workspace-packages/package.json | 2 +- workspace/find-packages/CHANGELOG.md | 6 ++++++ workspace/find-packages/package.json | 2 +- 103 files changed, 461 insertions(+), 103 deletions(-) delete mode 100644 .changeset/gentle-jars-check.md delete mode 100644 .changeset/hot-lies-invite.md delete mode 100644 .changeset/nervous-beds-refuse.md delete mode 100644 .changeset/nice-dolphins-jump.md delete mode 100644 .changeset/real-knives-bathe.md delete mode 100644 .changeset/shiny-coins-walk.md delete mode 100644 .changeset/silent-berries-cry.md delete mode 100644 .changeset/silly-dryers-pull.md delete mode 100644 .changeset/strange-actors-rescue.md diff --git a/.changeset/gentle-jars-check.md b/.changeset/gentle-jars-check.md deleted file mode 100644 index 5bd8691dfc..0000000000 --- a/.changeset/gentle-jars-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@pnpm/run-npm": minor ---- - -Allow to set custom env. diff --git a/.changeset/hot-lies-invite.md b/.changeset/hot-lies-invite.md deleted file mode 100644 index 1da1cc622f..0000000000 --- a/.changeset/hot-lies-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@pnpm/network.auth-header": minor ---- - -Export the loadToken function. diff --git a/.changeset/nervous-beds-refuse.md b/.changeset/nervous-beds-refuse.md deleted file mode 100644 index 4cdd4feb53..0000000000 --- a/.changeset/nervous-beds-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@pnpm/modules-yaml": patch ---- - -readModulesYaml should not crash on empty file. diff --git a/.changeset/nice-dolphins-jump.md b/.changeset/nice-dolphins-jump.md deleted file mode 100644 index f931254d12..0000000000 --- a/.changeset/nice-dolphins-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@pnpm/store-path": patch ---- - -Throw an error when calculating the store directory without the pnpm home directory. diff --git a/.changeset/real-knives-bathe.md b/.changeset/real-knives-bathe.md deleted file mode 100644 index 6b49716754..0000000000 --- a/.changeset/real-knives-bathe.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@pnpm/config": patch -"pnpm": patch ---- - -Resolve the current working directory to its real location before doing any operations [#6524](https://github.com/pnpm/pnpm/issues/6524). - diff --git a/.changeset/shiny-coins-walk.md b/.changeset/shiny-coins-walk.md deleted file mode 100644 index 7da9e3513f..0000000000 --- a/.changeset/shiny-coins-walk.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@pnpm/plugin-commands-publishing": minor -"@pnpm/run-npm": minor -"pnpm": patch ---- - -Allow using token helpers in `pnpm publish` [#7316](https://github.com/pnpm/pnpm/issues/7316). diff --git a/.changeset/silent-berries-cry.md b/.changeset/silent-berries-cry.md deleted file mode 100644 index 5b28cd5695..0000000000 --- a/.changeset/silent-berries-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@pnpm/license-scanner": patch ---- - -Output license information for a deterministic version when multiple versions of a single package are depended on diff --git a/.changeset/silly-dryers-pull.md b/.changeset/silly-dryers-pull.md deleted file mode 100644 index a6d3f47360..0000000000 --- a/.changeset/silly-dryers-pull.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@pnpm/plugin-commands-licenses": patch -"@pnpm/license-scanner": patch -"pnpm": patch ---- - -Handle Git repository names containing capital letters [#7488](https://github.com/pnpm/pnpm/pull/7488). diff --git a/.changeset/strange-actors-rescue.md b/.changeset/strange-actors-rescue.md deleted file mode 100644 index eb40768ec2..0000000000 --- a/.changeset/strange-actors-rescue.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@pnpm/headless": patch -"@pnpm/core": patch -"pnpm": patch ---- - -When `hoisted-workspace-packages` is `true` don't hoist the root package even if it has a name. Otherwise we would create a circular symlink. diff --git a/__utils__/assert-project/CHANGELOG.md b/__utils__/assert-project/CHANGELOG.md index 08d5910d9a..b213cfd44e 100644 --- a/__utils__/assert-project/CHANGELOG.md +++ b/__utils__/assert-project/CHANGELOG.md @@ -1,5 +1,12 @@ # @pnpm/assert-project +## 2.3.45 + +### Patch Changes + +- Updated dependencies [d349bc3a2] + - @pnpm/modules-yaml@12.1.7 + ## 2.3.44 ### Patch Changes diff --git a/__utils__/assert-project/package.json b/__utils__/assert-project/package.json index 78ab87cb2d..0430abc349 100644 --- a/__utils__/assert-project/package.json +++ b/__utils__/assert-project/package.json @@ -1,7 +1,7 @@ { "name": "@pnpm/assert-project", "description": "Utils for testing projects that use pnpm", - "version": "2.3.44", + "version": "2.3.45", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io", diff --git a/__utils__/prepare/CHANGELOG.md b/__utils__/prepare/CHANGELOG.md index 976ba7c8af..4961527a36 100644 --- a/__utils__/prepare/CHANGELOG.md +++ b/__utils__/prepare/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/prepare +## 0.0.88 + +### Patch Changes + +- @pnpm/assert-project@2.3.45 + ## 0.0.87 ### Patch Changes diff --git a/__utils__/prepare/package.json b/__utils__/prepare/package.json index dbdcb1bf2c..305c7a1a33 100644 --- a/__utils__/prepare/package.json +++ b/__utils__/prepare/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/prepare", - "version": "0.0.87", + "version": "0.0.88", "main": "lib/index.js", "types": "lib/index.d.ts", "dependencies": { diff --git a/__utils__/test-fixtures/CHANGELOG.md b/__utils__/test-fixtures/CHANGELOG.md index 78e2d17b14..5a6ce25ce3 100644 --- a/__utils__/test-fixtures/CHANGELOG.md +++ b/__utils__/test-fixtures/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/test-fixtures +## 0.1.18 + +### Patch Changes + +- @pnpm/prepare@0.0.88 + ## 0.1.17 ### Patch Changes diff --git a/__utils__/test-fixtures/package.json b/__utils__/test-fixtures/package.json index 4e1a04c758..5a2eef3843 100644 --- a/__utils__/test-fixtures/package.json +++ b/__utils__/test-fixtures/package.json @@ -1,7 +1,7 @@ { "name": "@pnpm/test-fixtures", "description": "Test fixtures", - "version": "0.1.17", + "version": "0.1.18", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io", diff --git a/cli/cli-utils/CHANGELOG.md b/cli/cli-utils/CHANGELOG.md index 95032e423c..0a074d2ff3 100644 --- a/cli/cli-utils/CHANGELOG.md +++ b/cli/cli-utils/CHANGELOG.md @@ -1,5 +1,13 @@ # @pnpm/cli-utils +## 2.1.8 + +### Patch Changes + +- Updated dependencies [d9564e354] + - @pnpm/config@20.4.1 + - @pnpm/default-reporter@12.4.12 + ## 2.1.7 ### Patch Changes diff --git a/cli/cli-utils/package.json b/cli/cli-utils/package.json index b87ea87503..1e992aca97 100644 --- a/cli/cli-utils/package.json +++ b/cli/cli-utils/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/cli-utils", - "version": "2.1.7", + "version": "2.1.8", "description": "Utils for pnpm commands", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/cli/default-reporter/CHANGELOG.md b/cli/default-reporter/CHANGELOG.md index 64847918aa..7a71dcea6d 100644 --- a/cli/default-reporter/CHANGELOG.md +++ b/cli/default-reporter/CHANGELOG.md @@ -1,5 +1,12 @@ # @pnpm/default-reporter +## 12.4.12 + +### Patch Changes + +- Updated dependencies [d9564e354] + - @pnpm/config@20.4.1 + ## 12.4.11 ### Patch Changes diff --git a/cli/default-reporter/package.json b/cli/default-reporter/package.json index 5ee70168d9..c70c5adf44 100644 --- a/cli/default-reporter/package.json +++ b/cli/default-reporter/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/default-reporter", - "version": "12.4.11", + "version": "12.4.12", "description": "The default reporter of pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/config/config/CHANGELOG.md b/config/config/CHANGELOG.md index f78c6f4b90..973ecaef93 100644 --- a/config/config/CHANGELOG.md +++ b/config/config/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/config +## 20.4.1 + +### Patch Changes + +- d9564e354: Resolve the current working directory to its real location before doing any operations [#6524](https://github.com/pnpm/pnpm/issues/6524). + ## 20.4.0 ### Minor Changes diff --git a/config/config/package.json b/config/config/package.json index 06a8db14b1..c3e0c7b85e 100644 --- a/config/config/package.json +++ b/config/config/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/config", - "version": "20.4.0", + "version": "20.4.1", "description": "Gets configuration options for pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/config/plugin-commands-config/CHANGELOG.md b/config/plugin-commands-config/CHANGELOG.md index c65e0588d1..4451f34c0b 100644 --- a/config/plugin-commands-config/CHANGELOG.md +++ b/config/plugin-commands-config/CHANGELOG.md @@ -1,5 +1,16 @@ # @pnpm/plugin-commands-config +## 2.0.34 + +### Patch Changes + +- Updated dependencies [5a5e42551] +- Updated dependencies [d9564e354] +- Updated dependencies [5a5e42551] + - @pnpm/run-npm@6.1.0 + - @pnpm/config@20.4.1 + - @pnpm/cli-utils@2.1.8 + ## 2.0.33 ### Patch Changes diff --git a/config/plugin-commands-config/package.json b/config/plugin-commands-config/package.json index 6597190b34..5eda5dcd96 100644 --- a/config/plugin-commands-config/package.json +++ b/config/plugin-commands-config/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-config", - "version": "2.0.33", + "version": "2.0.34", "description": "Commands for reading and writing settings to/from config files", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/deps/graph-builder/CHANGELOG.md b/deps/graph-builder/CHANGELOG.md index 290ae51770..6a3d0abcee 100644 --- a/deps/graph-builder/CHANGELOG.md +++ b/deps/graph-builder/CHANGELOG.md @@ -1,5 +1,12 @@ # @pnpm/deps.graph-builder +## 0.2.7 + +### Patch Changes + +- Updated dependencies [d349bc3a2] + - @pnpm/modules-yaml@12.1.7 + ## 0.2.6 ### Patch Changes diff --git a/deps/graph-builder/package.json b/deps/graph-builder/package.json index 95421da6c3..02fc85c769 100644 --- a/deps/graph-builder/package.json +++ b/deps/graph-builder/package.json @@ -1,7 +1,7 @@ { "name": "@pnpm/deps.graph-builder", "description": "A package for building a dependency graph from a lockfile", - "version": "0.2.6", + "version": "0.2.7", "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, diff --git a/env/plugin-commands-env/CHANGELOG.md b/env/plugin-commands-env/CHANGELOG.md index 8077783248..b81c97634b 100644 --- a/env/plugin-commands-env/CHANGELOG.md +++ b/env/plugin-commands-env/CHANGELOG.md @@ -1,5 +1,16 @@ # @pnpm/plugin-commands-env +## 4.1.20 + +### Patch Changes + +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/cli-utils@2.1.8 + - @pnpm/node.fetcher@3.0.37 + ## 4.1.19 ### Patch Changes diff --git a/env/plugin-commands-env/package.json b/env/plugin-commands-env/package.json index 4e67ae8aef..9c4e4434ed 100644 --- a/env/plugin-commands-env/package.json +++ b/env/plugin-commands-env/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-env", - "version": "4.1.19", + "version": "4.1.20", "description": "pnpm commands for managing Node.js", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/exec/plugin-commands-rebuild/CHANGELOG.md b/exec/plugin-commands-rebuild/CHANGELOG.md index fdc162b0e1..9fdca9620b 100644 --- a/exec/plugin-commands-rebuild/CHANGELOG.md +++ b/exec/plugin-commands-rebuild/CHANGELOG.md @@ -1,5 +1,20 @@ # @pnpm/plugin-commands-rebuild +## 10.0.15 + +### Patch Changes + +- Updated dependencies [d349bc3a2] +- Updated dependencies [d9564e354] + - @pnpm/modules-yaml@12.1.7 + - @pnpm/config@20.4.1 + - @pnpm/get-context@10.0.10 + - @pnpm/store-connection-manager@7.0.24 + - @pnpm/cli-utils@2.1.8 + - @pnpm/workspace.find-packages@1.1.9 + - @pnpm/lifecycle@16.0.10 + - @pnpm/link-bins@9.0.12 + ## 10.0.14 ### Patch Changes diff --git a/exec/plugin-commands-rebuild/package.json b/exec/plugin-commands-rebuild/package.json index 4d9691bb6e..f01e5f4a2e 100644 --- a/exec/plugin-commands-rebuild/package.json +++ b/exec/plugin-commands-rebuild/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-rebuild", - "version": "10.0.14", + "version": "10.0.15", "description": "Commands for rebuilding dependencies", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/exec/plugin-commands-script-runners/CHANGELOG.md b/exec/plugin-commands-script-runners/CHANGELOG.md index 214b2eff2c..ca3a80a47d 100644 --- a/exec/plugin-commands-script-runners/CHANGELOG.md +++ b/exec/plugin-commands-script-runners/CHANGELOG.md @@ -1,5 +1,17 @@ # @pnpm/plugin-commands-script-runners +## 8.0.19 + +### Patch Changes + +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/plugin-commands-installation@14.1.2 + - @pnpm/cli-utils@2.1.8 + - @pnpm/lifecycle@16.0.10 + ## 8.0.18 ### Patch Changes diff --git a/exec/plugin-commands-script-runners/package.json b/exec/plugin-commands-script-runners/package.json index 826f71e9f1..63b10f47a1 100644 --- a/exec/plugin-commands-script-runners/package.json +++ b/exec/plugin-commands-script-runners/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-script-runners", - "version": "8.0.18", + "version": "8.0.19", "description": "Commands for running scripts", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/exec/run-npm/CHANGELOG.md b/exec/run-npm/CHANGELOG.md index ef84337482..c4a076f023 100644 --- a/exec/run-npm/CHANGELOG.md +++ b/exec/run-npm/CHANGELOG.md @@ -1,5 +1,12 @@ # @pnpm/run-npm +## 6.1.0 + +### Minor Changes + +- 5a5e42551: Allow to set custom env. +- 5a5e42551: Allow using token helpers in `pnpm publish` [#7316](https://github.com/pnpm/pnpm/issues/7316). + ## 6.0.0 ### Major Changes diff --git a/exec/run-npm/package.json b/exec/run-npm/package.json index 7b9bb7a66e..eb730019c7 100644 --- a/exec/run-npm/package.json +++ b/exec/run-npm/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/run-npm", - "version": "6.0.0", + "version": "6.1.0", "description": "Runs the npm CLI", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/lockfile/audit/CHANGELOG.md b/lockfile/audit/CHANGELOG.md index 8ddb1149c6..f8ca809888 100644 --- a/lockfile/audit/CHANGELOG.md +++ b/lockfile/audit/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/audit +## 7.0.24 + +### Patch Changes + +- @pnpm/list@9.1.9 + ## 7.0.23 ### Patch Changes diff --git a/lockfile/audit/package.json b/lockfile/audit/package.json index ec0704f710..263c593e09 100644 --- a/lockfile/audit/package.json +++ b/lockfile/audit/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/audit", - "version": "7.0.23", + "version": "7.0.24", "description": "Audit a lockfile", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/lockfile/plugin-commands-audit/CHANGELOG.md b/lockfile/plugin-commands-audit/CHANGELOG.md index 44bf61fae1..ac6222aebc 100644 --- a/lockfile/plugin-commands-audit/CHANGELOG.md +++ b/lockfile/plugin-commands-audit/CHANGELOG.md @@ -1,5 +1,16 @@ # @pnpm/plugin-commands-audit +## 9.0.10 + +### Patch Changes + +- Updated dependencies [5a5e42551] +- Updated dependencies [d9564e354] + - @pnpm/network.auth-header@2.2.0 + - @pnpm/config@20.4.1 + - @pnpm/cli-utils@2.1.8 + - @pnpm/audit@7.0.24 + ## 9.0.9 ### Patch Changes diff --git a/lockfile/plugin-commands-audit/package.json b/lockfile/plugin-commands-audit/package.json index cdc3bed0c1..0abf06519d 100644 --- a/lockfile/plugin-commands-audit/package.json +++ b/lockfile/plugin-commands-audit/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-audit", - "version": "9.0.9", + "version": "9.0.10", "description": "pnpm commands for dependencies audit", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/modules-mounter/daemon/CHANGELOG.md b/modules-mounter/daemon/CHANGELOG.md index c02f8ea16e..7f681dbd87 100644 --- a/modules-mounter/daemon/CHANGELOG.md +++ b/modules-mounter/daemon/CHANGELOG.md @@ -1,5 +1,14 @@ # @pnpm/mount-modules +## 0.4.36 + +### Patch Changes + +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + ## 0.4.35 ### Patch Changes diff --git a/modules-mounter/daemon/package.json b/modules-mounter/daemon/package.json index 3a832abfd6..0883aa2142 100644 --- a/modules-mounter/daemon/package.json +++ b/modules-mounter/daemon/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/mount-modules", - "version": "0.4.35", + "version": "0.4.36", "description": "Mounts a node_modules directory with FUSE", "main": "lib/index.js", "bin": "bin/mount-modules.js", diff --git a/network/auth-header/CHANGELOG.md b/network/auth-header/CHANGELOG.md index 0bf1eddf1f..c83ef4251a 100644 --- a/network/auth-header/CHANGELOG.md +++ b/network/auth-header/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/network.auth-header +## 2.2.0 + +### Minor Changes + +- 5a5e42551: Export the loadToken function. + ## 2.1.0 ### Minor Changes diff --git a/network/auth-header/package.json b/network/auth-header/package.json index 0da5c801ff..8611620fc9 100644 --- a/network/auth-header/package.json +++ b/network/auth-header/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/network.auth-header", - "version": "2.1.0", + "version": "2.2.0", "description": "Gets the authorization header for the given URI", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/plugin-commands-doctor/CHANGELOG.md b/packages/plugin-commands-doctor/CHANGELOG.md index 61eee3fba4..8fba6fbe0b 100644 --- a/packages/plugin-commands-doctor/CHANGELOG.md +++ b/packages/plugin-commands-doctor/CHANGELOG.md @@ -1,5 +1,13 @@ # @pnpm/plugin-commands-doctor +## 2.0.33 + +### Patch Changes + +- Updated dependencies [d9564e354] + - @pnpm/config@20.4.1 + - @pnpm/cli-utils@2.1.8 + ## 2.0.32 ### Patch Changes diff --git a/packages/plugin-commands-doctor/package.json b/packages/plugin-commands-doctor/package.json index 96f5f7f255..b83cbcdbcd 100644 --- a/packages/plugin-commands-doctor/package.json +++ b/packages/plugin-commands-doctor/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-doctor", - "version": "2.0.32", + "version": "2.0.33", "description": "Commands for checks of known common issues ", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/plugin-commands-init/CHANGELOG.md b/packages/plugin-commands-init/CHANGELOG.md index 1f7df6cf1f..09ba03cf0e 100644 --- a/packages/plugin-commands-init/CHANGELOG.md +++ b/packages/plugin-commands-init/CHANGELOG.md @@ -1,5 +1,13 @@ # @pnpm/plugin-commands-init +## 3.0.33 + +### Patch Changes + +- Updated dependencies [d9564e354] + - @pnpm/config@20.4.1 + - @pnpm/cli-utils@2.1.8 + ## 3.0.32 ### Patch Changes diff --git a/packages/plugin-commands-init/package.json b/packages/plugin-commands-init/package.json index e9d443e1fd..1256d3bd9d 100644 --- a/packages/plugin-commands-init/package.json +++ b/packages/plugin-commands-init/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-init", - "version": "3.0.32", + "version": "3.0.33", "description": "Create a package.json file", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/plugin-commands-setup/CHANGELOG.md b/packages/plugin-commands-setup/CHANGELOG.md index fc7230d038..89deeb4613 100644 --- a/packages/plugin-commands-setup/CHANGELOG.md +++ b/packages/plugin-commands-setup/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/plugin-commands-setup +## 4.0.33 + +### Patch Changes + +- @pnpm/cli-utils@2.1.8 + ## 4.0.32 ### Patch Changes diff --git a/packages/plugin-commands-setup/package.json b/packages/plugin-commands-setup/package.json index 0d8a5c982e..b0eef09338 100644 --- a/packages/plugin-commands-setup/package.json +++ b/packages/plugin-commands-setup/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-setup", - "version": "4.0.32", + "version": "4.0.33", "description": "pnpm commands for setting up pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/patching/plugin-commands-patching/CHANGELOG.md b/patching/plugin-commands-patching/CHANGELOG.md index 107f60697c..d14780d052 100644 --- a/patching/plugin-commands-patching/CHANGELOG.md +++ b/patching/plugin-commands-patching/CHANGELOG.md @@ -1,5 +1,18 @@ # @pnpm/plugin-commands-patching +## 5.0.18 + +### Patch Changes + +- Updated dependencies [d349bc3a2] +- Updated dependencies [d9564e354] + - @pnpm/modules-yaml@12.1.7 + - @pnpm/config@20.4.1 + - @pnpm/plugin-commands-installation@14.1.2 + - @pnpm/store-connection-manager@7.0.24 + - @pnpm/cli-utils@2.1.8 + - @pnpm/patching.apply-patch@2.0.5 + ## 5.0.17 ### Patch Changes diff --git a/patching/plugin-commands-patching/package.json b/patching/plugin-commands-patching/package.json index 0a9903bab1..1b94e0ec55 100644 --- a/patching/plugin-commands-patching/package.json +++ b/patching/plugin-commands-patching/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-patching", - "version": "5.0.17", + "version": "5.0.18", "description": "Commands for creating patches", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/pkg-manager/client/CHANGELOG.md b/pkg-manager/client/CHANGELOG.md index 3db5d7c26e..d9533079b7 100644 --- a/pkg-manager/client/CHANGELOG.md +++ b/pkg-manager/client/CHANGELOG.md @@ -1,5 +1,14 @@ # @pnpm/client +## 10.0.44 + +### Patch Changes + +- Updated dependencies [5a5e42551] + - @pnpm/network.auth-header@2.2.0 + - @pnpm/directory-fetcher@7.0.9 + - @pnpm/tarball-fetcher@18.0.17 + ## 10.0.43 ### Patch Changes diff --git a/pkg-manager/client/package.json b/pkg-manager/client/package.json index 8d55363a1e..079ee58fef 100644 --- a/pkg-manager/client/package.json +++ b/pkg-manager/client/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/client", - "version": "10.0.43", + "version": "10.0.44", "description": "Creates the package resolve and fetch functions", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/pkg-manager/core/CHANGELOG.md b/pkg-manager/core/CHANGELOG.md index a6b881a11f..c2884fcca0 100644 --- a/pkg-manager/core/CHANGELOG.md +++ b/pkg-manager/core/CHANGELOG.md @@ -1,5 +1,21 @@ # @pnpm/core +## 13.3.2 + +### Patch Changes + +- ff10acade: When `hoisted-workspace-packages` is `true` don't hoist the root package even if it has a name. Otherwise we would create a circular symlink. +- Updated dependencies [d349bc3a2] +- Updated dependencies [ff10acade] + - @pnpm/modules-yaml@12.1.7 + - @pnpm/headless@22.4.2 + - @pnpm/get-context@10.0.10 + - @pnpm/package-requester@24.1.7 + - @pnpm/symlink-dependency@7.1.4 + - @pnpm/crypto.base32-hash@2.0.0 + - @pnpm/lifecycle@16.0.10 + - @pnpm/link-bins@9.0.12 + ## 13.3.1 ### Patch Changes diff --git a/pkg-manager/core/package.json b/pkg-manager/core/package.json index 38b5a26a4a..b838ac8503 100644 --- a/pkg-manager/core/package.json +++ b/pkg-manager/core/package.json @@ -1,7 +1,7 @@ { "name": "@pnpm/core", "description": "Fast, disk space efficient installation engine", - "version": "13.3.1", + "version": "13.3.2", "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, diff --git a/pkg-manager/get-context/CHANGELOG.md b/pkg-manager/get-context/CHANGELOG.md index 65ba9025d9..3d6be12350 100644 --- a/pkg-manager/get-context/CHANGELOG.md +++ b/pkg-manager/get-context/CHANGELOG.md @@ -1,5 +1,13 @@ # @pnpm/get-context +## 10.0.10 + +### Patch Changes + +- Updated dependencies [d349bc3a2] + - @pnpm/modules-yaml@12.1.7 + - @pnpm/read-projects-context@8.0.11 + ## 10.0.9 ### Patch Changes diff --git a/pkg-manager/get-context/package.json b/pkg-manager/get-context/package.json index 213401e968..32a4fb662c 100644 --- a/pkg-manager/get-context/package.json +++ b/pkg-manager/get-context/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/get-context", - "version": "10.0.9", + "version": "10.0.10", "description": "Gets context information about a project", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/pkg-manager/headless/CHANGELOG.md b/pkg-manager/headless/CHANGELOG.md index ca4974dc63..26a79191e1 100644 --- a/pkg-manager/headless/CHANGELOG.md +++ b/pkg-manager/headless/CHANGELOG.md @@ -1,5 +1,18 @@ # @pnpm/headless +## 22.4.2 + +### Patch Changes + +- ff10acade: When `hoisted-workspace-packages` is `true` don't hoist the root package even if it has a name. Otherwise we would create a circular symlink. +- Updated dependencies [d349bc3a2] + - @pnpm/modules-yaml@12.1.7 + - @pnpm/deps.graph-builder@0.2.7 + - @pnpm/package-requester@24.1.7 + - @pnpm/symlink-dependency@7.1.4 + - @pnpm/lifecycle@16.0.10 + - @pnpm/link-bins@9.0.12 + ## 22.4.1 ### Patch Changes diff --git a/pkg-manager/headless/package.json b/pkg-manager/headless/package.json index 3c2db7edae..2319fe8f86 100644 --- a/pkg-manager/headless/package.json +++ b/pkg-manager/headless/package.json @@ -1,7 +1,7 @@ { "name": "@pnpm/headless", "description": "Fast installation using only pnpm-lock.yaml", - "version": "22.4.1", + "version": "22.4.2", "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, diff --git a/pkg-manager/modules-yaml/CHANGELOG.md b/pkg-manager/modules-yaml/CHANGELOG.md index 39c9f2e208..1103bf1d0d 100644 --- a/pkg-manager/modules-yaml/CHANGELOG.md +++ b/pkg-manager/modules-yaml/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/modules-yaml +## 12.1.7 + +### Patch Changes + +- d349bc3a2: readModulesYaml should not crash on empty file. + ## 12.1.6 ### Patch Changes diff --git a/pkg-manager/modules-yaml/package.json b/pkg-manager/modules-yaml/package.json index 80cd659926..b90b48f7d8 100644 --- a/pkg-manager/modules-yaml/package.json +++ b/pkg-manager/modules-yaml/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/modules-yaml", - "version": "12.1.6", + "version": "12.1.7", "description": "Reads/writes `node_modules/.modules.yaml`", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/pkg-manager/plugin-commands-installation/CHANGELOG.md b/pkg-manager/plugin-commands-installation/CHANGELOG.md index 4cc089337e..68c2a82a97 100644 --- a/pkg-manager/plugin-commands-installation/CHANGELOG.md +++ b/pkg-manager/plugin-commands-installation/CHANGELOG.md @@ -1,5 +1,21 @@ # @pnpm/plugin-commands-installation +## 14.1.2 + +### Patch Changes + +- Updated dependencies [d9564e354] +- Updated dependencies [ff10acade] + - @pnpm/config@20.4.1 + - @pnpm/core@13.3.2 + - @pnpm/plugin-commands-rebuild@10.0.15 + - @pnpm/outdated@13.0.40 + - @pnpm/store-connection-manager@7.0.24 + - @pnpm/cli-utils@2.1.8 + - @pnpm/package-store@19.0.14 + - @pnpm/workspace.find-packages@1.1.9 + - @pnpm/filter-workspace-packages@7.2.10 + ## 14.1.1 ### Patch Changes diff --git a/pkg-manager/plugin-commands-installation/package.json b/pkg-manager/plugin-commands-installation/package.json index 0736718e3a..61be019f37 100644 --- a/pkg-manager/plugin-commands-installation/package.json +++ b/pkg-manager/plugin-commands-installation/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-installation", - "version": "14.1.1", + "version": "14.1.2", "description": "Commands for installation", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/pkg-manager/read-projects-context/CHANGELOG.md b/pkg-manager/read-projects-context/CHANGELOG.md index 5d64c85cc4..385661831e 100644 --- a/pkg-manager/read-projects-context/CHANGELOG.md +++ b/pkg-manager/read-projects-context/CHANGELOG.md @@ -1,5 +1,12 @@ # @pnpm/read-projects-context +## 8.0.11 + +### Patch Changes + +- Updated dependencies [d349bc3a2] + - @pnpm/modules-yaml@12.1.7 + ## 8.0.10 ### Patch Changes diff --git a/pkg-manager/read-projects-context/package.json b/pkg-manager/read-projects-context/package.json index ac27c76ffb..046f529d58 100644 --- a/pkg-manager/read-projects-context/package.json +++ b/pkg-manager/read-projects-context/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/read-projects-context", - "version": "8.0.10", + "version": "8.0.11", "description": "Reads the current state of projects from modules manifest", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/pnpm/CHANGELOG.md b/pnpm/CHANGELOG.md index e0e14b4ce0..1a4e7040ba 100644 --- a/pnpm/CHANGELOG.md +++ b/pnpm/CHANGELOG.md @@ -1,5 +1,14 @@ # pnpm +## 8.14.1 + +### Patch Changes + +- Resolve the current working directory to its real location before doing any operations [#6524](https://github.com/pnpm/pnpm/issues/6524). +- Allow using token helpers in `pnpm publish` [#7316](https://github.com/pnpm/pnpm/issues/7316). +- Handle Git repository names containing capital letters [#7488](https://github.com/pnpm/pnpm/pull/7488). +- When `hoisted-workspace-packages` is `true` don't hoist the root package even if it has a name. Otherwise we would create a circular symlink. + ## 8.14.0 ### Minor Changes diff --git a/pnpm/artifacts/exe/package.json b/pnpm/artifacts/exe/package.json index 8fd707d8d6..abe9d548ed 100644 --- a/pnpm/artifacts/exe/package.json +++ b/pnpm/artifacts/exe/package.json @@ -1,7 +1,7 @@ { "name": "@pnpm/exe", "description": "Fast, disk space efficient package manager", - "version": "8.14.0", + "version": "8.14.1", "publishConfig": { "tag": "next-8", "bin": { diff --git a/pnpm/artifacts/linux-arm64/package.json b/pnpm/artifacts/linux-arm64/package.json index 6dd315083d..8f10bcb64f 100644 --- a/pnpm/artifacts/linux-arm64/package.json +++ b/pnpm/artifacts/linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/linux-arm64", - "version": "8.14.0", + "version": "8.14.1", "license": "MIT", "publishConfig": { "bin": { diff --git a/pnpm/artifacts/linux-x64/package.json b/pnpm/artifacts/linux-x64/package.json index d8a7361c36..1a3c2c620d 100644 --- a/pnpm/artifacts/linux-x64/package.json +++ b/pnpm/artifacts/linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/linux-x64", - "version": "8.14.0", + "version": "8.14.1", "license": "MIT", "publishConfig": { "bin": { diff --git a/pnpm/artifacts/macos-arm64/package.json b/pnpm/artifacts/macos-arm64/package.json index d17af623dc..000e38fa98 100644 --- a/pnpm/artifacts/macos-arm64/package.json +++ b/pnpm/artifacts/macos-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/macos-arm64", - "version": "8.14.0", + "version": "8.14.1", "license": "MIT", "publishConfig": { "bin": { diff --git a/pnpm/artifacts/macos-x64/package.json b/pnpm/artifacts/macos-x64/package.json index c95b9ce7c5..d71dbf066f 100644 --- a/pnpm/artifacts/macos-x64/package.json +++ b/pnpm/artifacts/macos-x64/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/macos-x64", - "version": "8.14.0", + "version": "8.14.1", "license": "MIT", "publishConfig": { "bin": { diff --git a/pnpm/artifacts/win-x64/package.json b/pnpm/artifacts/win-x64/package.json index 13d0cbcc2d..f03c0673b3 100644 --- a/pnpm/artifacts/win-x64/package.json +++ b/pnpm/artifacts/win-x64/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/win-x64", - "version": "8.14.0", + "version": "8.14.1", "license": "MIT", "publishConfig": { "bin": { diff --git a/pnpm/package.json b/pnpm/package.json index 966a26ae0b..7669af9d9a 100644 --- a/pnpm/package.json +++ b/pnpm/package.json @@ -1,7 +1,7 @@ { "name": "pnpm", "description": "Fast, disk space efficient package manager", - "version": "8.14.0", + "version": "8.14.1", "bin": { "pnpm": "bin/pnpm.cjs", "pnpx": "bin/pnpx.cjs" diff --git a/releasing/plugin-commands-deploy/CHANGELOG.md b/releasing/plugin-commands-deploy/CHANGELOG.md index ba68d36619..7a9da580a6 100644 --- a/releasing/plugin-commands-deploy/CHANGELOG.md +++ b/releasing/plugin-commands-deploy/CHANGELOG.md @@ -1,5 +1,14 @@ # @pnpm/plugin-commands-deploy +## 4.0.18 + +### Patch Changes + +- @pnpm/plugin-commands-installation@14.1.2 +- @pnpm/cli-utils@2.1.8 +- @pnpm/fs.indexed-pkg-importer@5.0.12 +- @pnpm/directory-fetcher@7.0.9 + ## 4.0.17 ### Patch Changes diff --git a/releasing/plugin-commands-deploy/package.json b/releasing/plugin-commands-deploy/package.json index e673ac0576..fdd3590a99 100644 --- a/releasing/plugin-commands-deploy/package.json +++ b/releasing/plugin-commands-deploy/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-deploy", - "version": "4.0.17", + "version": "4.0.18", "description": "Commands for deploy", "funding": "https://opencollective.com/pnpm", "main": "lib/index.js", diff --git a/releasing/plugin-commands-publishing/CHANGELOG.md b/releasing/plugin-commands-publishing/CHANGELOG.md index da322e70d3..c51d37d6e8 100644 --- a/releasing/plugin-commands-publishing/CHANGELOG.md +++ b/releasing/plugin-commands-publishing/CHANGELOG.md @@ -1,5 +1,23 @@ # @pnpm/plugin-commands-publishing +## 7.5.0 + +### Minor Changes + +- 5a5e42551: Allow using token helpers in `pnpm publish` [#7316](https://github.com/pnpm/pnpm/issues/7316). + +### Patch Changes + +- Updated dependencies [5a5e42551] +- Updated dependencies [d9564e354] +- Updated dependencies [5a5e42551] + - @pnpm/run-npm@6.1.0 + - @pnpm/config@20.4.1 + - @pnpm/client@10.0.44 + - @pnpm/cli-utils@2.1.8 + - @pnpm/exportable-manifest@5.0.11 + - @pnpm/lifecycle@16.0.10 + ## 7.4.13 ### Patch Changes diff --git a/releasing/plugin-commands-publishing/package.json b/releasing/plugin-commands-publishing/package.json index ad9afd6548..d075f15883 100644 --- a/releasing/plugin-commands-publishing/package.json +++ b/releasing/plugin-commands-publishing/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-publishing", - "version": "7.4.13", + "version": "7.5.0", "description": "The pack and publish commands of pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/reviewing/dependencies-hierarchy/CHANGELOG.md b/reviewing/dependencies-hierarchy/CHANGELOG.md index 52d319d5f5..9ea1a00a0e 100644 --- a/reviewing/dependencies-hierarchy/CHANGELOG.md +++ b/reviewing/dependencies-hierarchy/CHANGELOG.md @@ -1,5 +1,12 @@ # @pnpm/reviewing.dependencies-hierarchy +## 2.1.8 + +### Patch Changes + +- Updated dependencies [d349bc3a2] + - @pnpm/modules-yaml@12.1.7 + ## 2.1.7 ### Patch Changes diff --git a/reviewing/dependencies-hierarchy/package.json b/reviewing/dependencies-hierarchy/package.json index eb317b7f81..c25e34ea32 100644 --- a/reviewing/dependencies-hierarchy/package.json +++ b/reviewing/dependencies-hierarchy/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/reviewing.dependencies-hierarchy", - "version": "2.1.7", + "version": "2.1.8", "description": "Creates a dependencies hierarchy for a symlinked `node_modules`", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/reviewing/license-scanner/CHANGELOG.md b/reviewing/license-scanner/CHANGELOG.md index 8aeeef8409..427f226406 100644 --- a/reviewing/license-scanner/CHANGELOG.md +++ b/reviewing/license-scanner/CHANGELOG.md @@ -1,5 +1,13 @@ # @pnpm/license-scanner +## 2.2.9 + +### Patch Changes + +- fe737aeb4: Output license information for a deterministic version when multiple versions of a single package are depended on +- dcf3ef7e4: Handle Git repository names containing capital letters [#7488](https://github.com/pnpm/pnpm/pull/7488). + - @pnpm/directory-fetcher@7.0.9 + ## 2.2.8 ### Patch Changes diff --git a/reviewing/license-scanner/package.json b/reviewing/license-scanner/package.json index 71ec54a185..e033258172 100644 --- a/reviewing/license-scanner/package.json +++ b/reviewing/license-scanner/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/license-scanner", - "version": "2.2.8", + "version": "2.2.9", "description": "Check for licenses packages", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/reviewing/list/CHANGELOG.md b/reviewing/list/CHANGELOG.md index 4c7ca8ff7b..3e81bbea89 100644 --- a/reviewing/list/CHANGELOG.md +++ b/reviewing/list/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/list +## 9.1.9 + +### Patch Changes + +- @pnpm/reviewing.dependencies-hierarchy@2.1.8 + ## 9.1.8 ### Patch Changes diff --git a/reviewing/list/package.json b/reviewing/list/package.json index 8cff97aa3b..54e0ba4d06 100644 --- a/reviewing/list/package.json +++ b/reviewing/list/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/list", - "version": "9.1.8", + "version": "9.1.9", "description": "List installed packages in a symlinked `node_modules`", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/reviewing/outdated/CHANGELOG.md b/reviewing/outdated/CHANGELOG.md index 4375205464..796e9d703c 100644 --- a/reviewing/outdated/CHANGELOG.md +++ b/reviewing/outdated/CHANGELOG.md @@ -1,5 +1,14 @@ # @pnpm/outdated +## 13.0.40 + +### Patch Changes + +- Updated dependencies [d349bc3a2] + - @pnpm/modules-yaml@12.1.7 + - @pnpm/client@10.0.44 + - @pnpm/npm-resolver@18.0.2 + ## 13.0.39 ### Patch Changes diff --git a/reviewing/outdated/package.json b/reviewing/outdated/package.json index def512545f..01acfca047 100644 --- a/reviewing/outdated/package.json +++ b/reviewing/outdated/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/outdated", - "version": "13.0.39", + "version": "13.0.40", "description": "Check for outdated packages", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/reviewing/plugin-commands-licenses/CHANGELOG.md b/reviewing/plugin-commands-licenses/CHANGELOG.md index b39f45b2c0..d4bcce5687 100644 --- a/reviewing/plugin-commands-licenses/CHANGELOG.md +++ b/reviewing/plugin-commands-licenses/CHANGELOG.md @@ -1,5 +1,19 @@ # @pnpm/plugin-commands-licenses +## 3.0.12 + +### Patch Changes + +- dcf3ef7e4: Handle Git repository names containing capital letters [#7488](https://github.com/pnpm/pnpm/pull/7488). +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] +- Updated dependencies [fe737aeb4] +- Updated dependencies [dcf3ef7e4] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/license-scanner@2.2.9 + - @pnpm/cli-utils@2.1.8 + ## 3.0.11 ### Patch Changes diff --git a/reviewing/plugin-commands-licenses/package.json b/reviewing/plugin-commands-licenses/package.json index ef38f3a0e5..173305fe22 100644 --- a/reviewing/plugin-commands-licenses/package.json +++ b/reviewing/plugin-commands-licenses/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-licenses", - "version": "3.0.11", + "version": "3.0.12", "description": "The licenses command of pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/reviewing/plugin-commands-listing/CHANGELOG.md b/reviewing/plugin-commands-listing/CHANGELOG.md index bb972f100f..03b6989c6e 100644 --- a/reviewing/plugin-commands-listing/CHANGELOG.md +++ b/reviewing/plugin-commands-listing/CHANGELOG.md @@ -1,5 +1,14 @@ # @pnpm/plugin-commands-listing +## 8.0.10 + +### Patch Changes + +- Updated dependencies [d9564e354] + - @pnpm/config@20.4.1 + - @pnpm/cli-utils@2.1.8 + - @pnpm/list@9.1.9 + ## 8.0.9 ### Patch Changes diff --git a/reviewing/plugin-commands-listing/package.json b/reviewing/plugin-commands-listing/package.json index c6efb1a2a2..79c107f587 100644 --- a/reviewing/plugin-commands-listing/package.json +++ b/reviewing/plugin-commands-listing/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-listing", - "version": "8.0.9", + "version": "8.0.10", "description": "The list and why commands of pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/reviewing/plugin-commands-outdated/CHANGELOG.md b/reviewing/plugin-commands-outdated/CHANGELOG.md index 5142a1b687..12d960d171 100644 --- a/reviewing/plugin-commands-outdated/CHANGELOG.md +++ b/reviewing/plugin-commands-outdated/CHANGELOG.md @@ -1,5 +1,18 @@ # @pnpm/plugin-commands-outdated +## 10.0.15 + +### Patch Changes + +- Updated dependencies [d349bc3a2] +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/modules-yaml@12.1.7 + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/outdated@13.0.40 + - @pnpm/cli-utils@2.1.8 + ## 10.0.14 ### Patch Changes diff --git a/reviewing/plugin-commands-outdated/package.json b/reviewing/plugin-commands-outdated/package.json index b6e5c3d0bc..41a9e7a04e 100644 --- a/reviewing/plugin-commands-outdated/package.json +++ b/reviewing/plugin-commands-outdated/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-outdated", - "version": "10.0.14", + "version": "10.0.15", "description": "The outdated command of pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/store/plugin-commands-server/CHANGELOG.md b/store/plugin-commands-server/CHANGELOG.md index acdf810583..821ab19de5 100644 --- a/store/plugin-commands-server/CHANGELOG.md +++ b/store/plugin-commands-server/CHANGELOG.md @@ -1,5 +1,17 @@ # @pnpm/plugin-commands-server +## 6.0.55 + +### Patch Changes + +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/store-connection-manager@7.0.24 + - @pnpm/cli-utils@2.1.8 + - @pnpm/server@17.0.6 + ## 6.0.54 ### Patch Changes diff --git a/store/plugin-commands-server/package.json b/store/plugin-commands-server/package.json index 1afee20b70..6e1a111e43 100644 --- a/store/plugin-commands-server/package.json +++ b/store/plugin-commands-server/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-server", - "version": "6.0.54", + "version": "6.0.55", "description": "Commands for controlling the store server", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/store/plugin-commands-store-inspecting/CHANGELOG.md b/store/plugin-commands-store-inspecting/CHANGELOG.md index 0367ed47cb..12dc16da7f 100644 --- a/store/plugin-commands-store-inspecting/CHANGELOG.md +++ b/store/plugin-commands-store-inspecting/CHANGELOG.md @@ -1,5 +1,15 @@ # @pnpm/plugin-commands-store-inspecting +## 0.1.3 + +### Patch Changes + +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/client@10.0.44 + ## 0.1.2 ### Patch Changes diff --git a/store/plugin-commands-store-inspecting/package.json b/store/plugin-commands-store-inspecting/package.json index af9513fd5a..18a4d939de 100644 --- a/store/plugin-commands-store-inspecting/package.json +++ b/store/plugin-commands-store-inspecting/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-store-inspecting", - "version": "0.1.2", + "version": "0.1.3", "description": "The inspecting store commands of pnpm", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/store/plugin-commands-store/CHANGELOG.md b/store/plugin-commands-store/CHANGELOG.md index 2abe40f58c..c576e59f49 100644 --- a/store/plugin-commands-store/CHANGELOG.md +++ b/store/plugin-commands-store/CHANGELOG.md @@ -1,5 +1,17 @@ # @pnpm/plugin-commands-store +## 8.1.15 + +### Patch Changes + +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/get-context@10.0.10 + - @pnpm/store-connection-manager@7.0.24 + - @pnpm/cli-utils@2.1.8 + ## 8.1.14 ### Patch Changes diff --git a/store/plugin-commands-store/package.json b/store/plugin-commands-store/package.json index 2409882154..61985b6106 100644 --- a/store/plugin-commands-store/package.json +++ b/store/plugin-commands-store/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/plugin-commands-store", - "version": "8.1.14", + "version": "8.1.15", "description": "Commands for controlling the store", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/store/store-connection-manager/CHANGELOG.md b/store/store-connection-manager/CHANGELOG.md index 88f8a738b9..655609dee7 100644 --- a/store/store-connection-manager/CHANGELOG.md +++ b/store/store-connection-manager/CHANGELOG.md @@ -1,5 +1,17 @@ # @pnpm/store-connection-manager +## 7.0.24 + +### Patch Changes + +- Updated dependencies [37ccff637] +- Updated dependencies [d9564e354] + - @pnpm/store-path@8.0.2 + - @pnpm/config@20.4.1 + - @pnpm/client@10.0.44 + - @pnpm/package-store@19.0.14 + - @pnpm/server@17.0.6 + ## 7.0.23 ### Patch Changes diff --git a/store/store-connection-manager/package.json b/store/store-connection-manager/package.json index 8f80729f16..d5f670134f 100644 --- a/store/store-connection-manager/package.json +++ b/store/store-connection-manager/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/store-connection-manager", - "version": "7.0.23", + "version": "7.0.24", "description": "Create a direct pnpm store controller or connect to a running store server", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/store/store-path/CHANGELOG.md b/store/store-path/CHANGELOG.md index e548a5b7c7..19a36ab139 100644 --- a/store/store-path/CHANGELOG.md +++ b/store/store-path/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/store-path +## 8.0.2 + +### Patch Changes + +- 37ccff637: Throw an error when calculating the store directory without the pnpm home directory. + ## 8.0.1 ### Patch Changes diff --git a/store/store-path/package.json b/store/store-path/package.json index c8ff95c1b5..310922bb36 100644 --- a/store/store-path/package.json +++ b/store/store-path/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/store-path", - "version": "8.0.1", + "version": "8.0.2", "description": "Resolves the pnpm store path", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/workspace/filter-workspace-packages/CHANGELOG.md b/workspace/filter-workspace-packages/CHANGELOG.md index 82a8c93e84..c2e0a32030 100644 --- a/workspace/filter-workspace-packages/CHANGELOG.md +++ b/workspace/filter-workspace-packages/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/filter-workspace-packages +## 7.2.10 + +### Patch Changes + +- @pnpm/workspace.find-packages@1.1.9 + ## 7.2.9 ### Patch Changes diff --git a/workspace/filter-workspace-packages/package.json b/workspace/filter-workspace-packages/package.json index 62e47b3eec..04b01917cd 100644 --- a/workspace/filter-workspace-packages/package.json +++ b/workspace/filter-workspace-packages/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/filter-workspace-packages", - "version": "7.2.9", + "version": "7.2.10", "description": "Filters packages in a workspace", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/workspace/find-packages/CHANGELOG.md b/workspace/find-packages/CHANGELOG.md index b3e682f88e..6ab5f03529 100644 --- a/workspace/find-packages/CHANGELOG.md +++ b/workspace/find-packages/CHANGELOG.md @@ -1,5 +1,11 @@ # @pnpm/find-workspace-packages +## 1.1.9 + +### Patch Changes + +- @pnpm/cli-utils@2.1.8 + ## 1.1.8 ### Patch Changes diff --git a/workspace/find-packages/package.json b/workspace/find-packages/package.json index f3f2cfd7c3..b28fa4a175 100644 --- a/workspace/find-packages/package.json +++ b/workspace/find-packages/package.json @@ -1,6 +1,6 @@ { "name": "@pnpm/workspace.find-packages", - "version": "1.1.8", + "version": "1.1.9", "description": "Finds packages inside a workspace", "main": "lib/index.js", "types": "lib/index.d.ts",