@dimvexa/wasm 0.1.0 → 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/dimvexa.d.ts CHANGED
@@ -8,7 +8,9 @@ export class DimvexaConversion {
8
8
  free(): void;
9
9
  [Symbol.dispose](): void;
10
10
  /**
11
- * Fast path over a whole array in one call; returns a new `Float64Array`.
11
+ * Fast path over a whole array in one call; returns a new `Float64Array`. The caller's
12
+ * array is not changed. To avoid allocating a result array on every call, reuse one array
13
+ * with `applyInPlace`.
12
14
  */
13
15
  applyBatch(input: Float64Array | number[]): Float64Array;
14
16
  /**
package/dimvexa.js CHANGED
@@ -21,7 +21,9 @@ class DimvexaConversion {
21
21
  wasm.__wbg_dimvexaconversion_free(ptr, 0);
22
22
  }
23
23
  /**
24
- * Fast path over a whole array in one call; returns a new `Float64Array`.
24
+ * Fast path over a whole array in one call; returns a new `Float64Array`. The caller's
25
+ * array is not changed. To avoid allocating a result array on every call, reuse one array
26
+ * with `applyInPlace`.
25
27
  * @param {Float64Array | number[]} input
26
28
  * @returns {Float64Array}
27
29
  */
package/dimvexa_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimvexa/wasm",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Unit conversion with exact factors and loud failures (WebAssembly build of the Rust library)",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": { "type": "git", "url": "git+https://github.com/welworx/dimvexa.git", "directory": "bindings/wasm" },