diff --git a/.changeset/bump-store-version.md b/.changeset/bump-store-version.md new file mode 100644 index 0000000000..4da2dc19fe --- /dev/null +++ b/.changeset/bump-store-version.md @@ -0,0 +1,6 @@ +--- +"@pnpm/constants": major +"pnpm": major +--- + +Store version bumped to v11. diff --git a/.changeset/global-virtual-store-prune.md b/.changeset/global-virtual-store-prune.md index 6c7f467ddb..4b220075b7 100644 --- a/.changeset/global-virtual-store-prune.md +++ b/.changeset/global-virtual-store-prune.md @@ -6,4 +6,4 @@ Added project registry for global virtual store prune support. -Projects using the store are now registered via symlinks in `{storeDir}/v10/projects/`. This enables `pnpm store prune` to track which packages are still in use by active projects and safely remove unused packages from the global virtual store. +Projects using the store are now registered via symlinks in `{storeDir}/v11/projects/`. This enables `pnpm store prune` to track which packages are still in use by active projects and safely remove unused packages from the global virtual store. diff --git a/packages/constants/src/index.ts b/packages/constants/src/index.ts index 14deae85d0..08a222b453 100644 --- a/packages/constants/src/index.ts +++ b/packages/constants/src/index.ts @@ -6,7 +6,7 @@ export const MANIFEST_BASE_NAMES = ['package.json', 'package.json5', 'package.ya export const ENGINE_NAME = `${process.platform};${process.arch};node${process.version.split('.')[0].substring(1)}` export const LAYOUT_VERSION = 5 -export const STORE_VERSION = 'v10' +export const STORE_VERSION = 'v11' export const GLOBAL_CONFIG_YAML_FILENAME = 'config.yaml' export const WORKSPACE_MANIFEST_FILENAME = 'pnpm-workspace.yaml' diff --git a/pkg-manager/core/test/checkCompatibility.test.ts b/pkg-manager/core/test/checkCompatibility.test.ts index 5eafaddb43..f94954538c 100644 --- a/pkg-manager/core/test/checkCompatibility.test.ts +++ b/pkg-manager/core/test/checkCompatibility.test.ts @@ -8,7 +8,7 @@ test('fail if the store directory changed', () => { storeDir: '/store/v1', } as any, // eslint-disable-line { - storeDir: '/store/v10', + storeDir: '/store/v11', modulesDir: 'node_modules', virtualStoreDir: 'node_modules/.pnpm', }) @@ -22,7 +22,7 @@ test('do not fail if the store directory is of version 3', () => { storeDir: '/store/v3', } as any, // eslint-disable-line { - storeDir: '/store/v10', + storeDir: '/store/v11', modulesDir: 'node_modules', virtualStoreDir: 'node_modules/.pnpm', }) diff --git a/pnpm/test/install/globalVirtualStore.ts b/pnpm/test/install/globalVirtualStore.ts index 7f98667484..8566f08316 100644 --- a/pnpm/test/install/globalVirtualStore.ts +++ b/pnpm/test/install/globalVirtualStore.ts @@ -11,7 +11,7 @@ test('using a global virtual store', async () => { }, }) const storeDir = path.resolve('store') - const globalVirtualStoreDir = path.join(storeDir, 'v10/links') + const globalVirtualStoreDir = path.join(storeDir, 'v11/links') writeYamlFile(path.resolve('pnpm-workspace.yaml'), { ci: false, // We force CI=false because enableGlobalVirtualStore is always disabled in CI enableGlobalVirtualStore: true,