Skip to content

Commit

Permalink
19.0.0 (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jun 14, 2023
1 parent 225ff58 commit 4fc9771
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 14 deletions.
6 changes: 6 additions & 0 deletions deno/ts_morph.js
Original file line number Diff line number Diff line change
Expand Up @@ -6542,6 +6542,7 @@ const Structure = {
case StructureKind.ConstructSignature:
case StructureKind.Enum:
case StructureKind.EnumMember:
case StructureKind.ExportAssignment:
case StructureKind.FunctionOverload:
case StructureKind.Function:
case StructureKind.GetAccessor:
Expand Down Expand Up @@ -7057,6 +7058,8 @@ function forEachStructureChild(structure, callback) {
return forEnumDeclaration(structure, callback);
case StructureKind.EnumMember:
return forEnumMember(structure, callback);
case StructureKind.ExportAssignment:
return forExportAssignment(structure, callback);
case StructureKind.ExportDeclaration:
return forExportDeclaration(structure, callback);
case StructureKind.FunctionOverload:
Expand Down Expand Up @@ -7170,6 +7173,9 @@ function forEnumDeclaration(structure, callback) {
function forEnumMember(structure, callback) {
return forJSDocableNode(structure, callback);
}
function forExportAssignment(structure, callback) {
return forJSDocableNode(structure, callback);
}
function forExportDeclaration(structure, callback) {
return forAllIfStructure(structure.namedExports, callback, StructureKind.ExportSpecifier)
|| forAll(structure.assertElements, callback, StructureKind.AssertEntry);
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-morph/bootstrap",
"version": "0.19.0",
"version": "0.20.0",
"description": "API for getting quickly set up with the TypeScript Compiler API.",
"keywords": [
"typescript",
Expand All @@ -24,7 +24,7 @@
"rollup": "rollup -c"
},
"dependencies": {
"@ts-morph/common": "~0.19.0"
"@ts-morph/common": "~0.20.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-morph/common",
"version": "0.19.0",
"version": "0.20.0",
"description": "Common functionality for ts-morph packages.",
"main": "dist/ts-morph-common.js",
"author": "David Sherret",
Expand Down
15 changes: 15 additions & 0 deletions packages/ts-morph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="19.0.0"></a>
# [19.0.0](https://github.com/dsherret/ts-morph/compare/18.0.0...19.0.0) (2023-06-14)


### Features

* add IsVoid method to Type ([#1398](https://github.com/dsherret/ts-morph/issues/1398)) ([f837790](https://github.com/dsherret/ts-morph/commit/f837790))
* add JSDocable to ExportAssignment ([#1397](https://github.com/dsherret/ts-morph/issues/1397)) ([611c8b6](https://github.com/dsherret/ts-morph/commit/611c8b6))
* upgrade to TS 5.1 ([#1415](https://github.com/dsherret/ts-morph/issues/1415)) ([46e50b0](https://github.com/dsherret/ts-morph/commit/46e50b0))
* fix: allow .tranform to work with Nodes from another parsed sourcefile (#1417) ([225ff58](https://github.com/dsherret/ts-morph/commit/225ff58))

### BREAKING CHANGES

- Upgraded to TS 5.1, which has Jsx namespaces.

<a name="18.0.0"></a>
# [18.0.0](https://github.com/dsherret/ts-morph/compare/17.0.1...18.0.0) (2023-03-22)

Expand Down
4 changes: 2 additions & 2 deletions packages/ts-morph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-morph",
"version": "18.0.0",
"version": "19.0.0",
"description": "TypeScript compiler wrapper for static analysis and code manipulation.",
"main": "dist/ts-morph.js",
"typings": "lib/ts-morph.d.ts",
Expand Down Expand Up @@ -44,7 +44,7 @@
},
"homepage": "https://github.com/dsherret/ts-morph#readme",
"dependencies": {
"@ts-morph/common": "~0.19.0",
"@ts-morph/common": "~0.20.0",
"code-block-writer": "^12.0.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/ts-morph/src/structures/Structure.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const Structure = {
case StructureKind.ConstructSignature:
case StructureKind.Enum:
case StructureKind.EnumMember:
case StructureKind.ExportAssignment:
case StructureKind.FunctionOverload:
case StructureKind.Function:
case StructureKind.GetAccessor:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { FunctionDeclarationStructure, FunctionLikeDeclarationStructure, Functio
import { InterfaceDeclarationStructure, CallSignatureDeclarationStructure, ConstructSignatureDeclarationStructure, MethodSignatureStructure,
IndexSignatureDeclarationStructure, PropertySignatureStructure } from "../interface";
import { JsxElementStructure, JsxSelfClosingElementStructure, JsxAttributedNodeStructure } from "../jsx";
import { ExportDeclarationStructure, ImportDeclarationStructure, ModuleDeclarationStructure, SourceFileStructure } from "../module";
import { ExportAssignmentStructure, ExportDeclarationStructure, ImportDeclarationStructure, ModuleDeclarationStructure, SourceFileStructure } from "../module";
import { VariableStatementStructure, StatementedNodeStructure } from "../statement";
import { TypeAliasDeclarationStructure } from "../type";
import { OptionalKind } from "../types";
Expand Down Expand Up @@ -58,6 +58,8 @@ export function forEachStructureChild<TStructure>(structure: Structures | Readon
return forEnumDeclaration(structure, callback);
case StructureKind.EnumMember:
return forEnumMember(structure, callback);
case StructureKind.ExportAssignment:
return forExportAssignment(structure, callback);
case StructureKind.ExportDeclaration:
return forExportDeclaration(structure, callback);
case StructureKind.FunctionOverload:
Expand Down Expand Up @@ -204,6 +206,11 @@ function forEnumMember<TStructure>(structure: EnumMemberStructure, callback: (st
return forJSDocableNode(structure, callback);
}

/** @generated */
function forExportAssignment<TStructure>(structure: ExportAssignmentStructure, callback: (structure: Structures) => TStructure | void): TStructure | undefined {
return forJSDocableNode(structure, callback);
}

/** @generated */
function forExportDeclaration<TStructure>(structure: ExportDeclarationStructure, callback: (structure: Structures) => TStructure | void): TStructure | undefined {
return forAllIfStructure(structure.namedExports, callback, StructureKind.ExportSpecifier)
Expand Down
6 changes: 5 additions & 1 deletion packages/ts-morph/wrapped-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The disadvantage to a node not being wrapped is that it won't have helper method

## Exist

**Total:** 223
**Total:** 224

* [ArrayBindingPattern](src/compiler/ast/binding/ArrayBindingPattern.ts)
* :heavy_check_mark: elements
Expand Down Expand Up @@ -328,6 +328,9 @@ The disadvantage to a node not being wrapped is that it won't have helper method
* :heavy_check_mark: openingFragment
* :heavy_check_mark: children
* :heavy_check_mark: closingFragment
* [JsxNamespacedName](src/compiler/ast/jsx/JsxNamespacedName.ts)
* :heavy_check_mark: name
* :heavy_check_mark: namespace
* [JsxOpeningElement](src/compiler/ast/jsx/JsxOpeningElement.ts)
* :heavy_check_mark: tagName
* :x: typeArguments
Expand All @@ -338,6 +341,7 @@ The disadvantage to a node not being wrapped is that it won't have helper method
* :x: typeArguments
* :heavy_check_mark: attributes
* [JsxSpreadAttribute](src/compiler/ast/jsx/JsxSpreadAttribute.ts)
* :heavy_check_mark: name
* :heavy_check_mark: expression
* [JsxText](src/compiler/ast/jsx/JsxText.ts)
* :heavy_check_mark: containsOnlyTriviaWhiteSpaces
Expand Down

0 comments on commit 4fc9771

Please sign in to comment.