Commit Graph
1642 Commits
Author SHA1 Message Date
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
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
Michael Arnaldi 948ae599d6 Fix withFiber type, remove withFiberUnknown (#54) 2025-03-11 09:17:25 +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
Tim de964a2035 enforce stream chunks are non-empty (#52) 2025-03-07 17:11:19 +13:00
Tim 97c8311d51 improve fork autocomplete 2025-02-14 09:59:16 +13:00
Mattia Manzati 425ea6cba8 update eslint plugin effect (#47) 2025-02-07 20:09:21 +13:00
Tim 730e65cca4 smaller subscribe and fiberInterruptAll (#48)
* smaller subscribe and fiberInterruptAll

* wip
2025-02-06 20:17:42 +13:00
Giulio Canti 066ee0da9e expose internal Effect.either (#46) 2025-02-05 14:32:38 +01:00
Michael Arnaldi 8bdb19b5e8 Fix forkIn when scope is empty (#44) 2025-01-30 12:22:10 +01:00
Michael Arnaldi 769e5b953b Extract functions from scope (#43)
* Extract functions from scope

* Apply middleware strategy to scope close

* Add check that default scope is never created

* extract close

* make close type safe
2025-01-29 21:33:25 +13:00
Michael Arnaldi cc3a2c3254 Make Scope Implicit (#42) 2025-01-28 10:35:59 +13:00
Michael Arnaldi d1ec91dd93 Make Reference<X> a valid Tag<never, X> (#41) 2025-01-28 09:15:40 +13:00
Maxwell Brown 3f60cae09b Upgrade dependencies (#40)
* upgrade dependencies

* fix types
2025-01-26 20:07:20 -05:00
Tim 60ae8e03af add explicit Yieldable conversion 2025-01-21 14:33:26 +13:00
Tim 656fba1a83 add RequestResolver group apis 2025-01-20 13:05:47 +13:00
Tim e80177bd33 Merge branch 'main' of https://github.com/Effect-TS/effect-smol 2025-01-17 15:41:15 +13:00
Tim 22af236312 fix forkIn for closed scope 2025-01-17 15:40:55 +13:00
Maxwell Brown 6326ea4da6 remove eslint-plugin-import (#38) 2025-01-16 19:39:16 -05:00
Tim b3b4fa02e0 wip 2025-01-17 12:36:03 +13:00
Tim 09c61c0194 backport DateTime fix 2025-01-17 12:22:49 +13:00
Tim 4e8c243fee fix some imports 2025-01-17 10:47:18 +13:00
Tim d810d53843 optimize .fork 2025-01-17 10:09:03 +13:00
Tim 94cf90f918 improve forkIn performance (#37) 2025-01-17 10:03:15 +13:00
Tim a7394c0754 test Option yieldable 2025-01-16 17:18:52 +13:00
Tim 6da110c868 fix Either iterator 2025-01-16 17:02:57 +13:00
Tim 12b83de46c add YieldableClass helper 2025-01-16 17:01:30 +13:00
Tim 4811cf1015 fix YieldableError 2025-01-16 16:49:41 +13:00
Tim dd7857f93c add Yieldable to replace sub-typing (#36) 2025-01-16 16:44:56 +13:00
Tim dc6038339c fix 2025-01-16 14:54:51 +13:00
Tim 536eab666a update DateTime 2025-01-16 14:45:06 +13:00
Tim 8832b03210 wip MutableList 2025-01-16 11:05:02 +13:00
Tim 100609d698 Align Context.Tag signature to other class constructors (#35)
* merge tag definitions

* wip
2025-01-16 10:41:38 +13:00
Tim 6aee2300c1 add Ref tests 2025-01-16 09:55:14 +13:00
Tim 12a8108be4 add Ref 2025-01-16 09:47:28 +13:00
Tim 0a7f663c94 Merge branch 'main' of https://github.com/Effect-TS/effect-smol 2025-01-16 09:26:46 +13:00
Tim 92e7166c94 align PubSub & Queue constructors 2025-01-16 09:26:24 +13:00
Michael Arnaldi 5173d00a3e Add PubSub to bundle test (#34) 2025-01-15 12:59:22 +01:00
Tim 174b051899 remove @internal 2025-01-15 23:11:52 +13:00
Tim 9bde65d2e9 remove internal/pubSub.ts 2025-01-15 23:06:53 +13:00
Tim 4a6be35e2a Channel / Stream fromPubSub 2025-01-15 22:34:52 +13:00
Tim 62e4d72ad5 don't export unsubscribe 2025-01-15 22:22:37 +13:00
Tim 12bcb03039 remove MutableQueue 2025-01-15 22:20:41 +13:00
Tim 1f0a29712b add PubSub 2025-01-15 22:19:17 +13:00
Tim 400dd368af use startImmediately in Channel 2025-01-15 15:45:26 +13:00
Tim 91d8d0172a add startImmediately option to fork 2025-01-15 15:21:28 +13:00
Tim 90f64dc6ab rename bundle/mailbox.ts 2025-01-14 17:12:39 +13:00