Skip to content

Releases: line/ts-remove-unused

v0.4.0

16 Sep 07:14
55fdd7f
Compare
Choose a tag to compare

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

v0.3.2

11 Sep 16:28
a38f344
Compare
Choose a tag to compare

What's Changed

🏕 Features

Full Changelog: v0.3.1...v0.3.2

v0.3.1

11 Sep 05:57
16fc7ea
Compare
Choose a tag to compare

What's Changed

🏕 Features

  • docs: add intro section by @kazushisan in #11
  • bugfix: remove export keyword for locally used declaration by @kazushisan in #12
  • bugfix: correctly auto fix when there are multiple export specifiers by @kazushisan in #13

Full Changelog: v0.3.0...v0.3.1

v0.3.0

29 Aug 01:41
da2798a
Compare
Choose a tag to compare

What's Changed

🏕 Features

Full Changelog: v0.2.0...v0.3.0

v0.2.0

22 Sep 10:46
a3f7c60
Compare
Choose a tag to compare