Commit Graph
54 Commits
Author SHA1 Message Date
Giulio Canti f389524130 fix stringPojo serializer (#585) 2025-09-26 09:57:31 +02:00
Tim 92f7d1c251 denest batching, caching, primitives (#584) 2025-09-26 17:27:24 +12:00
Tim ceff86ad2c test denesting config & logging (#580) 2025-09-25 22:52:04 +12:00
Giulio Canti 61c27f6b83 add Optic module + Generating an Optic from a Schema (#492) 2025-09-15 12:15:20 +02:00
Giulio Canti 2f98c5cc03 rename Show to Format (#485) 2025-09-04 18:35:44 +02:00
Giulio Canti b2705d8590 Schema: rename ToPretty to ToShow (#478) 2025-09-03 15:51:46 +02:00
Giulio Canti 0772e987f6 "unsafe" as postfix (#446) 2025-08-29 11:07:51 +02:00
Giulio Canti 5159b5558a clean up Schema module (#445) 2025-08-29 08:45:30 +02:00
Giulio Canti 91d90ae99d Getter: add map method (#441) 2025-08-28 18:56:25 +02:00
Giulio Canti 3cbd713ce4 Bringing the Check Harness to the Brand Module (#432) 2025-08-26 15:26:02 +02:00
Giulio Canti b094f55d30 add Combiner / Reducer (#429) 2025-08-25 11:36:51 +02:00
Giulio Canti 41a9fbddcc refactor formatUnknown (#422) 2025-08-22 13:45:24 +02:00
Giulio Canti e6535ac29d ToJsonSchema: more tests (#417) 2025-08-19 18:17:46 +02:00
Giulio Canti a7df12458e refactor ensureArray as schema combinator (#403) 2025-08-12 11:43:20 +02:00
Giulio Canti 8d69e6b73b ConfigProvider / Config refactoring: Schema integration (#384) 2025-08-07 12:02:53 +02:00
Giulio Canti 0e84e1026f add stringLeafJson serializer (#353) 2025-07-27 12:05:38 +02:00
Tim 7115fc9914 remove some weird categories (#354) 2025-07-26 21:03:41 +12:00
Giulio Canti f801972445 ToJsonSchema: add support for open api 3.1 (#323) 2025-07-18 16:13:47 +02:00
Tim c2b6229c94 categorize effect modules (#315) 2025-07-18 22:39:10 +12:00
Sebastian Lorenz 0ba34d0d45 review and update tsconfig options (#319) 2025-07-17 15:12:14 +02:00
Tim 2297a1c0dd add batching namespace (#314) 2025-07-17 14:52:35 +12:00
Tim 26e5f2fe69 add in memory Cache (#305) 2025-07-17 12:58:51 +12:00
Sebastian Lorenz b9507dbdc7 consolidate benchmark and dtslint config with tsconfig.test.json (#297) 2025-07-15 11:53:26 +02:00
Sebastian Lorenz 8d4fc2e077 fix bundle tests (#273) 2025-07-12 15:57:42 +02:00
Tim f330b787a4 add Config to bundle test (#258) 2025-07-10 17:10:45 +12:00
Tim 2058dea642 add HttpClient to bundle check (#188) 2025-06-27 20:29:55 +12:00
Tim 24a4840162 try schema namespace (#184) 2025-06-27 16:34:40 +12:00
Giulio Canti b025ea9c86 Record: properly handle literal keys (#170)
* add new bundle as a baseline

* properly handle literal keys

* add type-level tests
2025-06-24 16:31:32 +02:00
Giulio Canti 8ee0074eda add pretty generation (#159)
* add pretty generation

* add bundle

* chore

* chore
2025-06-10 18:33:43 +02:00
Giulio Canti eda4bb5004 add equivalence generation (#157)
* add equivalence generation

* apply new naming convention

* add override annotation helper

* fix "__proto__" own key management

* add bundle
2025-06-10 10:40:38 +02:00
Giulio Canti e4151b7543 add arbitrary generation (#151)
* add arbitrary generation

* improve SchemaToJsonSchema

* add bundle

* makeLazy

* add Context

* more recursive tests

* fix annotations

* add filter management

* add tuple checks

* add struct checks

* try to reduce bundle

* add @rollup/plugin-replace for environment variable handling and update error messages in SchemaAST

* fix structWithRest check

* fix index signatures parsing

* simplify stringMatching algo

* fix is / asserts

* more tests

* date checks

* bigint checks

* fix context passing

* docs

* use reset context
2025-06-09 08:08:31 +02:00
Giulio Canti 53d8b52851 json schema generation (#150)
* json schema generation

* tuples

* object

* more tests

* add bundle

* handle documentation annotation
2025-06-05 16:55:38 +02:00
Giulio Canti a5f1560845 Simplify template literals impl (#137)
* Rename StructAndRest to StructWithRest

* add bundle to check current size

* simplify impl

* remove boolean

* add support for BigInt

* should use the encoded sides

* Refactor TemplateLiteral to expose parts

* add support for filters

* remove internal getTemplateLiteralRegExp

* add checks to format

* better transformation support

* add TemplateLiteralParser

* hide impl details

* docs
2025-05-29 09:01:32 +02:00
Giulio Canti 7cc2ad3e8a add missing SchemaToParser APIs (#132)
* add missing SchemaToParser APIs

* chore

* uniform bundles

* fix benchmarks
2025-05-24 17:13:25 +02:00
Giulio Canti ebb3f8d47e add decode / encode APIs + renaming (#130)
* add decode / encode APIs + renaming

* fix bundle

* all transformation as functions

* rename SchemaParser to SchemaToParser

* fix

* remove useless transformations

* fix bundles

* enhance decodeTo / encodeTo to act as composition operators
2025-05-22 17:02:16 +02:00
Giulio Canti a3e7b14c19 Update schema-string-async to use clock-based sleep (#124) 2025-05-14 13:20:28 +02:00
Giulio Canti f5b26b2feb annotate as pipe-able function (#117)
* Refactor schema annotation method to use pipe syntax for consistency across schema operations

* renaming

* rename SchemaValidator to SchemaParser

* move make from schemas to SchemaParser

* fix bundle imports

* rename serialization annotation

* simplify makeClass impl
2025-05-12 10:39:35 +02:00
Giulio Canti 18be2385f5 simplify filters and remove middlewares (#110)
* simplify filters and remove middlewares

* fix bundle/schema-async

* rename
2025-05-08 10:50:39 +02:00
Giulio Canti e1409d056a add TemplateLiteral + optimize bundle (#96)
* add TemplateLiteral

* test methods as compiler fragments

* format

* TupleType.parser

* Union

* typeAST + flip

* remove SchemaAST.format from makeUnsafe

* parser
2025-05-05 22:11:10 +02:00
Giulio Canti 6a99b36e25 move schema v4 code to monorepo (#91) 2025-05-02 09:51:05 +02:00
Tim 4db1e23b84 monorepo (#85) 2025-05-02 12:21:06 +12:00
Maxwell BrownandMichael Arnaldi 8ca5ebf423 Introduce the Metric data type along with default fiber runtime metrics (#74)
* test package metrics action

* fix metrics step

* wip metrics

* use context directly

* avoid circular deps

* revert github action

* sketch out default metrics

* add constructors for other metric types

* rename default metrics to FiberRuntimeMetrics

* run codegen

* make metric registry a reference

* fix example

* support metric dumps

* add tests for metric tracking

* add runtime metrics

* small optimization to avoid import from core

* separate metric initialization by subtype

* refine the metric tracking apis and move to the effect module

* add instance and layer for runtime metrics service

* fix doc string

* Use reference and allow disable combinators (#81)

* fix type signature in docstring

---------

Co-authored-by: Michael Arnaldi <michael.arnaldi@effectful.co>
2025-04-14 10:04:44 -04:00
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 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
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 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 4e8c243fee fix some imports 2025-01-17 10:47:18 +13:00
Michael Arnaldi 5173d00a3e Add PubSub to bundle test (#34) 2025-01-15 12:59:22 +01:00
Tim 90f64dc6ab rename bundle/mailbox.ts 2025-01-14 17:12:39 +13:00