Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dev/build_npm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fromFileUrl } from "https://deno.land/std@0.185.0/path/mod.ts";
import { build, emptyDir } from "https://deno.land/x/dnt@0.34.0/mod.ts";
import { fromFileUrl } from "https://deno.land/std@0.224.0/path/mod.ts";
import { build, emptyDir } from "https://deno.land/x/dnt@0.40.0/mod.ts";

const outDir = fromFileUrl(new URL("./npm/", import.meta.url));
const projectRootDir = fromFileUrl(new URL("../", import.meta.url));
Expand Down
2 changes: 1 addition & 1 deletion dev/transpile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fromFileUrl } from "https://deno.land/std@0.185.0/path/mod.ts";
import { fromFileUrl } from "https://deno.land/std@0.224.0/path/mod.ts";

const input = fromFileUrl(new URL("../mod.ts", import.meta.url));
const output = fromFileUrl(new URL("../js/mod.js", import.meta.url));
Expand Down
4 changes: 2 additions & 2 deletions dev/transpile_check.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals } from "https://deno.land/std@0.185.0/testing/asserts.ts";
import { fromFileUrl } from "https://deno.land/std@0.185.0/path/mod.ts";
import { assertEquals } from "https://deno.land/std@0.224.0/testing/asserts.ts";
import { fromFileUrl } from "https://deno.land/std@0.224.0/path/mod.ts";

const input = fromFileUrl(new URL("../mod.ts", import.meta.url));
const output = fromFileUrl(new URL("../js/mod.js", import.meta.url));
Expand Down
4 changes: 2 additions & 2 deletions mod_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
assertEquals,
assertRejects,
} from "https://deno.land/std@0.185.0/testing/asserts.ts";
import { readableStreamFromIterable } from "https://deno.land/std@0.185.0/streams/readable_stream_from_iterable.ts";
} from "https://deno.land/std@0.224.0/testing/asserts.ts";
import { readableStreamFromIterable } from "https://deno.land/std@0.224.0/streams/readable_stream_from_iterable.ts";
import {
ConcatenatedJSONParseStream,
ConcatenatedJSONStringifyStream,
Expand Down
6 changes: 3 additions & 3 deletions src/parser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TextDelimiterStream } from "https://deno.land/std@0.185.0/streams/text_delimiter_stream.ts";
import { TextDelimiterStream } from "https://deno.land/std@0.224.0/streams/text_delimiter_stream.ts";
import { JSONValue, transformStreamFromGeneratorFunction } from "./utils.ts";

// avoid dnt typecheck error
Expand All @@ -17,7 +17,7 @@ export interface ParseStreamOptions {
* stream to parse [JSON lines](https://jsonlines.org/), [NDJSON](http://ndjson.org/) and [JSON Text Sequences](https://datatracker.ietf.org/doc/html/rfc7464).
*
* ```ts
* import { JSONLinesParseStream } from "https://deno.land/x/jsonlines@v1.2.1/mod.ts";
* import { JSONLinesParseStream } from "https://deno.land/x/jsonlines@v1.2.2/mod.ts";
*
* const url = new URL("./testdata/json-lines.jsonl", import.meta.url);
* const { body } = await fetch(`${url}`);
Expand Down Expand Up @@ -71,7 +71,7 @@ export class JSONLinesParseStream
* stream to parse [Concatenated JSON](https://en.wikipedia.org/wiki/JSON_streaming#Concatenated_JSON).
*
* ```ts
* import { ConcatenatedJSONParseStream } from "https://deno.land/x/jsonlines@v1.2.1/mod.ts";
* import { ConcatenatedJSONParseStream } from "https://deno.land/x/jsonlines@v1.2.2/mod.ts";
*
* const url = new URL("./testdata/concat-json.concat-json", import.meta.url);
* const { body } = await fetch(`${url}`);
Expand Down
8 changes: 4 additions & 4 deletions src/stringify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export interface StringifyStreamOptions {
* stream to stringify [JSON lines](https://jsonlines.org/), [NDJSON](http://ndjson.org/) and [JSON Text Sequences](https://datatracker.ietf.org/doc/html/rfc7464).
*
* ```ts
* import { readableStreamFromIterable } from "https://deno.land/std@0.185.0/streams/mod.ts";
* import { JSONLinesStringifyStream } from "https://deno.land/x/jsonlines@v1.2.1/mod.ts";
* import { readableStreamFromIterable } from "https://deno.land/std@0.224.0/streams/mod.ts";
* import { JSONLinesStringifyStream } from "https://deno.land/x/jsonlines@v1.2.2/mod.ts";
*
* const file = await Deno.open(new URL("./tmp.concat-json", import.meta.url), {
* create: true,
Expand Down Expand Up @@ -57,8 +57,8 @@ export class JSONLinesStringifyStream extends TransformStream<unknown, string> {
* stream to stringify [Concatenated JSON](https://en.wikipedia.org/wiki/JSON_streaming#Concatenated_JSON).
*
* ```ts
* import { readableStreamFromIterable } from "https://deno.land/std@0.185.0/streams/mod.ts";
* import { ConcatenatedJSONStringifyStream } from "https://deno.land/x/jsonlines@v1.2.1/mod.ts";
* import { readableStreamFromIterable } from "https://deno.land/std@0.224.0/streams/mod.ts";
* import { ConcatenatedJSONStringifyStream } from "https://deno.land/x/jsonlines@v1.2.2/mod.ts";
*
* const file = await Deno.open(new URL("./tmp.concat-json", import.meta.url), {
* create: true,
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ type _QueuingStrategy<T> = QueuingStrategy<T | undefined>;
* Convert the generator function into a TransformStream.
*
* ```ts
* import { readableStreamFromIterable } from "https://deno.land/std@0.185.0/streams/mod.ts";
* import { transformStreamFromGeneratorFunction } from "https://deno.land/x/jsonlines@v1.2.1/mod.ts";
* import { readableStreamFromIterable } from "https://deno.land/std@0.224.0/streams/mod.ts";
* import { transformStreamFromGeneratorFunction } from "https://deno.land/x/jsonlines@v1.2.2/mod.ts";
*
* const reader = readableStreamFromIterable([0, 1, 2])
* .pipeThrough(transformStreamFromGeneratorFunction(async function* (src) {
Expand Down