@rljson/db 0.0.7 → 0.0.9

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/notify.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { InsertHistoryRow, Route } from '@rljson/rljson';
2
- type NotifyCallback<N extends string> = (InsertHistoryRow: InsertHistoryRow<N>) => void;
2
+ export type NotifyCallback<N extends string> = (InsertHistoryRow: InsertHistoryRow<N>) => Promise<any>;
3
3
  /**
4
4
  * Notification system to manage callbacks for specific routes and notify them with edit protocol rows.
5
5
  */
@@ -36,4 +36,3 @@ export declare class Notify {
36
36
  */
37
37
  getCallBacksForRoute(route: Route): NotifyCallback<any>[];
38
38
  }
39
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/db",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
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",
@@ -21,30 +21,30 @@
21
21
  "type": "module",
22
22
  "devDependencies": {
23
23
  "@types/node": "^24.10.1",
24
- "@typescript-eslint/eslint-plugin": "^8.46.4",
25
- "@typescript-eslint/parser": "^8.46.4",
26
- "@vitest/coverage-v8": "^4.0.8",
24
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
25
+ "@typescript-eslint/parser": "^8.48.1",
26
+ "@vitest/coverage-v8": "^4.0.15",
27
27
  "cross-env": "^10.1.0",
28
28
  "eslint": "^9.39.1",
29
- "eslint-plugin-jsdoc": "^61.1.12",
29
+ "eslint-plugin-jsdoc": "^61.5.0",
30
30
  "eslint-plugin-tsdoc": "^0.5.0",
31
31
  "globals": "^16.5.0",
32
32
  "jsdoc": "^4.0.5",
33
33
  "read-pkg": "^10.0.0",
34
34
  "typescript": "~5.9.3",
35
- "typescript-eslint": "^8.46.4",
36
- "vite": "^7.2.2",
37
- "vite-node": "^5.0.0",
35
+ "typescript-eslint": "^8.48.1",
36
+ "vite": "^7.2.7",
37
+ "vite-node": "^5.2.0",
38
38
  "vite-plugin-dts": "^4.5.4",
39
39
  "vite-tsconfig-paths": "^5.1.4",
40
- "vitest": "^4.0.8",
40
+ "vitest": "^4.0.15",
41
41
  "vitest-dom": "^0.1.1"
42
42
  },
43
43
  "dependencies": {
44
44
  "@rljson/hash": "^0.0.17",
45
- "@rljson/io": "^0.0.55",
45
+ "@rljson/io": "^0.0.61",
46
46
  "@rljson/json": "^0.0.23",
47
- "@rljson/rljson": "^0.0.69",
47
+ "@rljson/rljson": "^0.0.73",
48
48
  "@rljson/validate": "^0.0.11",
49
49
  "filtrex": "^3.1.0",
50
50
  "object-traversal": "^1.0.1",
@@ -1,41 +0,0 @@
1
- import { Json, JsonH, JsonValueH } from '@rljson/json';
2
- import { CakesTable, ComponentsTable, LayersTable, Rljson, SliceIdsTable, TablesCfgTable } from '@rljson/rljson';
3
- export interface CarsExample extends Rljson {
4
- carSliceId: SliceIdsTable;
5
- carGeneral: ComponentsTable<CarGeneral>;
6
- carTechnical: ComponentsTable<Json>;
7
- carColor: ComponentsTable<Json>;
8
- carDimensions: ComponentsTable<CarDimension>;
9
- carGeneralLayer: LayersTable;
10
- carTechnicalLayer: LayersTable;
11
- carColorLayer: LayersTable;
12
- carCake: CakesTable;
13
- wheelSliceId: SliceIdsTable;
14
- wheelBrand: ComponentsTable<Json>;
15
- wheelDimension: ComponentsTable<Json>;
16
- wheelBrandLayer: LayersTable;
17
- wheelDimensionLayer: LayersTable;
18
- wheelCake: CakesTable;
19
- tableCfgs: TablesCfgTable;
20
- }
21
- export interface CarGeneral extends JsonH {
22
- brand: string;
23
- type: string;
24
- doors: number;
25
- energyConsumption: number;
26
- units: JsonValueH;
27
- serviceIntervals: number[];
28
- isElectric: boolean;
29
- }
30
- export interface CarDimension extends JsonH {
31
- height: number;
32
- width: number;
33
- length: number;
34
- }
35
- export interface CarTechnical extends JsonH {
36
- engine: string;
37
- transmission: string;
38
- gears: number;
39
- carDimensionsRef: string;
40
- }
41
- export declare const carsExample: () => CarsExample;