Skip to content

putout v22.8.0

Compare
Choose a tag to compare
@coderaiser coderaiser released this 15 Dec 19:31
· 8207 commits to master since this release

First class support of Yarn PnP

image

Zoology of Egypt, 1898

“Once upon a time, I dreamt I was a butterfly, fluttering hither and thither, to all intents and purposes a butterfly. I was conscious only of my happiness as a butterfly, unaware that I was myself. Soon I awaked, and there I was, veritably myself again. Now I do not know whether I was then a man dreaming I was a butterfly, or whether I am now a butterfly, dreaming I am a man.”
― Zhuangzi

Thanks to @EvgenyOrekhov, today was added first class support of Yarn PnP 🎉 (#93).

All you need to get started is:

  • cd to your project directory;
  • run yarn set version berry;
  • run yarn;

After that a file .pnp.cjs will be created, this is a bundle with content of all your node_modules.
Then if you put putout into your scripts, you can run it with: yarn putout ..

Have fun 🎈!

🐞 fix

  • (@putout/processor-css) disable property-no-vendor-prefix, selector-no-vendor-prefix
  • (@putout/engine-parser) try-catch: devDependencies -> dependencies (#92)
  • (@putout/operate) try-catch: dependencies -> devDependencies

🔥 feature

  • (putout) formatters: use chalk v4 to have support of Yarn PnP (yarnpkg/berry#3843)
  • (putout) add support of yarn PnP by formatters loader (#93)
  • (@putout/engine-loader) add support of Yarn PnP (#93)
  • (package) stylelint-config-standard v24.0.0
  • (package) stylelint v14.1.0
  • (@putout/operate) compute: nested MemberExpressions: extract -> compute
  • (@putout/plugin-convert-typeof-to-is-type) exclude undefined undeclared
  • (@putout/operate) compute: exclude values of MemberExpression that cannot be extracted
  • (@putout/plugin-remove-useless-variables) for-of: add support of ArrayPattern
  • (eslint-plugin-putout) wrap: add getSpacesAfterNode
  • (@putout/plugin-putout) add apply-create-test
  • (@putout/plugin-putout) add convert-dirname-to-url
  • (@putout/operator-declare) use isESM from @putout/operate
  • (@putout/operate) add isESM
  • (@putout/formatter-progress-bar) add color constant
  • (@putout/operate) compute: isSimbleMemberExpression: simplify object check: not MemberExpression, not CallExpression -> not computed and Identifier'