@rljson/io 0.0.48 → 0.0.50

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.
@@ -1,4 +1,42 @@
1
1
  [
2
+ {
3
+ "key": "table0",
4
+ "type": "components",
5
+ "isHead": false,
6
+ "isRoot": false,
7
+ "isShared": true,
8
+ "columns": [
9
+ {
10
+ "key": "_hash",
11
+ "type": "string",
12
+ "titleShort": "Hash",
13
+ "titleLong": "Hash",
14
+ "_hash": "Np5O9L6tfUaUFTAYyx6g5E"
15
+ },
16
+ {
17
+ "key": "col0",
18
+ "type": "string",
19
+ "titleShort": "Col 0",
20
+ "titleLong": "Column 0",
21
+ "_hash": "fvMI-WzMWCkWbd1GkgXUpJ"
22
+ },
23
+ {
24
+ "key": "col1",
25
+ "type": "string",
26
+ "titleShort": "Col 1",
27
+ "titleLong": "Column 1",
28
+ "_hash": "vkqz1vL1xEbE_keUnPuBFF"
29
+ },
30
+ {
31
+ "key": "col2",
32
+ "type": "string",
33
+ "titleShort": "Col 2",
34
+ "titleLong": "Column 2",
35
+ "_hash": "cX5UkMoDzir2FOY1ETO0bd"
36
+ }
37
+ ],
38
+ "_hash": "9U6fOoxQfO2WiCmN8_Jdjc"
39
+ },
2
40
  {
3
41
  "key": "revisions",
4
42
  "type": "revisions",
@@ -61,15 +99,50 @@
61
99
  {
62
100
  "key": "_hash",
63
101
  "type": "string",
64
- "_hash": "df4oYftB-71Njv9FprRCeg"
102
+ "titleShort": "Hash",
103
+ "titleLong": "Hash",
104
+ "_hash": "Np5O9L6tfUaUFTAYyx6g5E"
65
105
  },
66
106
  {
67
107
  "key": "col0",
68
108
  "type": "string",
69
- "_hash": "LyqWPAOnRnSAofi4I1aMIv"
109
+ "titleShort": "Col 0",
110
+ "titleLong": "Column 0",
111
+ "_hash": "fvMI-WzMWCkWbd1GkgXUpJ"
112
+ },
113
+ {
114
+ "key": "col1",
115
+ "type": "string",
116
+ "titleShort": "Col 1",
117
+ "titleLong": "Column 1",
118
+ "_hash": "vkqz1vL1xEbE_keUnPuBFF"
70
119
  }
71
120
  ],
72
- "_hash": "SkSdXUd0JvYYu_AtvQ2sOZ"
121
+ "_hash": "PMrezGbwV6Q8jqnFVtN2Ds"
122
+ },
123
+ {
124
+ "key": "table0",
125
+ "type": "components",
126
+ "isHead": false,
127
+ "isRoot": false,
128
+ "isShared": true,
129
+ "columns": [
130
+ {
131
+ "key": "_hash",
132
+ "type": "string",
133
+ "titleShort": "Hash",
134
+ "titleLong": "Hash",
135
+ "_hash": "Np5O9L6tfUaUFTAYyx6g5E"
136
+ },
137
+ {
138
+ "key": "col0",
139
+ "type": "string",
140
+ "titleShort": "Col 0",
141
+ "titleLong": "Column 0",
142
+ "_hash": "fvMI-WzMWCkWbd1GkgXUpJ"
143
+ }
144
+ ],
145
+ "_hash": "hRGIuOUgft_sHux64gnA9o"
73
146
  },
74
147
  {
75
148
  "_hash": "jERNpYntKnsV66yxoS2xOg",
@@ -137,60 +210,5 @@
137
210
  "_hash": "GRV_4vc3xouarDpc1ZXE2_"
138
211
  }
139
212
  ]
140
- },
141
- {
142
- "key": "table0",
143
- "type": "components",
144
- "isHead": false,
145
- "isRoot": false,
146
- "isShared": true,
147
- "columns": [
148
- {
149
- "key": "_hash",
150
- "type": "string",
151
- "_hash": "df4oYftB-71Njv9FprRCeg"
152
- },
153
- {
154
- "key": "col0",
155
- "type": "string",
156
- "_hash": "LyqWPAOnRnSAofi4I1aMIv"
157
- },
158
- {
159
- "key": "col1",
160
- "type": "string",
161
- "_hash": "aD2OJziZ76JeLyPuV4ioKe"
162
- }
163
- ],
164
- "_hash": "vP2jpAaUyT_Xo3bvmTgfpo"
165
- },
166
- {
167
- "key": "table0",
168
- "type": "components",
169
- "isHead": false,
170
- "isRoot": false,
171
- "isShared": true,
172
- "columns": [
173
- {
174
- "key": "_hash",
175
- "type": "string",
176
- "_hash": "df4oYftB-71Njv9FprRCeg"
177
- },
178
- {
179
- "key": "col0",
180
- "type": "string",
181
- "_hash": "LyqWPAOnRnSAofi4I1aMIv"
182
- },
183
- {
184
- "key": "col1",
185
- "type": "string",
186
- "_hash": "aD2OJziZ76JeLyPuV4ioKe"
187
- },
188
- {
189
- "key": "col2",
190
- "type": "string",
191
- "_hash": "yd4AdprM2Z0vqKieWOibX5"
192
- }
193
- ],
194
- "_hash": "wfRMrOPA2C9ogANQmzsI7K"
195
213
  }
196
214
  ]
@@ -61,25 +61,33 @@
61
61
  {
62
62
  "key": "_hash",
63
63
  "type": "string",
64
- "_hash": "df4oYftB-71Njv9FprRCeg"
64
+ "titleShort": "Hash",
65
+ "titleLong": "Hash",
66
+ "_hash": "Np5O9L6tfUaUFTAYyx6g5E"
65
67
  },
66
68
  {
67
69
  "key": "col0",
68
70
  "type": "string",
69
- "_hash": "LyqWPAOnRnSAofi4I1aMIv"
71
+ "titleShort": "Col 0",
72
+ "titleLong": "Column 0",
73
+ "_hash": "fvMI-WzMWCkWbd1GkgXUpJ"
70
74
  },
71
75
  {
72
76
  "key": "col1",
73
77
  "type": "string",
74
- "_hash": "aD2OJziZ76JeLyPuV4ioKe"
78
+ "titleShort": "Col 1",
79
+ "titleLong": "Column 1",
80
+ "_hash": "vkqz1vL1xEbE_keUnPuBFF"
75
81
  },
76
82
  {
77
83
  "key": "col2",
78
84
  "type": "string",
79
- "_hash": "yd4AdprM2Z0vqKieWOibX5"
85
+ "titleShort": "Col 2",
86
+ "titleLong": "Column 2",
87
+ "_hash": "cX5UkMoDzir2FOY1ETO0bd"
80
88
  }
81
89
  ],
82
- "_hash": "wfRMrOPA2C9ogANQmzsI7K"
90
+ "_hash": "9U6fOoxQfO2WiCmN8_Jdjc"
83
91
  },
84
92
  {
85
93
  "_hash": "jERNpYntKnsV66yxoS2xOg",
@@ -126,17 +126,37 @@ export const runIoConformanceTests = (
126
126
  isRoot: false,
127
127
  isShared: true,
128
128
  columns: [
129
- { key: '_hash', type: 'string' },
130
- { key: 'col0', type: 'string' },
129
+ {
130
+ key: '_hash',
131
+ type: 'string',
132
+ titleShort: 'Hash',
133
+ titleLong: 'Hash',
134
+ },
135
+ {
136
+ key: 'col0',
137
+ type: 'string',
138
+ titleShort: 'Col 0',
139
+ titleLong: 'Column 0',
140
+ },
131
141
  ],
132
142
  };
133
143
 
134
144
  const tableV1 = addColumnsToTableCfg(tableV0, [
135
- { key: 'col1', type: 'string' },
145
+ {
146
+ key: 'col1',
147
+ type: 'string',
148
+ titleShort: 'Col 1',
149
+ titleLong: 'Column 1',
150
+ },
136
151
  ]);
137
152
 
138
153
  const tableV2 = addColumnsToTableCfg(tableV1, [
139
- { key: 'col2', type: 'string' },
154
+ {
155
+ key: 'col2',
156
+ type: 'string',
157
+ titleShort: 'Col 2',
158
+ titleLong: 'Column 2',
159
+ },
140
160
  ]);
141
161
 
142
162
  await io.createOrExtendTable({ tableCfg: tableV0 });
@@ -162,17 +182,37 @@ export const runIoConformanceTests = (
162
182
  isRoot: false,
163
183
  isShared: true,
164
184
  columns: [
165
- { key: '_hash', type: 'string' },
166
- { key: 'col0', type: 'string' },
185
+ {
186
+ key: '_hash',
187
+ type: 'string',
188
+ titleShort: 'Hash',
189
+ titleLong: 'Hash',
190
+ },
191
+ {
192
+ key: 'col0',
193
+ type: 'string',
194
+ titleShort: 'Col 0',
195
+ titleLong: 'Column 0',
196
+ },
167
197
  ],
168
198
  };
169
199
 
170
200
  const tableV1 = addColumnsToTableCfg(tableV0, [
171
- { key: 'col1', type: 'string' },
201
+ {
202
+ key: 'col1',
203
+ type: 'string',
204
+ titleShort: 'Col 1',
205
+ titleLong: 'Column 1',
206
+ },
172
207
  ]);
173
208
 
174
209
  const tableV2 = addColumnsToTableCfg(tableV1, [
175
- { key: 'col2', type: 'string' },
210
+ {
211
+ key: 'col2',
212
+ type: 'string',
213
+ titleShort: 'Col 2',
214
+ titleLong: 'Column 2',
215
+ },
176
216
  ]);
177
217
 
178
218
  await io.createOrExtendTable({ tableCfg: tableV0 });
@@ -259,6 +299,8 @@ export const runIoConformanceTests = (
259
299
  {
260
300
  key: 'x',
261
301
  type: 'unknown' as any,
302
+ titleShort: 'X',
303
+ titleLong: 'Column X',
262
304
  },
263
305
  ],
264
306
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/io",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Low level interface for reading and writing RLJSON data",
5
5
  "homepage": "https://github.com/rljson/io",
6
6
  "bugs": "https://github.com/rljson/io/issues",