New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-unused-exports

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-unused-exports - npm Package Versions

23
6

11.0.1

Diff

Changelog

Source

[11.0.1] - 25 Nov 2024

Changed

  • updated examples and README to match the changes in version 11.0.0
ts-unused-exports-user
published 11.0.0 •

Changelog

Source

[11.0.0] - 25 Nov 2024

Changed

  • BREAKING CHANGE: The default export (API entry point) has been changed to be compatible with esm module (should also work with cjs)
  • BREAKING CHANGE: The results (API) structure has been changed:
    • OLD:
    const result = {
    "filePath1": { /* ... */ },
    "filePath2": { /* ... */ },
    /* ... */
    unusedFiles: { /* ... */ },
    };
    
    • NEW:
    const result = {
    unusedExports: {
        "filePath1": { /* ... */ },
        "filePath2": { /* ... */ },
        /* ... */
    },
    unusedFiles: [ "filePath1", "filePath2", /*"..."*/ ]
    };
    
  • fix: The scope of --ignoreTestFiles has been reduced, to make it less likely to exclude non-test files
  • (internal) built using Node v20.13.1
ts-unused-exports-user
published 10.1.0 •

Changelog

Source

[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
ts-unused-exports-user
published 10.0.1 •

Changelog

Source

[10.0.1] - 4 Sept 2023

Changed

  • fix: an extra semicolon in the setting --excludePathsFromReport should not break the filtering. #297.
ts-unused-exports-user
published 10.0.0 •

Changelog

Source

[10.0.0] - 9 Aug 2023

Changed

  • the setting excludePathsFromReport now supports regex - #293
  • handle import statements that contain '.ts' or '.tsx' extensions - #281
ts-unused-exports-user
published 9.0.5 •

Changelog

Source

[9.0.5] - 24 Jun 2023

Added

  • Add --ignoreLocallyUsed flag which means that exports which are used in the same file they are defined in won't be reported as unused
ts-unused-exports-user
published 9.0.4 •

Changelog

Source

[9.0.4] - 12 Feb 2023

Changed

  • Improve handling of transitive imports like 'a -> b -> c' especially where 'export *' is used - #216
  • Improve output format when the unused item involves an 'export *'.
ts-unused-exports-user
published 9.0.3 •

Changelog

Source

[9.0.3] - 5 Feb 2023

Changed

  • Fix for import from index file via a custom path - avoids false positives on index files - #266. Now tested with more cases such as import from "foo" OR import from "foo/index" with various file extensions supported.
  • ts-unused-exports npm package: Updated the version in package-lock.json
  • Fixed the example using ts-unused-exports as a library via TypeScript
ts-unused-exports-user
published 9.0.2 •

Changelog

Source

[9.0.2] - 15 Jan 2023

Added

  • Added better examples of how to use as a library, via TypeScript or JavaScript. No code was changed.
ts-unused-exports-user
published 9.0.1 •

Changelog

Source

[9.0.1] - 4 Jan 2023

Changed

  • Fix for index files that end with .js or .cjs or .mjs.
23
6
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc