Repository: denoland/std (TypeScript)

Issue:
proposal(json,csv): avoid repetition in entrypoint name if it has the same word as the pacakge name in the beginning
In addition to #5162, the core team suggests the below entrypoint name changes to make the rule more consistent across std.

- `std/csv/csv-parse-stream` -> `std/csv/parse-stream`
- `std/csv/csv-stringify-stream` -> `std/csv/stringify-stream`
- `std/json/json-parse-stream` -> `std/json/parse-stream`
- `std/json/json-stringify-stream` -> `std/json/stringify-stream`

What do you think?






Fix (patch):
diff --git a/json/deno.json b/json/deno.json
index 1738a5985775..6e48c342d71d 100644
--- a/json/deno.json
+++ b/json/deno.json
@@ -5,7 +5,7 @@
     ".": "./mod.ts",
     "./types": "./types.ts",
     "./concatenated-json-parse-stream": "./concatenated_json_parse_stream.ts",
-    "./json-parse-stream": "./json_parse_stream.ts",
-    "./json-stringify-stream": "./json_stringify_stream.ts"
+    "./parse-stream": "./parse_stream.ts",
+    "./stringify-stream": "./stringify_stream.ts"
   }
 }
diff --git a/json/mod.ts b/json/mod.ts
index 5879450582f0..2b16c08b3310 100644
--- a/json/mod.ts
+++ b/json/mod.ts
@@ -21,5 +21,5 @@
 
 export * from "./concatenated_json_parse_stream.ts";
 export * from "./types.ts";
-export * from "./json_parse_stream.ts";
-export * from "./json_stringify_stream.ts";
+export * from "./parse_stream.ts";
+export * from "./stringify_stream.ts";
diff --git a/json/json_parse_stream.ts b/json/parse_stream.ts
similarity index 91%
rename from json/json_parse_stream.ts
rename to json/parse_stream.ts
index 10a1d9b4dea7..90e1e1d9276d 100644
--- a/json/json_parse_stream.ts
+++ b/json/parse_stream.ts
@@ -20,7 +20,7 @@ function isBrankString(str: string) {
  * @example Basic usage
  *
  * ```ts
- * import { JsonParseStream } from "@std/json/json-parse-stream";
+ * import { JsonParseStream } from "@std/json/parse-stream";
  * import { assertEquals } from "@std/assert";
  *
  * const stream = ReadableStream.from([
@@ -37,7 +37,7 @@ function isBrankString(str: string) {
  * @example parse JSON lines or NDJSON from a file
  * ```ts
  * import { TextLineStream } from "@std/streams/text-line-stream";
- * import { JsonParseStream } from "@std/json/json-parse-stream";
+ * import { JsonParseStream } from "@std/json/parse-stream";
  * import { assertEquals } from "@std/assert";
  *
  * const file = await Deno.open("json/testdata/test.jsonl");
@@ -61,7 +61,7 @@ export class JsonParseStream extends TransformStream<string, JsonValue> {
    * @example Basic usage
    *
    * ```ts
-   * import { JsonParseStream } from "@std/json/json-parse-stream";
+   * import { JsonParseStream } from "@std/json/parse-stream";
    * import { assertEquals } from "@std/assert";
    *
    * const stream = ReadableStream.from([
@@ -78,7 +78,7 @@ export class JsonParseStream extends TransformStream<string, JsonValue> {
    * @example parse JSON lines or NDJSON from a file
    * ```ts
    * import { TextLineStream } from "@std/streams/text-line-stream";
-   * import { JsonParseStream } from "@std/json/json-parse-stream";
+   * import { JsonParseStream } from "@std/json/parse-stream";
    * import { assertEquals } from "@std/assert";
    *
    * const file = await Deno.open("json/testdata/test.jsonl");
diff --git a/json/json_stringify_stream.ts b/json/stringify_stream.ts
similarity index 91%
rename from json/json_stringify_stream.ts
rename to json/stringify_stream.ts
index 41007d4943d5..0acec2b3f1f3 100644
--- a/json/json_stringify_stream.ts
+++ b/json/stringify_stream.ts
@@ -30,7 +30,7 @@ export interface StringifyStreamOptions {
  * @example Basic usage
  *
  * ```ts
- * import { JsonStringifyStream } from "@std/json/json-stringify-stream";
+ * import { JsonStringifyStream } from "@std/json/stringify-stream";
  * import { assertEquals } from "@std/assert";
  *
  * const stream = ReadableStream.from([{ foo: "bar" }, { baz: 100 }])
@@ -48,7 +48,7 @@ export interface StringifyStreamOptions {
  * {@linkcode https://www.rfc-editor.org/rfc/rfc7464.html | JSON Text Sequences}.
  *
  * ```ts
- * import { JsonStringifyStream } from "@std/json/json-stringify-stream";
+ * import { JsonStringifyStream } from "@std/json/stringify-stream";
  * import { assertEquals } from "@std/assert";
  *
  * const stream = ReadableStream.from([{ foo: "bar" }, { baz: 100 }])
@@ -63,7 +63,7 @@ export interface StringifyStreamOptions {
  * @example Stringify JSON lines from a server
  *
  * ```ts no-eval no-assert
- * import { JsonStringifyStream } from "@std/json/json-stringify-stream";
+ * import { JsonStringifyStream } from "@std/json/stringify-stream";
  *
  * // A server that streams one line of JSON every second
  * Deno.serve(() => {
@@ -94,7 +94,7 @@ export class JsonStringifyStream extends TransformStream<unknown, string> {
    *
    * @example Usage
    * ```ts
-   * import { JsonStringifyStream } from "@std/json/json-stringify-stream";
+   * import { JsonStringifyStream } from "@std/json/stringify-stream";
    * import { assertEquals } from "@std/assert";
    *
    * const stream = ReadableStream.from([{ foo: "bar" }, { baz: 100 }])