@thorprovider/storefront 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/storefront",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Deterministic storefront scaffolder and installable OpenCode skill suite for Thor Commerce (Next.js, @thorprovider/blocks, @thorprovider/adapters, Medusa)",
5
5
  "type": "module",
6
6
  "bin": "bin/storefront.js",
@@ -43,9 +43,9 @@ export const CANDIDATE_TOOLSET = Object.freeze({
43
43
  '@json-render/next': '0.21.0',
44
44
  }),
45
45
  local: Object.freeze({
46
- '@thorprovider/blocks': '3.0.0',
47
- '@thorprovider/adapters': '5.2.0',
48
- '@thorprovider/runtime': '0.4.0',
46
+ '@thorprovider/blocks': '3.0.1',
47
+ '@thorprovider/adapters': '5.2.1',
48
+ '@thorprovider/runtime': '0.4.1',
49
49
  '@thorprovider/types': '7.0.0',
50
50
  }),
51
51
  })
@@ -340,6 +340,20 @@ export function verifyRegistryArtifact({
340
340
  const target = `package/${value.replace(/^\.\//, '')}`
341
341
  if (!entries[target]) missing.push(target)
342
342
  }
343
+ const workspaceLeaks = []
344
+ for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']) {
345
+ for (const [dependency, range] of Object.entries(manifest[field] ?? {})) {
346
+ if (typeof range === 'string' && range.startsWith('workspace:')) {
347
+ workspaceLeaks.push(`${field}.${dependency}=${range}`)
348
+ }
349
+ }
350
+ }
351
+ if (workspaceLeaks.length > 0) {
352
+ return registryFailure(
353
+ 'E_WORKSPACE_PROTOCOL_LEAK',
354
+ `${name}@${version}: manifest leaks workspace protocol (${workspaceLeaks.join(', ')})`,
355
+ )
356
+ }
343
357
  if (kind === 'blocks') {
344
358
  for (const specifier of blockImports) {
345
359
  const target = blockSpecifierPath(specifier)
@@ -463,7 +477,10 @@ export async function verifyRegistryToolset({
463
477
  const resolved = {}
464
478
  const errors = []
465
479
  for (const [name, version] of Object.entries(pins)) {
466
- const inspect = name === '@thorprovider/blocks' || name === '@thorprovider/runtime'
480
+ const inspect =
481
+ name === '@thorprovider/blocks' ||
482
+ name === '@thorprovider/runtime' ||
483
+ name === '@thorprovider/adapters'
467
484
  const result = await resolveRegistryCandidate({
468
485
  name,
469
486
  version,
@@ -481,7 +498,7 @@ export async function verifyRegistryToolset({
481
498
  tgzPath: result.tgzPath,
482
499
  name,
483
500
  version,
484
- kind: name === '@thorprovider/blocks' ? 'blocks' : 'runtime',
501
+ kind: name === '@thorprovider/blocks' ? 'blocks' : name === '@thorprovider/runtime' ? 'runtime' : 'package',
485
502
  blockImports,
486
503
  runtimeImports,
487
504
  })