@immediately-run/sdk 0.82.0 → 0.82.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/dist/moduleCache.cjs +13 -0
- package/dist/moduleCache.cjs.map +1 -1
- package/dist/moduleCache.js +13 -0
- package/dist/moduleCache.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +4 -3
package/dist/moduleCache.cjs
CHANGED
|
@@ -34,6 +34,19 @@ class ModuleCache {
|
|
|
34
34
|
(0, import_sandboxUtils.addListener)(import_protocol.COMPILE, () => {
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
+
// PROMISE-IDENTITY INVARIANT (the app-frame Suspense replay; pinned by
|
|
38
|
+
// src/boot.suspenseReplay.test.tsx): the promise returned by
|
|
39
|
+
// `getEvaluationContext` for a given key must be THE SAME promise for the
|
|
40
|
+
// whole realm boot. `Include` hands it straight to React's `use()` — a new
|
|
41
|
+
// identity for the same key mid-session re-suspends the boundary and REPLAYS
|
|
42
|
+
// every effect under it while the component instance, refs, DOM and
|
|
43
|
+
// in-flight promise chains survive (the Suspense hide/reveal signature). The
|
|
44
|
+
// invariant holds because the cache lives for the whole boot (one instance
|
|
45
|
+
// per `boot()` call), entries are never evicted (the compile seam above
|
|
46
|
+
// stays disabled), and the key — base-module filepath + module name — is
|
|
47
|
+
// stable for a stable URL. Any change that lets the same key answer a fresh
|
|
48
|
+
// promise (eviction, a scoped compile reset, a re-created cache) re-opens
|
|
49
|
+
// the replay, and the named test then fails loudly.
|
|
37
50
|
getCacheKey(mod, moduleName) {
|
|
38
51
|
return `${mod.evaluation.module.filepath}|${moduleName}`;
|
|
39
52
|
}
|
package/dist/moduleCache.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/moduleCache.tsx"],"sourcesContent":["// based on: https://www.bbss.dev/posts/react-learn-suspense/#fetchcache-provider\n\nimport { createContext, ReactNode } from 'react';\nimport { EvaluationContext } from './sandboxTypes';\nimport { addListener } from './sandboxUtils';\nimport { COMPILE } from './generated/protocol';\n\nexport class ModuleCache {\n nameResolutionPromises: Record<string, Promise<string>> = {};\n evaluationContextPromises: Record<string, Promise<EvaluationContext>> = {};\n\n constructor() {\n // A compile-time cache reset, deliberately NOT performed. Resetting here\n // replaced every <Include>'s module-evaluation-context promise with a new\n // promise for the same value on EVERY compilation, including compilations that\n // do not affect that module, so the component lost its state for nothing. The\n // listener stays registered (and the reset stays here, disabled) because the\n // fix is to scope the reset to the modules a compile actually changed, not to\n // drop the seam.\n addListener(COMPILE, () => {\n // this.nameResolutionPromises = {};\n // this.evaluationContextPromises = {};\n });\n }\n\n private getCacheKey(mod: EvaluationContext, moduleName: string): string {\n return `${mod.evaluation.module.filepath}|${moduleName}`;\n }\n\n resolveModuleName(moduleName: string, baseModule?: EvaluationContext): Promise<string> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.nameResolutionPromises)) {\n this.nameResolutionPromises[cacheKey] = mod.resolve(moduleName);\n }\n return this.nameResolutionPromises[cacheKey];\n }\n\n getEvaluationContext(moduleName: string, baseModule?: EvaluationContext): Promise<EvaluationContext> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.evaluationContextPromises)) {\n this.evaluationContextPromises[cacheKey] = mod.getModuleEvaluationContext(moduleName);\n }\n return this.evaluationContextPromises[cacheKey];\n }\n}\n\nexport const ModuleCacheContext = createContext<null | ModuleCache>(null);\n\nexport const ModuleCacheContextProvider = ({\n children,\n moduleCache,\n}: {\n children: ReactNode;\n moduleCache: ModuleCache;\n}) => {\n return <ModuleCacheContext.Provider value={moduleCache}>{children}</ModuleCacheContext.Provider>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
1
|
+
{"version":3,"sources":["../src/moduleCache.tsx"],"sourcesContent":["// based on: https://www.bbss.dev/posts/react-learn-suspense/#fetchcache-provider\n\nimport { createContext, ReactNode } from 'react';\nimport { EvaluationContext } from './sandboxTypes';\nimport { addListener } from './sandboxUtils';\nimport { COMPILE } from './generated/protocol';\n\nexport class ModuleCache {\n nameResolutionPromises: Record<string, Promise<string>> = {};\n evaluationContextPromises: Record<string, Promise<EvaluationContext>> = {};\n\n constructor() {\n // A compile-time cache reset, deliberately NOT performed. Resetting here\n // replaced every <Include>'s module-evaluation-context promise with a new\n // promise for the same value on EVERY compilation, including compilations that\n // do not affect that module, so the component lost its state for nothing. The\n // listener stays registered (and the reset stays here, disabled) because the\n // fix is to scope the reset to the modules a compile actually changed, not to\n // drop the seam.\n addListener(COMPILE, () => {\n // this.nameResolutionPromises = {};\n // this.evaluationContextPromises = {};\n });\n }\n\n // PROMISE-IDENTITY INVARIANT (the app-frame Suspense replay; pinned by\n // src/boot.suspenseReplay.test.tsx): the promise returned by\n // `getEvaluationContext` for a given key must be THE SAME promise for the\n // whole realm boot. `Include` hands it straight to React's `use()` — a new\n // identity for the same key mid-session re-suspends the boundary and REPLAYS\n // every effect under it while the component instance, refs, DOM and\n // in-flight promise chains survive (the Suspense hide/reveal signature). The\n // invariant holds because the cache lives for the whole boot (one instance\n // per `boot()` call), entries are never evicted (the compile seam above\n // stays disabled), and the key — base-module filepath + module name — is\n // stable for a stable URL. Any change that lets the same key answer a fresh\n // promise (eviction, a scoped compile reset, a re-created cache) re-opens\n // the replay, and the named test then fails loudly.\n\n private getCacheKey(mod: EvaluationContext, moduleName: string): string {\n return `${mod.evaluation.module.filepath}|${moduleName}`;\n }\n\n resolveModuleName(moduleName: string, baseModule?: EvaluationContext): Promise<string> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.nameResolutionPromises)) {\n this.nameResolutionPromises[cacheKey] = mod.resolve(moduleName);\n }\n return this.nameResolutionPromises[cacheKey];\n }\n\n getEvaluationContext(moduleName: string, baseModule?: EvaluationContext): Promise<EvaluationContext> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.evaluationContextPromises)) {\n this.evaluationContextPromises[cacheKey] = mod.getModuleEvaluationContext(moduleName);\n }\n return this.evaluationContextPromises[cacheKey];\n }\n}\n\nexport const ModuleCacheContext = createContext<null | ModuleCache>(null);\n\nexport const ModuleCacheContextProvider = ({\n children,\n moduleCache,\n}: {\n children: ReactNode;\n moduleCache: ModuleCache;\n}) => {\n return <ModuleCacheContext.Provider value={moduleCache}>{children}</ModuleCacheContext.Provider>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2ES;AAzET,mBAAyC;AAEzC,0BAA4B;AAC5B,sBAAwB;AAEjB,MAAM,YAAY;AAAA,EAIvB,cAAc;AAHd,kCAA0D,CAAC;AAC3D,qCAAwE,CAAC;AAUvE,yCAAY,yBAAS,MAAM;AAAA,IAG3B,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBQ,YAAY,KAAwB,YAA4B;AACtE,WAAO,GAAG,IAAI,WAAW,OAAO,QAAQ,IAAI,UAAU;AAAA,EACxD;AAAA,EAEA,kBAAkB,YAAoB,YAAiD;AAGrF,UAAM,MAAM,cAAe;AAC3B,UAAM,WAAW,KAAK,YAAY,KAAK,UAAU;AACjD,QAAI,EAAE,YAAY,KAAK,yBAAyB;AAC9C,WAAK,uBAAuB,QAAQ,IAAI,IAAI,QAAQ,UAAU;AAAA,IAChE;AACA,WAAO,KAAK,uBAAuB,QAAQ;AAAA,EAC7C;AAAA,EAEA,qBAAqB,YAAoB,YAA4D;AAGnG,UAAM,MAAM,cAAe;AAC3B,UAAM,WAAW,KAAK,YAAY,KAAK,UAAU;AACjD,QAAI,EAAE,YAAY,KAAK,4BAA4B;AACjD,WAAK,0BAA0B,QAAQ,IAAI,IAAI,2BAA2B,UAAU;AAAA,IACtF;AACA,WAAO,KAAK,0BAA0B,QAAQ;AAAA,EAChD;AACF;AAEO,MAAM,yBAAqB,4BAAkC,IAAI;AAEjE,MAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AACF,MAGM;AACJ,SAAO,4CAAC,mBAAmB,UAAnB,EAA4B,OAAO,aAAc,UAAS;AACpE;","names":[]}
|
package/dist/moduleCache.js
CHANGED
|
@@ -10,6 +10,19 @@ class ModuleCache {
|
|
|
10
10
|
addListener(COMPILE, () => {
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
+
// PROMISE-IDENTITY INVARIANT (the app-frame Suspense replay; pinned by
|
|
14
|
+
// src/boot.suspenseReplay.test.tsx): the promise returned by
|
|
15
|
+
// `getEvaluationContext` for a given key must be THE SAME promise for the
|
|
16
|
+
// whole realm boot. `Include` hands it straight to React's `use()` — a new
|
|
17
|
+
// identity for the same key mid-session re-suspends the boundary and REPLAYS
|
|
18
|
+
// every effect under it while the component instance, refs, DOM and
|
|
19
|
+
// in-flight promise chains survive (the Suspense hide/reveal signature). The
|
|
20
|
+
// invariant holds because the cache lives for the whole boot (one instance
|
|
21
|
+
// per `boot()` call), entries are never evicted (the compile seam above
|
|
22
|
+
// stays disabled), and the key — base-module filepath + module name — is
|
|
23
|
+
// stable for a stable URL. Any change that lets the same key answer a fresh
|
|
24
|
+
// promise (eviction, a scoped compile reset, a re-created cache) re-opens
|
|
25
|
+
// the replay, and the named test then fails loudly.
|
|
13
26
|
getCacheKey(mod, moduleName) {
|
|
14
27
|
return `${mod.evaluation.module.filepath}|${moduleName}`;
|
|
15
28
|
}
|
package/dist/moduleCache.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/moduleCache.tsx"],"sourcesContent":["// based on: https://www.bbss.dev/posts/react-learn-suspense/#fetchcache-provider\n\nimport { createContext, ReactNode } from 'react';\nimport { EvaluationContext } from './sandboxTypes';\nimport { addListener } from './sandboxUtils';\nimport { COMPILE } from './generated/protocol';\n\nexport class ModuleCache {\n nameResolutionPromises: Record<string, Promise<string>> = {};\n evaluationContextPromises: Record<string, Promise<EvaluationContext>> = {};\n\n constructor() {\n // A compile-time cache reset, deliberately NOT performed. Resetting here\n // replaced every <Include>'s module-evaluation-context promise with a new\n // promise for the same value on EVERY compilation, including compilations that\n // do not affect that module, so the component lost its state for nothing. The\n // listener stays registered (and the reset stays here, disabled) because the\n // fix is to scope the reset to the modules a compile actually changed, not to\n // drop the seam.\n addListener(COMPILE, () => {\n // this.nameResolutionPromises = {};\n // this.evaluationContextPromises = {};\n });\n }\n\n private getCacheKey(mod: EvaluationContext, moduleName: string): string {\n return `${mod.evaluation.module.filepath}|${moduleName}`;\n }\n\n resolveModuleName(moduleName: string, baseModule?: EvaluationContext): Promise<string> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.nameResolutionPromises)) {\n this.nameResolutionPromises[cacheKey] = mod.resolve(moduleName);\n }\n return this.nameResolutionPromises[cacheKey];\n }\n\n getEvaluationContext(moduleName: string, baseModule?: EvaluationContext): Promise<EvaluationContext> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.evaluationContextPromises)) {\n this.evaluationContextPromises[cacheKey] = mod.getModuleEvaluationContext(moduleName);\n }\n return this.evaluationContextPromises[cacheKey];\n }\n}\n\nexport const ModuleCacheContext = createContext<null | ModuleCache>(null);\n\nexport const ModuleCacheContextProvider = ({\n children,\n moduleCache,\n}: {\n children: ReactNode;\n moduleCache: ModuleCache;\n}) => {\n return <ModuleCacheContext.Provider value={moduleCache}>{children}</ModuleCacheContext.Provider>;\n};\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../src/moduleCache.tsx"],"sourcesContent":["// based on: https://www.bbss.dev/posts/react-learn-suspense/#fetchcache-provider\n\nimport { createContext, ReactNode } from 'react';\nimport { EvaluationContext } from './sandboxTypes';\nimport { addListener } from './sandboxUtils';\nimport { COMPILE } from './generated/protocol';\n\nexport class ModuleCache {\n nameResolutionPromises: Record<string, Promise<string>> = {};\n evaluationContextPromises: Record<string, Promise<EvaluationContext>> = {};\n\n constructor() {\n // A compile-time cache reset, deliberately NOT performed. Resetting here\n // replaced every <Include>'s module-evaluation-context promise with a new\n // promise for the same value on EVERY compilation, including compilations that\n // do not affect that module, so the component lost its state for nothing. The\n // listener stays registered (and the reset stays here, disabled) because the\n // fix is to scope the reset to the modules a compile actually changed, not to\n // drop the seam.\n addListener(COMPILE, () => {\n // this.nameResolutionPromises = {};\n // this.evaluationContextPromises = {};\n });\n }\n\n // PROMISE-IDENTITY INVARIANT (the app-frame Suspense replay; pinned by\n // src/boot.suspenseReplay.test.tsx): the promise returned by\n // `getEvaluationContext` for a given key must be THE SAME promise for the\n // whole realm boot. `Include` hands it straight to React's `use()` — a new\n // identity for the same key mid-session re-suspends the boundary and REPLAYS\n // every effect under it while the component instance, refs, DOM and\n // in-flight promise chains survive (the Suspense hide/reveal signature). The\n // invariant holds because the cache lives for the whole boot (one instance\n // per `boot()` call), entries are never evicted (the compile seam above\n // stays disabled), and the key — base-module filepath + module name — is\n // stable for a stable URL. Any change that lets the same key answer a fresh\n // promise (eviction, a scoped compile reset, a re-created cache) re-opens\n // the replay, and the named test then fails loudly.\n\n private getCacheKey(mod: EvaluationContext, moduleName: string): string {\n return `${mod.evaluation.module.filepath}|${moduleName}`;\n }\n\n resolveModuleName(moduleName: string, baseModule?: EvaluationContext): Promise<string> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.nameResolutionPromises)) {\n this.nameResolutionPromises[cacheKey] = mod.resolve(moduleName);\n }\n return this.nameResolutionPromises[cacheKey];\n }\n\n getEvaluationContext(moduleName: string, baseModule?: EvaluationContext): Promise<EvaluationContext> {\n // note: uses current module as base module if none specified by caller\n // @ts-ignore\n const mod = baseModule ?? (module as EvaluationContext);\n const cacheKey = this.getCacheKey(mod, moduleName);\n if (!(cacheKey in this.evaluationContextPromises)) {\n this.evaluationContextPromises[cacheKey] = mod.getModuleEvaluationContext(moduleName);\n }\n return this.evaluationContextPromises[cacheKey];\n }\n}\n\nexport const ModuleCacheContext = createContext<null | ModuleCache>(null);\n\nexport const ModuleCacheContextProvider = ({\n children,\n moduleCache,\n}: {\n children: ReactNode;\n moduleCache: ModuleCache;\n}) => {\n return <ModuleCacheContext.Provider value={moduleCache}>{children}</ModuleCacheContext.Provider>;\n};\n"],"mappings":";AA2ES;AAzET,SAAS,qBAAgC;AAEzC,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AAEjB,MAAM,YAAY;AAAA,EAIvB,cAAc;AAHd,kCAA0D,CAAC;AAC3D,qCAAwE,CAAC;AAUvE,gBAAY,SAAS,MAAM;AAAA,IAG3B,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBQ,YAAY,KAAwB,YAA4B;AACtE,WAAO,GAAG,IAAI,WAAW,OAAO,QAAQ,IAAI,UAAU;AAAA,EACxD;AAAA,EAEA,kBAAkB,YAAoB,YAAiD;AAGrF,UAAM,MAAM,cAAe;AAC3B,UAAM,WAAW,KAAK,YAAY,KAAK,UAAU;AACjD,QAAI,EAAE,YAAY,KAAK,yBAAyB;AAC9C,WAAK,uBAAuB,QAAQ,IAAI,IAAI,QAAQ,UAAU;AAAA,IAChE;AACA,WAAO,KAAK,uBAAuB,QAAQ;AAAA,EAC7C;AAAA,EAEA,qBAAqB,YAAoB,YAA4D;AAGnG,UAAM,MAAM,cAAe;AAC3B,UAAM,WAAW,KAAK,YAAY,KAAK,UAAU;AACjD,QAAI,EAAE,YAAY,KAAK,4BAA4B;AACjD,WAAK,0BAA0B,QAAQ,IAAI,IAAI,2BAA2B,UAAU;AAAA,IACtF;AACA,WAAO,KAAK,0BAA0B,QAAQ;AAAA,EAChD;AACF;AAEO,MAAM,qBAAqB,cAAkC,IAAI;AAEjE,MAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AACF,MAGM;AACJ,SAAO,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,aAAc,UAAS;AACpE;","names":[]}
|
package/dist/version.cjs
CHANGED
|
@@ -21,7 +21,7 @@ __export(version_exports, {
|
|
|
21
21
|
SDK_VERSION: () => SDK_VERSION
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(version_exports);
|
|
24
|
-
const SDK_VERSION = "0.82.
|
|
24
|
+
const SDK_VERSION = "0.82.1";
|
|
25
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
26
|
0 && (module.exports = {
|
|
27
27
|
SDK_VERSION
|
package/dist/version.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.82.
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.82.1';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,cAAc;","names":[]}
|
package/dist/version.d.cts
CHANGED
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.82.
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.82.1';\n"],"mappings":";AAIO,MAAM,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/sdk",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.1",
|
|
4
4
|
"description": "Runtime SDK for code executing inside an immediately.run sandbox.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:immediately-run/immediately-run-sdk",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"check:clones": "node scripts/check-clones.mjs",
|
|
47
47
|
"check:unused": "node scripts/check-unused.mjs",
|
|
48
48
|
"check:untested": "node scripts/check-untested.mjs",
|
|
49
|
-
"verify": "npm run check:lock-version && npm run check:pins && npm run check:publish-version && npm run check:published && npm run check:verify-parity && npm run format:check && npm run check:circular && npm run check:clones && npm run check:unused && npm run check:untested && npm run check:bundler:selftest && npm run check:bundler && npm run build && npm run check:published && npm run check:reproducible && npm test && npm run test:safe-content && npm run test:metadata-e2e && npm run test:subpath-imports && npm run test:netfetch-bytes-e2e && npm run api:selftest && npm run api:check && npm run compat:selftest && npm run compat:previous && npm run protocol:check && npm run protocol:selftest && npm run check:ambient:selftest && npm run check:ambient && npm run check:selfhost:selftest && npm run check:selfhost && npm run check:dist-specifiers:selftest && npm run verify:codegen-parity && npm run verify:descriptor-lockstep",
|
|
49
|
+
"verify": "npm run check:lock-version && npm run check:pins && npm run check:publish-version && npm run check:published && npm run check:verify-parity && npm run format:check && npm run check:format-staged && npm run check:circular && npm run check:clones && npm run check:unused && npm run check:untested && npm run check:bundler:selftest && npm run check:bundler && npm run build && npm run check:published && npm run check:reproducible && npm test && npm run test:safe-content && npm run test:metadata-e2e && npm run test:subpath-imports && npm run test:netfetch-bytes-e2e && npm run api:selftest && npm run api:check && npm run compat:selftest && npm run compat:previous && npm run protocol:check && npm run protocol:selftest && npm run check:ambient:selftest && npm run check:ambient && npm run check:selfhost:selftest && npm run check:selfhost && npm run check:dist-specifiers:selftest && npm run verify:codegen-parity && npm run verify:descriptor-lockstep",
|
|
50
50
|
"docs": "typedoc --json docs/api.json && node scripts/gen-descriptor-docs.mjs && node scripts/gen-llms.mjs",
|
|
51
51
|
"prepublishOnly": "npm run check:circular && npm run build && npm run api:selftest && npm run api:check",
|
|
52
52
|
"test:safe-content": "node scripts/build-safecontent-e2e.mjs && node --test test/safeContent.e2e.mjs",
|
|
@@ -64,7 +64,8 @@
|
|
|
64
64
|
"check:dist-specifiers:selftest": "node scripts/fix-dist-esm-specifiers.mjs --self-test",
|
|
65
65
|
"check:ambient:selftest": "node scripts/check-ambient-types.mjs --self-test",
|
|
66
66
|
"check:lock-version": "node scripts/check-lock-version.mjs --self-test && node scripts/check-lock-version.mjs",
|
|
67
|
-
"test:netfetch-bytes-e2e": "node --test test/netFetchBytes.e2e.mjs"
|
|
67
|
+
"test:netfetch-bytes-e2e": "node --test test/netFetchBytes.e2e.mjs",
|
|
68
|
+
"check:format-staged": "node scripts/check-format-staged.mjs --self-test"
|
|
68
69
|
},
|
|
69
70
|
"peerDependencies": {
|
|
70
71
|
"react": "^19.0.0",
|