diff --git a/docs/demo/index.html b/docs/demo/index.html index f99b5785..dc31c1d0 100644 --- a/docs/demo/index.html +++ b/docs/demo/index.html @@ -447,7 +447,7 @@

The game below is a Word document.

const moduleSnippet = `
@@ -682,7 +682,7 @@ so a page can embed a full viewer or editor without hosting anything itself.
+ @@ -728,7 +728,7 @@ first `/wasm/`, then `/` as a fallback. On a CDN that re ### CDN caveats -- **Pin an exact version in production** (`docxodus@12.6.1`, not `@latest`) — CDN responses are +- **Pin an exact version in production** (`docxodus@12.6.2`, not `@latest`) — CDN responses are cached as immutable, and the wire shapes between the JS wrappers and the WASM assemblies must come from the same release. - The build patches the .NET loader to fetch with `credentials: "omit"` — required because the diff --git a/npm/examples/embed.html b/npm/examples/embed.html index afed8289..33f8bc1f 100644 --- a/npm/examples/embed.html +++ b/npm/examples/embed.html @@ -45,7 +45,7 @@

Docxodus embed demo

bundle relatively. From a CDN the ONLY line that changes is the import: import { createViewer, createEditor, createRibbonEditor } - from "https://cdn.jsdelivr.net/npm/docxodus@12.6.1/dist/embed.bundle.js"; + from "https://cdn.jsdelivr.net/npm/docxodus@12.6.2/dist/embed.bundle.js"; WASM assets auto-resolve from the wasm/ directory next to the bundle — no other configuration needed. Pin an exact version in production so the diff --git a/npm/src/core.ts b/npm/src/core.ts index ef33dbbb..9823ad8c 100644 --- a/npm/src/core.ts +++ b/npm/src/core.ts @@ -533,7 +533,7 @@ async function yieldToMain(): Promise { function getDefaultWasmBasePath(): string { try { // import.meta.url gives us the URL of this module - // e.g., "https://cdn.jsdelivr.net/npm/docxodus@12.6.1/dist/core.js" + // e.g., "https://cdn.jsdelivr.net/npm/docxodus@12.6.2/dist/core.js" // or "file:///path/to/node_modules/docxodus/dist/core.js" const moduleUrl = import.meta.url; diff --git a/npm/src/embed.ts b/npm/src/embed.ts index 900fdd41..cdcf92d4 100644 --- a/npm/src/embed.ts +++ b/npm/src/embed.ts @@ -7,7 +7,7 @@ * ```html *
* * ``` diff --git a/npm/tests/social-demo.spec.ts b/npm/tests/social-demo.spec.ts index 3676d767..1159c9b4 100644 --- a/npm/tests/social-demo.spec.ts +++ b/npm/tests/social-demo.spec.ts @@ -21,7 +21,7 @@ import { test, expect, type Page } from '@playwright/test'; */ const OVERRIDES = 'engine=./embed.bundle.js&doc=./docxodus-demo-guide.docx'; -const RELEASE_ENGINE = 'docxodus@12.6.1/dist/embed.bundle.js'; +const RELEASE_ENGINE = 'docxodus@12.6.2/dist/embed.bundle.js'; async function formattingState(page: Page, anchor: string, text: string) { return page.evaluate(({ anchor, text }) => {