Skip to content

Commit ac52282

Browse files
authored
Merge pull request #582 from supermacro/changeset-release/master
Version Packages
2 parents 2d94df3 + 961de27 commit ac52282

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

.changeset/empty-poets-collect.md

-19
This file was deleted.

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# neverthrow
22

3+
## 8.0.0
4+
5+
### Major Changes
6+
7+
- [#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.
8+
This makes the orElse types match the implementation.
9+
10+
This is a breaking change for the orElse type argument list,
11+
as the ok type must now be provided before the err type.
12+
13+
```diff
14+
- result.orElse<ErrType>(foo)
15+
+ result.orElse<OkType, ErrType>(foo)
16+
```
17+
18+
This only applies if type arguments were
19+
explicitly provided at an orElse callsite.
20+
If the type arguments were inferred,
21+
no updates are needed during the upgrade.
22+
323
## 7.2.0
424

525
### Minor Changes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neverthrow",
3-
"version": "7.2.0",
3+
"version": "8.0.0",
44
"description": "Stop throwing errors, and instead return Results!",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.es.js",

0 commit comments

Comments
 (0)