Commit Graph
12205 Commits
Author SHA1 Message Date
Michael Arnaldi ff4dedf9b3 add examples, rename async to callback in stream and channel (#65)
* silence rollup warning related to fast-check

* remove cjs build

* add examples, update Stream.async naming
2025-03-16 12:08:12 +01:00
Michael Arnaldi 9ecea17ac0 Re-export tracing refs (#64) 2025-03-15 22:09:35 +01:00
github-actions[bot] 36cf6f3fd0 Version Packages (#4588)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@effect/sql-sqlite-bun@0.33.2 effect@3.13.11 @effect/ai-anthropic@0.2.2 @effect/ai-openai@0.15.2 @effect/ai@0.12.2 @effect/cli@0.58.2 @effect/cluster-browser@0.22.2 @effect/cluster-node@0.29.2 @effect/cluster-workflow@0.27.2 @effect/cluster@0.28.2 @effect/experimental@0.43.2 @effect/opentelemetry@0.44.11 @effect/platform-browser@0.58.2 @effect/platform-bun@0.59.2 @effect/platform-node-shared@0.29.2 @effect/platform-node@0.75.2 @effect/platform@0.79.2 @effect/printer-ansi@0.41.11 @effect/printer@0.41.11 @effect/rpc-http@0.52.2 @effect/rpc@0.54.2 @effect/sql-clickhouse@0.17.2 @effect/sql-d1@0.30.2 @effect/sql-drizzle@0.31.2 @effect/sql-kysely@0.28.2 @effect/sql-libsql@0.22.2 @effect/sql-mssql@0.33.2 @effect/sql-mysql2@0.33.2 @effect/sql-pg@0.33.2 @effect/sql-sqlite-do@0.10.2 @effect/sql-sqlite-node@0.33.2 @effect/sql-sqlite-react-native@0.35.2 @effect/sql-sqlite-wasm@0.33.2 @effect/sql@0.32.2 @effect/typeclass@0.32.11 @effect/vitest@0.19.9
2025-03-15 16:46:51 +01:00
Michael Arnaldi faad354e1f avoid pulling in the tracer and native span unless needed (#63) 2025-03-15 13:18:58 +01:00
Michael Arnaldi b584b83ecc Fix tracer context and cache (#61)
* fix stm bundle

* remove leftover

* add unsafeEnd

* remove trace middleware

* cache span
2025-03-15 12:58:55 +01:00
Giulio Canti 39c42c4bfb update schema to latest (#62) 2025-03-15 09:32:41 +01:00
Giulio Canti 4296293049 Fix issue with generic filters when generating arbitraries, closes #4605 (#4606) 2025-03-15 07:26:10 +01:00
Giulio Canti be12983bc7 Add support for refinements to Schema.omit, closes #4603 (#4604) 2025-03-14 16:14:51 +01:00
Michael Arnaldi ca3b06a0bd Add executionMode to scheduler, give access to scheduler in callback, rename async to callback (#60) 2025-03-14 12:47:21 +01:00
Michael Arnaldi 9e04f5d956 Remove GlobalValue and Structural Region (#59) 2025-03-14 11:16:44 +01:00
Michael ArnaldiandTim a526493f67 Examples & forEach perf fix (#58)
* Improve batching example

* perf fixes

* remove setInterval from batch.ts

* improve layer example

* use bench utility in batch example

---------

Co-authored-by: Tim <hello@timsmart.co>
2025-03-14 10:43:22 +01:00
Giulio Canti fad8cca9bb Schema: enhance the internal formatUnknown function to handle vario… (#4601) 2025-03-13 18:50:08 +01:00
Giulio Canti 2e4277e0c8 Refactor jsdocs (Array, Effect modules + typeclass package) (#4599) 2025-03-13 16:00:46 +01:00
Giulio Canti 46f847993c Update docgen to latest version (#4598) 2025-03-13 15:23:47 +01:00
Michael Arnaldi 97223b3dc1 Remove provideServiceScoped (#56) 2025-03-13 13:14:45 +01:00
Michael ArnaldiandGiulio Canti d7d0758837 add schema (step 1) (#45)
* add schema

* add zod example

* rename ParseResult to SchemaResult

---------

Co-authored-by: Giulio Canti <giulio.canti@gmail.com>
2025-03-13 13:14:34 +01:00
Michael Arnaldi 64c60cbc38 Revert to explicit Scope (#55) 2025-03-13 13:02:25 +01:00
Nico André 389dca2c59 Update README examples using @effect/rpc-http/HttpRpcRouter (#4594) 2025-03-13 10:45:37 +13:00
Giulio Canti de88127a5a Schema: export Field type (#4593) 2025-03-12 11:08:07 +01:00
Maxwell Brown 082b0c1b9f Improve clarity of TimeoutException error message (#4591) 2025-03-11 17:22:15 -04:00
Giulio Canti 1b41820deb Schema: export IndexSignature.Type type (#4590) 2025-03-11 22:06:39 +01:00
Giulio Canti 9c241abe47 Schema: simplify Struct and Record return types (#4587) 2025-03-11 17:38:16 +01:00
Giulio Bracci edd9ba7629 fix: unnecessary as type cohercion in Either.fromNullable (#4586) 2025-03-11 16:41:19 +01:00
github-actions[bot] cfbf1b59b0 Version Packages (#4584)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@effect/sql-sqlite-do@0.10.1 @effect/sql-d1@0.30.1 @effect/rpc-http@0.52.1 @effect/printer@0.41.10 @effect/printer-ansi@0.41.10 @effect/vitest@0.19.8 @effect/typeclass@0.32.10 @effect/platform-node-shared@0.29.1 @effect/sql@0.32.1 @effect/sql-sqlite-wasm@0.33.1 @effect/sql-sqlite-react-native@0.35.1 @effect/sql-sqlite-node@0.33.1 @effect/sql-sqlite-bun@0.33.1 @effect/sql-pg@0.33.1 @effect/sql-mysql2@0.33.1 @effect/sql-mssql@0.33.1 @effect/sql-libsql@0.22.1 @effect/sql-kysely@0.28.1 @effect/rpc@0.54.1 @effect/sql-drizzle@0.31.1 @effect/sql-clickhouse@0.17.1 @effect/ai-openai@0.15.1 @effect/platform@0.79.1 @effect/ai@0.12.1 @effect/cli@0.58.1 @effect/cluster-browser@0.22.1 @effect/cluster-node@0.29.1 @effect/cluster-workflow@0.27.1 @effect/ai-anthropic@0.2.1 @effect/cluster@0.28.1 effect@3.13.10 @effect/experimental@0.43.1 @effect/opentelemetry@0.44.10 @effect/platform-browser@0.58.1 @effect/platform-bun@0.59.1 @effect/platform-node@0.75.1
2025-03-11 10:19:34 +01:00
Giulio Canti e5b16fd5c4 Skip flaky test for mutually suspended schemas (#4585) 2025-03-11 09:51:25 +01:00
Michael Arnaldi 948ae599d6 Fix withFiber type, remove withFiberUnknown (#54) 2025-03-11 09:17:25 +01:00
Giulio Canti 527c964522 Allow toString Method to Be Overridden in Schema Classes, closes #4577 (#4578) 2025-03-11 09:07:17 +01:00
Michael ArnaldiandTim 3a03c16f84 Experiment making STM a plain Effect (#50)
* Experiment making STM a plain Effect

* improve naming and structure

* commit only on clean exit

* improve

* make nested tx compose

* move retry to defects

* improve naming, handle interruption on awaitPendingTxJournal

* unify import

* use async return instead of onInterrupt

* schedule individual pending

* avoid intermediate array

* improve example

* add concurrency to example

* separate journaled and transaction

* add docs, improve naming, switch to interrupt for retry

* unify atomic and transaction

* fix return

* add bundle test

* use forkScoped in bundle test

* avoid unnecessary boxing

* improve perf

* fix jsdoc

* make tag more unique

* transaction play (#51)

---------

Co-authored-by: Tim <hello@timsmart.co>
2025-03-11 08:26:25 +01:00
github-actions[bot] ba50b5c964 Version Packages (#4581)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@effect/experimental@0.43.0 @effect/printer-ansi@0.41.9 @effect/ai-anthropic@0.2.0 @effect/ai-openai@0.15.0 @effect/ai@0.12.0 @effect/cli@0.58.0 @effect/cluster-browser@0.22.0 @effect/cluster-node@0.29.0 @effect/cluster-workflow@0.27.0 @effect/cluster@0.28.0 @effect/sql-clickhouse@0.17.0 @effect/opentelemetry@0.44.9 @effect/platform-browser@0.58.0 @effect/platform-bun@0.59.0 @effect/platform-node-shared@0.29.0 @effect/platform-node@0.75.0 @effect/platform@0.79.0 @effect/rpc@0.54.0 @effect/printer@0.41.9 @effect/rpc-http@0.52.0 @effect/sql-d1@0.30.0 @effect/sql-drizzle@0.31.0 @effect/sql-kysely@0.28.0 @effect/sql-libsql@0.22.0 @effect/sql-mssql@0.33.0 @effect/sql-mysql2@0.33.0 @effect/sql-pg@0.33.0 @effect/sql-sqlite-bun@0.33.0 @effect/sql-sqlite-do@0.10.0 @effect/sql-sqlite-node@0.33.0 @effect/sql-sqlite-react-native@0.35.0 @effect/sql-sqlite-wasm@0.33.0 @effect/sql@0.32.0 @effect/typeclass@0.32.9 @effect/vitest@0.19.7 effect@3.13.9
2025-03-11 12:15:13 +13:00
Tim d630249426 support Layer.launch when using WorkerRunner (#4583) 2025-03-11 12:07:49 +13:00
Tim 88fe129237 remove Scope from HttpClient requirements (#4573) 2025-03-11 10:09:20 +13:00
Tim 4d4781efde adjust worker runner code formatting (#4582) 2025-03-11 10:08:53 +13:00
Giulio Bracci 2976e52538 fix: Match.tags throwing on undefined input (#4579) 2025-03-11 09:42:02 +13:00
Tim bbdc2795a4 prevent worker handler interrupts from shutting down runner (#4580) 2025-03-11 09:41:34 +13:00
Giulio Canti fe7da20315 Update @effect/docgen and fix code examples (#4575) 2025-03-10 12:10:05 +01:00
Giulio Bracci a2361c6632 fix: unnecessary as in all function in the Effect Either module (#4574) 2025-03-10 11:24:43 +01:00
Giulio Bracci 8ae7827c7e fix(schema): isEncodeException jsdoc (#4571) 2025-03-09 19:45:56 +01:00
Giulio Canti d047181485 Update @effect/docgen to latest experimental version (#4570) 2025-03-09 19:29:43 +01:00
Giulio Canti 4e0efa1fa3 Update docgen to latest experimental version (#4569) 2025-03-09 18:13:44 +01:00
github-actions[bot]andgithub-actions[bot] 031f9a8ad6 Version Packages (#4566)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@effect/cluster-workflow@0.26.1 @effect/ai-anthropic@0.1.1 @effect/ai-openai@0.14.1 @effect/ai@0.11.1 @effect/cli@0.57.1 @effect/cluster-browser@0.21.1 @effect/cluster-node@0.28.1 @effect/cluster@0.27.1 @effect/experimental@0.42.1 @effect/opentelemetry@0.44.8 @effect/platform-browser@0.57.1 @effect/platform-bun@0.58.1 @effect/platform-node-shared@0.28.1 @effect/platform-node@0.74.1 @effect/platform@0.78.1 @effect/printer-ansi@0.41.8 @effect/printer@0.41.8 @effect/rpc-http@0.51.1 @effect/rpc@0.53.1 @effect/sql-clickhouse@0.16.1 @effect/sql-d1@0.29.1 @effect/sql-drizzle@0.30.1 @effect/sql-kysely@0.27.1 @effect/sql-libsql@0.21.1 @effect/sql-mssql@0.32.1 @effect/sql-mysql2@0.32.1 @effect/sql-pg@0.32.1 @effect/sql-sqlite-bun@0.32.1 @effect/sql-sqlite-do@0.9.1 @effect/sql-sqlite-node@0.32.1 @effect/sql-sqlite-react-native@0.34.1 @effect/sql-sqlite-wasm@0.32.1 @effect/sql@0.31.1 @effect/typeclass@0.32.8 @effect/vitest@0.19.6 effect@3.13.8
2025-03-09 17:21:11 +01:00
Robin HosandGiulio Canti c65d3362d0 Add ParseOptions argument to standardSchemaV1 (#4567)
Co-authored-by: Giulio Canti <giulio.canti@gmail.com>
2025-03-09 17:07:31 +01:00
Giulio Canti 22d2ebb4b1 ParseResult.ArrayFormatter: correct _tag fields for Refinement an… (#4565) 2025-03-09 08:52:44 +01:00
Tim de964a2035 enforce stream chunks are non-empty (#52) 2025-03-07 17:11:19 +13:00
github-actions[bot]andgithub-actions[bot] a55835a5c5 Version Packages (#4561)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@effect/ai-anthropic@0.1.0 @effect/ai-openai@0.14.0 @effect/ai@0.11.0 @effect/cli@0.57.0 @effect/cluster-browser@0.21.0 @effect/cluster-node@0.28.0 @effect/cluster-workflow@0.26.0 @effect/cluster@0.27.0 @effect/experimental@0.42.0 @effect/platform-browser@0.57.0 @effect/platform-bun@0.58.0 @effect/platform-node-shared@0.28.0 @effect/platform-node@0.74.0 @effect/platform@0.78.0 @effect/rpc-http@0.51.0 @effect/rpc@0.53.0 @effect/sql-clickhouse@0.16.0 @effect/sql-d1@0.29.0 @effect/sql-drizzle@0.30.0 @effect/sql-kysely@0.27.0 @effect/sql-libsql@0.21.0 @effect/sql-mssql@0.32.0 @effect/sql-mysql2@0.32.0 @effect/sql-pg@0.32.0 @effect/sql-sqlite-bun@0.32.0 @effect/sql-sqlite-do@0.9.0 @effect/sql-sqlite-node@0.32.0 @effect/sql-sqlite-react-native@0.34.0 @effect/sql-sqlite-wasm@0.32.0 @effect/sql@0.31.0
2025-03-07 17:03:39 +13:00
Tim c5bcf53b7c expose ParseError in HttpApiClient (#4562) 2025-03-07 17:01:58 +13:00
Tim 6cd4a102f5 ensure empty Chunk's don't cause NodeStream.toReadable to hang (#4560) 2025-03-07 16:15:58 +13:00
github-actions[bot]andgithub-actions[bot] f7eae9a6c9 Version Packages (#4553)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@effect/ai-anthropic@0.0.7 @effect/ai-openai@0.13.7 @effect/ai@0.10.7 @effect/cli@0.56.7 @effect/cluster-browser@0.20.7 @effect/cluster-node@0.27.7 @effect/cluster-workflow@0.25.7 @effect/cluster@0.26.7 @effect/experimental@0.41.7 @effect/opentelemetry@0.44.7 @effect/platform-browser@0.56.7 @effect/platform-bun@0.57.7 @effect/platform-node-shared@0.27.7 @effect/platform-node@0.73.7 @effect/platform@0.77.7 @effect/printer-ansi@0.41.7 @effect/printer@0.41.7 @effect/rpc-http@0.50.7 @effect/rpc@0.52.7 @effect/sql-clickhouse@0.15.7 @effect/sql-d1@0.28.7 @effect/sql-drizzle@0.29.7 @effect/sql-kysely@0.26.7 @effect/sql-libsql@0.20.7 @effect/sql-mssql@0.31.7 @effect/sql-mysql2@0.31.7 @effect/sql-pg@0.31.7 @effect/sql-sqlite-bun@0.31.7 @effect/sql-sqlite-do@0.8.7 @effect/sql-sqlite-node@0.31.7 @effect/sql-sqlite-react-native@0.33.7 @effect/sql-sqlite-wasm@0.31.7 @effect/sql@0.30.7 @effect/typeclass@0.32.7 @effect/vitest@0.19.5 effect@3.13.7
2025-03-07 09:51:13 +13:00
Tim f910880690 add additional properties options to HttpApiBuilder.middlewareOpenApi (#4559) 2025-03-07 09:49:47 +13:00
Tim 05306d5cc5 refactor NodeStream.toReadable (#4558) 2025-03-07 09:35:25 +13:00
Giulio Canti 5ac4278091 Update platform README to link runMain docs to website (#4557) 2025-03-06 15:44:56 +01:00