Skip to content

putout v25.1.0

Choose a tag to compare

@coderaiser coderaiser released this 01 Mar 17:21
· 11817 commits to master since this release

image

Improved auto fix for tests

Once you realize that the world is your own projection, you are free of it. You need not free yourself of a world that does not exist, except in your own imagination! However is the picture, beautiful or ugly, you are painting it and you are not bound by it. Realize that there is nobody to force it on you, that it is due to the habit of taking the imaginary to be real. See the imaginary as imaginary and be free of fear.

(c) Sri Nisargadatta Maharaj

When you changed implementation of a plugin, and want to update fixtures you can run the test with UPDATE env variable:

UPDATE=1 npm test

It will update all your fixtures and remove unused fixture files for noReport and noTransform.

Improved promises/remove-useless-await

In the mirror of your mind all kinds of pictures appear and disappear. Knowing that they are entirely your own creations, watch them silently come and go. Be alert, but not perturbed. This attitude of silent observation is the very foundation of yoga. You see the picture, but you are not the picture.

(c) Sri Nisargadatta Maharaj

-const hello = await 'world';
+const hello = 'world'

Added madrun/add-cut-env

Instead of searching for what you do not have, find out what it is that you have never lost.

(c) Sri Nisargadatta Maharaj

export default {
-     'test': () => [env, 'test:only'],
+     'test': async () => [env, await cutEnv('test:only')],
      'test:only': () => [env, 'npm test'],
};

Shift your attention from words to silence and you will hear.

(c) Sri Nisargadatta Maharaj

🔥 feature

  • (package) @putout/plugin-package-json v4.0.0
  • (@putout/plugin-package-json) drop support of putout < 25