@rljson/rljson 0.0.28 → 0.0.29

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.
@@ -38,6 +38,11 @@ export interface TableCfg extends Json {
38
38
  * The previous version of the table
39
39
  */
40
40
  previous?: TableCfgRef;
41
+ /**
42
+ * The version of the table.
43
+ * Needs to be increased when new columns are added.
44
+ */
45
+ version: number;
41
46
  }
42
47
  /**
43
48
  * A table containing columns
package/dist/rljson.js CHANGED
@@ -162,6 +162,7 @@ __publicField(_Example, "ok", {
162
162
  _type: "properties",
163
163
  _data: [
164
164
  {
165
+ version: 0,
165
166
  _hash: "",
166
167
  key: "table",
167
168
  type: "properties",
@@ -480,6 +481,7 @@ const exampleTableCfgTable = () => Example.ok.singleRow().tableCfgs;
480
481
  const exampleTableCfg = (tableCfg = void 0) => {
481
482
  return {
482
483
  key: (tableCfg == null ? void 0 : tableCfg.key) ?? "table",
484
+ version: 1,
483
485
  columns: (tableCfg == null ? void 0 : tableCfg.columns) ?? {
484
486
  a: {
485
487
  key: "a",
@@ -36,9 +36,11 @@ export class Example {
36
36
  singleRow: (): Rljson => {
37
37
  const tableCfgs: TablesCfgTable = hip({
38
38
  _hash: '',
39
+
39
40
  _type: 'properties',
40
41
  _data: [
41
42
  {
43
+ version: 0,
42
44
  _hash: '',
43
45
  key: 'table',
44
46
  type: 'properties',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/rljson",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "packageManager": "pnpm@10.6.3",
5
5
  "description": "The RLJSON data format specification",
6
6
  "homepage": "https://github.com/rljson/rljson",