Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@kazushisan kazushisan released this 16 Sep 07:14
· 2 commits to main since this release
55fdd7f

ts-remove-unused v0.4.0 is released!

Support for re-exports

ts-remove-unused can now handle re-exports correctly. Let's say you have the following two files a.ts and a_reexport.ts

// a.ts
export const a = 'a';

export const a2 = 'a2';
// a_rexport.ts
export { a, a2 } from './a.js';

If a2 is not used across the whole project, ts-remove-unused will modify the files:

// a.ts
export const a = 'a';
// a_reexport.ts
export { a } from "./a.js";

Handling empty lines nicely

ts-remove-unused will handle empty lines with the following rules:

  • removes leading empty lines from files that were edited
  • removes trailing empty lines from files that were edited (limits the line break to max of 1)
  • if the edit results in 3 or more consecutive line breaks, it will limit the line break to 2

What's Changed

🚀 Features

🧹 Chores

📖 Docs

Full Changelog: v0.3.2...v0.4.0