Skip to content

Commit 3069e2f

Browse files
authored
Merge pull request #36 from carbonteq/changeset-release/main
🦋 Changeset release
2 parents 1980d29 + ba5b19a commit 3069e2f

4 files changed

Lines changed: 33 additions & 32 deletions

File tree

.changeset/grumpy-sides-bow.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.changeset/shaggy-dodos-end.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# @carbonteq/fp
22

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+
331
## 0.8.2
432

533
### Patch Changes

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@carbonteq/fp",
33
"description": "FP utils",
4-
"version": "0.8.2",
4+
"version": "0.9.0",
55
"author": "Arslan <rslnkrmt2552@gmail.com>",
66
"license": "MIT",
77
"scope": "@carbonteq",
@@ -13,7 +13,10 @@
1313
"url": "https://github.com/carbonteq/fp/issues"
1414
},
1515
"type": "module",
16-
"files": ["/dist", "dist"],
16+
"files": [
17+
"/dist",
18+
"dist"
19+
],
1720
"main": "./dist/index.cjs",
1821
"module": "./dist/index.js",
1922
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)