docblocks-react-ui 0.6.2 → 0.6.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 7bfbdff: Derive the PDF decoder directory without constructing a URL from a bundler-relative asset path, preserving compatibility with Turbopack's emitted URL objects.
8
+
3
9
  ## 0.6.2
4
10
 
5
11
  ### Patch Changes
@@ -101,7 +101,12 @@ function StretchVertical(props) {
101
101
  * emitted asset URL because a bundler may hash its filename. */
102
102
  const WORKER_URL = new URL("pdfjs-dist/build/pdf.worker.min.mjs", import.meta.url);
103
103
  const JBIG2_URL = new URL("pdfjs-dist/wasm/jbig2.wasm", import.meta.url);
104
- const WASM_URL = new URL("./", JBIG2_URL).toString();
104
+ /** Keep both absolute static-ESM URLs and bundler-relative asset paths valid. */
105
+ function directoryUrl(file) {
106
+ const url = file.toString();
107
+ return url.slice(0, url.lastIndexOf("/") + 1);
108
+ }
109
+ const WASM_URL = directoryUrl(JBIG2_URL);
105
110
  GlobalWorkerOptions.workerSrc = WORKER_URL.toString();
106
111
  async function fetchBytes(url) {
107
112
  const response = await globalThis.fetch(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -80,7 +80,7 @@
80
80
  "build": "tsdown && tailwindcss -i ui.entry.css -o dist/.tmp/ui-layer.css && node scripts/assemble-styles.mjs && node scripts/copy-pdf-worker.mjs",
81
81
  "prepack": "npm run build",
82
82
  "typecheck": "tsc --noEmit",
83
- "test": "vitest run"
83
+ "test": "NODE_OPTIONS=--disable-warning=ExperimentalWarning vitest run"
84
84
  },
85
85
  "engines": {
86
86
  "node": "^22.22.2 || ^24.15.0 || >=26.0.0"