tinybase 9.6.0 → 9.7.0-beta.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/@types/omni/index.d.ts +1 -0
- package/@types/omni/with-schemas/index.d.ts +1 -0
- package/@types/persisters/persister-sqlite-node/index.d.ts +184 -0
- package/@types/persisters/persister-sqlite-node/with-schemas/index.d.ts +208 -0
- package/@types/ui-react-dom/index.d.ts +10 -10
- package/@types/ui-react-dom/with-schemas/index.d.ts +10 -10
- package/@types/ui-react-dom-charts/index.d.ts +7 -7
- package/@types/ui-react-dom-charts/with-schemas/index.d.ts +7 -7
- package/@types/ui-react-inspector/index.d.ts +1 -1
- package/@types/ui-react-inspector/with-schemas/index.d.ts +1 -1
- package/@types/ui-solid-dom/index.d.ts +10 -10
- package/@types/ui-solid-dom/with-schemas/index.d.ts +10 -10
- package/@types/ui-solid-inspector/index.d.ts +1 -1
- package/@types/ui-solid-inspector/with-schemas/index.d.ts +1 -1
- package/@types/ui-svelte-dom/index.d.ts +10 -10
- package/@types/ui-svelte-dom/with-schemas/index.d.ts +10 -10
- package/@types/ui-svelte-inspector/index.d.ts +1 -1
- package/@types/ui-svelte-inspector/with-schemas/index.d.ts +1 -1
- package/agents.md +38 -0
- package/min/omni/index.js +1 -1
- package/min/omni/index.js.gz +0 -0
- package/min/omni/with-schemas/index.js +1 -1
- package/min/omni/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-node/index.js +1 -0
- package/min/persisters/persister-sqlite-node/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-node/with-schemas/index.js +1 -0
- package/min/persisters/persister-sqlite-node/with-schemas/index.js.gz +0 -0
- package/omni/index.js +22 -0
- package/omni/with-schemas/index.js +22 -0
- package/package.json +42 -6
- package/persisters/persister-sqlite-node/index.js +1762 -0
- package/persisters/persister-sqlite-node/with-schemas/index.js +1762 -0
- package/readme.md +14 -14
- package/releases.md +94 -72
|
@@ -544,7 +544,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
544
544
|
*
|
|
545
545
|
* See the Composing Charts (React) demo for this component in action:
|
|
546
546
|
*
|
|
547
|
-
* 
|
|
549
549
|
*
|
|
550
550
|
* The series children declare their own xCellId and yCellId bindings. The
|
|
@@ -609,7 +609,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
609
609
|
*
|
|
610
610
|
* See the Axis Overrides (React) demo for this component in action:
|
|
611
611
|
*
|
|
612
|
-
* 
|
|
614
614
|
* @category Store components
|
|
615
615
|
* @since v8.5.0
|
|
@@ -625,7 +625,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
625
625
|
*
|
|
626
626
|
* See the Axis Overrides (React) demo for this component in action:
|
|
627
627
|
*
|
|
628
|
-
* 
|
|
630
630
|
* @category Store components
|
|
631
631
|
* @since v8.5.0
|
|
@@ -641,7 +641,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
641
641
|
*
|
|
642
642
|
* See the Composing Charts (React) demo for this component in action:
|
|
643
643
|
*
|
|
644
|
-
* 
|
|
646
646
|
* @category Store components
|
|
647
647
|
* @since v8.5.0
|
|
@@ -657,7 +657,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
657
657
|
*
|
|
658
658
|
* See the Composing Charts (React) demo for this component in action:
|
|
659
659
|
*
|
|
660
|
-
* 
|
|
662
662
|
* @category Store components
|
|
663
663
|
* @since v8.5.0
|
|
@@ -684,7 +684,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
684
684
|
*
|
|
685
685
|
* See the <LineChart /> (React) demo for this component in action:
|
|
686
686
|
*
|
|
687
|
-
* 
|
|
689
689
|
* @category Store components
|
|
690
690
|
* @since v8.5.0
|
|
@@ -750,7 +750,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
750
750
|
*
|
|
751
751
|
* See the Sorting And Types (React) demo for this component in action:
|
|
752
752
|
*
|
|
753
|
-
* 
|
|
755
755
|
* @category Store components
|
|
756
756
|
* @since v8.5.0
|
|
@@ -46,7 +46,7 @@ export type InspectorProps = {
|
|
|
46
46
|
*
|
|
47
47
|
* See the <Inspector /> (React) demo for this component in action:
|
|
48
48
|
*
|
|
49
|
-
* 
|
|
51
51
|
*
|
|
52
52
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -46,7 +46,7 @@ export type InspectorProps = {
|
|
|
46
46
|
*
|
|
47
47
|
* See the <Inspector /> (React) demo for this component in action:
|
|
48
48
|
*
|
|
49
|
-
* 
|
|
51
51
|
*
|
|
52
52
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -695,7 +695,7 @@ export type SortedTablePaginatorProps = {
|
|
|
695
695
|
*
|
|
696
696
|
* See the <TableInHtmlTable /> (Solid) demo for this component in action:
|
|
697
697
|
*
|
|
698
|
-
* 
|
|
700
700
|
*
|
|
701
701
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -839,7 +839,7 @@ export function TableInHtmlTable(
|
|
|
839
839
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
840
840
|
* action:
|
|
841
841
|
*
|
|
842
|
-
* 
|
|
844
844
|
*
|
|
845
845
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1010,7 +1010,7 @@ export function SortedTableInHtmlTable(
|
|
|
1010
1010
|
*
|
|
1011
1011
|
* See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
|
|
1012
1012
|
*
|
|
1013
|
-
* 
|
|
1015
1015
|
*
|
|
1016
1016
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1139,7 +1139,7 @@ export function ValuesInHtmlTable(
|
|
|
1139
1139
|
*
|
|
1140
1140
|
* See the <SliceInHtmlTable /> (Solid) demo for this component in action:
|
|
1141
1141
|
*
|
|
1142
|
-
* 
|
|
1144
1144
|
*
|
|
1145
1145
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1295,7 +1295,7 @@ export function SliceInHtmlTable(
|
|
|
1295
1295
|
* See the <RelationshipInHtmlTable /> (Solid) demo for this component in
|
|
1296
1296
|
* action:
|
|
1297
1297
|
*
|
|
1298
|
-
* 
|
|
1300
1300
|
*
|
|
1301
1301
|
* The component's props identify which Relationship to render based on
|
|
@@ -1469,7 +1469,7 @@ export function RelationshipInHtmlTable(
|
|
|
1469
1469
|
* See the <ResultTableInHtmlTable /> (Solid) demo for this component in
|
|
1470
1470
|
* action:
|
|
1471
1471
|
*
|
|
1472
|
-
* 
|
|
1474
1474
|
*
|
|
1475
1475
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1620,7 +1620,7 @@ export function ResultTableInHtmlTable(
|
|
|
1620
1620
|
* See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1621
1621
|
* action:
|
|
1622
1622
|
*
|
|
1623
|
-
* 
|
|
1625
1625
|
*
|
|
1626
1626
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1792,7 +1792,7 @@ export function ResultSortedTableInHtmlTable(
|
|
|
1792
1792
|
*
|
|
1793
1793
|
* See the <EditableCellView /> (Solid) demo for this component in action:
|
|
1794
1794
|
*
|
|
1795
|
-
* 
|
|
1797
1797
|
*
|
|
1798
1798
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1862,7 +1862,7 @@ export function EditableCellView(
|
|
|
1862
1862
|
*
|
|
1863
1863
|
* See the <EditableValueView /> (Solid) demo for this component in action:
|
|
1864
1864
|
*
|
|
1865
|
-
* 
|
|
1867
1867
|
*
|
|
1868
1868
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -1932,7 +1932,7 @@ export function EditableValueView(
|
|
|
1932
1932
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1933
1933
|
* action:
|
|
1934
1934
|
*
|
|
1935
|
-
* 
|
|
1937
1937
|
*
|
|
1938
1938
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -753,7 +753,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
753
753
|
*
|
|
754
754
|
* See the <TableInHtmlTable /> (Solid) demo for this component in action:
|
|
755
755
|
*
|
|
756
|
-
* 
|
|
758
758
|
*
|
|
759
759
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -905,7 +905,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
905
905
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
906
906
|
* action:
|
|
907
907
|
*
|
|
908
|
-
* 
|
|
910
910
|
*
|
|
911
911
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1084,7 +1084,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1084
1084
|
*
|
|
1085
1085
|
* See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
|
|
1086
1086
|
*
|
|
1087
|
-
* 
|
|
1089
1089
|
*
|
|
1090
1090
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1221,7 +1221,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1221
1221
|
*
|
|
1222
1222
|
* See the <SliceInHtmlTable /> (Solid) demo for this component in action:
|
|
1223
1223
|
*
|
|
1224
|
-
* 
|
|
1226
1226
|
*
|
|
1227
1227
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1385,7 +1385,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1385
1385
|
* See the <RelationshipInHtmlTable /> (Solid) demo for this component in
|
|
1386
1386
|
* action:
|
|
1387
1387
|
*
|
|
1388
|
-
* 
|
|
1390
1390
|
*
|
|
1391
1391
|
* The component's props identify which Relationship to render based on
|
|
@@ -1567,7 +1567,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1567
1567
|
* See the <ResultTableInHtmlTable /> (Solid) demo for this component in
|
|
1568
1568
|
* action:
|
|
1569
1569
|
*
|
|
1570
|
-
* 
|
|
1572
1572
|
*
|
|
1573
1573
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1726,7 +1726,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1726
1726
|
* See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1727
1727
|
* action:
|
|
1728
1728
|
*
|
|
1729
|
-
* 
|
|
1731
1731
|
*
|
|
1732
1732
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1906,7 +1906,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1906
1906
|
*
|
|
1907
1907
|
* See the <EditableCellView /> (Solid) demo for this component in action:
|
|
1908
1908
|
*
|
|
1909
|
-
* 
|
|
1911
1911
|
*
|
|
1912
1912
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1990,7 +1990,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1990
1990
|
*
|
|
1991
1991
|
* See the <EditableValueView /> (Solid) demo for this component in action:
|
|
1992
1992
|
*
|
|
1993
|
-
* 
|
|
1995
1995
|
*
|
|
1996
1996
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -2060,7 +2060,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2060
2060
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
2061
2061
|
* action:
|
|
2062
2062
|
*
|
|
2063
|
-
* 
|
|
2065
2065
|
*
|
|
2066
2066
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -49,7 +49,7 @@ export type InspectorProps = {
|
|
|
49
49
|
*
|
|
50
50
|
* See the <Inspector /> (Solid) demo for this component in action:
|
|
51
51
|
*
|
|
52
|
-
* 
|
|
54
54
|
*
|
|
55
55
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -49,7 +49,7 @@ export type InspectorProps = {
|
|
|
49
49
|
*
|
|
50
50
|
* See the <Inspector /> (Solid) demo for this component in action:
|
|
51
51
|
*
|
|
52
|
-
* 
|
|
54
54
|
*
|
|
55
55
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -693,7 +693,7 @@ export type SortedTablePaginatorProps = {
|
|
|
693
693
|
*
|
|
694
694
|
* See the <TableInHtmlTable /> (Svelte) demo for this component in action:
|
|
695
695
|
*
|
|
696
|
-
* 
|
|
698
698
|
*
|
|
699
699
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -857,7 +857,7 @@ export const TableInHtmlTable: Component<
|
|
|
857
857
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
858
858
|
* action:
|
|
859
859
|
*
|
|
860
|
-
* 
|
|
862
862
|
*
|
|
863
863
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1045,7 +1045,7 @@ export const SortedTableInHtmlTable: Component<
|
|
|
1045
1045
|
*
|
|
1046
1046
|
* See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
|
|
1047
1047
|
*
|
|
1048
|
-
* 
|
|
1050
1050
|
*
|
|
1051
1051
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1188,7 +1188,7 @@ export const ValuesInHtmlTable: Component<
|
|
|
1188
1188
|
*
|
|
1189
1189
|
* See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
|
|
1190
1190
|
*
|
|
1191
|
-
* 
|
|
1193
1193
|
*
|
|
1194
1194
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1360,7 +1360,7 @@ export const SliceInHtmlTable: Component<
|
|
|
1360
1360
|
* See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
|
|
1361
1361
|
* action:
|
|
1362
1362
|
*
|
|
1363
|
-
* 
|
|
1365
1365
|
*
|
|
1366
1366
|
* The component's props identify which Relationship to render based on
|
|
@@ -1547,7 +1547,7 @@ export const RelationshipInHtmlTable: Component<
|
|
|
1547
1547
|
* See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
|
|
1548
1548
|
* action:
|
|
1549
1549
|
*
|
|
1550
|
-
* 
|
|
1552
1552
|
*
|
|
1553
1553
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1716,7 +1716,7 @@ export const ResultTableInHtmlTable: Component<
|
|
|
1716
1716
|
* See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
1717
1717
|
* action:
|
|
1718
1718
|
*
|
|
1719
|
-
* 
|
|
1721
1721
|
*
|
|
1722
1722
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1905,7 +1905,7 @@ export const ResultSortedTableInHtmlTable: Component<
|
|
|
1905
1905
|
*
|
|
1906
1906
|
* See the <EditableCellView /> (Svelte) demo for this component in action:
|
|
1907
1907
|
*
|
|
1908
|
-
* 
|
|
1910
1910
|
*
|
|
1911
1911
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1978,7 +1978,7 @@ export const EditableCellView: Component<
|
|
|
1978
1978
|
*
|
|
1979
1979
|
* See the <EditableValueView /> (Svelte) demo for this component in action:
|
|
1980
1980
|
*
|
|
1981
|
-
* 
|
|
1983
1983
|
*
|
|
1984
1984
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -2053,7 +2053,7 @@ export const EditableValueView: Component<
|
|
|
2053
2053
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
2054
2054
|
* action:
|
|
2055
2055
|
*
|
|
2056
|
-
* 
|
|
2058
2058
|
*
|
|
2059
2059
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -751,7 +751,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
751
751
|
*
|
|
752
752
|
* See the <TableInHtmlTable /> (Svelte) demo for this component in action:
|
|
753
753
|
*
|
|
754
|
-
* 
|
|
756
756
|
*
|
|
757
757
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -921,7 +921,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
921
921
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
922
922
|
* action:
|
|
923
923
|
*
|
|
924
|
-
* 
|
|
926
926
|
*
|
|
927
927
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1117,7 +1117,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1117
1117
|
*
|
|
1118
1118
|
* See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
|
|
1119
1119
|
*
|
|
1120
|
-
* 
|
|
1122
1122
|
*
|
|
1123
1123
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1268,7 +1268,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1268
1268
|
*
|
|
1269
1269
|
* See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
|
|
1270
1270
|
*
|
|
1271
|
-
* 
|
|
1273
1273
|
*
|
|
1274
1274
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1446,7 +1446,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1446
1446
|
* See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
|
|
1447
1447
|
* action:
|
|
1448
1448
|
*
|
|
1449
|
-
* 
|
|
1451
1451
|
*
|
|
1452
1452
|
* The component's props identify which Relationship to render based on
|
|
@@ -1641,7 +1641,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1641
1641
|
* See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
|
|
1642
1642
|
* action:
|
|
1643
1643
|
*
|
|
1644
|
-
* 
|
|
1646
1646
|
*
|
|
1647
1647
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1818,7 +1818,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1818
1818
|
* See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
1819
1819
|
* action:
|
|
1820
1820
|
*
|
|
1821
|
-
* 
|
|
1823
1823
|
*
|
|
1824
1824
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -2015,7 +2015,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2015
2015
|
*
|
|
2016
2016
|
* See the <EditableCellView /> (Svelte) demo for this component in action:
|
|
2017
2017
|
*
|
|
2018
|
-
* 
|
|
2020
2020
|
*
|
|
2021
2021
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -2102,7 +2102,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2102
2102
|
*
|
|
2103
2103
|
* See the <EditableValueView /> (Svelte) demo for this component in action:
|
|
2104
2104
|
*
|
|
2105
|
-
* 
|
|
2107
2107
|
*
|
|
2108
2108
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -2177,7 +2177,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2177
2177
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
2178
2178
|
* action:
|
|
2179
2179
|
*
|
|
2180
|
-
* 
|
|
2182
2182
|
*
|
|
2183
2183
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -49,7 +49,7 @@ export type InspectorProps = {
|
|
|
49
49
|
*
|
|
50
50
|
* See the <Inspector /> (Svelte) demo for this component in action:
|
|
51
51
|
*
|
|
52
|
-
* 
|
|
54
54
|
*
|
|
55
55
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -49,7 +49,7 @@ export type InspectorProps = {
|
|
|
49
49
|
*
|
|
50
50
|
* See the <Inspector /> (Svelte) demo for this component in action:
|
|
51
51
|
*
|
|
52
|
-
* 
|
|
54
54
|
*
|
|
55
55
|
* The component displays a nub in the corner of the screen which you may then
|
package/agents.md
CHANGED
|
@@ -234,6 +234,32 @@ npm run serveDocs # Preview documentation locally
|
|
|
234
234
|
- **Types**: Unit, performance, end-to-end, production
|
|
235
235
|
- **Environment**: happy-dom (unit), puppeteer (e2e)
|
|
236
236
|
|
|
237
|
+
Coverage is measured over four bundles only - `dist/index.js` and the three UI
|
|
238
|
+
entry points - so Persister and Synchronizer modules do not appear in that
|
|
239
|
+
figure. Their correctness comes from the database matrix in
|
|
240
|
+
`test/unit/persisters/common/databases.ts` instead, which every new Persister
|
|
241
|
+
should be added to.
|
|
242
|
+
|
|
243
|
+
`npm run testPerf` asserts against absolute microsecond budgets with roughly
|
|
244
|
+
40% headroom, and swings by more than 2x under scheduling contention. It needs
|
|
245
|
+
a real foreground terminal, and it does not run in CI, so a failure there is
|
|
246
|
+
not evidence of a regression until it has been reproduced that way.
|
|
247
|
+
|
|
248
|
+
Never pipe a long gulp task through `tail`: the pipeline reports `tail`'s exit
|
|
249
|
+
code rather than gulp's, so a failed `preCommit` or `prePublishPackage` looks
|
|
250
|
+
like a success. Redirect to a file and check `$?`.
|
|
251
|
+
|
|
252
|
+
### Dependencies
|
|
253
|
+
|
|
254
|
+
- Lift the version for **both** the devDependency and the peerDependency
|
|
255
|
+
together whenever a package appears in both.
|
|
256
|
+
- Use `ncu -u --dep=peer,dev`. Plain `ncu` omits peers, which hides peer-only
|
|
257
|
+
entries entirely.
|
|
258
|
+
- `ncu` keeps the two sections in step only when their ranges are written
|
|
259
|
+
identically. Where the forms differ it updates one and silently leaves the
|
|
260
|
+
other, so use carets consistently and diff both sections after a bump rather
|
|
261
|
+
than trusting the `ncu` summary, which prints one line per package.
|
|
262
|
+
|
|
237
263
|
### Code Style
|
|
238
264
|
|
|
239
265
|
- **ESLint**: Enforced with strict rules
|
|
@@ -243,6 +269,18 @@ npm run serveDocs # Preview documentation locally
|
|
|
243
269
|
- **Semicolons**: Required
|
|
244
270
|
- **Object spacing**: No spaces in braces `{key: value}`
|
|
245
271
|
|
|
272
|
+
### Git Conventions
|
|
273
|
+
|
|
274
|
+
- **Never add attribution trailers to commit messages.** No `Co-Authored-By:`,
|
|
275
|
+
no "Generated with" lines, no tool or model attribution of any kind. The
|
|
276
|
+
history contains no trailers, and it should stay that way.
|
|
277
|
+
- Commit messages are a **single line** with no body, in the form
|
|
278
|
+
`[topic] Sentence case subject`. The topic is the area of work, usually the
|
|
279
|
+
module or dependency being changed, as in `[hygiene] Dependencies` or
|
|
280
|
+
`[sqlite-node] Test across the database matrix`.
|
|
281
|
+
- A new Persister lands as a sequence of commits in this order: dependency (if
|
|
282
|
+
any), boilerplate (implementation, types and registration), tests, then docs.
|
|
283
|
+
|
|
246
284
|
## Project Structure
|
|
247
285
|
|
|
248
286
|
```
|