@ts-graphviz/ast 3.0.0 → 3.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @ts-graphviz/ast
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1483](https://github.com/ts-graphviz/ts-graphviz/pull/1483) [`a07d3b7`](https://github.com/ts-graphviz/ts-graphviz/commit/a07d3b7037d08bcb99679562468e16e5af0968ba) Thanks [@kamiazya](https://github.com/kamiazya)! - Fix CI workflow to prevent @next tag publishing after Version Packages PR merge
8
+
9
+ - Updated dependencies [[`a07d3b7`](https://github.com/ts-graphviz/ts-graphviz/commit/a07d3b7037d08bcb99679562468e16e5af0968ba)]:
10
+ - @ts-graphviz/common@3.0.2
11
+
12
+ ## 3.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#1479](https://github.com/ts-graphviz/ts-graphviz/pull/1479) [`c9653aa`](https://github.com/ts-graphviz/ts-graphviz/commit/c9653aa75cb13a91d6a6bcbd8b64161cfd0273b5) Thanks [@kamiazya](https://github.com/kamiazya)! - Fix TypeScript compilation error when skipLibCheck is false
17
+
18
+ This fixes issue #1478 where importing from `ts-graphviz` would cause a TypeScript error:
19
+ "Cannot find module './\_parse.js' or its corresponding type declarations."
20
+
21
+ The issue was caused by the `Rule` type referencing `StartRuleNames` from the auto-generated
22
+ `_parse.ts` file, which was not properly exported. The fix removes the dependency on the
23
+ generated type and defines the `Rule` type directly in `parse.ts`.
24
+
25
+ Changes:
26
+
27
+ - Remove import of non-existent `StartRuleNames` type from `_parse.ts`
28
+ - Fix import of `PeggySyntaxError` to use the correct export name
29
+ - Define `Rule` type directly as a union of rule name string literals
30
+
31
+ - [#1480](https://github.com/ts-graphviz/ts-graphviz/pull/1480) [`ab5d0c7`](https://github.com/ts-graphviz/ts-graphviz/commit/ab5d0c75620a0fd1bf36373716b26c2d433a0bc6) Thanks [@kamiazya](https://github.com/kamiazya)! - Fix CI workflow to prevent publishing stable releases with @next tag
32
+
33
+ - Updated dependencies [[`ab5d0c7`](https://github.com/ts-graphviz/ts-graphviz/commit/ab5d0c75620a0fd1bf36373716b26c2d433a0bc6)]:
34
+ - @ts-graphviz/common@3.0.1
35
+
3
36
  ## 3.0.0
4
37
 
5
38
  ### Major Changes
package/lib/ast.d.ts CHANGED
@@ -6,7 +6,6 @@ import { EdgeModel } from '@ts-graphviz/common';
6
6
  import { ModelsContext } from '@ts-graphviz/common';
7
7
  import { NodeModel } from '@ts-graphviz/common';
8
8
  import { RootGraphModel } from '@ts-graphviz/common';
9
- import { StartRuleNames } from './_parse.js';
10
9
  import { SubgraphModel } from '@ts-graphviz/common';
11
10
 
12
11
  /**
@@ -767,7 +766,7 @@ export declare interface NodeRefGroupASTPropaties extends ASTCommonPropaties {
767
766
  /**
768
767
  * @group Convert DOT to AST
769
768
  */
770
- export declare type Rule = StartRuleNames;
769
+ export declare type Rule = 'Dot' | 'Graph' | 'Subgraph' | 'Node' | 'Edge' | 'AttributeList' | 'Attribute' | 'ClusterStatements';
771
770
 
772
771
  /**
773
772
  * @group AST
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-graphviz/ast",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Graphviz AST(Abstract Syntax Tree) Utilities",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/ts-graphviz/ts-graphviz#readme",
@@ -33,7 +33,7 @@
33
33
  "./package.json": "./package.json"
34
34
  },
35
35
  "dependencies": {
36
- "@ts-graphviz/common": "^3.0.0"
36
+ "@ts-graphviz/common": "^3.0.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "peggy": "^5.0.3",