feat!: bump store version to v11 (#10506)

This commit is contained in:
Zoltan Kochan
2026-01-24 21:36:39 +01:00
committed by GitHub
parent 40b107efa7
commit c55c6146d9
5 changed files with 11 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/constants": major
"pnpm": major
---
Store version bumped to v11.

View File

@@ -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.

View File

@@ -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'

View File

@@ -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',
})

View File

@@ -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,