@loaders.gl/csv 4.0.0-beta.4 → 4.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export type CSVWriterOptions = WriterOptions & {
5
5
  useDisplayNames?: boolean;
6
6
  };
7
7
  /** @deprecated */
8
- useDisplayNames?: boolean;
8
+ useDisplayNames?: never;
9
9
  };
10
10
  export declare const CSVWriter: Writer<Table, TableBatch, CSVWriterOptions>;
11
11
  //# sourceMappingURL=csv-writer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"csv-writer.d.ts","sourceRoot":"","sources":["../src/csv-writer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAC,KAAK,EAAE,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG1D,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE;QACJ,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,kBAAkB;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,gBAAgB,CAkBjE,CAAC"}
1
+ {"version":3,"file":"csv-writer.d.ts","sourceRoot":"","sources":["../src/csv-writer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAC,KAAK,EAAE,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG1D,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE;QACJ,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,kBAAkB;IAClB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,gBAAgB,CAgBjE,CAAC"}
@@ -9,8 +9,7 @@ export const CSVWriter = {
9
9
  options: {
10
10
  csv: {
11
11
  useDisplayNames: false
12
- },
13
- useDisplayNames: false
12
+ }
14
13
  },
15
14
  text: true,
16
15
  encode: async (table, options) => new TextEncoder().encode(encodeTableAsCSV(table, options)).buffer,
@@ -1 +1 @@
1
- {"version":3,"file":"csv-writer.js","names":["encodeTableAsCSV","CSVWriter","id","version","module","name","extensions","mimeTypes","options","csv","useDisplayNames","text","encode","table","TextEncoder","buffer","encodeTextSync"],"sources":["../src/csv-writer.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n/* global TextEncoder */\nimport type {Writer, WriterOptions} from '@loaders.gl/loader-utils';\nimport type {Table, TableBatch} from '@loaders.gl/schema';\nimport {encodeTableAsCSV} from './lib/encoders/encode-csv';\n\nexport type CSVWriterOptions = WriterOptions & {\n csv?: {\n useDisplayNames?: boolean;\n };\n /** @deprecated */\n useDisplayNames?: boolean;\n};\n\nexport const CSVWriter: Writer<Table, TableBatch, CSVWriterOptions> = {\n id: 'csv',\n version: 'latest',\n module: 'csv',\n name: 'CSV',\n extensions: ['csv'],\n mimeTypes: ['text/csv'],\n options: {\n csv: {\n useDisplayNames: false\n },\n /** @deprecated use csv.displayNames */\n useDisplayNames: false\n },\n text: true,\n encode: async (table, options) =>\n new TextEncoder().encode(encodeTableAsCSV(table, options)).buffer,\n encodeTextSync: (table, options) => encodeTableAsCSV(table, options)\n};\n"],"mappings":"SAKQA,gBAAgB;AAUxB,OAAO,MAAMC,SAAsD,GAAG;EACpEC,EAAE,EAAE,KAAK;EACTC,OAAO,EAAE,QAAQ;EACjBC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE,KAAK;EACXC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,UAAU,CAAC;EACvBC,OAAO,EAAE;IACPC,GAAG,EAAE;MACHC,eAAe,EAAE;IACnB,CAAC;IAEDA,eAAe,EAAE;EACnB,CAAC;EACDC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,MAAAA,CAAOC,KAAK,EAAEL,OAAO,KAC3B,IAAIM,WAAW,CAAC,CAAC,CAACF,MAAM,CAACZ,gBAAgB,CAACa,KAAK,EAAEL,OAAO,CAAC,CAAC,CAACO,MAAM;EACnEC,cAAc,EAAEA,CAACH,KAAK,EAAEL,OAAO,KAAKR,gBAAgB,CAACa,KAAK,EAAEL,OAAO;AACrE,CAAC"}
1
+ {"version":3,"file":"csv-writer.js","names":["encodeTableAsCSV","CSVWriter","id","version","module","name","extensions","mimeTypes","options","csv","useDisplayNames","text","encode","table","TextEncoder","buffer","encodeTextSync"],"sources":["../src/csv-writer.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n/* global TextEncoder */\nimport type {Writer, WriterOptions} from '@loaders.gl/loader-utils';\nimport type {Table, TableBatch} from '@loaders.gl/schema';\nimport {encodeTableAsCSV} from './lib/encoders/encode-csv';\n\nexport type CSVWriterOptions = WriterOptions & {\n csv?: {\n useDisplayNames?: boolean;\n };\n /** @deprecated */\n useDisplayNames?: never;\n};\n\nexport const CSVWriter: Writer<Table, TableBatch, CSVWriterOptions> = {\n id: 'csv',\n version: 'latest',\n module: 'csv',\n name: 'CSV',\n extensions: ['csv'],\n mimeTypes: ['text/csv'],\n options: {\n csv: {\n useDisplayNames: false\n }\n },\n text: true,\n encode: async (table, options) =>\n new TextEncoder().encode(encodeTableAsCSV(table, options)).buffer,\n encodeTextSync: (table, options) => encodeTableAsCSV(table, options)\n};\n"],"mappings":"SAKQA,gBAAgB;AAUxB,OAAO,MAAMC,SAAsD,GAAG;EACpEC,EAAE,EAAE,KAAK;EACTC,OAAO,EAAE,QAAQ;EACjBC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE,KAAK;EACXC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,UAAU,CAAC;EACvBC,OAAO,EAAE;IACPC,GAAG,EAAE;MACHC,eAAe,EAAE;IACnB;EACF,CAAC;EACDC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,MAAAA,CAAOC,KAAK,EAAEL,OAAO,KAC3B,IAAIM,WAAW,CAAC,CAAC,CAACF,MAAM,CAACZ,gBAAgB,CAACa,KAAK,EAAEL,OAAO,CAAC,CAAC,CAACO,MAAM;EACnEC,cAAc,EAAEA,CAACH,KAAK,EAAEL,OAAO,KAAKR,gBAAgB,CAACa,KAAK,EAAEL,OAAO;AACrE,CAAC"}
package/dist/dist.dev.js CHANGED
@@ -1777,8 +1777,7 @@ var __exports__ = (() => {
1777
1777
  options: {
1778
1778
  csv: {
1779
1779
  useDisplayNames: false
1780
- },
1781
- useDisplayNames: false
1780
+ }
1782
1781
  },
1783
1782
  text: true,
1784
1783
  encode: async (table, options) => new TextEncoder().encode(encodeTableAsCSV(table, options)).buffer,
package/dist/index.cjs CHANGED
@@ -1117,9 +1117,7 @@ var CSVWriter = {
1117
1117
  options: {
1118
1118
  csv: {
1119
1119
  useDisplayNames: false
1120
- },
1121
- /** @deprecated use csv.displayNames */
1122
- useDisplayNames: false
1120
+ }
1123
1121
  },
1124
1122
  text: true,
1125
1123
  encode: async (table, options) => new TextEncoder().encode(encodeTableAsCSV(table, options)).buffer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/csv",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0-beta.6",
4
4
  "description": "Framework-independent loader for CSV and DSV table formats",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,11 +38,11 @@
38
38
  "build-bundle": "ocular-bundle ./src/index.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@loaders.gl/loader-utils": "4.0.0-beta.4",
42
- "@loaders.gl/schema": "4.0.0-beta.4"
41
+ "@loaders.gl/loader-utils": "4.0.0-beta.6",
42
+ "@loaders.gl/schema": "4.0.0-beta.6"
43
43
  },
44
44
  "devDependencies": {
45
45
  "d3-dsv": "^1.2.0"
46
46
  },
47
- "gitHead": "848c20b474532d301f2c3f8d4e1fb9bf262b86d4"
47
+ "gitHead": "2840f605b7a551e2ffef5f960231d989a0414c50"
48
48
  }
package/src/csv-writer.ts CHANGED
@@ -10,7 +10,7 @@ export type CSVWriterOptions = WriterOptions & {
10
10
  useDisplayNames?: boolean;
11
11
  };
12
12
  /** @deprecated */
13
- useDisplayNames?: boolean;
13
+ useDisplayNames?: never;
14
14
  };
15
15
 
16
16
  export const CSVWriter: Writer<Table, TableBatch, CSVWriterOptions> = {
@@ -23,9 +23,7 @@ export const CSVWriter: Writer<Table, TableBatch, CSVWriterOptions> = {
23
23
  options: {
24
24
  csv: {
25
25
  useDisplayNames: false
26
- },
27
- /** @deprecated use csv.displayNames */
28
- useDisplayNames: false
26
+ }
29
27
  },
30
28
  text: true,
31
29
  encode: async (table, options) =>