@microsoft/api-extractor
Advanced tools
+18
-1
| # Change Log - @microsoft/api-extractor | ||
| This log was last generated on Sat, 06 Dec 2025 01:12:28 GMT and should not be manually modified. | ||
| This log was last generated on Thu, 08 Jan 2026 01:12:30 GMT and should not be manually modified. | ||
| ## 7.55.5 | ||
| Thu, 08 Jan 2026 01:12:30 GMT | ||
| ### Patches | ||
| - Fix missing 'export' keyword for namespace re-exports that produced invalid TypeScript output | ||
| ## 7.55.4 | ||
| Wed, 07 Jan 2026 01:12:24 GMT | ||
| _Version update only_ | ||
| ## 7.55.3 | ||
| Mon, 05 Jan 2026 16:12:49 GMT | ||
| _Version update only_ | ||
| ## 7.55.2 | ||
@@ -6,0 +23,0 @@ Sat, 06 Dec 2025 01:12:28 GMT |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
| "packageName": "@microsoft/api-extractor", | ||
| "packageVersion": "7.54.0" | ||
| "packageVersion": "7.55.2" | ||
| } | ||
| ] | ||
| } |
@@ -259,2 +259,9 @@ "use strict"; | ||
| case ts.SyntaxKind.ExportKeyword: | ||
| if (DtsEmitHelpers_1.DtsEmitHelpers.isExportKeywordInNamespaceExportDeclaration(span.node)) { | ||
| // This is an export declaration inside a namespace - preserve the export keyword | ||
| break; | ||
| } | ||
| // Otherwise, delete the export keyword -- we will re-add it below | ||
| span.modification.skipAll(); | ||
| break; | ||
| case ts.SyntaxKind.DefaultKeyword: | ||
@@ -261,0 +268,0 @@ case ts.SyntaxKind.DeclareKeyword: |
@@ -0,1 +1,2 @@ | ||
| import * as ts from 'typescript'; | ||
| import type { CollectorEntity } from '../collector/CollectorEntity'; | ||
@@ -15,3 +16,9 @@ import { AstImport } from '../analyzer/AstImport'; | ||
| static modifyImportTypeSpan(collector: Collector, span: Span, astDeclaration: AstDeclaration, modifyNestedSpan: (childSpan: Span, childAstDeclaration: AstDeclaration) => void): void; | ||
| /** | ||
| * Checks if an export keyword is part of an ExportDeclaration inside a namespace | ||
| * (e.g., "export { Foo, Bar };" inside "declare namespace SDK { ... }"). | ||
| * In that case, the export keyword must be preserved, otherwise the output is invalid TypeScript. | ||
| */ | ||
| static isExportKeywordInNamespaceExportDeclaration(node: ts.Node): boolean; | ||
| } | ||
| //# sourceMappingURL=DtsEmitHelpers.d.ts.map |
@@ -44,2 +44,3 @@ "use strict"; | ||
| const SourceFileLocationFormatter_1 = require("../analyzer/SourceFileLocationFormatter"); | ||
| const TypeScriptHelpers_1 = require("../analyzer/TypeScriptHelpers"); | ||
| /** | ||
@@ -164,4 +165,18 @@ * Some common code shared between DtsRollupGenerator and ApiReportGenerator. | ||
| } | ||
| /** | ||
| * Checks if an export keyword is part of an ExportDeclaration inside a namespace | ||
| * (e.g., "export { Foo, Bar };" inside "declare namespace SDK { ... }"). | ||
| * In that case, the export keyword must be preserved, otherwise the output is invalid TypeScript. | ||
| */ | ||
| static isExportKeywordInNamespaceExportDeclaration(node) { | ||
| if (node.parent && ts.isExportDeclaration(node.parent)) { | ||
| const moduleBlock = TypeScriptHelpers_1.TypeScriptHelpers.findFirstParent(node, ts.SyntaxKind.ModuleBlock); | ||
| if (moduleBlock) { | ||
| return true; | ||
| } | ||
| } | ||
| return false; | ||
| } | ||
| } | ||
| exports.DtsEmitHelpers = DtsEmitHelpers; | ||
| //# sourceMappingURL=DtsEmitHelpers.js.map |
@@ -249,2 +249,9 @@ "use strict"; | ||
| case ts.SyntaxKind.ExportKeyword: | ||
| if (DtsEmitHelpers_1.DtsEmitHelpers.isExportKeywordInNamespaceExportDeclaration(span.node)) { | ||
| // This is an export declaration inside a namespace - preserve the export keyword | ||
| break; | ||
| } | ||
| // Otherwise, delete the export keyword -- we will re-add it below | ||
| span.modification.skipAll(); | ||
| break; | ||
| case ts.SyntaxKind.DefaultKeyword: | ||
@@ -251,0 +258,0 @@ case ts.SyntaxKind.DeclareKeyword: |
+6
-6
| { | ||
| "name": "@microsoft/api-extractor", | ||
| "version": "7.55.2", | ||
| "version": "7.55.5", | ||
| "description": "Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups", | ||
@@ -44,10 +44,10 @@ "keywords": [ | ||
| "typescript": "5.8.2", | ||
| "@microsoft/api-extractor-model": "7.32.2", | ||
| "@rushstack/rig-package": "0.6.0", | ||
| "@rushstack/node-core-library": "5.19.1", | ||
| "@rushstack/rig-package": "0.6.0", | ||
| "@microsoft/api-extractor-model": "7.32.2", | ||
| "@rushstack/terminal": "0.19.5", | ||
| "@rushstack/ts-command-line": "5.1.5" | ||
| "@rushstack/ts-command-line": "5.1.7", | ||
| "@rushstack/terminal": "0.21.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@rushstack/heft": "1.1.4", | ||
| "@rushstack/heft": "1.1.7", | ||
| "@types/lodash": "4.14.116", | ||
@@ -54,0 +54,0 @@ "@types/resolve": "1.20.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2031565
0.27%25707
0.3%70
-15.66%0
-100%+ Added
+ Added
- Removed
- Removed
Updated