veryfront 0.0.102 → 0.0.104
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/esm/deno.js +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.js +8 -3
- package/esm/src/transforms/esm/package-registry.d.ts +2 -1
- package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
- package/esm/src/transforms/esm/package-registry.js +2 -1
- package/package.json +1 -1
- package/src/deno.js +1 -1
- package/src/src/modules/react-loader/ssr-module-loader/loader.ts +8 -3
- package/src/src/modules/server/ssr-import-rewriter.ts +1 -1
- package/src/src/transforms/esm/package-registry.ts +2 -1
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../../src/src/modules/react-loader/ssr-module-loader/loader.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAuCpC,OAAO,KAAK,EAAoB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAiC3E;;;;;GAKG;AACH,qBAAa,eAAe;IAId,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,EAAE,CAAsB;IAChC,OAAO,CAAC,mBAAmB,CAAuB;gBAE9B,OAAO,EAAE,sBAAsB;IAEnD;;OAEG;IACH,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAsGxD,OAAO,CAAC,mBAAmB;IAiC3B,OAAO,CAAC,wBAAwB;IAwBhC,OAAO,CAAC,WAAW;IAenB,OAAO,CAAC,yBAAyB;IAuBjC,OAAO,CAAC,kBAAkB;IAK1B;;OAEG;YACW,2BAA2B;IAmGzC,OAAO,CAAC,yBAAyB;YAiBnB,2BAA2B;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../../src/src/modules/react-loader/ssr-module-loader/loader.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAuCpC,OAAO,KAAK,EAAoB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAiC3E;;;;;GAKG;AACH,qBAAa,eAAe;IAId,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,EAAE,CAAsB;IAChC,OAAO,CAAC,mBAAmB,CAAuB;gBAE9B,OAAO,EAAE,sBAAsB;IAEnD;;OAEG;IACH,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAsGxD,OAAO,CAAC,mBAAmB;IAiC3B,OAAO,CAAC,wBAAwB;IAwBhC,OAAO,CAAC,WAAW;IAenB,OAAO,CAAC,yBAAyB;IAuBjC,OAAO,CAAC,kBAAkB;IAK1B;;OAEG;YACW,2BAA2B;IAmGzC,OAAO,CAAC,yBAAyB;YAiBnB,2BAA2B;IA+TzC;;;OAGG;YACW,mBAAmB;IA2CjC,OAAO,CAAC,yBAAyB;IAYjC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IA4B3B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,wBAAwB;IAehC,OAAO,CAAC,2BAA2B;IAiBnC,OAAO,CAAC,2BAA2B;IAWnC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA4B3B;;OAEG;IACH,OAAO,CAAC,aAAa;YAIP,uBAAuB;IAyCrC;;;OAGG;YACW,gBAAgB;YAgBhB,WAAW;YAeX,YAAY;CA4B3B"}
|
|
@@ -385,13 +385,18 @@ export class SSRModuleLoader {
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
if (httpBundlesOk) {
|
|
388
|
-
|
|
388
|
+
// CRITICAL: Use transformedHash (hash of the transformed code) for temp path,
|
|
389
|
+
// NOT contentHash (hash of source). Other modules importing this file use
|
|
390
|
+
// transformedHash in their import paths (set during fresh transform at line 703).
|
|
391
|
+
// Using contentHash here would create a path mismatch and "Module not found" errors.
|
|
392
|
+
const transformedHash = await this.hashContentAsync(redisCode);
|
|
393
|
+
const tempPath = await this.getTempPath(filePath, transformedHash);
|
|
389
394
|
await this.fs.mkdir(tempPath.substring(0, tempPath.lastIndexOf("/")), {
|
|
390
395
|
recursive: true,
|
|
391
396
|
});
|
|
392
397
|
await this.fs.writeTextFile(tempPath, redisCode);
|
|
393
|
-
verifiedHttpBundlePaths.set(`${tempPath}:${
|
|
394
|
-
const entry = { tempPath, contentHash };
|
|
398
|
+
verifiedHttpBundlePaths.set(`${tempPath}:${transformedHash}`, true);
|
|
399
|
+
const entry = { tempPath, contentHash: transformedHash };
|
|
395
400
|
globalModuleCache.set(contentCacheKey, entry);
|
|
396
401
|
globalModuleCache.set(filePathCacheKey, entry);
|
|
397
402
|
logger.debug("[SSR-MODULE-LOADER] Redis cache hit", { file: filePath.slice(-40) });
|
|
@@ -45,8 +45,9 @@ export declare const REACT_VERSION = "19.1.1";
|
|
|
45
45
|
* v13: Fix npm: specifiers for Node.js (convert to esm.sh or local React)
|
|
46
46
|
* v14: Fix SSR pipeline to use local React paths on Node.js (not esm.sh URLs)
|
|
47
47
|
* v15: Keep React as bare specifiers on Node.js for CJS/ESM interop
|
|
48
|
+
* v16: Invalidate Deno-created transforms with https:// React URLs
|
|
48
49
|
*/
|
|
49
|
-
export declare const TRANSFORM_CACHE_VERSION =
|
|
50
|
+
export declare const TRANSFORM_CACHE_VERSION = 16;
|
|
50
51
|
/** csstype version - must match deno.json for type consistency */
|
|
51
52
|
export declare const CSSTYPE_VERSION = "3.2.3";
|
|
52
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-registry.d.ts","sourceRoot":"","sources":["../../../../src/src/transforms/esm/package-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOzE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,iEAAiE;AACjE,eAAO,MAAM,aAAa,WAAwB,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"package-registry.d.ts","sourceRoot":"","sources":["../../../../src/src/transforms/esm/package-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOzE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,iEAAiE;AACjE,eAAO,MAAM,aAAa,WAAwB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,kEAAkE;AAClE,eAAO,MAAM,eAAe,UAAU,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,SAAK,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAK5F;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAI9F;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUrE;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAO1E;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAU3E"}
|
|
@@ -56,8 +56,9 @@ export const REACT_VERSION = DEFAULT_REACT_VERSION;
|
|
|
56
56
|
* v13: Fix npm: specifiers for Node.js (convert to esm.sh or local React)
|
|
57
57
|
* v14: Fix SSR pipeline to use local React paths on Node.js (not esm.sh URLs)
|
|
58
58
|
* v15: Keep React as bare specifiers on Node.js for CJS/ESM interop
|
|
59
|
+
* v16: Invalidate Deno-created transforms with https:// React URLs
|
|
59
60
|
*/
|
|
60
|
-
export const TRANSFORM_CACHE_VERSION =
|
|
61
|
+
export const TRANSFORM_CACHE_VERSION = 16;
|
|
61
62
|
/** csstype version - must match deno.json for type consistency */
|
|
62
63
|
export const CSSTYPE_VERSION = "3.2.3";
|
|
63
64
|
/**
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -516,14 +516,19 @@ export class SSRModuleLoader {
|
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
if (httpBundlesOk) {
|
|
519
|
-
|
|
519
|
+
// CRITICAL: Use transformedHash (hash of the transformed code) for temp path,
|
|
520
|
+
// NOT contentHash (hash of source). Other modules importing this file use
|
|
521
|
+
// transformedHash in their import paths (set during fresh transform at line 703).
|
|
522
|
+
// Using contentHash here would create a path mismatch and "Module not found" errors.
|
|
523
|
+
const transformedHash = await this.hashContentAsync(redisCode);
|
|
524
|
+
const tempPath = await this.getTempPath(filePath, transformedHash);
|
|
520
525
|
await this.fs.mkdir(tempPath.substring(0, tempPath.lastIndexOf("/")), {
|
|
521
526
|
recursive: true,
|
|
522
527
|
});
|
|
523
528
|
await this.fs.writeTextFile(tempPath, redisCode);
|
|
524
|
-
verifiedHttpBundlePaths.set(`${tempPath}:${
|
|
529
|
+
verifiedHttpBundlePaths.set(`${tempPath}:${transformedHash}`, true);
|
|
525
530
|
|
|
526
|
-
const entry: ModuleCacheEntry = { tempPath, contentHash };
|
|
531
|
+
const entry: ModuleCacheEntry = { tempPath, contentHash: transformedHash };
|
|
527
532
|
globalModuleCache.set(contentCacheKey, entry);
|
|
528
533
|
globalModuleCache.set(filePathCacheKey, entry);
|
|
529
534
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getReactImportMap, getReactVersion } from "../../transforms/esm/package-registry.js";
|
|
2
2
|
import { isDeno, isNode } from "../../platform/compat/runtime.js";
|
|
3
|
-
import { getLocalReactPaths
|
|
3
|
+
import { getLocalReactPaths } from "../../platform/compat/react-paths.js";
|
|
4
4
|
|
|
5
5
|
export interface SSRRewriteOptions {
|
|
6
6
|
/** Project slug for multi-project routing */
|
|
@@ -62,8 +62,9 @@ export const REACT_VERSION = DEFAULT_REACT_VERSION;
|
|
|
62
62
|
* v13: Fix npm: specifiers for Node.js (convert to esm.sh or local React)
|
|
63
63
|
* v14: Fix SSR pipeline to use local React paths on Node.js (not esm.sh URLs)
|
|
64
64
|
* v15: Keep React as bare specifiers on Node.js for CJS/ESM interop
|
|
65
|
+
* v16: Invalidate Deno-created transforms with https:// React URLs
|
|
65
66
|
*/
|
|
66
|
-
export const TRANSFORM_CACHE_VERSION =
|
|
67
|
+
export const TRANSFORM_CACHE_VERSION = 16;
|
|
67
68
|
|
|
68
69
|
/** csstype version - must match deno.json for type consistency */
|
|
69
70
|
export const CSSTYPE_VERSION = "3.2.3";
|