Releases: line/ts-remove-unused
Releases · line/ts-remove-unused
v0.4.0
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
- feat: handle reexports by @kazushisan in #18
- feat: remove empty lines by @kazushisan in #19
🧹 Chores
- chore: update release note format by @kazushisan in #20
📖 Docs
- docs: add explanation about skip option by @kazushisan in #21
Full Changelog: v0.3.2...v0.4.0
v0.3.2
What's Changed
🏕 Features
- fix: handle execution in non tty by @kazushisan in #14
- docs: update readme by @kazushisan in #15
- docs: update install section of README by @kazushisan in #16
- chore: upgrade ESLint and Prettier by @kazushisan in #17
Full Changelog: v0.3.1...v0.3.2
v0.3.1
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
What's Changed
🏕 Features
- rewrite ts-remove-unused by @kazushisan in #9
- feat: add yml for release notes by @kazushisan in #10
Full Changelog: v0.2.0...v0.3.0