@deepseek-ai/libreoffice-kit 0.0.4 → 0.1.1

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/README.md CHANGED
@@ -11,7 +11,7 @@ Binary `.doc`, `.xls`, and `.ppt` inputs must be OLE compound documents, such as
11
11
  Install with Node.js 22.19.0 or newer:
12
12
 
13
13
  ```sh
14
- npm install @deepseek-ai/libreoffice-kit@0.0.4
14
+ npm install @deepseek-ai/libreoffice-kit@0.1.0
15
15
  ```
16
16
 
17
17
  npm installs the matching native engine on macOS/Windows ARM64 or x64, and the shared WASM engine on Linux. macOS and Windows require their native package; a missing or invalid package rejects `createConverter` with `unavailable`, without switching to WASM. Linux uses WASM unless a compatible development native package was installed explicitly. Conversion failures never switch engines.
@@ -95,4 +95,4 @@ This package is licensed under [MPL-2.0](LICENSE). The engine packages include `
95
95
  - Font import and output limits do not bound all native memory or temporary disk use. Native platform engines may resolve fonts differently from WASM.
96
96
  - Installations from npm use platform-specific optional packages. Applications that bundle engines must retain the complete selected package, including its resources and notices.
97
97
  - Windows requires the Microsoft Visual C++ v14 Redistributable matching the Node.js architecture (x64 or ARM64); it is not bundled. Use ARM64 Node.js for the Windows ARM64 engine.
98
- - Version `0.0.4` ships macOS and Windows native engines for ARM64 and x64 and a shared Node WASM engine for Linux. Other native platforms are development recipes.
98
+ - Version `0.1.0` ships macOS and Windows native engines for ARM64 and x64 and a shared Node WASM engine for Linux. Other native platforms are development recipes.
package/README.zh.md CHANGED
@@ -11,7 +11,7 @@
11
11
  使用 Node.js 22.19.0 或更新版本安装:
12
12
 
13
13
  ```sh
14
- npm install @deepseek-ai/libreoffice-kit@0.0.4
14
+ npm install @deepseek-ai/libreoffice-kit@0.1.0
15
15
  ```
16
16
 
17
17
  npm 在 macOS/Windows ARM64 或 x64 上安装匹配的原生引擎,在 Linux 上安装共享 WASM 引擎。macOS 和 Windows 必须具有对应原生包;包缺失或无效时,`createConverter` 以 `unavailable` 拒绝,不会切换到 WASM。Linux 使用 WASM,除非显式安装了兼容的原生开发包。转换失败不会切换引擎。
@@ -95,4 +95,4 @@ Node WASM 的图像降采样使用 LibreOffice 的 CPU 图像过滤器。文本
95
95
  - 字体导入和输出限制不能约束全部原生内存或临时磁盘使用。原生平台引擎的字体解析可能与 WASM 不同。
96
96
  - npm 安装使用按平台选择的可选包。自行打包引擎的应用需要保留所选包的完整内容,包括资源和许可声明。
97
97
  - Windows 需要系统安装与 Node.js 架构一致的 Microsoft Visual C++ v14 Redistributable(x64 或 ARM64);包中不捆绑该运行库。Windows ARM64 引擎需要使用 ARM64 Node.js。
98
- - `0.0.4` 提供 macOS 和 Windows 的 ARM64、x64 原生引擎,以及供 Linux 使用的共享 Node WASM 引擎;其他原生平台仅保留开发构建配方。
98
+ - `0.1.0` 提供 macOS 和 Windows 的 ARM64、x64 原生引擎,以及供 Linux 使用的共享 Node WASM 引擎;其他原生平台仅保留开发构建配方。
package/lib/cli.js CHANGED
@@ -1215,7 +1215,7 @@ const require = createRequire(import.meta.url);
1215
1215
  * Engine-family version every installed engine package must carry. The engine
1216
1216
  * family shares its release version with this Node API.
1217
1217
  */
1218
- const ENGINE_VERSION = "0.0.4";
1218
+ const ENGINE_VERSION = "0.1.1";
1219
1219
  /** npm scope and name prefix shared by the engine packages this adapter installs. */
1220
1220
  const ENGINE_PREFIX = "@deepseek-ai/libreoffice-kit";
1221
1221
  /**
@@ -1294,7 +1294,7 @@ async function readEngine(packageFile, backend, target) {
1294
1294
  const root = dirname(packageFile);
1295
1295
  const [pkg, manifest] = await Promise.all([readFile(packageFile, "utf8").then((text) => JSON.parse(text)), readFile(resolve(root, "prebuilds.json"), "utf8").then((text) => JSON.parse(text))]);
1296
1296
  const engine = manifest.engine;
1297
- if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.0.4" || manifest.version !== pkg.version || manifest.schemaVersion !== 1 || manifest.status !== "built" || engine === void 0 || engine.kind !== backend || manifest.platform !== target) throw new Error(`Installed LibreOfficeKit ${backend} package has an incompatible or incomplete manifest.`);
1297
+ if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.1.1" || manifest.version !== pkg.version || manifest.schemaVersion !== 1 || manifest.status !== "built" || engine === void 0 || engine.kind !== backend || manifest.platform !== target) throw new Error(`Installed LibreOfficeKit ${backend} package has an incompatible or incomplete manifest.`);
1298
1298
  const minimum = engine.glibcMinimum;
1299
1299
  if (minimum !== void 0 && (!target.endsWith("-glibc") || !glibcVersion(minimum))) throw new Error("Installed LibreOfficeKit engine has an invalid glibcMinimum.");
1300
1300
  const glibcFloor = minimum === void 0 ? {} : { glibcMinimum: minimum };
package/lib/index.js CHANGED
@@ -1213,7 +1213,7 @@ const require = createRequire(import.meta.url);
1213
1213
  * Engine-family version every installed engine package must carry. The engine
1214
1214
  * family shares its release version with this Node API.
1215
1215
  */
1216
- const ENGINE_VERSION = "0.0.4";
1216
+ const ENGINE_VERSION = "0.1.1";
1217
1217
  /** npm scope and name prefix shared by the engine packages this adapter installs. */
1218
1218
  const ENGINE_PREFIX = "@deepseek-ai/libreoffice-kit";
1219
1219
  /**
@@ -1292,7 +1292,7 @@ async function readEngine(packageFile, backend, target) {
1292
1292
  const root = dirname(packageFile);
1293
1293
  const [pkg, manifest] = await Promise.all([readFile(packageFile, "utf8").then((text) => JSON.parse(text)), readFile(resolve(root, "prebuilds.json"), "utf8").then((text) => JSON.parse(text))]);
1294
1294
  const engine = manifest.engine;
1295
- if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.0.4" || manifest.version !== pkg.version || manifest.schemaVersion !== 1 || manifest.status !== "built" || engine === void 0 || engine.kind !== backend || manifest.platform !== target) throw new Error(`Installed LibreOfficeKit ${backend} package has an incompatible or incomplete manifest.`);
1295
+ if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.1.1" || manifest.version !== pkg.version || manifest.schemaVersion !== 1 || manifest.status !== "built" || engine === void 0 || engine.kind !== backend || manifest.platform !== target) throw new Error(`Installed LibreOfficeKit ${backend} package has an incompatible or incomplete manifest.`);
1296
1296
  const minimum = engine.glibcMinimum;
1297
1297
  if (minimum !== void 0 && (!target.endsWith("-glibc") || !glibcVersion(minimum))) throw new Error("Installed LibreOfficeKit engine has an invalid glibcMinimum.");
1298
1298
  const glibcFloor = minimum === void 0 ? {} : { glibcMinimum: minimum };
@@ -2,7 +2,7 @@
2
2
  * Engine-family version every installed engine package must carry. The engine
3
3
  * family shares its release version with this Node API.
4
4
  */
5
- export declare const ENGINE_VERSION = "0.0.4";
5
+ export declare const ENGINE_VERSION = "0.1.1";
6
6
  /** Host diagnostic fields used to identify the runtime glibc version. */
7
7
  export interface EngineHostReport {
8
8
  readonly header?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/libreoffice-kit",
3
3
  "description": "Convert, recalculate, and render Office documents with prebuilt LibreOffice",
4
- "version": "0.0.4",
4
+ "version": "0.1.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -40,11 +40,11 @@
40
40
  "saxes": "6.0.0"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@deepseek-ai/libreoffice-kit-darwin-arm64": "0.0.4",
44
- "@deepseek-ai/libreoffice-kit-darwin-x64": "0.0.4",
45
- "@deepseek-ai/libreoffice-kit-win32-arm64": "0.0.4",
46
- "@deepseek-ai/libreoffice-kit-win32-x64": "0.0.4",
47
- "@deepseek-ai/libreoffice-kit-wasm": "0.0.4"
43
+ "@deepseek-ai/libreoffice-kit-darwin-arm64": "0.1.1",
44
+ "@deepseek-ai/libreoffice-kit-darwin-x64": "0.1.1",
45
+ "@deepseek-ai/libreoffice-kit-win32-arm64": "0.1.1",
46
+ "@deepseek-ai/libreoffice-kit-wasm": "0.1.1",
47
+ "@deepseek-ai/libreoffice-kit-win32-x64": "0.1.1"
48
48
  },
49
49
  "bin": {
50
50
  "libreoffice-kit": "./lib/cli.js"