@likec4/core 0.6.3 → 0.7.0

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.
Files changed (34) hide show
  1. package/dist/__test__/data.d.ts +174 -0
  2. package/dist/__test__/data.js +188 -0
  3. package/dist/__test__/index.d.ts +2 -0
  4. package/dist/__test__/index.js +1 -0
  5. package/dist/compute-view/EdgeBuilder.d.ts +1 -0
  6. package/dist/compute-view/{compute-view.d.ts → compute.d.ts} +1 -0
  7. package/dist/compute-view/compute.element-view.d.ts +1 -0
  8. package/dist/compute-view/compute.element-view.js +1 -1
  9. package/dist/compute-view/index.d.ts +2 -1
  10. package/dist/compute-view/index.js +1 -1
  11. package/dist/compute-view/utils/anyPossibleRelations.d.ts +1 -0
  12. package/dist/compute-view/utils/evaluate-expression.d.ts +1 -0
  13. package/dist/compute-view/utils/sortNodes.d.ts +1 -0
  14. package/dist/index.d.ts +3 -2
  15. package/dist/index.js +1 -1
  16. package/dist/model-index/{model-index.d.ts → ModelIndex.d.ts} +1 -0
  17. package/dist/model-index/index.d.ts +2 -1
  18. package/dist/model-index/index.js +1 -1
  19. package/dist/types/computed-view.d.ts +1 -0
  20. package/dist/types/diagram.d.ts +1 -0
  21. package/dist/types/element.d.ts +1 -0
  22. package/dist/types/expression.d.ts +1 -0
  23. package/dist/types/index.d.ts +1 -0
  24. package/dist/types/model.d.ts +1 -0
  25. package/dist/types/opaque.d.ts +1 -0
  26. package/dist/types/relation.d.ts +1 -0
  27. package/dist/types/view.d.ts +1 -0
  28. package/dist/utils/fqn.d.ts +1 -0
  29. package/dist/utils/guards.d.ts +1 -0
  30. package/dist/utils/index.d.ts +1 -0
  31. package/dist/utils/relations.d.ts +1 -0
  32. package/package.json +18 -16
  33. /package/dist/compute-view/{compute-view.js → compute.js} +0 -0
  34. /package/dist/model-index/{model-index.js → ModelIndex.js} +0 -0
@@ -0,0 +1,174 @@
1
+ import { ModelIndex } from '../model-index';
2
+ import type { ElementKind, ElementView, Fqn, RelationID } from '../types';
3
+ /**
4
+ ┌──────────────────────────────────────────────────┐
5
+ │ cloud │
6
+ │ ┌───────────────────────────────────────────┐ │
7
+ │ │ frontend │ │
8
+ ┏━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━┓
9
+ ┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
10
+ ┃ customer ┃──┼──┼──▶┃ dashboard ┃ ┃ adminpanel ┃◀───┼───┼───┃ support ┃
11
+ ┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
12
+ ┗━━━━━━━━━━┛ │ │ ┗━━━━━━┳━━━━━━┛ ┗━━━━━━━━┳━━━━━━━┛ │ │ ┗━━━━━━━━━━━┛
13
+ │ └──────────┼───────────────────┼────────────┘ │
14
+ │ ├───────────────────┘ │
15
+ │ │ │
16
+ │ ┌──────────┼────────────────────────────────┐ │
17
+ │ │ ▼ backend │ │
18
+ │ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━┓ │ │
19
+ │ │ ┃ ┃ ┃ ┃ │ │
20
+ │ │ ┃ graphlql ┃──────▶┃ storage ┃ │ │
21
+ │ │ ┃ ┃ ┃ ┃ │ │
22
+ │ │ ┗━━━━━━━━━━━━━┛ ┗━━━━━━┳━━━━━━┛ │ │
23
+ │ └────────────────────────────────┼──────────┘ │
24
+ └───────────────────────────────────┼──────────────┘
25
+
26
+ ┌─────────┼─────────┐
27
+ │ amazon │ │
28
+ │ ▼ │
29
+ │ ┏━━━━━━━━━━━━━━┓ │
30
+ │ ┃ ┃ │
31
+ │ ┃ s3 ┃ │
32
+ │ ┃ ┃ │
33
+ │ ┗━━━━━━━━━━━━━━┛ │
34
+ └───────────────────┘
35
+
36
+ specification {
37
+ element actor
38
+ element system
39
+ element component
40
+ }
41
+
42
+ model {
43
+
44
+ actor customer
45
+ actor support
46
+
47
+ system cloud {
48
+ component backend {
49
+ component graphql
50
+ component storage
51
+
52
+ graphql -> storage
53
+ }
54
+
55
+ component frontend {
56
+ component dashboard {
57
+ -> graphql
58
+ }
59
+ component adminPanel {
60
+ -> graphql
61
+ }
62
+ }
63
+ }
64
+
65
+ customer -> dashboard
66
+ support -> adminPanel
67
+
68
+ system amazon {
69
+ component s3
70
+
71
+ cloud.backend.storage -> s3
72
+ }
73
+
74
+ }
75
+
76
+ */
77
+ export declare const fakeElements: {
78
+ amazon: {
79
+ id: Fqn;
80
+ kind: ElementKind;
81
+ title: string;
82
+ };
83
+ cloud: {
84
+ id: Fqn;
85
+ kind: ElementKind;
86
+ title: string;
87
+ };
88
+ customer: {
89
+ id: Fqn;
90
+ kind: ElementKind;
91
+ title: string;
92
+ };
93
+ support: {
94
+ id: Fqn;
95
+ kind: ElementKind;
96
+ title: string;
97
+ };
98
+ 'amazon.s3': {
99
+ id: Fqn;
100
+ kind: ElementKind;
101
+ title: string;
102
+ };
103
+ 'cloud.backend': {
104
+ id: Fqn;
105
+ kind: ElementKind;
106
+ title: string;
107
+ };
108
+ 'cloud.frontend': {
109
+ id: Fqn;
110
+ kind: ElementKind;
111
+ title: string;
112
+ };
113
+ 'cloud.backend.graphql': {
114
+ id: Fqn;
115
+ kind: ElementKind;
116
+ title: string;
117
+ };
118
+ 'cloud.backend.storage': {
119
+ id: Fqn;
120
+ kind: ElementKind;
121
+ title: string;
122
+ };
123
+ 'cloud.frontend.adminPanel': {
124
+ id: Fqn;
125
+ kind: ElementKind;
126
+ title: string;
127
+ };
128
+ 'cloud.frontend.dashboard': {
129
+ id: Fqn;
130
+ kind: ElementKind;
131
+ title: string;
132
+ };
133
+ };
134
+ export declare const fakeRelations: {
135
+ 'customer:cloud.frontend.dashboard': {
136
+ id: RelationID;
137
+ source: Fqn;
138
+ target: Fqn;
139
+ title: string;
140
+ };
141
+ 'support:cloud.frontend.adminPanel': {
142
+ id: RelationID;
143
+ source: Fqn;
144
+ target: Fqn;
145
+ title: string;
146
+ };
147
+ 'cloud.backend.storage:amazon.s3': {
148
+ id: RelationID;
149
+ source: Fqn;
150
+ target: Fqn;
151
+ title: string;
152
+ };
153
+ 'cloud.backend.graphql:cloud.backend.storage': {
154
+ id: RelationID;
155
+ source: Fqn;
156
+ target: Fqn;
157
+ title: string;
158
+ };
159
+ 'cloud.frontend.dashboard:cloud.backend.graphql': {
160
+ id: RelationID;
161
+ source: Fqn;
162
+ target: Fqn;
163
+ title: string;
164
+ };
165
+ 'cloud.frontend.adminPanel:cloud.backend.graphql': {
166
+ id: RelationID;
167
+ source: Fqn;
168
+ target: Fqn;
169
+ title: string;
170
+ };
171
+ };
172
+ export declare const fakeElementView: ElementView;
173
+ export declare const fakeModel: () => ModelIndex;
174
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1,188 @@
1
+ import { ModelIndex } from '../model-index';
2
+ /**
3
+ ┌──────────────────────────────────────────────────┐
4
+ │ cloud │
5
+ │ ┌───────────────────────────────────────────┐ │
6
+ │ │ frontend │ │
7
+ ┏━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━┓
8
+ ┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
9
+ ┃ customer ┃──┼──┼──▶┃ dashboard ┃ ┃ adminpanel ┃◀───┼───┼───┃ support ┃
10
+ ┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
11
+ ┗━━━━━━━━━━┛ │ │ ┗━━━━━━┳━━━━━━┛ ┗━━━━━━━━┳━━━━━━━┛ │ │ ┗━━━━━━━━━━━┛
12
+ │ └──────────┼───────────────────┼────────────┘ │
13
+ │ ├───────────────────┘ │
14
+ │ │ │
15
+ │ ┌──────────┼────────────────────────────────┐ │
16
+ │ │ ▼ backend │ │
17
+ │ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━┓ │ │
18
+ │ │ ┃ ┃ ┃ ┃ │ │
19
+ │ │ ┃ graphlql ┃──────▶┃ storage ┃ │ │
20
+ │ │ ┃ ┃ ┃ ┃ │ │
21
+ │ │ ┗━━━━━━━━━━━━━┛ ┗━━━━━━┳━━━━━━┛ │ │
22
+ │ └────────────────────────────────┼──────────┘ │
23
+ └───────────────────────────────────┼──────────────┘
24
+
25
+ ┌─────────┼─────────┐
26
+ │ amazon │ │
27
+ │ ▼ │
28
+ │ ┏━━━━━━━━━━━━━━┓ │
29
+ │ ┃ ┃ │
30
+ │ ┃ s3 ┃ │
31
+ │ ┃ ┃ │
32
+ │ ┗━━━━━━━━━━━━━━┛ │
33
+ └───────────────────┘
34
+
35
+ specification {
36
+ element actor
37
+ element system
38
+ element component
39
+ }
40
+
41
+ model {
42
+
43
+ actor customer
44
+ actor support
45
+
46
+ system cloud {
47
+ component backend {
48
+ component graphql
49
+ component storage
50
+
51
+ graphql -> storage
52
+ }
53
+
54
+ component frontend {
55
+ component dashboard {
56
+ -> graphql
57
+ }
58
+ component adminPanel {
59
+ -> graphql
60
+ }
61
+ }
62
+ }
63
+
64
+ customer -> dashboard
65
+ support -> adminPanel
66
+
67
+ system amazon {
68
+ component s3
69
+
70
+ cloud.backend.storage -> s3
71
+ }
72
+
73
+ }
74
+
75
+ */
76
+ export const fakeElements = {
77
+ amazon: {
78
+ id: 'amazon',
79
+ kind: 'system',
80
+ title: 'amazon'
81
+ },
82
+ cloud: {
83
+ id: 'cloud',
84
+ kind: 'system',
85
+ title: 'cloud'
86
+ },
87
+ customer: {
88
+ id: 'customer',
89
+ kind: 'actor',
90
+ title: 'customer'
91
+ },
92
+ support: {
93
+ id: 'support',
94
+ kind: 'actor',
95
+ title: 'support'
96
+ },
97
+ 'amazon.s3': {
98
+ id: 'amazon.s3',
99
+ kind: 'component',
100
+ title: 's3'
101
+ },
102
+ 'cloud.backend': {
103
+ id: 'cloud.backend',
104
+ kind: 'component',
105
+ title: 'backend'
106
+ },
107
+ 'cloud.frontend': {
108
+ id: 'cloud.frontend',
109
+ kind: 'component',
110
+ title: 'frontend'
111
+ },
112
+ 'cloud.backend.graphql': {
113
+ id: 'cloud.backend.graphql',
114
+ kind: 'component',
115
+ title: 'graphql'
116
+ },
117
+ 'cloud.backend.storage': {
118
+ id: 'cloud.backend.storage',
119
+ kind: 'component',
120
+ title: 'storage'
121
+ },
122
+ 'cloud.frontend.adminPanel': {
123
+ id: 'cloud.frontend.adminPanel',
124
+ kind: 'component',
125
+ title: 'adminPanel'
126
+ },
127
+ 'cloud.frontend.dashboard': {
128
+ id: 'cloud.frontend.dashboard',
129
+ kind: 'component',
130
+ title: 'dashboard'
131
+ }
132
+ };
133
+ export const fakeRelations = {
134
+ 'customer:cloud.frontend.dashboard': {
135
+ id: 'customer:cloud.frontend.dashboard',
136
+ source: 'customer',
137
+ target: 'cloud.frontend.dashboard',
138
+ title: ''
139
+ },
140
+ 'support:cloud.frontend.adminPanel': {
141
+ id: 'support:cloud.frontend.adminPanel',
142
+ source: 'support',
143
+ target: 'cloud.frontend.adminPanel',
144
+ title: ''
145
+ },
146
+ 'cloud.backend.storage:amazon.s3': {
147
+ id: 'cloud.backend.storage:amazon.s3',
148
+ source: 'cloud.backend.storage',
149
+ target: 'amazon.s3',
150
+ title: ''
151
+ },
152
+ 'cloud.backend.graphql:cloud.backend.storage': {
153
+ id: 'cloud.backend.graphql:cloud.backend.storage',
154
+ source: 'cloud.backend.graphql',
155
+ target: 'cloud.backend.storage',
156
+ title: ''
157
+ },
158
+ 'cloud.frontend.dashboard:cloud.backend.graphql': {
159
+ id: 'cloud.frontend.dashboard:cloud.backend.graphql',
160
+ source: 'cloud.frontend.dashboard',
161
+ target: 'cloud.backend.graphql',
162
+ title: ''
163
+ },
164
+ 'cloud.frontend.adminPanel:cloud.backend.graphql': {
165
+ id: 'cloud.frontend.adminPanel:cloud.backend.graphql',
166
+ source: 'cloud.frontend.adminPanel',
167
+ target: 'cloud.backend.graphql',
168
+ title: ''
169
+ }
170
+ };
171
+ export const fakeElementView = {
172
+ id: 'fakeView',
173
+ title: '',
174
+ viewOf: 'cloud',
175
+ rules: [
176
+ {
177
+ isInclude: true,
178
+ exprs: [{ wildcard: true }]
179
+ }
180
+ ]
181
+ };
182
+ export const fakeModel = () => ModelIndex.from({
183
+ elements: fakeElements,
184
+ relations: fakeRelations,
185
+ views: {
186
+ [fakeElementView.id]: fakeElementView
187
+ }
188
+ });
@@ -0,0 +1,2 @@
1
+ export * from './data';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ export * from './data';
@@ -5,3 +5,4 @@ export declare class EdgeBuilder {
5
5
  add(source: Fqn, target: Fqn, relation: Relation): this;
6
6
  build(): ComputedEdge[];
7
7
  }
8
+ //# sourceMappingURL=EdgeBuilder.d.ts.map
@@ -9,3 +9,4 @@ type InputModel = {
9
9
  };
10
10
  export declare function computeViews(model: InputModel): LikeC4Model;
11
11
  export {};
12
+ //# sourceMappingURL=compute.d.ts.map
@@ -2,3 +2,4 @@ import type { ModelIndex } from '../model-index';
2
2
  import { type ElementView } from '../types';
3
3
  import type { ComputedView } from '../types/computed-view';
4
4
  export declare function computeElementView(view: ElementView, index: ModelIndex): ComputedView;
5
+ //# sourceMappingURL=compute.element-view.d.ts.map
@@ -13,7 +13,7 @@ function updateSetWith(set, elements, addToSet = true) {
13
13
  }
14
14
  }
15
15
  function transformToNodes(elementsIterator, index, currentViewid) {
16
- return [...elementsIterator]
16
+ return Array.from(elementsIterator)
17
17
  .sort(compareByFqnHierarchically)
18
18
  .reduce((map, { id, title, color, shape, description }) => {
19
19
  let parent = parentFqn(id);
@@ -1,2 +1,3 @@
1
- export { computeView, computeViews } from './compute-view';
1
+ export { computeView, computeViews } from './compute';
2
2
  export type * from '../types/computed-view';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export { computeView, computeViews } from './compute-view';
1
+ export { computeView, computeViews } from './compute';
@@ -1,2 +1,3 @@
1
1
  import type { Element } from '../../types';
2
2
  export declare function anyPossibleRelations(elements: Element[]): Generator<[source: Element, target: Element]>;
3
+ //# sourceMappingURL=anyPossibleRelations.d.ts.map
@@ -8,3 +8,4 @@ interface EvaluateViewExpressionResult {
8
8
  }
9
9
  export declare function evaluateExpression(index: ModelIndex, expr: Expression, rootElement: Fqn | null): EvaluateViewExpressionResult;
10
10
  export {};
11
+ //# sourceMappingURL=evaluate-expression.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ComputedEdge, ComputedNode, Fqn } from '../../types';
2
2
  export declare function sortNodes(_nodes: Map<Fqn, ComputedNode>, edges: ComputedEdge[]): ComputedNode[];
3
+ //# sourceMappingURL=sortNodes.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export type * as likec4 from './types';
2
- export { computeView } from './compute-view';
1
+ export type * from './types';
2
+ export * from './compute-view';
3
3
  export * from './utils';
4
4
  export * from './model-index';
5
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { computeView } from './compute-view';
1
+ export * from './compute-view';
2
2
  export * from './utils';
3
3
  export * from './model-index';
@@ -28,3 +28,4 @@ export declare class ModelIndex {
28
28
  defaultViewOf: (id: Fqn) => ViewID[];
29
29
  }
30
30
  export {};
31
+ //# sourceMappingURL=ModelIndex.d.ts.map
@@ -1 +1,2 @@
1
- export * from './model-index';
1
+ export * from './ModelIndex';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './model-index';
1
+ export * from './ModelIndex';
@@ -28,3 +28,4 @@ export interface ComputedView<Node extends ComputedNode = ComputedNode, Edge ext
28
28
  nodes: Node[];
29
29
  edges: Edge[];
30
30
  }
31
+ //# sourceMappingURL=computed-view.d.ts.map
@@ -25,3 +25,4 @@ export interface DiagramView extends ComputedView<DiagramNode, DiagramEdge> {
25
25
  width: number;
26
26
  height: number;
27
27
  }
28
+ //# sourceMappingURL=diagram.d.ts.map
@@ -24,3 +24,4 @@ export interface Element {
24
24
  readonly shape?: ElementShape;
25
25
  readonly color?: ThemeColor;
26
26
  }
27
+ //# sourceMappingURL=element.d.ts.map
@@ -41,3 +41,4 @@ export type AnyRelationExpression = RelationExpr | InOutExpr | IncomingExpr | Ou
41
41
  export declare function isAnyRelation(expr: Expression): expr is AnyRelationExpression;
42
42
  export type Expression = ElementExpression | AnyRelationExpression;
43
43
  export {};
44
+ //# sourceMappingURL=expression.d.ts.map
@@ -8,3 +8,4 @@ export type * from './view';
8
8
  export type * from './expression';
9
9
  export type * from './computed-view';
10
10
  export type * from './diagram';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -7,3 +7,4 @@ export interface LikeC4Model {
7
7
  relations: Record<RelationID, Relation>;
8
8
  views: Record<ViewID, ComputedView>;
9
9
  }
10
+ //# sourceMappingURL=model.d.ts.map
@@ -100,3 +100,4 @@ type WontWork = UnwrapOpaque<string>;
100
100
  */
101
101
  export type UnwrapOpaque<OpaqueType extends Tagged<unknown>> = OpaqueType extends Opaque<infer Type, OpaqueType[typeof tag]> ? Type : OpaqueType;
102
102
  export {};
103
+ //# sourceMappingURL=opaque.d.ts.map
@@ -8,3 +8,4 @@ export interface Relation {
8
8
  readonly title: string;
9
9
  readonly tags?: Tag[];
10
10
  }
11
+ //# sourceMappingURL=relation.d.ts.map
@@ -27,3 +27,4 @@ export interface ElementView {
27
27
  readonly description?: string;
28
28
  readonly rules: ViewRule[];
29
29
  }
30
+ //# sourceMappingURL=view.d.ts.map
@@ -8,3 +8,4 @@ export declare const compareFqnHierarchically: (a: string, b: string) => number;
8
8
  export declare const compareByFqnHierarchically: <T extends {
9
9
  id: Fqn;
10
10
  }>(a: T, b: T) => number;
11
+ //# sourceMappingURL=fqn.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare function isString(value: unknown): value is string;
2
2
  export declare function failExpectedNever(arg: never): never;
3
3
  export declare function ignoreNeverInRuntime(arg: never): void;
4
+ //# sourceMappingURL=guards.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export * from './fqn';
2
2
  export * from './guards';
3
3
  export * as Relations from './relations';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -14,3 +14,4 @@ export declare const isIncoming: (target: Fqn) => (rel: Relation) => boolean;
14
14
  export declare const isOutgoing: (source: Fqn) => (rel: Relation) => boolean;
15
15
  export declare const isAnyInOut: (source: Fqn) => import("rambdax").Predicate<Relation>;
16
16
  export {};
17
+ //# sourceMappingURL=relations.d.ts.map
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@likec4/core",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "bugs": "https://github.com/likec4/likec4/issues",
6
- "homepage": "https://like-c4.dev",
6
+ "homepage": "https://likec4.dev",
7
7
  "author": "Denis Davydkov <denis@davydkov.com>",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "!**/*.spec.js",
11
+ "!**/*.spec.d.ts",
12
+ "!**/*.map"
10
13
  ],
11
14
  "repository": {
12
15
  "type": "git",
@@ -14,8 +17,7 @@
14
17
  "directory": "packages/core"
15
18
  },
16
19
  "scripts": {
17
- "compile": "tsc --emitDeclarationOnly",
18
- "build:release": "tsc -p tsconfig.esm.json",
20
+ "compile": "tsc --noEmit",
19
21
  "build": "tsc",
20
22
  "dev": "tsc --watch",
21
23
  "lint": "run -T eslint src/ --fix",
@@ -30,22 +32,22 @@
30
32
  ".": {
31
33
  "types": "./dist/index.d.ts",
32
34
  "import": "./dist/index.js",
33
- "require": "./dist/index.cjs"
35
+ "default": "./dist/index.js"
34
36
  },
35
37
  "./types": {
36
38
  "types": "./dist/types/index.d.ts",
37
39
  "import": "./dist/types/index.js",
38
- "require": "./dist/types/index.cjs"
40
+ "default": "./dist/types/index.js"
39
41
  },
40
42
  "./utils": {
41
43
  "types": "./dist/utils/index.d.ts",
42
44
  "import": "./dist/utils/index.js",
43
- "require": "./dist/utils/index.cjs"
45
+ "default": "./dist/utils/index.js"
44
46
  },
45
47
  "./compute-view": {
46
48
  "types": "./dist/compute-view/index.d.ts",
47
49
  "import": "./dist/compute-view/index.js",
48
- "require": "./dist/compute-view/index.cjs"
50
+ "default": "./dist/compute-view/index.js"
49
51
  }
50
52
  },
51
53
  "sideEffects": false,
@@ -58,33 +60,33 @@
58
60
  ".": {
59
61
  "types": "./dist/index.d.ts",
60
62
  "import": "./dist/index.js",
61
- "require": "./dist/index.cjs"
63
+ "default": "./dist/index.js"
62
64
  },
63
65
  "./types": {
64
66
  "types": "./dist/types/index.d.ts",
65
67
  "import": "./dist/types/index.js",
66
- "require": "./dist/types/index.cjs"
68
+ "default": "./dist/types/index.js"
67
69
  },
68
70
  "./utils": {
69
71
  "types": "./dist/utils/index.d.ts",
70
72
  "import": "./dist/utils/index.js",
71
- "require": "./dist/utils/index.cjs"
73
+ "default": "./dist/utils/index.js"
72
74
  },
73
75
  "./compute-view": {
74
76
  "types": "./dist/compute-view/index.d.ts",
75
77
  "import": "./dist/compute-view/index.js",
76
- "require": "./dist/compute-view/index.cjs"
78
+ "default": "./dist/compute-view/index.js"
77
79
  }
78
80
  }
79
81
  },
80
82
  "dependencies": {
81
83
  "@dagrejs/graphlib": "^2.1.12",
82
- "rambdax": "^9.1.0",
84
+ "rambdax": "^9.1.1",
83
85
  "tiny-invariant": "^1.3.1"
84
86
  },
85
87
  "devDependencies": {
86
88
  "typescript": "^5.0.4",
87
- "vite": "^4.2.2",
88
- "vitest": "^0.30.1"
89
+ "vite": "^4.3.3",
90
+ "vitest": "^0.31.0"
89
91
  }
90
92
  }