Skip to content

Commit

Permalink
chore: bump version number and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Apr 2, 2023
1 parent 65dd5cc commit 2d827e9
Show file tree
Hide file tree
Showing 21 changed files with 58 additions and 42 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion build-cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const replaceDependenciesByJsdelivr = {
});

const dependencies = {
'@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/[email protected].9/dist/mjs/index.mjs',
'@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/[email protected].12/dist/mjs/index.mjs',
'lodash.get': 'https://cdn.jsdelivr.net/gh/lodash/lodash@master/get.js'
};

Expand Down
8 changes: 4 additions & 4 deletions dist/cdn/plainjs/StreamParser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// packages/plainjs/src/StreamParser.js
import { Tokenizer, TokenParser, TokenType } from "https://cdn.jsdelivr.net/npm/@streamparser/[email protected].9/dist/mjs/index.mjs";
import { Tokenizer, TokenParser, TokenType } from "https://cdn.jsdelivr.net/npm/@streamparser/[email protected].12/dist/mjs/index.mjs";
import JSON2CSVBase from "./BaseParser.js";
var JSON2CSVStreamParser = class extends JSON2CSVBase {
constructor(opts, asyncOpts) {
Expand Down Expand Up @@ -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();
Expand All @@ -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: ["$.*"],
Expand All @@ -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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced-options/formatters.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ You can also select a specific version:

```html
<script type="module">
import default from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/default.js';
import default from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/default.js';
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/advanced-options/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ You can also select a specific version:

```html
<script type="module">
import unwind from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/unwind.js';
import unwind from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/unwind.js';
</script>
```

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/vue@3/dist/vue.global.js"></script>
<script type="module">
import Json2csvStreamParser from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].2/dist/cdn/plainjs/StreamParser.js";
import Json2csvStreamParser from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].3/dist/cdn/plainjs/StreamParser.js";
window.Json2csvStreamParser = Json2csvStreamParser;
import { flatten, unwind } from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].2/dist/cdn/transforms/index.js";
import { flatten, unwind } from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].3/dist/cdn/transforms/index.js";
window.Json2csvTransforms = { flatten, unwind };
</script>
</body>
Expand Down
8 changes: 8 additions & 0 deletions docs/others/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion docs/parsers/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You can also select a specific version:

```html
<script type="module">
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/Parser.js';
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/Parser.js';
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/parsers/stream-parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ You can also select a specific version:

```html
<script type="module">
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/StreamParser.js';
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/StreamParser.js';
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/parsers/whatwg-async-parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can also select a specific version:

```html
<script type="module">
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/AsyncParser.js';
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/AsyncParser.js';
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/parsers/whatwg-transform-stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can also select a specific version:

```html
<script type="module">
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/TransformStream.js';
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/TransformStream.js';
</script>
```

Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json2csv",
"version": "6.1.2",
"version": "6.1.3",
"private": true,
"description": "Fast and highly configurable JSON to CSV converter",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/cli",
"version": "6.1.2",
"version": "6.1.3",
"description": "Command Line Interface to convert JSON to CSV.",
"keywords": [
"json",
Expand Down Expand Up @@ -35,8 +35,8 @@
"dependencies:update-internal": "npm uninstall @json2csv/node @json2csv/transforms && npm install @json2csv/node @json2csv/transforms"
},
"dependencies": {
"@json2csv/node": "^6.1.2",
"@json2csv/transforms": "^6.1.2",
"@json2csv/node": "^6.1.3",
"@json2csv/transforms": "^6.1.3",
"commander": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/formatters/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/formatters",
"version": "6.1.2",
"version": "6.1.3",
"description": "json2csv built-in formatters. A formatter is a function that receives the raw js value of a given type and formats it as a valid CSV cell.",
"keywords": [
"json",
Expand Down
4 changes: 2 additions & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/node",
"version": "6.1.2",
"version": "6.1.3",
"description": "Node.js Transform and Async interface to convert JSON into CSV.",
"keywords": [
"json",
Expand Down Expand Up @@ -45,6 +45,6 @@
"prepublishOnly": "npm run build:cjs"
},
"dependencies": {
"@json2csv/plainjs": "^6.1.2"
"@json2csv/plainjs": "^6.1.3"
}
}
4 changes: 2 additions & 2 deletions packages/plainjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/plainjs",
"version": "6.1.2",
"version": "6.1.3",
"description": "Pure Javascript JSON to CSV converter.",
"keywords": [
"json",
Expand Down Expand Up @@ -45,7 +45,7 @@
"prepublishOnly": "npm run build:cjs"
},
"dependencies": {
"@json2csv/formatters": "^6.1.2",
"@json2csv/formatters": "^6.1.3",
"@streamparser/json": "^0.0.12",
"lodash.get": "^4.4.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/test-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/test-helpers",
"version": "6.1.2",
"version": "6.1.3",
"description": "Test helper to test the json2csv libraries",
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-performance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/test-performance",
"version": "6.1.2",
"version": "6.1.3",
"description": "Performance tests for json2csv",
"keywords": [
"json",
Expand Down
2 changes: 1 addition & 1 deletion packages/transforms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/transforms",
"version": "6.1.2",
"version": "6.1.3",
"description": "json2csv built-in transforms. A transform is a function that receives a data recod and returns a transformed record. Transforms are executed in order before converting the data record into a CSV row.",
"keywords": [
"json",
Expand Down
4 changes: 2 additions & 2 deletions packages/whatwg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@json2csv/whatwg",
"version": "6.1.2",
"version": "6.1.3",
"description": "WHATWG Transform and Async interface to convert JSON into CSV.",
"keywords": [
"json",
Expand Down Expand Up @@ -45,6 +45,6 @@
"prepublishOnly": "npm run build:cjs"
},
"dependencies": {
"@json2csv/plainjs": "^6.1.2"
"@json2csv/plainjs": "^6.1.3"
}
}

0 comments on commit 2d827e9

Please sign in to comment.