mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 18:46:18 -04:00
feat!: bump store version to v11 (#10506)
This commit is contained in:
6
.changeset/bump-store-version.md
Normal file
6
.changeset/bump-store-version.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/constants": major
|
||||
"pnpm": major
|
||||
---
|
||||
|
||||
Store version bumped to v11.
|
||||
@@ -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.
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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',
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user