Skip to content

Commit

Permalink
update v0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 committed May 7, 2022
1 parent 25929c8 commit 2933266
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ each JSON.
import {
ConcatenatedJSONStream,
JSONLinesStream,
} from "https://deno.land/x/[email protected].5/mod.ts";
} from "https://deno.land/x/[email protected].6/mod.ts";
```

##### browser
Expand All @@ -34,7 +34,7 @@ import {
import {
ConcatenatedJSONStream,
JSONLinesStream,
} from "https://deno.land/x/[email protected].5/js/mod.js";
} from "https://deno.land/x/[email protected].6/js/mod.js";
```

## Usage
Expand All @@ -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/[email protected].5/mod.ts";
import { JSONLinesStream } from "https://deno.land/x/[email protected].6/mod.ts";

const { body } = await fetch(
"https://deno.land/x/[email protected].5/testdata/json-lines.jsonl",
"https://deno.land/x/[email protected].6/testdata/json-lines.jsonl",
);

const readable = body!
Expand Down Expand Up @@ -85,10 +85,10 @@ for await (const data of readable) {
```

```ts
import { JSONLinesStream } from "https://deno.land/x/[email protected].5/mod.ts";
import { JSONLinesStream } from "https://deno.land/x/[email protected].6/mod.ts";

const { body } = await fetch(
"https://deno.land/x/[email protected].5/testdata/json-seq.json-seq",
"https://deno.land/x/[email protected].6/testdata/json-seq.json-seq",
);

const recordSeparator = "\x1E";
Expand All @@ -110,10 +110,10 @@ for await (const data of readable) {
```

```ts
import { ConcatenatedJSONStream } from "https://deno.land/x/[email protected].5/mod.ts";
import { ConcatenatedJSONStream } from "https://deno.land/x/[email protected].6/mod.ts";

const { body } = await fetch(
"https://deno.land/x/[email protected].5/testdata/concat-json.concat-json",
"https://deno.land/x/[email protected].6/testdata/concat-json.concat-json",
);

const readable = body!
Expand Down
2 changes: 1 addition & 1 deletion dev/build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion import-map.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"imports": {
"https://deno.land/x/[email protected].5/": "./"
"https://deno.land/x/[email protected].6/": "./"
}
}
4 changes: 2 additions & 2 deletions js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (typeof ReadableStream.prototype[Symbol.asyncIterator] !== "function") {
* stream to parse JSONLines.
*
* ```ts
* import { JSONLinesStream } from "https://deno.land/x/[email protected].5/mod.ts";
* import { JSONLinesStream } from "https://deno.land/x/[email protected].6/mod.ts";
*
* const url = new URL("./testdata/json-lines.jsonl", import.meta.url);
* const { body } = await fetch(`${url}`);
Expand Down Expand Up @@ -108,7 +108,7 @@ if (typeof ReadableStream.prototype[Symbol.asyncIterator] !== "function") {
* stream to parse concatenated JSON.
*
* ```ts
* import { ConcatenatedJSONStream } from "https://deno.land/x/[email protected].5/mod.ts";
* import { ConcatenatedJSONStream } from "https://deno.land/x/[email protected].6/mod.ts";
*
* const url = new URL("./testdata/concat-json.concat-json", import.meta.url);
* const { body } = await fetch(`${url}`);
Expand Down
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function createStream(
* stream to parse JSONLines.
*
* ```ts
* import { JSONLinesStream } from "https://deno.land/x/[email protected].5/mod.ts";
* import { JSONLinesStream } from "https://deno.land/x/[email protected].6/mod.ts";
*
* const url = new URL("./testdata/json-lines.jsonl", import.meta.url);
* const { body } = await fetch(`${url}`);
Expand Down Expand Up @@ -169,7 +169,7 @@ export class JSONLinesStream implements TransformStream<string, JSONValue> {
* stream to parse concatenated JSON.
*
* ```ts
* import { ConcatenatedJSONStream } from "https://deno.land/x/[email protected].5/mod.ts";
* import { ConcatenatedJSONStream } from "https://deno.land/x/[email protected].6/mod.ts";
*
* const url = new URL("./testdata/concat-json.concat-json", import.meta.url);
* const { body } = await fetch(`${url}`);
Expand Down

0 comments on commit 2933266

Please sign in to comment.