diff --git a/CHANGELOG.md b/CHANGELOG.md
index d77556c..2d68697 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+### [6.1.3](https://github.com/juanjodiaz/json2csv/compare/v6.1.2...v6.1.3) (2023-04-02)
+
+
+### Bug Fixes
+
+* add AsyncParser to whatwg export ([81ada93](https://github.com/juanjodiaz/json2csv/commit/81ada93184ed96bbc43d95fb2cfb6aa545b0e017))
+* add transform dependency to CLI ([e06961c](https://github.com/juanjodiaz/json2csv/commit/e06961c4308ead917094e8bd6f29357eb21901b4))
+
### [6.1.2](https://github.com/juanjodiaz/json2csv/compare/v6.1.1...v6.1.2) (2022-11-14)
diff --git a/build-cdn.js b/build-cdn.js
index bca2e5f..d0b8134 100644
--- a/build-cdn.js
+++ b/build-cdn.js
@@ -27,7 +27,7 @@ const replaceDependenciesByJsdelivr = {
});
const dependencies = {
- '@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/json@0.0.9/dist/mjs/index.mjs',
+ '@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/json@0.0.12/dist/mjs/index.mjs',
'lodash.get': 'https://cdn.jsdelivr.net/gh/lodash/lodash@master/get.js'
};
diff --git a/dist/cdn/plainjs/StreamParser.js b/dist/cdn/plainjs/StreamParser.js
index 4ac2429..e14c1d9 100644
--- a/dist/cdn/plainjs/StreamParser.js
+++ b/dist/cdn/plainjs/StreamParser.js
@@ -1,5 +1,5 @@
// packages/plainjs/src/StreamParser.js
-import { Tokenizer, TokenParser, TokenType } from "https://cdn.jsdelivr.net/npm/@streamparser/json@0.0.9/dist/mjs/index.mjs";
+import { Tokenizer, TokenParser, TokenType } from "https://cdn.jsdelivr.net/npm/@streamparser/json@0.0.12/dist/mjs/index.mjs";
import JSON2CSVBase from "./BaseParser.js";
var JSON2CSVStreamParser = class extends JSON2CSVBase {
constructor(opts, asyncOpts) {
@@ -37,7 +37,7 @@ var JSON2CSVStreamParser = class extends JSON2CSVBase {
if (!this.tokenParser.isEnded)
this.tokenParser.end();
};
- tokenParser.onValue = (value) => this.pushLine(value);
+ tokenParser.onValue = ({ value }) => this.pushLine(value);
tokenParser.onError = (err) => this.onError(err);
tokenParser.onEnd = () => {
this.pushHeaderIfNotWritten();
@@ -56,7 +56,7 @@ var JSON2CSVStreamParser = class extends JSON2CSVBase {
}
getBinaryModeTokenizer(asyncOpts) {
const tokenizer = new Tokenizer(asyncOpts);
- tokenizer.onToken = (token, value, offset) => {
+ tokenizer.onToken = ({ token, value, offset }) => {
if (token === TokenType.LEFT_BRACKET) {
this.tokenParser = new TokenParser({
paths: ["$.*"],
@@ -69,7 +69,7 @@ var JSON2CSVStreamParser = class extends JSON2CSVBase {
return;
}
this.configureCallbacks(tokenizer, this.tokenParser);
- this.tokenParser.write(token, value, offset);
+ this.tokenParser.write({ token, value, offset });
};
tokenizer.onError = () => this.onError(new Error("Data should be a JSON object or array"));
tokenizer.onEnd = () => {
diff --git a/docs/advanced-options/formatters.md b/docs/advanced-options/formatters.md
index 7b58448..898641d 100644
--- a/docs/advanced-options/formatters.md
+++ b/docs/advanced-options/formatters.md
@@ -81,7 +81,7 @@ You can also select a specific version:
```html
```
diff --git a/docs/advanced-options/transforms.md b/docs/advanced-options/transforms.md
index 793429a..f4b8338 100644
--- a/docs/advanced-options/transforms.md
+++ b/docs/advanced-options/transforms.md
@@ -53,7 +53,7 @@ You can also select a specific version:
```html
```
diff --git a/docs/index.html b/docs/index.html
index 97621f2..a780ace 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,9 +170,9 @@