Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 2.75 KB

CHANGELOG.md

File metadata and controls

77 lines (53 loc) · 2.75 KB

eslint-plugin-handle-errors

0.3.1

Patch Changes

0.3.0

Minor Changes

  • #5 8920b2c Thanks @Nodge! - [BREAKING] Use flat eslint config by default. The configs should be updates as follows:

    • For flat eslint config:

      • Before:

        import eslint from '@eslint/js';
        import handleErrors from 'eslint-plugin-handle-errors';
        
        export default [
            eslint.configs.recommended, // optional
            handleErrors.configs['flat/recommended'],
        ];
      • After:

        import eslint from '@eslint/js';
        import handleErrors from 'eslint-plugin-handle-errors';
        
        export default [
            eslint.configs.recommended, // optional
            handleErrors.configs.recommended,
        ];
    • For legacy esling config:

      • Before:

        {
            "extends": ["plugin:handle-errors/recommended"]
        }
      • After:

        {
            "extends": ["plugin:handle-errors/legacy-recommended"]
        }
  • #5 8920b2c Thanks @Nodge! - feat: Support passing an error to a promise reject function like this:

    new Promise((resolve, reject) => {
        try {
            // do something
        } catch (err) {
            reject(err);
        }
    });

    Calling the reject function here is valid error handling.

Patch Changes

  • #5 8920b2c Thanks @Nodge! - chore: Upgrade eslint to v9 and pin dependencies

  • #5 8920b2c Thanks @Nodge! - test: Add integration tests againt node 18/20/22 and eslint 7/8/9