diff --git a/README.md b/README.md index 9788445..7a6d0d8 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ each JSON. import { ConcatenatedJSONStream, JSONLinesStream, -} from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; +} from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; ``` ##### browser @@ -34,7 +34,7 @@ import { import { ConcatenatedJSONStream, JSONLinesStream, -} from "https://deno.land/x/jsonlines@v0.0.5/js/mod.js"; +} from "https://deno.land/x/jsonlines@v0.0.6/js/mod.js"; ``` ## Usage @@ -52,10 +52,10 @@ A working example can be found at [./testdata/test.ts](./testdata/test.ts). ``` ```ts -import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; +import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; const { body } = await fetch( - "https://deno.land/x/jsonlines@v0.0.5/testdata/json-lines.jsonl", + "https://deno.land/x/jsonlines@v0.0.6/testdata/json-lines.jsonl", ); const readable = body! @@ -85,10 +85,10 @@ for await (const data of readable) { ``` ```ts -import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; +import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; const { body } = await fetch( - "https://deno.land/x/jsonlines@v0.0.5/testdata/json-seq.json-seq", + "https://deno.land/x/jsonlines@v0.0.6/testdata/json-seq.json-seq", ); const recordSeparator = "\x1E"; @@ -110,10 +110,10 @@ for await (const data of readable) { ``` ```ts -import { ConcatenatedJSONStream } from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; +import { ConcatenatedJSONStream } from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; const { body } = await fetch( - "https://deno.land/x/jsonlines@v0.0.5/testdata/concat-json.concat-json", + "https://deno.land/x/jsonlines@v0.0.6/testdata/concat-json.concat-json", ); const readable = body! diff --git a/dev/build_npm.ts b/dev/build_npm.ts index 2e5e206..3e57cb1 100644 --- a/dev/build_npm.ts +++ b/dev/build_npm.ts @@ -26,7 +26,7 @@ await build({ package: { // package.json properties name: "jsonlines-web", - version: "v0.0.5", + version: "v0.0.6", description: "Web stream based jsonlines decoder/encoder.", license: "MIT", repository: { diff --git a/import-map.json b/import-map.json index 5fc3439..bf2c396 100644 --- a/import-map.json +++ b/import-map.json @@ -1,5 +1,5 @@ { "imports": { - "https://deno.land/x/jsonlines@v0.0.5/": "./" + "https://deno.land/x/jsonlines@v0.0.6/": "./" } } diff --git a/js/mod.js b/js/mod.js index 17f0b59..f1fdb48 100644 --- a/js/mod.js +++ b/js/mod.js @@ -45,7 +45,7 @@ if (typeof ReadableStream.prototype[Symbol.asyncIterator] !== "function") { * stream to parse JSONLines. * * ```ts - * import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; + * import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; * * const url = new URL("./testdata/json-lines.jsonl", import.meta.url); * const { body } = await fetch(`${url}`); @@ -108,7 +108,7 @@ if (typeof ReadableStream.prototype[Symbol.asyncIterator] !== "function") { * stream to parse concatenated JSON. * * ```ts - * import { ConcatenatedJSONStream } from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; + * import { ConcatenatedJSONStream } from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; * * const url = new URL("./testdata/concat-json.concat-json", import.meta.url); * const { body } = await fetch(`${url}`); diff --git a/mod.ts b/mod.ts index e8554c3..ec6b16a 100644 --- a/mod.ts +++ b/mod.ts @@ -95,7 +95,7 @@ function createStream( * stream to parse JSONLines. * * ```ts - * import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; + * import { JSONLinesStream } from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; * * const url = new URL("./testdata/json-lines.jsonl", import.meta.url); * const { body } = await fetch(`${url}`); @@ -169,7 +169,7 @@ export class JSONLinesStream implements TransformStream { * stream to parse concatenated JSON. * * ```ts - * import { ConcatenatedJSONStream } from "https://deno.land/x/jsonlines@v0.0.5/mod.ts"; + * import { ConcatenatedJSONStream } from "https://deno.land/x/jsonlines@v0.0.6/mod.ts"; * * const url = new URL("./testdata/concat-json.concat-json", import.meta.url); * const { body } = await fetch(`${url}`);