BREAKING(csv): remove csv from module names (#5172)

* BREAKING(csv): move modules `csv-stringify-stream` to `stringify-stream` and `csv-parse-stream` to `parse-stream`

* fix
This commit is contained in:
Asher Gomez 2024-06-28 16:07:36 +10:00 committed by GitHub
parent 9bcec15d1e
commit dc3154c948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 15 additions and 15 deletions

View File

@ -3,9 +3,9 @@
"version": "1.0.0-rc.1",
"exports": {
".": "./mod.ts",
"./csv-parse-stream": "./csv_parse_stream.ts",
"./csv-stringify-stream": "./csv_stringify_stream.ts",
"./parse": "./parse.ts",
"./stringify": "./stringify.ts"
"./parse-stream": "./parse_stream.ts",
"./stringify": "./stringify.ts",
"./stringify-stream": "./stringify_stream.ts"
}
}

View File

@ -75,7 +75,7 @@
* @module
*/
export * from "./stringify.ts";
export * from "./parse.ts";
export * from "./csv_parse_stream.ts";
export * from "./csv_stringify_stream.ts";
export * from "./parse_stream.ts";
export * from "./stringify.ts";
export * from "./stringify_stream.ts";

View File

@ -108,7 +108,7 @@ export type RowType<T> = T extends undefined ? string[]
*
* @example Usage
* ```ts no-assert
* import { CsvParseStream } from "@std/csv/csv-parse-stream";
* import { CsvParseStream } from "@std/csv/parse-stream";
*
* const source = ReadableStream.from([
* "name,age",
@ -139,7 +139,7 @@ export class CsvParseStream<
*
* @example Usage
* ```ts no-assert
* import { CsvParseStream } from "@std/csv/csv-parse-stream";
* import { CsvParseStream } from "@std/csv/parse-stream";
*
* const source = ReadableStream.from([
* "name,age",
@ -232,7 +232,7 @@ export class CsvParseStream<
*
* @example Usage
* ```ts no-assert
* import { CsvParseStream } from "@std/csv/csv-parse-stream";
* import { CsvParseStream } from "@std/csv/parse-stream";
*
* const source = ReadableStream.from([
* "name,age",
@ -258,7 +258,7 @@ export class CsvParseStream<
*
* @example Usage
* ```ts no-assert
* import { CsvParseStream } from "@std/csv/csv-parse-stream";
* import { CsvParseStream } from "@std/csv/parse-stream";
*
* const source = ReadableStream.from([
* "name,age",

View File

@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { CsvParseStream } from "./csv_parse_stream.ts";
import type { CsvParseStreamOptions } from "./csv_parse_stream.ts";
import { CsvParseStream } from "./parse_stream.ts";
import type { CsvParseStreamOptions } from "./parse_stream.ts";
import { ERR_QUOTE, ParseError } from "./_io.ts";
import {
assert,

View File

@ -24,7 +24,7 @@ export interface CsvStringifyStreamOptions {
*
* @example Usage
* ```ts no-assert
* import { CsvStringifyStream } from "@std/csv/csv-stringify-stream";
* import { CsvStringifyStream } from "@std/csv/stringify-stream";
*
* const path = await Deno.makeTempFile();
*
@ -54,7 +54,7 @@ export class CsvStringifyStream<TOptions extends CsvStringifyStreamOptions>
*
* @example Usage
* ```ts no-assert
* import { CsvStringifyStream } from "@std/csv/csv-stringify-stream";
* import { CsvStringifyStream } from "@std/csv/stringify-stream";
*
* const path = await Deno.makeTempFile();
*

View File

@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { CsvStringifyStream } from "./csv_stringify_stream.ts";
import { CsvStringifyStream } from "./stringify_stream.ts";
import { StringifyError } from "./stringify.ts";
import { assertEquals, assertRejects } from "@std/assert";