|
1 | 1 | # @carbonteq/fp |
2 | 2 |
|
| 3 | +## 0.9.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- 3868f2a: Major Result type rewrite with improved architecture: |
| 8 | + |
| 9 | + - Add discriminant-based state tracking with `_tag` property for compile-time type narrowing |
| 10 | + - Improve context isolation - async operations now create separate contexts to prevent cross-branch mutation |
| 11 | + - Enhance error type unification through `Result.Err` union semantics |
| 12 | + - Add new methods: `mapBoth`, `innerMap`, `zipErr`, `flatZip`, `tap`, `tapErr` |
| 13 | + - Improve async overloads with precise type inference for sync/async chains |
| 14 | + - Simplify constructor pattern with `Result.Ok()` and `Result.Err()` static methods |
| 15 | + - Add `fromNullable()`, `fromPredicate()`, `tryCatch()`, `tryAsyncCatch()` constructors |
| 16 | + - Update minimum Node version to 22 |
| 17 | + |
| 18 | +- 98e1ff0: Major Option type rewrite and infrastructure improvements: |
| 19 | + |
| 20 | + - Add discriminant tags (`"Some"` | `"None"`) for better type narrowing |
| 21 | + - Add new constructors: `fromFalsy()`, `fromPredicate()`, `fromPromise()` |
| 22 | + - Add new methods: `filter()`, `match()`, `all()`, `any()`, `innerMap()` |
| 23 | + - Implement context isolation fixes for async chaining |
| 24 | + - Replace `node:util/types` dependency with custom `isPromiseLike()` for cross-platform compatibility |
| 25 | + - Reorganize test suite into `tests/result/` and `tests/option/` subdirectories |
| 26 | + - Add comprehensive spec documentation in `docs/result-spec.md` and `docs/option-spec.md` |
| 27 | + - Migrate test runner to Bun for consistency |
| 28 | + - Update toolchain: tsdown (bundling), oxlint/oxfmt (linting/formatting), treefmt |
| 29 | + - Update CI workflows to use Bun and target Node 22/24 |
| 30 | + |
3 | 31 | ## 0.8.2 |
4 | 32 |
|
5 | 33 | ### Patch Changes |
|
0 commit comments