Skip to content

Latest commit

 

History

History
878 lines (668 loc) · 40.2 KB

CHANGES.md

File metadata and controls

878 lines (668 loc) · 40.2 KB

Changes

13.1.2

  • afb1114 fix: adds ability to filter cli options before passing to eslint (#284) (Christopher Aubut)
  • 5379fde docs: add known flat config limitations to README.md (#282) (Christopher Aubut)

Released by Maximilian Antoni on 2023-12-22.

13.1.1

  • 🐛 accdc41 feat: support eslint flat config on windows (#280) (asasinmode)
  • 📚 3b71636 Add contributor
  • 🛡️ 8357a59 Bump debug from 4.1.1 to 4.3.4 in /test/fixture/v6.0.x (dependabot[bot])

Released by Maximilian Antoni on 2023-11-27.

13.1.0

  • 🍏 399b462 feat: adapt to new eslint flat config (#277) (Amrit Kahlon)
  • 📚 6fa5719 Document experimental support for flat config
  • 📚 0fc2f66 Add contributor

Released by Maximilian Antoni on 2023-11-12.

13.0.0

  • 💥 e8380b4 Upgrade core_d to v6 which sends error messages to stderr
  • 🍏 a81af28 Update default eslint to v8.50.0
  • 📚 8a44986 Add compatibility notes for v13
  • 📚 65bb02e Add contributors
  • 6fc629c Upgrade GitHub actions
  • 1cd7458 Add node 18.x and 20.x to build matrix
  • 7f908a3 Update semver
  • bb7c260 Update optionator
  • 9abe9e4 Upgrade mocha to v10
  • 1eebcde Upgrade referee-sinon

Released by Maximilian Antoni on 2023-10-06.

12.2.1

  • 🐛 8e94a60 Prevent unhandled promise exception (#215) (Christian Alfoni)
  • 🐛 15144a1 Fix typo in options-eslint.js (Thorsten Ball)
  • 📚 92665f5 Update Sublime Text information in README (herr kaste)

Released by Maximilian Antoni on 2022-09-27.

12.2.0

  • 🍏 96e34ef Migrate to core_d v5 and implement common package manager file checks
  • 🍏 a2331e3 Implement files hash checker

Released by Maximilian Antoni on 2022-05-26.

12.1.0

  • 🍏 151a4f5 Resolve local only env (#182) (Oskar Grunning)
  • 📚 13aef60 Add contributor

Released by Maximilian Antoni on 2022-04-21.

12.0.0

  • 💥 43d0a5f Upgrade default eslint to v8.12.0
  • 💥 a1d4197 Invalidate cache based on content hash rather than modification time (#190) (Dara Dermody)
  • 📚 e5e9fb9 Add compatibility notes for v12
  • 📚 693f680 Improve documentation about supported versions
  • 📚 e2a30c2 Add contributor
  • 🛡 db8dbae npm audit
  • 🛡 73c8f13 Bump ajv from 6.11.0 to 6.12.6 in /test/fixture/v5.16.x (dependabot[bot])
  • 🛡 9004f87 Bump ajv from 6.12.2 to 6.12.6 in /test/fixture/v7.0.x (dependabot[bot])
  • 🛡 3e5550a Bump ajv from 6.11.0 to 6.12.6 in /test/fixture/v6.8.x (dependabot[bot])
  • 🛡 16bfe5c Bump ajv from 6.10.0 to 6.12.6 in /test/fixture/v5.0.x (dependabot[bot])
  • 🛡 978dee0 Bump ajv from 6.10.0 to 6.12.6 in /test/fixture/v4.0.x (dependabot[bot])
  • 🛡 bcb6b1f npm audit test fixtures
  • 🛡 b8a0b68 npm audit
  • 734a22a Move prepare.sh into scripts

Released by Maximilian Antoni on 2022-04-06.

11.1.1

  • 🐛 8e912e2 Support quotes when parsing --eslint-path (Shannon Moeller)
  • 📚 2cf58e7 Add contributor

Released by Maximilian Antoni on 2021-11-26.

11.1.0

  • 🍏 33db423 Support Passing Alternative Eslint Module Path (#175) (James Pulec)

    Allow passing an alternative path to an eslint module using the --eslint-path option. This makes it easier to support different module resolution schemes, such as Yarn PnP.

  • 21d44b9 Use eslint v8.0.x instead of the beta in tests
  • 📚 bc77aff Add contributor

Released by Maximilian Antoni on 2021-11-15.

11.0.0

  • 💥 38d4c67 Remove node 10 support
  • 🍏 05b7e17 Add node 16 to GitHub action
  • 🍏 efbd072 Support eslint 8 beta
  • 📚 bf2dcf1 Update compatibility notes
  • 0e84c82 Upgrade mocha to v9
  • 0e6da22 Remove mocha-referee-sinon
  • a78384d Upgrade referee-sinon
  • 39ac4a7 Update core_d

Released by Maximilian Antoni on 2021-09-04.

10.1.3

  • 🐛 163f6a7 Fix --config flag (Jose Alvarez)

Released by Maximilian Antoni on 2021-05-27.

10.1.2

  • 🐛 58088b9 Fix --fix to work with --quiet (Dani Pinyol)

Released by Maximilian Antoni on 2021-05-21.

10.1.1

  • 📚 1e4d696 Clarify location of .eslint_d in README (Damien Cassou)
  • 📚 4f9bceb Add a note to 10.1.0 regarding the location of .eslint_d (Damien Cassou)
  • 📚 9e43358 Add contributor

Released by Maximilian Antoni on 2021-05-12.

10.1.0

  • 🍏 48f1e1a Implement exit codes (Jose Alvarez)
  • 🍏 a2f3a0e Depend on core_d v3.1
  • 🛡 fd332c2 Bump lodash from 4.17.19 to 4.17.21 in /test/fixture/v6.0.x (dependabot[bot])
  • 🛡 cd87b1f Bump lodash from 4.17.19 to 4.17.21 in /test/fixture/v5.0.x (dependabot[bot])
  • 🛡 be57447 Bump lodash from 4.17.19 to 4.17.21 in /test/fixture/v4.0.x (dependabot[bot])
  • 🛡 a37575d Bump lodash from 4.17.19 to 4.17.21 (dependabot[bot])
  • 2cf221b Update Studio Changes
  • bbfc483 Update semver
  • 48b94f9 Update eslint
  • 10a536c Update mocha
  • 2a468a0 Upgrade referee-sinon to latest
  • 6d1f4d0 Use npm 7
  • 📚 f47e45e Add contributor

Note: If you rely on the .eslint_d file, please note that its location has changed and that the XDG_RUNTIME_DIR is taken into account if it exists. See the README.md file for more information.

Released by Maximilian Antoni on 2021-05-09.

10.0.4

  • 📚 b256c48 Document fix for .vue files not autofixed (#154) (Artur Tagisow)
  • 📚 c63b44b Add contributor

Released by Maximilian Antoni on 2021-02-28.

10.0.3

  • 🐛 c732b77 Fix --print-config for eslint 7+ (#153) (Dan Orzechowski)
  • 📚 25c2921 Add contributors
  • 3e4c1b2 Update Studio Changes

Released by Maximilian Antoni on 2021-02-23.

10.0.2

  • 🐛 bc46363 Generate correct help
  • 058d662 Refactor eslint path resolution into own file
  • 0df364d Do not run builds twice on own branch PR
  • 39ab052 Run build for PRs

Released by Maximilian Antoni on 2021-02-10.

10.0.1

  • 🐛 f62713b Unbreak eslint_d --help (Christian Albrecht)

Released by Maximilian Antoni on 2021-02-10.

10.0.0

Switch to the new ESLint API, if available. The CLIEngine API has been deprecated.

  • 💥 ee74815 BREAKING: Use ESLint class if available
  • 📚 1d6227e Add compatibility notes for v10
  • 📚 d67e203 Document ale integration and not sublime issue
  • 📚 68c4eec Change badge
  • 93dba52 Remove Travis config
  • b8b9f3c Configure GitHub actions
  • d83c9b9 Fix watch script
  • e65fdb9 Update mocha
  • 06d9b71 Upgrade referee-sinon
  • 2b42e64 Add contributors

Released by Maximilian Antoni on 2021-01-30.

9.1.2

Fixes an issue with --color / --no-color not working correctly.

  • 🐛 17ae7bd Use level property instead of enabled for chalk (#139) (Ibuki)
  • 📚 c72869f Update eslint version compatibilty note
  • 🛡 646772c npm audit
  • 🛡 6d606db Bump lodash from 4.17.15 to 4.17.19 in /test/fixture/v5.16.x (dependabot[bot])
  • 🛡 de3a6b9 Bump lodash from 4.17.15 to 4.17.19 in /test/fixture/v4.19.x (dependabot[bot])
  • 🛡 7380d79 Bump lodash from 4.17.15 to 4.17.19 (dependabot[bot])
  • 🛡 04d37b1 Bump lodash from 4.17.15 to 4.17.19 in /test/fixture/v6.0.x (dependabot[bot])
  • 🛡 2816459 Bump lodash from 4.17.15 to 4.17.19 in /test/fixture/v7.0.x (dependabot[bot])
  • 🛡 f838505 Bump lodash from 4.17.15 to 4.17.19 in /test/fixture/v6.8.x (dependabot[bot])
  • 🛡 5a53f65 Bump lodash from 4.17.15 to 4.17.19 in /test/fixture/v4.0.x (dependabot[bot])
  • 🛡 195b19b Bump lodash from 4.17.15 to 4.17.19 in /test/fixture/v5.0.x (dependabot[bot])

Released by Maximilian Antoni on 2020-09-08.

9.1.1

Fixes an issue with pnpm being unable to resolve chalk.

  • 🐛 6f2f88d Fix issue #101 (Alexander Koltun)

Released by Maximilian Antoni on 2020-06-23.

9.1.0

  • 🍏 836912c Update eslint to v7.3
  • 🍏 09c46d6 Upgrade core_d to v2
  • 📚 f4f1cd3 State pnpm compatibility
  • 0cd4828 Upgrade Mocha to v8
  • 8e2b18e Update @sinonjs/referee-sinon to v7.1

Released by Maximilian Antoni on 2020-06-22.

9.0.0

Now ships with eslint 7, drops Node 8 support, adds Node 14. Note that eslint_d continues to support older eslint versions down to v4.

  • 💥 5f14916 Support eslint 7
  • 💥 e8fa144 Remove node 8 from travis config
  • 🍏 7e518b8 Add node 12 to travis config
  • 🍏 71e140c Update optionator to v0.9.1
  • 📚 0b830e6 Update compatibility notes for v9.0.0
  • c9512fc Upgrade Studio Changes to v2
  • 6825f70 Upgrade to referee-sinon 7
  • 17e164f Upgrade to Mocha 7
  • 875e004 Update eslint config

Released by Maximilian Antoni on 2020-06-09.

8.1.1

Security patches.

  • 🛡 2f0c21e npm audit v6.8.x fixture
  • 🛡 912818c npm audit v6.0.x fixture
  • 🛡 72ad6f5 npm audit v5.16.x fixture
  • 🛡 706250e npm audit v5.0.x fixture
  • 🛡 c609c3a npm audit v4.19.x fixture
  • 🛡 4983414 npm audit v4.0.x fixture
  • 🛡 ffb150a npm audit
  • 🛡 6e0434e Bump acorn from 7.1.0 to 7.1.1 in /test/fixture/v6.8.x (dependabot[bot])
  • 🛡 30f87d3 Bump acorn from 6.1.1 to 6.4.1 in /test/fixture/v6.0.x (dependabot[bot])
  • 🛡 414a697 Bump acorn from 6.4.0 to 6.4.1 in /test/fixture/v5.16.x (dependabot[bot])
  • 🛡 6e2fc82 Bump acorn from 6.1.1 to 6.4.1 in /test/fixture/v5.0.x (dependabot[bot])
  • 🛡 06a6144 Bump acorn from 6.1.1 to 6.4.1 (dependabot[bot])

Released by Maximilian Antoni on 2020-03-21.

8.1.0

  • 🍏 501333a Reviewed existing CLI options. Added new ESLint CLI options. (MarS)

    Added next CLI options:

    1. --parser-options - Specify parser options
    2. --resolve-plugins-relative-to - A folder where plugins should be resolved from, CWD by default
    3. --fix-dry-run - Automatically fix problems without saving the changes to the file system
    4. --fix-type - Specify the types of fixes to apply (problem, suggestion, layout)
    5. --report-unused-disable-directives - Adds reported errors for unused eslint-disable directives
    6. --init - Run config initialization wizard'
    7. --env-info - Output execution environment information
    8. --error-on-unmatched-pattern - Prevent errors when pattern is unmatched
  • 📚 8abbf0d Add v6 to eslint version compatibility statement
  • a8ca530 Bump eslint-utils from 1.3.1 to 1.4.2 (dependabot[bot])

    Bumps eslint-utils from 1.3.1 to 1.4.2.

    Signed-off-by: dependabot[bot] support@github.com

  • ac8378b Upgrade mocha to v6
  • b922130 Bump lodash from 4.17.11 to 4.17.14 (dependabot[bot])

    Bumps lodash from 4.17.11 to 4.17.14.

    Signed-off-by: dependabot[bot] support@github.com

Released by Maximilian Antoni on 2020-02-19.

8.0.0

Upgrade default eslint to v6

This release retains compatibility with projects depending on eslint v4 and v5.

Released by Maximilian Antoni on 2019-06-24.

7.3.0

Extract core_d, a library for offloading work to a background server

With this release, most of the code from this project was moved to core_d. This allows you to build your own projects using the same technique as eslint_d for Standard, Prettier and other tools.

  • 🍏 786d439 Extract core_d
  • 📚 a1501ec Link to core_d in the docs
  • 🐛 48a95f5 Reinstall dependencies
  • 🐛 1bf34a7 Remove superfluous sinon.restore() calls
  • 8f64205 Use mocha-referee-sinon to verify all tests have assertions
  • ec24293 Use @sinonjs/referee-sinon v5

Released by Maximilian Antoni on 2019-02-26.

7.2.0

Support for multiple major eslint versions

Now you can have multiple projects with a mix of eslint 4.0+ and 5.0+ dependencies. The test suite of eslint_d has been enhanced to run tests against all supported major versions.

  • 🍏 f00a097 Change eslint dependency version to ^4 || ^5
  • 🍏 25dddb0 Run tests against eslint v4.0 and v5.0
  • 🐛 91aa059 Update npm in Travis Node 6 build
  • 📚 3491f4f Add a note about eslint version compatibility

Released by Maximilian Antoni on 2018-12-04.

7.1.1

Transparent relaunch on connection failure

If the daemon process was killed or crashed and an orphaned ~/.eslint_d file was present, the eslint_d command would repeatedly fail to connect. With this patch, the ~/.eslint_d file is removed on ECONNREFUSED errors and a new instance is created transparently.

  • 🐛 ec25134 Transparent relaunch on connection failure
  • 🐛 4abea7c Do not retry on connection failure
  • 📚 6eaf262 Fix list formatting in changelog
  • 📚 2fb112b Fix changelog formatting
  • 📚 436b45f Update Studio Changes for --footer support

Released by Maximilian Antoni on 2018-09-18.

7.1.0

Automatic cache flushing on common package manager file modification:

When updating eslint or a plugin, like prettier, eslint_d had to be restarted with eslint_d restart to pick up the changes. With this release, the internal cache is discarded and a new instance is created when one of these files is touched: package.json, package-lock.json, npm-shrinkwrap.json or yarn.lock.

  • 0176ec5 Check mtime of common package manager files
  • 39c56bc Document automatic cache flushing

7.0.0

Highlights:

  • The source level of this module was changed to ES 6
  • Node support is now explicitly stated to be Node 6, 8 and 10
  • The new unit test suite is executed on Travis with all supported Node versions
  • eslint_d now ships with eslint ^5.4.0.

Commits:

  • 312c35e Move start and restart to client
  • 42bbb54 Fix superfluous newline on socket "end" event
  • 64c1d6d Refactor client.js
  • 685fcf0 Refactor server.js
  • 88cb781 Remove unnecessary try-catch
  • afefb2f Extract resolveModules helper
  • 4c70735 Consolidate connect logic
  • d979eca Improve compatibility notes in readme
  • a55d177 Update dependencies
  • 240732c Move --no-color handling into client.js
  • 017e78f Add tests for linter.js
  • 97f1e10 Add tests for server.js
  • b7739ec Refactor daemon.js out of server.js
  • d793f4c Do not call process.stdout.write directly
  • 451978d Add tests for client.js
  • 907847c Use https links and point build badge to master
  • 0518785 Add tests for launcher.js
  • 33eb49b Add tests for portfile.js
  • 05e990d Add travis config, build badge
  • d25082a Switch eslint config to @studio/eslint-config

6.0.1

  • acfe398 Fix color support (#88)
  • 6851625 Upgrade supports-color to v5
  • 23cb9c2 Remove direct chalk dependency

    Chalk is required relative to eslint, so the direct dependency is not being used.

  • 745e013 Add commit hashes in changelog

6.0.0

  • Upgrade to eslint 5 (Aaron Jensen)

5.3.1

  • Fix vulnerabilities by updating eslint

5.3.0

  • Use nanolru to limit the number of cached instances

    This also enhances the status command to show the number of cached instances.

  • Document cache eviction and link to nanolru

5.2.2

  • Connect to 127.0.0.1 instead of localhost (#84) (Joseph Frazier)

    If localhost doesn't resolve to 127.0.0.1, the client cannot connect to the server. This issue arose in josephfrazier/prettier_d#7, and I ported the changes from there.

5.2.1

  • fix(launcher): passthrough environment variables (#81) (Huáng Jùnliàng)

5.2.0

  • Force all open connections to close when the server is stopped (#79) (Aaron Jensen)

    This is a less graceful approach to stopping the server, but it allows for editors to hold a connection open to make for an even faster response time.

This was primarily implemented to allow eslintd-fix to hold a connection open to reduce latency when a fix is performed.

5.1.0

  • Allow using the --stdin flag with netcat (#74) (Caleb Eby)
  • Refactor portfile.read to a single async fs call

5.0.0

  • Eslint 4 (#71) (Simen Bekkhus)
  • Update readme with eslint 4 (#72) (Simen Bekkhus)
  • Use @studio/changes for release and remove Makefile

4.2.5

Add .vimrc example for buffer auto-fixing to README.

4.2.4

Exit with status 1 when an error occurs. Fixes #63.

4.2.2

Fix --fix-to-stdout when used with an ignored file.

4.2.1

Fix --fix-to-stdout when used with an empty file.

4.2.0

An exciting new feature comes to eslint_d, the first one that is not part of eslint itself. Aaron Jensen implemented --fix-to-stdout which allows to integrated eslint --fix into your editor as a save action 🎉

Currently, this feature only works with --stdin and you can test it like this:

$ cat ./some/file.js | eslint_d --fix-to-stdout --stdin

4.1.0

Support for --print-config was added by Aaron Jensen. He also added instructions for Emacs users.

4.0.1

Fixes a security issue that was noticed by Andri Möll. Thanks for reporting! To avoid CSRF attacks, this introduces a security token that must be sent by clients on each request. This change also binds the daemon explicitly to 127.0.0.1 instead of implicitly listening on all network interfaces.

4.0.0

Use ESLint 3.

3.1.2

Back-ported the security fix from v4.0.1.

3.1.1

As per a recent change in eslint the default parser espree was removed. The eslint dependency was bumped to 2.10.2 which introduced the change.

3.1.0

The eslint_d command will now exit with code 1 if errors where reported.

3.0.1

A fix was provided by ruanyl to resolve chalk relative from the actually resolved eslint module.

3.0.0

jpsc got the eslint 2 upgrade started. eslint_d will now use eslint 2.2+ if no local install of eslint is found.

Also in this release:

  • Support --inline-config and --cache-location options
  • Pass cwd through to eslint.

2.5.1

  • Fix --fix
  • Fix color for local eslint

2.5.0

  • Support color and the --no-color option (fixes issue #7)
  • Improve formatting in "Editor integration" documentation

2.4.0

Roger Zurawicki figured out how to make eslint_d work in WebStorm.

  • Add information about --cache in the readme (netei)
  • Add symlink to eslint.js for WebStorm compat (Roger Zurawicki)

2.3.2

Fixes an error in case no local eslint module can be found (Kevin Yue)

2.3.1

  • Remove concat-stream dependency and micro optimizations (Richard Herrera)

2.3.0

Richard Herrera implemented a missing eslint feature to lint text provided via stdin. This also fixes issue #13.

2.2.0

Resolves the eslint module for each working directory separately. This allows multiple versions of eslint to co-exist. This is required to support local plugins like the babel-eslint parser (see issue #10). If no local eslint install is found, the one that was installed with eslint_d is used.

2.1.2

Fixes issue #9 with space-containing config path or other shell parameters that need escaping.

2.1.1

Fixes issue #8 on Windows when launching in a cmd shell where eslint_d was hanging indefinitely.

  • Update Sublime linter URL to it's new home
  • Add note for Atom users

2.1.0

Make eslint_d work out of the box in vim with the syntastic eslint checker.

  • Add --version and -v options
  • Do not start server when called with -h or --help
  • Downgrade optionator to align with eslint
  • Update instructions for vim integration

2.0.0

This realease support (almost) all eslint options. Check eslint_d --help.

Breaking that API already: The lint command was removed and in case you're not passing a control command like start, stop, restart or status, the given options are passed to the linter.

Also, the default output format was changed from compact to stylish to align with eslint.

  • Document vim syntastic javascript checkers (Chris Gaudreau)
  • invokations -> invocations (Juho Vepsäläinen)
  • Document Sublime editor integration
  • Handle linter exceptions

1.0.0

  • Initial release