From cda44fb20219947db5452e65e9cc9d8d0ecfb3e0 Mon Sep 17 00:00:00 2001 From: Juanjo Diaz Date: Thu, 14 Dec 2023 17:48:58 +0100 Subject: [PATCH] chore: bump version number --- package-lock.json | 14 +++++++------- package.json | 2 +- packages/node/dist/deno/index.ts | 2 +- packages/node/dist/deno/jsonparser.ts | 2 +- packages/node/dist/deno/tokenizer.ts | 2 +- packages/node/dist/deno/tokenparser.ts | 2 +- packages/node/package.json | 4 ++-- packages/plainjs/dist/deno/README.md | 16 ++++++++-------- packages/plainjs/package.json | 2 +- packages/whatwg/dist/deno/index.ts | 2 +- packages/whatwg/dist/deno/jsonparser.ts | 4 ++-- packages/whatwg/dist/deno/tokenizer.ts | 4 ++-- packages/whatwg/dist/deno/tokenparser.ts | 6 +++--- packages/whatwg/dist/deno/utils.ts | 2 +- packages/whatwg/package.json | 4 ++-- performance/package.json | 2 +- 16 files changed, 35 insertions(+), 35 deletions(-) diff --git a/package-lock.json b/package-lock.json index b4a9d09..3a86824 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "streamparser-json", - "version": "0.0.18", + "version": "0.0.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "streamparser-json", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "workspaces": [ "packages/plainjs", @@ -5366,10 +5366,10 @@ }, "packages/node": { "name": "@streamparser/json-node", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { - "@streamparser/json": "^0.0.18" + "@streamparser/json": "^0.0.19" }, "devDependencies": { "@types/node": "^20.2.3" @@ -5377,15 +5377,15 @@ }, "packages/plainjs": { "name": "@streamparser/json", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT" }, "packages/whatwg": { "name": "@streamparser/json-whatwg", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { - "@streamparser/json": "^0.0.18" + "@streamparser/json": "^0.0.19" } } } diff --git a/package.json b/package.json index d751247..ad8ab83 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "streamparser-json", "description": "Streaming JSON parser in Javascript for Node.js, Deno and the browser", - "version": "0.0.18", + "version": "0.0.19", "type": "module", "author": "Juanjo Diaz ", "repository": { diff --git a/packages/node/dist/deno/index.ts b/packages/node/dist/deno/index.ts index 4910a84..c4d9f93 100644 --- a/packages/node/dist/deno/index.ts +++ b/packages/node/dist/deno/index.ts @@ -10,4 +10,4 @@ export { TokenParserMode, type StackElement, TokenType, -} from "https://deno.land/x/streamparser_json@v0.0.18/index.ts"; +} from "https://deno.land/x/streamparser_json@v0.0.19/index.ts"; diff --git a/packages/node/dist/deno/jsonparser.ts b/packages/node/dist/deno/jsonparser.ts index 862ce0e..b517b58 100644 --- a/packages/node/dist/deno/jsonparser.ts +++ b/packages/node/dist/deno/jsonparser.ts @@ -3,7 +3,7 @@ import { type TransformOptions, type TransformCallback, } from "stream"; -import { JSONParser, type JSONParserOptions } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts"; +import { JSONParser, type JSONParserOptions } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts"; export default class JSONParserTransform extends Transform { private jsonParser: JSONParser; diff --git a/packages/node/dist/deno/tokenizer.ts b/packages/node/dist/deno/tokenizer.ts index 71c5654..105e2e1 100644 --- a/packages/node/dist/deno/tokenizer.ts +++ b/packages/node/dist/deno/tokenizer.ts @@ -5,7 +5,7 @@ import { } from "stream"; import Tokenizer, { type TokenizerOptions, -} from "https://deno.land/x/streamparser_json@v0.0.18/tokenizer.ts"; +} from "https://deno.land/x/streamparser_json@v0.0.19/tokenizer.ts"; export default class TokenizerTransform extends Transform { private tokenizer: Tokenizer; diff --git a/packages/node/dist/deno/tokenparser.ts b/packages/node/dist/deno/tokenparser.ts index e3fce0a..1da468b 100644 --- a/packages/node/dist/deno/tokenparser.ts +++ b/packages/node/dist/deno/tokenparser.ts @@ -3,7 +3,7 @@ import { type TransformOptions, type TransformCallback, } from "stream"; -import { TokenParser, type TokenParserOptions } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts"; +import { TokenParser, type TokenParserOptions } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts"; export default class TokenParserTransform extends Transform { private tokenParser: TokenParser; diff --git a/packages/node/package.json b/packages/node/package.json index 620d9f6..4bcc2b3 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,7 +1,7 @@ { "name": "@streamparser/json-node", "description": "Streaming JSON parser in Javascript for Node.js, Deno and the browser", - "version": "0.0.18", + "version": "0.0.19", "main": "./dist/mjs/index.js", "module": "./dist/mjs/index.js", "browser": "./dist/mjs/index.js", @@ -42,7 +42,7 @@ "stream" ], "dependencies": { - "@streamparser/json": "^0.0.18" + "@streamparser/json": "^0.0.19" }, "devDependencies": { "@types/node": "^20.2.3" diff --git a/packages/plainjs/dist/deno/README.md b/packages/plainjs/dist/deno/README.md index e067194..5bd4511 100644 --- a/packages/plainjs/dist/deno/README.md +++ b/packages/plainjs/dist/deno/README.md @@ -10,7 +10,7 @@ Fast dependency-free library to parse a JSON stream using utf-8 encoding in Node *tldr;* ```javascript -import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ +import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const parser = new JSONParser(); parser.onValue = ({ value }) => { /* process data */ }; @@ -52,7 +52,7 @@ If you are targeting browsers or systems in which these might be missing, you ne A JSON compliant tokenizer that parses a utf-8 stream into JSON tokens ```javascript -import { Tokenizer } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ +import { Tokenizer } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const tokenizer = new Tokenizer(opts); ``` @@ -165,7 +165,7 @@ A drop-in replacement of `JSONparse` (with few ~~breaking changes~~ improvements ```javascript -import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ +import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const parser = new JSONParser(); ``` @@ -225,7 +225,7 @@ You push data using the `write` method which takes a string or an array-like obj You can subscribe to the resulting data using the ```javascript -import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ +import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const parser = new JSONParser({ stringBufferSize: undefined, paths: ['$'] }); parser.onValue = console.log; @@ -243,7 +243,7 @@ parser.write('"');// logs "Hello world!" Write is always a synchronous operation so any error during the parsing of the stream will be thrown during the write operation. After an error, the parser can't continue parsing. ```javascript -import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ +import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const parser = new JSONParser({ stringBufferSize: undefined }); parser.onValue = console.log; @@ -258,7 +258,7 @@ try { You can also handle errors using callbacks: ```javascript -import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ +import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const parser = new JSONParser({ stringBufferSize: undefined }); parser.onValue = console.log; @@ -296,7 +296,7 @@ Imagine an endpoint that send a large amount of JSON objects one after the other Imagine an endpoint that send a large amount of JSON objects one after the other (`[{"id":1},{"id":2},{"id":3},...]`). ```js - import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ + import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const jsonparser = new JSONParser({ stringBufferSize: undefined, paths: ['$.*'] }); jsonparser.onValue = ({ value, key, parent, stack }) => { @@ -317,7 +317,7 @@ Imagine an endpoint that send a large amount of JSON objects one after the other Imagine an endpoint that send a large amount of JSON objects one after the other (`"Once upon a midnight <...>"`). ```js - import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts";/ + import { JSONParser } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts";/ const jsonparser = new JSONParser({ emitPartialTokens: true, emitPartialValues: true }); jsonparser.onValue = ({ value, key, parent, stack, partial }) => { diff --git a/packages/plainjs/package.json b/packages/plainjs/package.json index 7a1e434..05ce63c 100644 --- a/packages/plainjs/package.json +++ b/packages/plainjs/package.json @@ -1,7 +1,7 @@ { "name": "@streamparser/json", "description": "Streaming JSON parser in Javascript for Node.js, Deno and the browser", - "version": "0.0.18", + "version": "0.0.19", "main": "./dist/mjs/index.js", "module": "./dist/mjs/index.js", "browser": "./dist/mjs/index.js", diff --git a/packages/whatwg/dist/deno/index.ts b/packages/whatwg/dist/deno/index.ts index 4910a84..c4d9f93 100644 --- a/packages/whatwg/dist/deno/index.ts +++ b/packages/whatwg/dist/deno/index.ts @@ -10,4 +10,4 @@ export { TokenParserMode, type StackElement, TokenType, -} from "https://deno.land/x/streamparser_json@v0.0.18/index.ts"; +} from "https://deno.land/x/streamparser_json@v0.0.19/index.ts"; diff --git a/packages/whatwg/dist/deno/jsonparser.ts b/packages/whatwg/dist/deno/jsonparser.ts index dee468c..1bd58fa 100644 --- a/packages/whatwg/dist/deno/jsonparser.ts +++ b/packages/whatwg/dist/deno/jsonparser.ts @@ -1,5 +1,5 @@ -import { JSONParser, type JSONParserOptions } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts"; -import type { ParsedElementInfo } from "https://deno.land/x/streamparser_json@v0.0.18/utils/types/parsedElementInfo.ts"; +import { JSONParser, type JSONParserOptions } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts"; +import type { ParsedElementInfo } from "https://deno.land/x/streamparser_json@v0.0.19/utils/types/parsedElementInfo.ts"; import { cloneParsedElementInfo } from "./utils.ts"; class JSONParserTransformer diff --git a/packages/whatwg/dist/deno/tokenizer.ts b/packages/whatwg/dist/deno/tokenizer.ts index a157f0f..f111870 100644 --- a/packages/whatwg/dist/deno/tokenizer.ts +++ b/packages/whatwg/dist/deno/tokenizer.ts @@ -1,7 +1,7 @@ import Tokenizer, { type TokenizerOptions, -} from "https://deno.land/x/streamparser_json@v0.0.18/tokenizer.ts"; -import type { ParsedTokenInfo } from "https://deno.land/x/streamparser_json@v0.0.18/utils/types/parsedTokenInfo.ts"; +} from "https://deno.land/x/streamparser_json@v0.0.19/tokenizer.ts"; +import type { ParsedTokenInfo } from "https://deno.land/x/streamparser_json@v0.0.19/utils/types/parsedTokenInfo.ts"; class TokenizerTransformer extends Tokenizer diff --git a/packages/whatwg/dist/deno/tokenparser.ts b/packages/whatwg/dist/deno/tokenparser.ts index c444d28..f77aa9e 100644 --- a/packages/whatwg/dist/deno/tokenparser.ts +++ b/packages/whatwg/dist/deno/tokenparser.ts @@ -1,6 +1,6 @@ -import { TokenParser, type TokenParserOptions } from "https://deno.land/x/streamparser_json@v0.0.18/index.ts"; -import type { ParsedTokenInfo } from "https://deno.land/x/streamparser_json@v0.0.18/utils/types/parsedTokenInfo.ts"; -import type { ParsedElementInfo } from "https://deno.land/x/streamparser_json@v0.0.18/utils/types/parsedElementInfo.ts"; +import { TokenParser, type TokenParserOptions } from "https://deno.land/x/streamparser_json@v0.0.19/index.ts"; +import type { ParsedTokenInfo } from "https://deno.land/x/streamparser_json@v0.0.19/utils/types/parsedTokenInfo.ts"; +import type { ParsedElementInfo } from "https://deno.land/x/streamparser_json@v0.0.19/utils/types/parsedElementInfo.ts"; import { cloneParsedElementInfo } from "./utils.ts"; class TokenParserTransformer diff --git a/packages/whatwg/dist/deno/utils.ts b/packages/whatwg/dist/deno/utils.ts index 837c505..a2156ef 100644 --- a/packages/whatwg/dist/deno/utils.ts +++ b/packages/whatwg/dist/deno/utils.ts @@ -1,4 +1,4 @@ -import type { ParsedElementInfo } from "https://deno.land/x/streamparser_json@v0.0.18/utils/types/parsedElementInfo.ts"; +import type { ParsedElementInfo } from "https://deno.land/x/streamparser_json@v0.0.19/utils/types/parsedElementInfo.ts"; export function cloneParsedElementInfo( parsedElementInfo: ParsedElementInfo, diff --git a/packages/whatwg/package.json b/packages/whatwg/package.json index 38eee6c..1714410 100644 --- a/packages/whatwg/package.json +++ b/packages/whatwg/package.json @@ -1,7 +1,7 @@ { "name": "@streamparser/json-whatwg", "description": "Streaming JSON parser in Javascript for Node.js, Deno and the browser", - "version": "0.0.18", + "version": "0.0.19", "main": "./dist/mjs/index.js", "module": "./dist/mjs/index.js", "browser": "./dist/mjs/index.js", @@ -42,6 +42,6 @@ "stream" ], "dependencies": { - "@streamparser/json": "^0.0.18" + "@streamparser/json": "^0.0.19" } } diff --git a/performance/package.json b/performance/package.json index e56ae0d..3e08114 100644 --- a/performance/package.json +++ b/performance/package.json @@ -11,7 +11,7 @@ "author": "", "license": "MIT", "dependencies": { - "@streamparser/json": "^0.0.18", + "@streamparser/json": "^0.0.19", "benchmark": "^2.1.4", "jsonparse": "^1.3.1" }