@ts-graphviz/ast
Advanced tools
Comparing version 2.0.5 to 2.0.6-next-d7ff421ec861ca8fdede1a6bdf256f3455fb9797
# @ts-graphviz/ast | ||
## 2.0.6-next-d7ff421ec861ca8fdede1a6bdf256f3455fb9797 | ||
### Patch Changes | ||
- [#1218](https://github.com/ts-graphviz/ts-graphviz/pull/1218) [`d7ff421`](https://github.com/ts-graphviz/ts-graphviz/commit/d7ff421ec861ca8fdede1a6bdf256f3455fb9797) Thanks [@kamiazya](https://github.com/kamiazya)! - Fix AST printing not to be destroyed during stringify even in HTML-Like format | ||
- Updated dependencies [[`d7ff421`](https://github.com/ts-graphviz/ts-graphviz/commit/d7ff421ec861ca8fdede1a6bdf256f3455fb9797)]: | ||
- @ts-graphviz/common@2.1.5-next-d7ff421ec861ca8fdede1a6bdf256f3455fb9797 | ||
## 2.0.5 | ||
@@ -4,0 +13,0 @@ |
@@ -739,3 +739,3 @@ import { ASTType } from '@ts-graphviz/common'; | ||
*/ | ||
export declare interface PrintContext extends Required<PrintOptions> { | ||
export declare interface PrintContext { | ||
/** | ||
@@ -745,6 +745,9 @@ * Indicates if the AST should be printed in a directed graph. | ||
directed: boolean; | ||
readonly EOL: string; | ||
/** | ||
* A function to print an ASTNode, taking in an ASTNode as an argument. Returns a string. | ||
*/ | ||
print(ast: ASTNode): string; | ||
print(ast: ASTNode): Iterable<string>; | ||
printChildren(children: ASTNode[]): Iterable<string>; | ||
join(children: ASTNode[], separator: string): Iterable<string>; | ||
} | ||
@@ -769,2 +772,3 @@ | ||
print(ast: ASTNode): string; | ||
private toChunks; | ||
} | ||
@@ -815,3 +819,3 @@ | ||
*/ | ||
print(context: PrintContext, ast: T): string; | ||
print(context: PrintContext, ast: T): Generator<string>; | ||
} | ||
@@ -818,0 +822,0 @@ |
{ | ||
"name": "@ts-graphviz/ast", | ||
"version": "2.0.5", | ||
"version": "2.0.6-next-d7ff421ec861ca8fdede1a6bdf256f3455fb9797", | ||
"description": "Graphviz AST(Abstract Syntax Tree) Utilities", | ||
@@ -40,3 +40,3 @@ "keywords": [], | ||
"dependencies": { | ||
"@ts-graphviz/common": "^2.1.4" | ||
"@ts-graphviz/common": "^2.1.5-next-d7ff421ec861ca8fdede1a6bdf256f3455fb9797" | ||
}, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
284148
8337
1
+ Added@ts-graphviz/common@2.1.5-next-d7ff421ec861ca8fdede1a6bdf256f3455fb9797(transitive)
- Removed@ts-graphviz/common@2.1.4(transitive)
Updated@ts-graphviz/common@^2.1.5-next-d7ff421ec861ca8fdede1a6bdf256f3455fb9797