From 961de27a5a98ee277e4d0388625e504319e9e923 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 8 Sep 2024 18:45:28 +0000 Subject: [PATCH] Version Packages --- .changeset/empty-poets-collect.md | 19 ------------------- CHANGELOG.md | 20 ++++++++++++++++++++ package.json | 2 +- 3 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 .changeset/empty-poets-collect.md diff --git a/.changeset/empty-poets-collect.md b/.changeset/empty-poets-collect.md deleted file mode 100644 index 3279cbd6..00000000 --- a/.changeset/empty-poets-collect.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'neverthrow': major ---- - -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(foo) -+ result.orElse(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. diff --git a/CHANGELOG.md b/CHANGELOG.md index d5361bd2..9929f9aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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(foo) + + result.orElse(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 diff --git a/package.json b/package.json index d574a70d..07d7b4d4 100644 --- a/package.json +++ b/package.json @@ -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",