Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 8, 2024
1 parent 2d94df3 commit 961de27
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
19 changes: 0 additions & 19 deletions .changeset/empty-poets-collect.md

This file was deleted.

20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# neverthrow

## 8.0.0

### Major Changes

- [#484](https://github.com/supermacro/neverthrow/pull/484) [`09faf35`](https://github.com/supermacro/neverthrow/commit/09faf35a5ce701ed55b13b82074da9e50050526d) Thanks [@braxtonhall](https://github.com/braxtonhall)! - Allow orElse method to change ok types.
This makes the orElse types match the implementation.

This is a breaking change for the orElse type argument list,
as the ok type must now be provided before the err type.

```diff
- result.orElse<ErrType>(foo)
+ result.orElse<OkType, ErrType>(foo)
```

This only applies if type arguments were
explicitly provided at an orElse callsite.
If the type arguments were inferred,
no updates are needed during the upgrade.

## 7.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neverthrow",
"version": "7.2.0",
"version": "8.0.0",
"description": "Stop throwing errors, and instead return Results!",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand Down

0 comments on commit 961de27

Please sign in to comment.