@veryfront/ext-content-mdx 0.1.1233 → 0.1.1235

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/_dnt.shims.js CHANGED
@@ -1,14 +1,29 @@
1
- import { Deno as dntShimDeno } from "@deno/shim-deno";
2
1
  const dntNativeDeno = globalThis.Deno;
3
2
  // Prefer the host runtime's own Deno. The `@deno/shim-deno` fallback exists
4
3
  // for Node and Bun; under Deno it shadows working native APIs with node:net
5
4
  // reimplementations that throw (e.g. Deno.listen reads `server._handle.fd`,
6
5
  // which is null on Deno's node compatibility layer).
6
+ //
7
+ // It loads lazily so Deno never resolves it at all. The esm transform
8
+ // rewrites the bare specifier to an absolute file:// bundle, and Deno
9
+ // refuses to prepare that graph node when node_modules is unmanaged, which
10
+ // is what `deno install -g` produces (`nodeModulesDir: "manual"`). A static
11
+ // import therefore failed every request with "Loading unprepared module"
12
+ // naming a bundle that was present on disk, on the one runtime that never
13
+ // reads the value.
7
14
  export const Deno = typeof dntNativeDeno?.version?.deno === "string"
8
15
  ? dntNativeDeno
9
- : dntShimDeno;
10
- import { crypto } from "@deno/shim-crypto";
11
- export { crypto } from "@deno/shim-crypto";
16
+ : (await import("@deno/shim-deno")).Deno;
17
+ const dntNativeCrypto = globalThis.crypto;
18
+ // Web Crypto is a global on every runtime the framework supports (Deno,
19
+ // Node 19+, Bun), so `@deno/shim-crypto` is a fallback for runtimes that no
20
+ // longer exist in practice. It loads lazily for the same reason the Deno
21
+ // shim does: the esm transform rewrites the bare specifier to an absolute
22
+ // file:// bundle, and Deno cannot prepare that graph node when node_modules
23
+ // is unmanaged.
24
+ export const crypto = dntNativeCrypto !== undefined
25
+ ? dntNativeCrypto
26
+ : (await import("@deno/shim-crypto")).crypto;
12
27
  import { setInterval, setTimeout } from "@deno/shim-timers";
13
28
  export { setInterval, setTimeout } from "@deno/shim-timers";
14
29
  const dntGlobals = {
package/esm/deno.d.ts CHANGED
@@ -432,6 +432,9 @@ declare namespace _default {
432
432
  "lint:chat-ratchets": string;
433
433
  "lint:esm-sh-codemod": string;
434
434
  "lint:test-typecheck": string;
435
+ "lint:client-bundle": string;
436
+ "lint:client-bundle:update": string;
437
+ "client-bundle:report": string;
435
438
  docs: string;
436
439
  "docs:api-reference:check": string;
437
440
  "docs:errors": string;
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.1233",
3
+ "version": "0.1.1235",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -496,7 +496,7 @@ export default {
496
496
  "build:storybook": "npm --prefix storybook run build-storybook",
497
497
  "storybook:check": "deno test --no-lock --config=scripts/test.deno.json --no-check --allow-read scripts/storybook/storybook-workbench.test.ts",
498
498
  "lint": "DENO_NO_PACKAGE_JSON=1 deno lint && deno lint --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-meta-property-safety.ts scripts/build/dnt-meta-property-safety.test.ts scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/prepare-framework-sources.test.ts && deno lint --config=scripts/codemods/deno.json scripts/codemods/",
499
- "lint:ci": "deno task lint && deno task lint:core-deps && deno task lint:cross-runtime-jsr && deno task lint:dependency-boundaries && deno task lint:module-boundaries && deno task lint:extension-contracts && deno task lint:extension-capabilities && deno task lint:ban-test-only && deno task lint:sanitizer-baseline && deno task lint:skipped-tests && deno task lint:chat-ratchets && deno task lint:chat-composability && deno task lint:rfc-status && deno task lint:esm-sh-codemod && deno task lint:test-typecheck && deno task lint:cwd-relative-test-reads && deno task lint:dnt-meta-properties && deno task storybook:check && deno task docs:api-reference:check && deno task docs:errors:check && deno task docs:public:check && deno test --frozen --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run=bash scripts/ci/setup-deno-workflow.test.ts scripts/ci/prepare-rc-build.test.ts scripts/build/generated-artifact-checks.test.ts",
499
+ "lint:ci": "deno task lint && deno task lint:core-deps && deno task lint:cross-runtime-jsr && deno task lint:dependency-boundaries && deno task lint:module-boundaries && deno task lint:client-bundle && deno task lint:extension-contracts && deno task lint:extension-capabilities && deno task lint:ban-test-only && deno task lint:sanitizer-baseline && deno task lint:skipped-tests && deno task lint:chat-ratchets && deno task lint:chat-composability && deno task lint:rfc-status && deno task lint:esm-sh-codemod && deno task lint:test-typecheck && deno task lint:cwd-relative-test-reads && deno task lint:dnt-meta-properties && deno task storybook:check && deno task docs:api-reference:check && deno task docs:errors:check && deno task docs:public:check && deno test --frozen --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run=bash scripts/ci/setup-deno-workflow.test.ts scripts/ci/prepare-rc-build.test.ts scripts/build/generated-artifact-checks.test.ts",
500
500
  "fmt": "deno fmt src/ cli/ react/ templates/ && deno fmt --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-meta-property-safety.ts scripts/build/dnt-meta-property-safety.test.ts scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/prepare-framework-sources.test.ts && deno fmt --config=scripts/codemods/deno.json scripts/codemods/",
501
501
  "fmt:check": "deno fmt --check src/ cli/ react/ templates/ && deno fmt --check --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-meta-property-safety.ts scripts/build/dnt-meta-property-safety.test.ts scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/prepare-framework-sources.test.ts && deno fmt --check --config=scripts/codemods/deno.json scripts/codemods/",
502
502
  "typecheck": "deno task generate:manifests:check && deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/html/hydration-script-builder/runtime/main.ts src/modules/index.ts src/proxy/main.ts src/react/components/ui/index.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/agent/service/route-export.check.ts src/eval/index.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/runs/index.ts src/mcp/index.ts src/provider/index.ts",
@@ -508,6 +508,9 @@ export default {
508
508
  "lint:chat-ratchets": "deno run --allow-read scripts/lint/ban-chat-antipatterns.ts && deno check --no-config --frozen --lock=deno.lock scripts/codemods/migrate-chat-composition.ts && deno check --config=deno.json --frozen --lock=deno.lock src/react/chat-barrels.check.ts && deno test --frozen --config=scripts/codemods/deno.json --no-check --allow-read --allow-write --allow-env=BABEL_TYPES_8_BREAKING scripts/codemods/migrate-chat-composition.test.ts",
509
509
  "lint:esm-sh-codemod": "deno check --no-config --frozen --lock=deno.lock scripts/codemods/migrate-esm-sh-imports.ts && deno test --frozen --config=scripts/codemods/deno.json --no-check --allow-read --allow-write --allow-env=BABEL_TYPES_8_BREAKING scripts/codemods/migrate-esm-sh-imports.test.ts",
510
510
  "lint:test-typecheck": "deno run --allow-read --allow-run scripts/lint/check-test-typecheck-baseline.ts",
511
+ "lint:client-bundle": "deno lint --config=scripts/test.deno.json scripts/lint/client-bundle-graph.ts scripts/lint/audit-client-bundle.ts scripts/lint/client-bundle-graph.test.ts && deno run --allow-read scripts/lint/audit-client-bundle.ts && deno test --frozen --config=scripts/test.deno.json --no-check --allow-read scripts/lint/client-bundle-graph.test.ts",
512
+ "lint:client-bundle:update": "deno run --allow-read --allow-write scripts/lint/audit-client-bundle.ts --update",
513
+ "client-bundle:report": "deno run --allow-read scripts/lint/audit-client-bundle.ts --markdown",
511
514
  "docs": "deno run --allow-read --allow-write --allow-run --allow-env scripts/docs/generate-api-reference.ts",
512
515
  "docs:api-reference:check": "deno run --allow-read --allow-write --allow-run --allow-env scripts/docs/generate-api-reference.ts --check",
513
516
  "docs:errors": "deno run --allow-read --allow-write --allow-run --allow-env scripts/docs/generate-error-reference.ts",
@@ -41,6 +41,21 @@ export interface NodeFileSystemCapabilityOptions {
41
41
  export type NodeCompatibleRuntimeProvenance = "node" | "bun" | "deno" | "unknown";
42
42
  export declare function hasUsableWindowsSnapshotIdentity(runtime: NodeCompatibleRuntimeProvenance): boolean;
43
43
  export declare function readNodeFileSnapshotWithinLimit(operations: NodeFileSystemOperations, platform: NativeSnapshotPlatform, noFollow: number | undefined, path: string, containmentRoot: string, byteLimit: number): Promise<Uint8Array>;
44
+ /**
45
+ * Resolve the `O_NOFOLLOW` open flag that binds an exact-inode snapshot read.
46
+ *
47
+ * `constants` is `undefined` in a runtime without `node:fs` — e.g. a browser
48
+ * bundle that transitively imports this adapter. Dereferencing `.O_NOFOLLOW` on
49
+ * it unconditionally threw `Cannot read properties of undefined (reading
50
+ * 'O_NOFOLLOW')` during construction and aborted client hydration (#3661).
51
+ * Treat the missing constants as "unavailable" (`undefined`) — the same meaning
52
+ * {@link NodeFileSystemCapabilityOptions.noFollow} already documents for an own
53
+ * `undefined` — so `canOpenExactSnapshot` degrades to `false` instead of the
54
+ * constructor exploding. An own `noFollow` on `options` still wins (the test seam).
55
+ */
56
+ export declare function resolveNoFollowFlag(options: NodeFileSystemCapabilityOptions, constants: {
57
+ readonly O_NOFOLLOW?: number;
58
+ } | undefined): number | undefined;
44
59
  /**
45
60
  * Filesystem implementation shared by runtimes that provide Node-compatible
46
61
  * `node:fs` APIs (currently Node.js and Bun).
@@ -1 +1 @@
1
- {"version":3,"file":"node-filesystem-adapter.d.ts","sourceRoot":"","sources":["../../../../../../src/src/platform/adapters/runtime/shared/node-filesystem-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EAER,QAAQ,EACR,iBAAiB,EACjB,WAAW,EACX,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAA4C,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA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BAA2B,CAAC,CAC1B,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CAAC;IACvB,wBAAwB,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E"}
1
+ {"version":3,"file":"node-filesystem-adapter.d.ts","sourceRoot":"","sources":["../../../../../../src/src/platform/adapters/runtime/shared/node-filesystem-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EAER,QAAQ,EACR,iBAAiB,EACjB,WAAW,EACX,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAA4C,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiBnG,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,+BAA+B,CAAC;AAGvC,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAChE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACjE;AAUD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,MAAM,IAAI,OAAO,CAAC;IAClB,cAAc,IAAI,OAAO,CAAC;CAC3B;AAED,UAAU,cAAc;IACtB,IAAI,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACtC,IAAI,CACF,MAAM,EAAE,UA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;IAYtC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKvC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAKrE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBtE,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlD,SAAS,CAAC,YAAY,CACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAChD,OAAO,CAAC,IAAI,CAAC;IAIhB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,WAAW;CAmIrE;AAED,MAAM,WAAW,+BAA+B;IAC9C,2BAA2B,CAAC,CAC1B,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CAAC;IACvB,wBAAwB,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E"}
@@ -254,6 +254,21 @@ export async function readNodeFileSnapshotWithinLimit(operations, platform, noFo
254
254
  async function createNodeFileBytesExclusive(operations, path, content) {
255
255
  await withFileHandle(() => operations.open(path, "wx"), (handle) => handle.writeFile(content), "Filesystem exclusive create and handle cleanup both failed");
256
256
  }
257
+ /**
258
+ * Resolve the `O_NOFOLLOW` open flag that binds an exact-inode snapshot read.
259
+ *
260
+ * `constants` is `undefined` in a runtime without `node:fs` — e.g. a browser
261
+ * bundle that transitively imports this adapter. Dereferencing `.O_NOFOLLOW` on
262
+ * it unconditionally threw `Cannot read properties of undefined (reading
263
+ * 'O_NOFOLLOW')` during construction and aborted client hydration (#3661).
264
+ * Treat the missing constants as "unavailable" (`undefined`) — the same meaning
265
+ * {@link NodeFileSystemCapabilityOptions.noFollow} already documents for an own
266
+ * `undefined` — so `canOpenExactSnapshot` degrades to `false` instead of the
267
+ * constructor exploding. An own `noFollow` on `options` still wins (the test seam).
268
+ */
269
+ export function resolveNoFollowFlag(options, constants) {
270
+ return hasOwn(options, "noFollow") ? options.noFollow : constants?.O_NOFOLLOW;
271
+ }
257
272
  /**
258
273
  * Filesystem implementation shared by runtimes that provide Node-compatible
259
274
  * `node:fs` APIs (currently Node.js and Bun).
@@ -266,7 +281,7 @@ export class NodeCompatibleFileSystemAdapter {
266
281
  ...nodeFileSystemOperations,
267
282
  ...options.operations,
268
283
  };
269
- const noFollow = hasOwn(options, "noFollow") ? options.noFollow : nodeFsConstants.O_NOFOLLOW;
284
+ const noFollow = resolveNoFollowFlag(options, nodeFsConstants);
270
285
  const platform = options.platform ?? (runtimeUsesWindowsPaths() ? "windows" : "posix");
271
286
  const canOpenExactSnapshot = platform === "windows"
272
287
  ? hasUsableWindowsSnapshotIdentity(detectNodeCompatibleRuntime())
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.1233";
2
+ export declare const VERSION = "0.1.1235";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.1233";
4
+ export const VERSION = "0.1.1235";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfront/ext-content-mdx",
3
- "version": "0.1.1233",
3
+ "version": "0.1.1235",
4
4
  "description": "Veryfront first-party extension package for ext-content-mdx",
5
5
  "keywords": [
6
6
  "veryfront",
@@ -67,7 +67,7 @@
67
67
  "vfile": "6.0.3"
68
68
  },
69
69
  "peerDependencies": {
70
- "veryfront": "^0.1.1233"
70
+ "veryfront": "^0.1.1235"
71
71
  },
72
72
  "type": "module",
73
73
  "types": "./esm/extensions/ext-content-mdx/src/index.d.ts",