convert-buddy-js 0.5.0 → 0.7.0

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
@@ -146,11 +146,22 @@ if (csvInfo) {
146
146
  ## How it works
147
147
 
148
148
  - **Rust core** (`crates/convert-buddy`) implements streaming parsers and stats tracking.
149
- - **WASM bindings** are generated via `wasm-bindgen` and bundled into this package.
149
+ - **WASM bindings** are generated via `wasm-bindgen` and bundled into this package as prebuilt binaries.
150
150
  - **TypeScript wrapper** (`src/index.ts`) exposes the `ConvertBuddy` class and stream adapters.
151
151
 
152
+ ## Package contents (what ships)
153
+
154
+ The published npm package includes only the runtime artifacts needed to use Convert Buddy:
155
+
156
+ - Prebuilt WASM binaries (in `wasm/` plus `wasm-node.cjs` for Node.js).
157
+ - Compiled TypeScript output (in `dist/`).
158
+
159
+ The monorepo demo app, Rust sources, and build/benchmark tooling live in this repository but are **not** published with the npm package.
160
+
152
161
  ### Build (repository)
153
162
 
163
+ These steps are **only** for contributors working in this monorepo. If you install `convert-buddy-js` from npm, you do **not** need to run them.
164
+
154
165
  ```bash
155
166
  npm install
156
167
  npm -w convert-buddy-js run build
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ConvertBuddy
3
- } from "./chunk-IOVM4CIO.js";
3
+ } from "./chunk-WBKHAQCT.js";
4
4
 
5
5
  // src/node.ts
6
6
  async function loadNodeTransform() {
@@ -60,4 +60,4 @@ async function createNodeTransform(opts = {}) {
60
60
  export {
61
61
  createNodeTransform
62
62
  };
63
- //# sourceMappingURL=chunk-XKIJB7Y4.js.map
63
+ //# sourceMappingURL=chunk-C3RSVYQF.js.map
@@ -35,7 +35,9 @@ var ConvertBuddy = class _ConvertBuddy {
35
35
  opts.inputFormat,
36
36
  opts.outputFormat,
37
37
  opts.chunkTargetBytes || 1024 * 1024,
38
- profile
38
+ profile,
39
+ opts.csvConfig,
40
+ opts.xmlConfig
39
41
  );
40
42
  } else {
41
43
  converter = new wasmModule.Converter(debug);
@@ -187,4 +189,4 @@ export {
187
189
  convert,
188
190
  convertToString
189
191
  };
190
- //# sourceMappingURL=chunk-IOVM4CIO.js.map
192
+ //# sourceMappingURL=chunk-WBKHAQCT.js.map
@@ -28,6 +28,7 @@ type XmlConfig = {
28
28
  recordElement?: string;
29
29
  trimText?: boolean;
30
30
  includeAttributes?: boolean;
31
+ expandEntities?: boolean;
31
32
  };
32
33
  type Stats = {
33
34
  bytesIn: number;
package/dist/src/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  convertToString,
6
6
  detectCsvFieldsAndDelimiter,
7
7
  detectFormat
8
- } from "../chunk-IOVM4CIO.js";
8
+ } from "../chunk-WBKHAQCT.js";
9
9
  export {
10
10
  ConvertBuddy,
11
11
  ConvertBuddyTransformStream,
package/dist/src/node.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createNodeTransform
3
- } from "../chunk-XKIJB7Y4.js";
3
+ } from "../chunk-C3RSVYQF.js";
4
4
  import {
5
5
  ConvertBuddy,
6
6
  ConvertBuddyTransformStream,
@@ -8,7 +8,7 @@ import {
8
8
  convertToString,
9
9
  detectCsvFieldsAndDelimiter,
10
10
  detectFormat
11
- } from "../chunk-IOVM4CIO.js";
11
+ } from "../chunk-WBKHAQCT.js";
12
12
  export {
13
13
  ConvertBuddy,
14
14
  ConvertBuddyTransformStream,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "convert-buddy-js",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "TypeScript wrapper for convert-buddy (Rust/WASM core)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,6 +36,7 @@
36
36
  "build:wasm:node": "set CONVERT_BUDDY_WASM_TARGET=nodejs&& node ./scripts/build-wasm.mjs",
37
37
  "build:wasm": "npm run build:wasm:web && npm run build:wasm:node",
38
38
  "build": "npm run build:wasm && tsup",
39
+ "check:wasm": "node ./scripts/check-wasm.mjs",
39
40
  "test": "npm run build && node ./dist/smoke-test.js",
40
41
  "test:edge-cases": "npm run build && node --test ./dist/tests/edge-cases/*.test.js",
41
42
  "test:all": "npm run test && npm run test:edge-cases",
@@ -46,7 +47,8 @@
46
47
  "bench:competitors": "npm run build && node ./dist/bench/runner-with-competitors.js",
47
48
  "bench:competitors-comprehensive": "npm run build && node ./dist/bench/runner-competitors-comprehensive.js",
48
49
  "bench:all": "npm run bench:single-thread && npm run bench:multi-thread && npm run bench:compare && npm run bench:competitors-comprehensive",
49
- "lint": "node ./scripts/lint-placeholder.mjs"
50
+ "lint": "node ./scripts/lint-placeholder.mjs",
51
+ "prepack": "npm run build && npm run check:wasm"
50
52
  },
51
53
  "devDependencies": {
52
54
  "@types/node": "^25.0.3",