@file-viewer/renderer-text 3.3.1 → 3.3.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.
@@ -10,7 +10,7 @@ const require = createRequire(import.meta.url)
10
10
  const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..')
11
11
  const engines = [
12
12
  { name: 'xmllint-wasm', version: '5.3.0', files: ['xmllint-browser.mjs', 'xmllint.wasm'] },
13
- { name: 'xslt-polyfill', version: '1.0.31', files: ['dist/xslt-wasm.js'] }
13
+ { name: 'xslt-polyfill', version: '1.0.33', files: ['dist/xslt-wasm.js'] }
14
14
  ]
15
15
 
16
16
  /** Copy pinned optional runtimes and notices; never download or install packages. */
@@ -19,7 +19,7 @@ export async function copyXmlProfileAssets(destination = 'public/file-viewer/xml
19
19
  for (const engine of engines) {
20
20
  let manifest
21
21
  try { manifest = require.resolve(`${engine.name}/package.json`) } catch {
22
- throw new Error(`Install the optional XML engines first: pnpm add xmllint-wasm@5.3.0 xslt-polyfill@1.0.31 (missing ${engine.name}).`)
22
+ throw new Error(`Install the optional XML engines first: pnpm add xmllint-wasm@5.3.0 xslt-polyfill@1.0.33 (missing ${engine.name}).`)
23
23
  }
24
24
  const metadata = JSON.parse(await readFile(manifest, 'utf8'))
25
25
  if (metadata.version !== engine.version) throw new Error(`Expected ${engine.name}@${engine.version}; found ${metadata.version}.`)
@@ -47,7 +47,7 @@ let entryPoint = false
47
47
  try { entryPoint = !!process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url) } catch { /* Imported helper. */ }
48
48
  if (entryPoint) {
49
49
  if (process.argv.includes('--help')) {
50
- console.log('Usage: file-viewer-xml-assets [destination-directory]\nDefault: public/file-viewer/xml\nRequires xmllint-wasm@5.3.0 and xslt-polyfill@1.0.31 installed by the host.')
50
+ console.log('Usage: file-viewer-xml-assets [destination-directory]\nDefault: public/file-viewer/xml\nRequires xmllint-wasm@5.3.0 and xslt-polyfill@1.0.33 installed by the host.')
51
51
  } else if (process.argv.length > 3 || process.argv[2]?.startsWith('-')) {
52
52
  console.error('Expected one destination directory.'); process.exitCode = 1
53
53
  } else {
@@ -8,7 +8,7 @@ the engine's instructions or data, nor install the automatic page polyfill.
8
8
 
9
9
  | Component | Verified upstream notice | Included notice |
10
10
  | --- | --- | --- |
11
- | xslt-polyfill 1.0.31 | [BSD-3-Clause](https://github.com/mfreed7/xslt_polyfill/blob/main/LICENSE) | xslt-polyfill-LICENSE.txt |
11
+ | xslt-polyfill 1.0.33 | [BSD-3-Clause](https://github.com/mfreed7/xslt_polyfill/blob/4c0603c4dc84c17a511816c703c7ce3b936aa56f/LICENSE) | xslt-polyfill-LICENSE.txt |
12
12
  | xmllint-wasm 5.3.0 | [MIT](https://github.com/noppa/xmllint-wasm/blob/master/COPYING) | xmllint-wasm-COPYING.txt |
13
13
  | XSLT libxml2 submodule | [Copyright at c34742f](https://github.com/GNOME/libxml2/blob/c34742f3017f6d39f3e4ccae4f70172238160ef8/Copyright) | libxml2-xslt-Copyright.txt |
14
14
  | XSD libxml2 submodule | [Copyright at eb0a2f2](https://github.com/GNOME/libxml2/blob/eb0a2f2b91566384f378d870ffcd69c0a24162cc/Copyright) | libxml2-xsd-Copyright.txt |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/renderer-text",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Standalone code, text, and Markdown renderer for File Viewer; Mermaid, patch diff, and Git bundle tools are explicit opt-in capabilities.",
@@ -134,17 +134,17 @@
134
134
  "README.zh-CN.md"
135
135
  ],
136
136
  "dependencies": {
137
- "@file-viewer/core": "3.3.1",
137
+ "@file-viewer/core": "3.3.3",
138
138
  "@types/pako": "^2.0.4",
139
139
  "@prettier/plugin-xml": "3.4.2",
140
140
  "dompurify": "3.4.17",
141
141
  "highlight.js": "^11.11.1",
142
- "marked": "^18.1.1",
142
+ "marked": "^18.1.2",
143
143
  "prettier": "3.9.10"
144
144
  },
145
145
  "peerDependencies": {
146
146
  "xmllint-wasm": "5.3.0",
147
- "xslt-polyfill": "1.0.31"
147
+ "xslt-polyfill": "1.0.33"
148
148
  },
149
149
  "peerDependenciesMeta": {
150
150
  "xmllint-wasm": {