@rljson/rljson 0.0.56 → 0.0.60
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/dist/content/cake.d.ts +9 -0
- package/dist/content/components.d.ts +3 -2
- package/dist/content/layer.d.ts +6 -0
- package/dist/edit/edit.d.ts +29 -0
- package/dist/edit/route.d.ts +13 -0
- package/dist/example/bakery-example.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/rljson.d.ts +2 -1
- package/dist/rljson.js +587 -488
- package/dist/src/example.ts +5 -1
- package/dist/tools/time-id.d.ts +1 -0
- package/dist/typedefs.d.ts +1 -1
- package/package.json +17 -24
package/dist/src/example.ts
CHANGED
|
@@ -52,6 +52,10 @@ export class Example {
|
|
|
52
52
|
isRoot: false,
|
|
53
53
|
isShared: true,
|
|
54
54
|
columns: [
|
|
55
|
+
{
|
|
56
|
+
key: '_hash',
|
|
57
|
+
type: 'string',
|
|
58
|
+
},
|
|
55
59
|
{
|
|
56
60
|
key: 'int',
|
|
57
61
|
type: 'number',
|
|
@@ -94,7 +98,7 @@ export class Example {
|
|
|
94
98
|
table: {
|
|
95
99
|
_tableCfg: tableCfgs._data[0]._hash as string,
|
|
96
100
|
_type: 'components',
|
|
97
|
-
_data: [exampleJsonObject()],
|
|
101
|
+
_data: [hip(exampleJsonObject())],
|
|
98
102
|
_hash: '',
|
|
99
103
|
},
|
|
100
104
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const timeId: () => string;
|
package/dist/typedefs.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type ColumnKey = JsonKey;
|
|
|
26
26
|
* - `ids` Tables containing slice ids
|
|
27
27
|
* - `components` Tables containing slice components
|
|
28
28
|
*/
|
|
29
|
-
export declare const contentTypes: readonly ["buffets", "cakes", "layers", "sliceIds", "components", "revisions", "tableCfgs"];
|
|
29
|
+
export declare const contentTypes: readonly ["buffets", "cakes", "layers", "sliceIds", "components", "revisions", "tableCfgs", "edits"];
|
|
30
30
|
export type ContentType = (typeof contentTypes)[number];
|
|
31
31
|
/**
|
|
32
32
|
* An example object using the typedefs
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rljson/rljson",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"packageManager": "pnpm@10.11.0",
|
|
3
|
+
"version": "0.0.60",
|
|
5
4
|
"description": "The RLJSON data format specification",
|
|
6
5
|
"homepage": "https://github.com/rljson/rljson",
|
|
7
6
|
"bugs": "https://github.com/rljson/rljson/issues",
|
|
@@ -20,29 +19,21 @@
|
|
|
20
19
|
"dist"
|
|
21
20
|
],
|
|
22
21
|
"type": "module",
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "npx vite build && tsc && cp README* dist && mkdir dist/src && cp src/example.ts dist/src",
|
|
25
|
-
"test": "npx vitest run --coverage && npm run lint",
|
|
26
|
-
"prebuild": "npm run test",
|
|
27
|
-
"prepublishOnly": "npm run build && npm run test",
|
|
28
|
-
"lint": "npx eslint",
|
|
29
|
-
"updateGoldens": "cross-env UPDATE_GOLDENS=true npm test"
|
|
30
|
-
},
|
|
31
22
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^24.
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
34
|
-
"@typescript-eslint/parser": "^8.
|
|
23
|
+
"@types/node": "^24.5.2",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
25
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
35
26
|
"@vitest/coverage-v8": "^3.2.4",
|
|
36
27
|
"cross-env": "^10.0.0",
|
|
37
|
-
"eslint": "^9.
|
|
38
|
-
"eslint-plugin-jsdoc": "^
|
|
28
|
+
"eslint": "^9.36.0",
|
|
29
|
+
"eslint-plugin-jsdoc": "^60.3.1",
|
|
39
30
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
40
31
|
"globals": "^16.4.0",
|
|
41
32
|
"jsdoc": "^4.0.4",
|
|
42
33
|
"read-pkg": "^9.0.1",
|
|
43
34
|
"typescript": "~5.9.2",
|
|
44
|
-
"typescript-eslint": "^8.
|
|
45
|
-
"vite": "^7.1.
|
|
35
|
+
"typescript-eslint": "^8.44.1",
|
|
36
|
+
"vite": "^7.1.7",
|
|
46
37
|
"vite-node": "^3.2.4",
|
|
47
38
|
"vite-plugin-dts": "^4.5.4",
|
|
48
39
|
"vite-tsconfig-paths": "^5.1.4",
|
|
@@ -51,12 +42,14 @@
|
|
|
51
42
|
},
|
|
52
43
|
"dependencies": {
|
|
53
44
|
"@rljson/hash": "^0.0.16",
|
|
54
|
-
"@rljson/json": "^0.0.21"
|
|
45
|
+
"@rljson/json": "^0.0.21",
|
|
46
|
+
"nanoid": "^5.1.6"
|
|
55
47
|
},
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "npx vite build && tsc && cp README* dist && mkdir dist/src && cp src/example.ts dist/src",
|
|
50
|
+
"test": "npx vitest run --coverage && npm run lint",
|
|
51
|
+
"prebuild": "npm run test",
|
|
52
|
+
"lint": "npx eslint",
|
|
53
|
+
"updateGoldens": "cross-env UPDATE_GOLDENS=true npm test"
|
|
61
54
|
}
|
|
62
|
-
}
|
|
55
|
+
}
|