Skip to content

Commit

Permalink
chore(release): version bump [skip ci] (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 2, 2024
1 parent 8920b2c commit bae0284
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 77 deletions.
5 changes: 0 additions & 5 deletions .changeset/afraid-vans-occur.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-brooms-worry.md

This file was deleted.

49 changes: 0 additions & 49 deletions .changeset/healthy-donuts-rule.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/mean-cats-join.md

This file was deleted.

71 changes: 71 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# eslint-plugin-handle-errors

## 0.3.0

### Minor Changes

- [#5](https://github.com/Nodge/eslint-plugin-handle-errors/pull/5) [`8920b2c`](https://github.com/Nodge/eslint-plugin-handle-errors/commit/8920b2c6e0fa0576a3d61b4bdb00ee784c0e2fd3) Thanks [@Nodge](https://github.com/Nodge)! - [BREAKING] Use flat eslint config by default. The configs should be updates as follows:

- For flat eslint config:

- Before:

```javascript
import eslint from '@eslint/js';
import handleErrors from 'eslint-plugin-handle-errors';

export default [
eslint.configs.recommended, // optional
handleErrors.configs['flat/recommended'],
];
```

- After:

```javascript
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:

```json
{
"extends": ["plugin:handle-errors/recommended"]
}
```

- After:

```json
{
"extends": ["plugin:handle-errors/legacy-recommended"]
}
```

- [#5](https://github.com/Nodge/eslint-plugin-handle-errors/pull/5) [`8920b2c`](https://github.com/Nodge/eslint-plugin-handle-errors/commit/8920b2c6e0fa0576a3d61b4bdb00ee784c0e2fd3) Thanks [@Nodge](https://github.com/Nodge)! - feat: Support passing an error to a promise reject function like this:

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

Calling the reject function here is valid error handling.

### Patch Changes

- [#5](https://github.com/Nodge/eslint-plugin-handle-errors/pull/5) [`8920b2c`](https://github.com/Nodge/eslint-plugin-handle-errors/commit/8920b2c6e0fa0576a3d61b4bdb00ee784c0e2fd3) Thanks [@Nodge](https://github.com/Nodge)! - chore: Upgrade eslint to v9 and pin dependencies

- [#5](https://github.com/Nodge/eslint-plugin-handle-errors/pull/5) [`8920b2c`](https://github.com/Nodge/eslint-plugin-handle-errors/commit/8920b2c6e0fa0576a3d61b4bdb00ee784c0e2fd3) Thanks [@Nodge](https://github.com/Nodge)! - test: Add integration tests againt node 18/20/22 and eslint 7/8/9
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-handle-errors",
"version": "0.2.1",
"version": "0.3.0",
"description": "ESLint rules for handling errors",
"keywords": [
"eslint",
Expand Down

0 comments on commit bae0284

Please sign in to comment.