@rljson/db 0.0.5 → 0.0.6
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/cars-example.d.ts +5 -1
- package/dist/core.d.ts +6 -5
- package/dist/db.d.ts +78 -55
- package/dist/db.js +2091 -324
- package/dist/notify.d.ts +4 -4
- package/package.json +18 -16
package/dist/notify.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type NotifyCallback<N extends string> = (
|
|
1
|
+
import { InsertHistoryRow, Route } from '@rljson/rljson';
|
|
2
|
+
type NotifyCallback<N extends string> = (InsertHistoryRow: InsertHistoryRow<N>) => void;
|
|
3
3
|
/**
|
|
4
4
|
* Notification system to manage callbacks for specific routes and notify them with edit protocol rows.
|
|
5
5
|
*/
|
|
@@ -21,9 +21,9 @@ export declare class Notify {
|
|
|
21
21
|
/**
|
|
22
22
|
* Notifies all registered callbacks for a specific route with the provided edit protocol row.
|
|
23
23
|
* @param route The route to notify callbacks for.
|
|
24
|
-
* @param
|
|
24
|
+
* @param insertHistoryRow The edit protocol row to pass to the callbacks.
|
|
25
25
|
*/
|
|
26
|
-
notify<N extends string>(route: Route,
|
|
26
|
+
notify<N extends string>(route: Route, insertHistoryRow: InsertHistoryRow<N>): void;
|
|
27
27
|
/**
|
|
28
28
|
* Returns the current map of registered callbacks.
|
|
29
29
|
* @returns A map where keys are route strings and values are arrays of callback functions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rljson/db",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "A high level interface to read and write RLJSON data from and into a database",
|
|
5
5
|
"homepage": "https://github.com/rljson/db",
|
|
6
6
|
"bugs": "https://github.com/rljson/db/issues",
|
|
@@ -20,33 +20,35 @@
|
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^24.
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^8.46.
|
|
25
|
-
"@typescript-eslint/parser": "^8.46.
|
|
26
|
-
"@vitest/coverage-v8": "^
|
|
23
|
+
"@types/node": "^24.10.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
25
|
+
"@typescript-eslint/parser": "^8.46.3",
|
|
26
|
+
"@vitest/coverage-v8": "^4.0.7",
|
|
27
27
|
"cross-env": "^10.1.0",
|
|
28
|
-
"eslint": "^9.
|
|
29
|
-
"eslint-plugin-jsdoc": "^61.1.
|
|
28
|
+
"eslint": "^9.39.1",
|
|
29
|
+
"eslint-plugin-jsdoc": "^61.1.12",
|
|
30
30
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
31
|
-
"globals": "^16.
|
|
31
|
+
"globals": "^16.5.0",
|
|
32
32
|
"jsdoc": "^4.0.5",
|
|
33
33
|
"read-pkg": "^9.0.1",
|
|
34
34
|
"typescript": "~5.9.3",
|
|
35
|
-
"typescript-eslint": "^8.46.
|
|
36
|
-
"vite": "^7.
|
|
35
|
+
"typescript-eslint": "^8.46.3",
|
|
36
|
+
"vite": "^7.2.0",
|
|
37
37
|
"vite-node": "^3.2.4",
|
|
38
38
|
"vite-plugin-dts": "^4.5.4",
|
|
39
39
|
"vite-tsconfig-paths": "^5.1.4",
|
|
40
|
-
"vitest": "^
|
|
40
|
+
"vitest": "^4.0.7",
|
|
41
41
|
"vitest-dom": "^0.1.1"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@rljson/hash": "^0.0.
|
|
45
|
-
"@rljson/io": "^0.0.
|
|
46
|
-
"@rljson/json": "^0.0.
|
|
47
|
-
"@rljson/rljson": "^0.0.
|
|
44
|
+
"@rljson/hash": "^0.0.17",
|
|
45
|
+
"@rljson/io": "^0.0.53",
|
|
46
|
+
"@rljson/json": "^0.0.23",
|
|
47
|
+
"@rljson/rljson": "^0.0.67",
|
|
48
48
|
"@rljson/validate": "^0.0.11",
|
|
49
|
-
"
|
|
49
|
+
"filtrex": "^3.1.0",
|
|
50
|
+
"object-traversal": "^1.0.1",
|
|
51
|
+
"rxjs": "^7.8.2"
|
|
50
52
|
},
|
|
51
53
|
"scripts": {
|
|
52
54
|
"build": "npx vite build && tsc && cp README* dist && mkdir dist/src && cp src/example.ts dist/src",
|