@plurid/plurid-engine 0.0.0-8 → 0.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.
@@ -1,4 +1,4 @@
1
- import { IsoMatcherData, IsoMatcherIndexedPlane, IsoMatcherPlaneResult, IsoMatcherRouteResult } from './interfaces';
1
+ import { IsoMatcherData, IsoMatcherIndexedPlane, IsoMatcherPlaneResult, IsoMatcherRouteResult } from '@plurid/plurid-data';
2
2
  /**
3
3
  * The `IsoMatcher` gathers all the known information about `routes` and `planes`
4
4
  * and matches client-side or server-side, in-browser or in-plurid.
@@ -1,7 +1,6 @@
1
1
  import IsoMatcher from './IsoMatcher';
2
2
  import RouteParser from './Parser';
3
3
  import { extractQuery } from './Parser/logic';
4
- export * from './IsoMatcher/interfaces';
5
4
  export * from './Parser/interfaces';
6
5
  export * from './logic';
7
6
  export { IsoMatcher, RouteParser, extractQuery, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plurid/plurid-engine",
3
- "version": "0.0.0-8",
3
+ "version": "0.0.0-9",
4
4
  "description": "Plurid Engine and Utility Functions",
5
5
  "keywords": [
6
6
  "plurid",
@@ -51,30 +51,30 @@
51
51
  "@plurid/plurid-themes": "*"
52
52
  },
53
53
  "devDependencies": {
54
- "@plurid/plurid-data": "0.0.0-8",
55
- "@plurid/plurid-functions": "0.0.0-17",
54
+ "@plurid/plurid-data": "0.0.0-10",
55
+ "@plurid/plurid-functions": "0.0.0-21",
56
56
  "@plurid/plurid-pubsub": "0.0.0-5",
57
- "@plurid/plurid-themes": "0.0.0-0",
58
- "@rollup/plugin-commonjs": "^21.0.1",
59
- "@types/jest": "^27.0.2",
60
- "@types/node": "^16.11.7",
61
- "@types/react": "^17.0.34",
62
- "@typescript-eslint/eslint-plugin": "^5.3.1",
63
- "@typescript-eslint/parser": "^5.3.1",
57
+ "@plurid/plurid-themes": "0.0.0-2",
58
+ "@rollup/plugin-commonjs": "^21.0.2",
59
+ "@types/jest": "^27.4.1",
60
+ "@types/node": "^17.0.21",
61
+ "@types/react": "^17.0.39",
62
+ "@typescript-eslint/eslint-plugin": "^5.13.0",
63
+ "@typescript-eslint/parser": "^5.13.0",
64
64
  "@zerollup/ts-transform-paths": "^1.7.18",
65
65
  "coveralls": "^3.1.1",
66
- "eslint": "^8.2.0",
67
- "jest": "^27.3.1",
68
- "jest-config": "^27.3.1",
66
+ "eslint": "^8.10.0",
67
+ "jest": "^27.5.1",
68
+ "jest-config": "^27.5.1",
69
69
  "react": "^17.0.2",
70
- "rollup": "^2.59.0",
70
+ "rollup": "^2.68.0",
71
71
  "rollup-plugin-sourcemaps": "^0.6.3",
72
72
  "rollup-plugin-terser": "^7.0.2",
73
- "rollup-plugin-typescript2": "^0.30.0",
74
- "ts-jest": "^27.0.7",
75
- "ts-node": "^10.4.0",
76
- "ttypescript": "^1.5.12",
77
- "typescript": "^4.4.4",
73
+ "rollup-plugin-typescript2": "^0.31.2",
74
+ "ts-jest": "^27.1.3",
75
+ "ts-node": "^10.5.0",
76
+ "ttypescript": "^1.5.13",
77
+ "typescript": "^4.6.2",
78
78
  "typescript-transform-paths": "^3.3.1"
79
79
  }
80
80
  }
@@ -1,57 +0,0 @@
1
- import { PluridRoute, PluridRoutePlane, PluridRoutePlaneObject, PluridPlane, PluridPlaneObject, PluridRouteFragments } from '@plurid/plurid-data';
2
- export interface IsoMatcherData<C> {
3
- routes?: PluridRoute<C>[];
4
- routePlanes?: PluridRoutePlane<C>[];
5
- planes?: PluridPlane<C>[];
6
- }
7
- export declare type IsoMatcherContext = 'route' | 'plane';
8
- export interface IsoMatcherResultBase {
9
- value: string;
10
- parameters: Record<string, string>;
11
- query: Record<string, string>;
12
- }
13
- export interface IsoMatcherRouteResultBase {
14
- match: IsoMatcherResultBase;
15
- }
16
- export interface IsoMatcherRouteResultRoute<C> extends IsoMatcherRouteResultBase {
17
- kind: 'Route';
18
- data: PluridRoute<C>;
19
- }
20
- export interface IsoMatcherRouteResultRoutePlane<C> extends IsoMatcherRouteResultBase {
21
- kind: 'RoutePlane';
22
- data: PluridRoutePlaneObject<C>;
23
- }
24
- export declare type IsoMatcherRouteResult<C> = IsoMatcherRouteResultRoute<C> | IsoMatcherRouteResultRoutePlane<C>;
25
- export interface IsoMatcherIndexedRoute<C> {
26
- data: PluridRoute<C>;
27
- }
28
- export declare type IsoMatcherPlaneType = 'Plane' | 'RoutePlane';
29
- export interface IsoMatcherPlaneResultMatch extends IsoMatcherResultBase {
30
- fragments: PluridRouteFragments;
31
- }
32
- export interface IsoMatcherPlaneResultBase<C> {
33
- parent?: string;
34
- match: IsoMatcherPlaneResultMatch;
35
- }
36
- export interface IsoMatcherPlaneResultPlane<C> extends IsoMatcherPlaneResultBase<C> {
37
- kind: 'Plane';
38
- data: PluridPlaneObject<C>;
39
- }
40
- export interface IsoMatcherPlaneResultRoutePlane<C> extends IsoMatcherPlaneResultBase<C> {
41
- kind: 'RoutePlane';
42
- data: PluridRoutePlaneObject<C>;
43
- }
44
- export declare type IsoMatcherPlaneResult<C> = IsoMatcherPlaneResultPlane<C> | IsoMatcherPlaneResultRoutePlane<C>;
45
- export declare type IsoMatcherResult<C> = IsoMatcherRouteResult<C> | IsoMatcherPlaneResult<C>;
46
- export interface IsoMatcherIndexedPlaneBase<C> {
47
- parent?: string;
48
- }
49
- export interface IsoMatcherIndexedPlanePlane<C> extends IsoMatcherIndexedPlaneBase<C> {
50
- kind: 'Plane';
51
- data: PluridPlaneObject<C>;
52
- }
53
- export interface IsoMatcherIndexedPlaneRoutePlane<C> extends IsoMatcherIndexedPlaneBase<C> {
54
- kind: 'RoutePlane';
55
- data: PluridRoutePlaneObject<C>;
56
- }
57
- export declare type IsoMatcherIndexedPlane<C> = IsoMatcherIndexedPlanePlane<C> | IsoMatcherIndexedPlaneRoutePlane<C>;