@effected/markdown 0.12.0 → 0.12.1

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.
package/MarkdownNode.js CHANGED
@@ -501,15 +501,14 @@ var TableCell = class extends Schema.Class("TableCell")({
501
501
  * content — the cells in a {@link TableRow}. A one-member union, kept because
502
502
  * mdast names the category.
503
503
  *
504
- * A REAL `Schema.Union`, not a bare suspended class reference, and the
505
- * wrapper is load-bearing: `make` passes an already-constructed class
506
- * instance through a union member untouched, while a class-typed field
507
- * re-runs construction on every element of the array. On a 30k-row table
508
- * that re-construction was 1137ms for the single `Table.make` call against
509
- * 9ms through the union (measured; the pathological suite's "tables" case is
510
- * the regression instrument). The `children` fields of `TableRow`, `Table`
511
- * and `List` point at these category unions for exactly that reason — do not
512
- * "simplify" them back to the member class.
504
+ * A REAL `Schema.Union`, not a bare suspended class reference. `make` passes
505
+ * an already-constructed class instance through a nested class-typed field
506
+ * by reference regardless of whether the field is a plain class type or —
507
+ * as here — wrapped in a `Schema.Union`, so the wrapper buys no
508
+ * construction-cost advantage over the bare member class. It is kept
509
+ * because mdast names the category: the `children` fields of `TableRow`,
510
+ * `Table` and `List` point at these category unions to mirror mdast's
511
+ * content-model vocabulary, not for a performance reason.
513
512
  *
514
513
  * @public
515
514
  */
package/index.d.ts CHANGED
@@ -543,15 +543,14 @@ export declare class TableCell extends TableCell_base {}
543
543
  * content — the cells in a {@link TableRow}. A one-member union, kept because
544
544
  * mdast names the category.
545
545
  *
546
- * A REAL `Schema.Union`, not a bare suspended class reference, and the
547
- * wrapper is load-bearing: `make` passes an already-constructed class
548
- * instance through a union member untouched, while a class-typed field
549
- * re-runs construction on every element of the array. On a 30k-row table
550
- * that re-construction was 1137ms for the single `Table.make` call against
551
- * 9ms through the union (measured; the pathological suite's "tables" case is
552
- * the regression instrument). The `children` fields of `TableRow`, `Table`
553
- * and `List` point at these category unions for exactly that reason — do not
554
- * "simplify" them back to the member class.
546
+ * A REAL `Schema.Union`, not a bare suspended class reference. `make` passes
547
+ * an already-constructed class instance through a nested class-typed field
548
+ * by reference regardless of whether the field is a plain class type or —
549
+ * as here — wrapped in a `Schema.Union`, so the wrapper buys no
550
+ * construction-cost advantage over the bare member class. It is kept
551
+ * because mdast names the category: the `children` fields of `TableRow`,
552
+ * `Table` and `List` point at these category unions to mirror mdast's
553
+ * content-model vocabulary, not for a performance reason.
555
554
  *
556
555
  * @public
557
556
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/markdown",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "private": false,
5
5
  "description": "CommonMark and GFM markdown parse, edit and transform schemas for Effect",
6
6
  "keywords": [