logisheets 1.16.0 → 1.16.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/dist/src/pure.js CHANGED
@@ -10,6 +10,16 @@
10
10
  // handle factory, and the Client *type*. Consumers that only need to construct
11
11
  // payloads / inspect types / share logic (e.g. logician running on Node) import
12
12
  // from here and stay engine-free.
13
+ //
14
+ // The `node` export condition resolves to `dist/pure.node.js`, an esbuild
15
+ // bundle of this file, NOT to the tsc output beside it. That is not an
16
+ // optimization: this package's relative imports are all extensionless and
17
+ // `./bindings` is a directory, both of which only a bundler resolves — and
18
+ // `src/bindings` is generated by gents ("DO NOT EDIT", 290 files), so the
19
+ // specifiers cannot simply be rewritten. Bundling is what makes this subpath
20
+ // loadable under plain Node ESM; `packages/node/__tests__/packaging.test.ts`
21
+ // holds that line. Everything else (browsers, bundlers) still gets the tsc
22
+ // output via `default`.
13
23
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
24
  if (k2 === undefined) k2 = k;
15
25
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -13,6 +13,12 @@ export function handle(msg: any, book_id?: number | null): any;
13
13
  * section). Falls back to the text itself on an unsupported format.
14
14
  */
15
15
  export function format_text(fmt: string, text: string): string;
16
+ /**
17
+ * Deliver the values the host computed for this workbook's async functions:
18
+ * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
19
+ * `rpc::handle`, this must never panic.
20
+ */
21
+ export function input_async_result(id: number, result: any): any;
16
22
  /**
17
23
  * Render a number with an Excel number-format code, natively via `ssf-rs`
18
24
  * (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
@@ -20,9 +26,3 @@ export function format_text(fmt: string, text: string): string;
20
26
  * JavaScript `String(value)` representation, matching the previous behavior.
21
27
  */
22
28
  export function format_number(fmt: string, value: number): string;
23
- /**
24
- * Deliver the values the host computed for this workbook's async functions:
25
- * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
26
- * `rpc::handle`, this must never panic.
27
- */
28
- export function input_async_result(id: number, result: any): any;
@@ -209,6 +209,19 @@ module.exports.format_text = function(fmt, text) {
209
209
  }
210
210
  };
211
211
 
212
+ /**
213
+ * Deliver the values the host computed for this workbook's async functions:
214
+ * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
215
+ * `rpc::handle`, this must never panic.
216
+ * @param {number} id
217
+ * @param {any} result
218
+ * @returns {any}
219
+ */
220
+ module.exports.input_async_result = function(id, result) {
221
+ const ret = wasm.input_async_result(id, result);
222
+ return ret;
223
+ };
224
+
212
225
  /**
213
226
  * Render a number with an Excel number-format code, natively via `ssf-rs`
214
227
  * (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
@@ -233,19 +246,6 @@ module.exports.format_number = function(fmt, value) {
233
246
  }
234
247
  };
235
248
 
236
- /**
237
- * Deliver the values the host computed for this workbook's async functions:
238
- * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
239
- * `rpc::handle`, this must never panic.
240
- * @param {number} id
241
- * @param {any} result
242
- * @returns {any}
243
- */
244
- module.exports.input_async_result = function(id, result) {
245
- const ret = wasm.input_async_result(id, result);
246
- return ret;
247
- };
248
-
249
249
  module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
250
250
  const ret = String(arg1);
251
251
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.16.0",
6
+ "version": "1.16.1",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logisheets",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Node.js bindings for LogiSheets — a Rust + WebAssembly spreadsheet engine that reads, edits, and writes real .xlsx (Excel) files (formulas, styles, and structure preserved) with no browser required.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -9,6 +9,7 @@
9
9
  "link": "rm -rf ./src && cp -r ../web/src ./src",
10
10
  "build": "yarn wasm-build && npx tsc && cp -R wasm dist/",
11
11
  "test": "npx vitest run",
12
+ "test:packaging": "npx vitest run --config vitest.packaging.config.ts",
12
13
  "prepublishOnly": "yarn run link && yarn wasm-build && yarn build",
13
14
  "prepare": "yarn link && yarn wasm-build"
14
15
  },
@@ -13,6 +13,12 @@ export function handle(msg: any, book_id?: number | null): any;
13
13
  * section). Falls back to the text itself on an unsupported format.
14
14
  */
15
15
  export function format_text(fmt: string, text: string): string;
16
+ /**
17
+ * Deliver the values the host computed for this workbook's async functions:
18
+ * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
19
+ * `rpc::handle`, this must never panic.
20
+ */
21
+ export function input_async_result(id: number, result: any): any;
16
22
  /**
17
23
  * Render a number with an Excel number-format code, natively via `ssf-rs`
18
24
  * (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
@@ -20,9 +26,3 @@ export function format_text(fmt: string, text: string): string;
20
26
  * JavaScript `String(value)` representation, matching the previous behavior.
21
27
  */
22
28
  export function format_number(fmt: string, value: number): string;
23
- /**
24
- * Deliver the values the host computed for this workbook's async functions:
25
- * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
26
- * `rpc::handle`, this must never panic.
27
- */
28
- export function input_async_result(id: number, result: any): any;
@@ -209,6 +209,19 @@ module.exports.format_text = function(fmt, text) {
209
209
  }
210
210
  };
211
211
 
212
+ /**
213
+ * Deliver the values the host computed for this workbook's async functions:
214
+ * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
215
+ * `rpc::handle`, this must never panic.
216
+ * @param {number} id
217
+ * @param {any} result
218
+ * @returns {any}
219
+ */
220
+ module.exports.input_async_result = function(id, result) {
221
+ const ret = wasm.input_async_result(id, result);
222
+ return ret;
223
+ };
224
+
212
225
  /**
213
226
  * Render a number with an Excel number-format code, natively via `ssf-rs`
214
227
  * (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
@@ -233,19 +246,6 @@ module.exports.format_number = function(fmt, value) {
233
246
  }
234
247
  };
235
248
 
236
- /**
237
- * Deliver the values the host computed for this workbook's async functions:
238
- * an `AsyncFuncResult` in, an `ActionEffect` or an `ErrorMessage` out. Like
239
- * `rpc::handle`, this must never panic.
240
- * @param {number} id
241
- * @param {any} result
242
- * @returns {any}
243
- */
244
- module.exports.input_async_result = function(id, result) {
245
- const ret = wasm.input_async_result(id, result);
246
- return ret;
247
- };
248
-
249
249
  module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
250
250
  const ret = String(arg1);
251
251
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
Binary file
package/wasm/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.16.0",
6
+ "version": "1.16.1",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",