Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #6

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Release #6

merged 1 commit into from
Aug 2, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 2, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

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

@Nodge Nodge merged commit bae0284 into main Aug 2, 2024
@Nodge Nodge deleted the changeset-release/main branch August 2, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant