Skip to content

Commit 8ccf2d7

Browse files
authored
Merge pull request #38 from carbonteq/remove-async-and-add-flow
Add Flow, improved pattern matching and generator syntax
2 parents 5d803ef + a5079c1 commit 8ccf2d7

177 files changed

Lines changed: 44314 additions & 6381 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@carbonteq/fp": minor
3+
---
4+
5+
Remove async chaining support
6+
7+
With the introduction of the generator methods (`gen`, `asyncGen` etc), there is no reason to support the internal async chaining methods, as using generator syntax would be much more appropriate and readable in those situations.
8+
9+
Removing this internal tracking would simplify the Result and option internals, allowing better maintenance and extension support.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "restricted",
7+
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": []

.changeset/funny-ants-jam.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@carbonteq/fp": minor
3+
---
4+
5+
Ship the post-`v0.9.1` feature set across stable and experimental APIs.
6+
7+
- Add stable generator-based composition (`gen`, `genAdapter`, `asyncGen`, `asyncGenAdapter`) and stable `Flow` support.
8+
- Improve and harden pattern matching with fluent `match(...)`, wildcard/predicate handling, and stronger stable/experimental interoperability.
9+
- Add new matcher predicate utilities (`P.eq`, `P.oneOf`, `P.not`, `P.and`/`P.or` and `P.all`/`P.any` aliases, plus `P.IsSome`/`P.IsNone`/`P.IsOk`/`P.IsErr`).
10+
- Expand runnable examples for stable + experimental `Result`/`Option`/`Flow`/`match` APIs.
11+
- Refresh source and README documentation to clarify stable async semantics and matcher behavior.
12+
- Improve packaging/release metadata (`deno.jsonc` license include fix, changesets access alignment, npm package file list updates).

.changeset/thin-hornets-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@carbonteq/fp": minor
3+
---
4+
5+
Experimental Result, Option, Flow and pattern matching

.oxfmtrc.jsonc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"**/*.json",
1010
"**/*.jsonc",
1111
"**/*.md",
12-
"**/*.toml"
12+
"**/*.toml",
13+
"**/*.yml"
1314
],
1415
"printWidth": 80, // like biome
1516
"useTabs": false,
1617
"tabWidth": 2,
17-
"semi": true,
18+
"semi": false,
1819
"singleQuote": false,
1920
"trailingComma": "all",
2021
"bracketSpacing": true,

.zed/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
}
1212
},
1313
"language_servers": [
14-
"tsgo",
15-
"!vtsls",
14+
"!tsgo",
15+
"vtsls",
1616
"oxfmt",
1717
"oxlint",
1818
"biome"

README.md

Lines changed: 310 additions & 96 deletions
Large diffs are not rendered by default.

asg/rules/expect-be-after.yml

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

asg/rules/expect-date.yml

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

asg/rules/expect-defined.yml

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

0 commit comments

Comments
 (0)