Skip to content

putout v21.6.0

Choose a tag to compare

@coderaiser coderaiser released this 10 Nov 16:19
· 12885 commits to master since this release

No more apply-filter-boolean 💥

@putout/plugin-apply-filter-boolean is disabled and will be removed from default installation on next major bump of Putout. Thanks to @B2o5T for helping me to understand that @putout/plugin-remove-useless-functions feats much more for this purpose in #86 🎉

So now all kinds of code:

[].filter((a) => a);
[].find((a) => a);
[].findIndex((a) => a);
[].some((a) => a);
[].every((a) => a);

Will be fixed to:

[].filter(Boolean);
[].find(Boolean);
[].findIndex(Boolean);
[].some(Boolean);
[].every(Boolean);

🔥 feature

  • (package) @putout/plugin-remove-useless-functions v2.0.0
  • (@putout/plugin-remove-useless-functions) drop support of node < 14
  • (putout) apply-filter-boolean: disabled and will be removed in next major version
  • (@putout/plugin-remove-useless-functions) add support of id
  • (eslint-plugin-putout) add babel options from @putout/engine-parser for TypeScript and Markdown
  • (@putout/engine-parser) export babel/options
  • (@putout/plugin-tape) add-stop-all: add support of test.only(), test.skip()
  • (@putout/plugin-tape) remove-stop-all: add support of test.only(), test.skip()