ts-unused-exports
Advanced tools
Comparing version 10.0.1 to 10.1.0
@@ -0,1 +1,8 @@ | ||
## [10.1.0] - 24 May 2024 | ||
### Changed | ||
- fix: --ignorefiles was ignoring file extensions when matching - #296 | ||
- fix: --ignoreLocallyUsed had some false positives. Detail: was incorrectly excluding when parent is variable or function declaration - #300 | ||
## [10.0.1] - 4 Sept 2023 | ||
@@ -2,0 +9,0 @@ |
@@ -173,3 +173,3 @@ "use strict"; | ||
}; | ||
return files.filter(function (f) { return !shouldIgnoreFile(f.path); }); | ||
return files.filter(function (f) { return !shouldIgnoreFile(f.fullPath); }); | ||
}; | ||
@@ -176,0 +176,0 @@ var areEqual = function (files1, files2) { |
@@ -101,6 +101,3 @@ "use strict"; | ||
} | ||
if ((extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.ignoreLocallyUsed) && | ||
kind === ts.SyntaxKind.Identifier && | ||
node.parent.kind !== ts.SyntaxKind.VariableDeclaration && | ||
node.parent.kind !== ts.SyntaxKind.FunctionDeclaration) { | ||
if ((extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.ignoreLocallyUsed) && kind === ts.SyntaxKind.Identifier) { | ||
addImport({ | ||
@@ -107,0 +104,0 @@ from: util_1.removeTsFileExtension(node.getSourceFile().fileName), |
{ | ||
"name": "ts-unused-exports", | ||
"version": "10.0.1", | ||
"version": "10.1.0", | ||
"description": "ts-unused-exports finds unused exported symbols in your Typescript project", | ||
@@ -5,0 +5,0 @@ "main": "lib/app.js", |
Sorry, the diff of this file is not supported yet
139433
1793