@tabnas/transduce 0.2.6 → 0.2.7

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.
@@ -25,10 +25,13 @@ exports.isIncremental = isIncremental;
25
25
  // repeated member name so that a `last_wins` router builds the walk's
26
26
  // value, or fails before `end` with a documented code, never with a wrong
27
27
  // stream.
28
- // Measured: the TypeScript grammars earn the same eight as the Rust ones;
29
- // `toml`, `ini`, `csv`, `xml` and `feed` open a section's, a record's or an
30
- // element's container before its key, or build a record the stream does not
31
- // see, and the adapter refuses each on its own samples.
28
+ // Measured: the TypeScript grammars earn the same nine as the Rust ones.
29
+ // `xml` builds each element in document order, in a node of its own made
30
+ // when the start tag is read, with `children` named before its list opens
31
+ // and the list in a node of its own. `toml` and `ini` open a section's
32
+ // container before its key, `csv` builds a record the stream does not see,
33
+ // and `feed` replaces xml's root element with the feed it makes of the tree
34
+ // when the root closes, so the adapter refuses each on its own samples.
32
35
  // The grammars whose incremental events never contradict the whole-value
33
36
  // walk on any fixture, by their package's name (`@tabnas/<name>`).
34
37
  exports.INCREMENTAL = Object.freeze([
@@ -38,6 +41,7 @@ exports.INCREMENTAL = Object.freeze([
38
41
  'jsonic',
39
42
  'jsonl',
40
43
  'markdown',
44
+ 'xml',
41
45
  'yaml',
42
46
  'zon',
43
47
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"capability.js","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":";AAAA,4CAA4C;;;;AAE5C,0EAA0E;AAC1E,EAAE;AACF,uEAAuE;AACvE,0EAA0E;AAC1E,4EAA4E;AAC5E,6DAA6D;AAC7D,wEAAwE;AACxE,qEAAqE;AACrE,0EAA0E;AAC1E,uEAAuE;AACvE,sEAAsE;AACtE,2EAA2E;AAC3E,wEAAwE;AACxE,yEAAyE;AACzE,mCAAmC;AACnC,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,0EAA0E;AAC1E,sEAAsE;AACtE,0E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AAe;IAC3C,OAAO,QAAA,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;AACtC,CAAC;AAEY,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,WAAW,EAAX,QAAA,WAAW;IACX,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "0.2.6";
1
+ export declare const VERSION = "0.2.7";
2
2
  export { Datum, DatumBuilder, byteSize, fromJSON, fromTabnas, getPath, takePath, toJSON, toText, walkDatum, } from '@tabnas/alchemy/shared';
3
3
  export type { Duplicates } from '@tabnas/alchemy/shared';
4
4
  export { Code, Fail, isFail } from '@tabnas/alchemy/shared';
package/dist/transduce.js CHANGED
@@ -30,7 +30,7 @@ exports.routers = exports.TableFromJson = exports.columnFromMeta = exports.bound
30
30
  // under the names it always exported them by. `routers` is this package's
31
31
  // stages as alchemy's `Routers`, for a host to pass to alchemy's `compile`.
32
32
  // This package's version, as package.json declares it.
33
- exports.VERSION = '0.2.6';
33
+ exports.VERSION = '0.2.7';
34
34
  var shared_1 = require("@tabnas/alchemy/shared");
35
35
  Object.defineProperty(exports, "Datum", { enumerable: true, get: function () { return shared_1.Datum; } });
36
36
  Object.defineProperty(exports, "DatumBuilder", { enumerable: true, get: function () { return shared_1.DatumBuilder; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tabnas/transduce",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "main": "dist/transduce.js",
5
5
  "type": "commonjs",
6
6
  "types": "dist/transduce.d.ts",
package/src/capability.ts CHANGED
@@ -23,10 +23,13 @@
23
23
  // value, or fails before `end` with a documented code, never with a wrong
24
24
  // stream.
25
25
 
26
- // Measured: the TypeScript grammars earn the same eight as the Rust ones;
27
- // `toml`, `ini`, `csv`, `xml` and `feed` open a section's, a record's or an
28
- // element's container before its key, or build a record the stream does not
29
- // see, and the adapter refuses each on its own samples.
26
+ // Measured: the TypeScript grammars earn the same nine as the Rust ones.
27
+ // `xml` builds each element in document order, in a node of its own made
28
+ // when the start tag is read, with `children` named before its list opens
29
+ // and the list in a node of its own. `toml` and `ini` open a section's
30
+ // container before its key, `csv` builds a record the stream does not see,
31
+ // and `feed` replaces xml's root element with the feed it makes of the tree
32
+ // when the root closes, so the adapter refuses each on its own samples.
30
33
 
31
34
  // The grammars whose incremental events never contradict the whole-value
32
35
  // walk on any fixture, by their package's name (`@tabnas/<name>`).
@@ -37,6 +40,7 @@ export const INCREMENTAL: readonly string[] = Object.freeze([
37
40
  'jsonic',
38
41
  'jsonl',
39
42
  'markdown',
43
+ 'xml',
40
44
  'yaml',
41
45
  'zon',
42
46
  ])
package/src/transduce.ts CHANGED
@@ -28,7 +28,7 @@
28
28
  // stages as alchemy's `Routers`, for a host to pass to alchemy's `compile`.
29
29
 
30
30
  // This package's version, as package.json declares it.
31
- export const VERSION = '0.2.6'
31
+ export const VERSION = '0.2.7'
32
32
 
33
33
  export {
34
34
  Datum,