-
#684
6b9585b
Thanks @patroza! - improve: Actually use Arbitrary interface in to/from/unsafe signature -
#679
0f8a8f1
Thanks @gcanti! - Schema: add annotations argument toattachPropertySignature
- #673
0508ac5
Thanks @tim-smart! - update effect
-
#649
d80b933
Thanks @gcanti! - Arbitrary: should throw on declarations without annotations -
#669
294dfad
Thanks @gcanti! - Schema: refactorparseJson
to replaceParseJson
andfromJson
-
#649
d80b933
Thanks @gcanti! - Schema: refactorS.optional
API.Upgrade Guide:
S.optional(schema, { exact: true })
replaces the oldS.optional(schema)
S.optional(schema, { exact: true, default: () => A })
replaces the oldS.optional(schema).withDefault(() => A)
S.optional(schema, { exact: true, as: "Option" })
replaces the oldS.optional(schema).toOption()
-
#649
d80b933
Thanks @gcanti! - Schema: replacepropertySignature
constructor withpropertySignatureAnnotations
combinator -
#669
294dfad
Thanks @gcanti! - Schema: simplifysplit
parameters to only acceptseparator
-
#669
294dfad
Thanks @gcanti! - Schema: remove useless combinatorslowercase
uppercase
trim
numberFromString
symbolFromString
bigintFromString
bigintFromNumber
secret
durationFromHrTime
durationFromMillis
durationFromNanos
uint8ArrayFromNumbers
base64
base64url
hex
dateFromString
bigDecimalFromNumber
bigDecimalFromString
not
-
#665
a238f20
Thanks @gcanti! - AST: make Annotations readonly -
#665
a238f20
Thanks @gcanti! - Schema: remove Mutable helper in favour of Types.Mutable -
#665
a238f20
Thanks @gcanti! - AST: preserve identifier annotations when callingfrom
- #662
7f448dd
Thanks @tim-smart! - update effect
- #654
a5950d1
Thanks @jessekelly881! - added S.Secret
-
#655
54f61d6
Thanks @tim-smart! - fix for never error types in TaggedRequest.Any -
#604
88f61cc
Thanks @jessekelly881! - added filters for Duration -
#605
c728880
Thanks @jessekelly881! - added toString for schema classes
-
#635
30802d5
Thanks @gcanti! - JSONSchema: renameJsonSchema7Top
toJsonSchema7Root
-
#650
05c2275
Thanks @tim-smart! - update effect -
#640
8dcf12c
Thanks @gcanti! - ParseResult: renameParseErrors
toParseIssue
-
#636
deddf6e
Thanks @gcanti! - Schema: rename lazy to suspend (to align with Effect.suspend)
- #645
ece6128
Thanks @gcanti! - ensure that JSON Schema annotations can be exclusively applied to refinements
- #632
ad220dd
Thanks @tim-smart! - update effect
-
#609
8ca0220
Thanks @tim-smart! - add Serializable module -
#609
8ca0220
Thanks @tim-smart! - add FiberId schema -
#609
8ca0220
Thanks @tim-smart! - add Exit schema -
#609
8ca0220
Thanks @tim-smart! - add Cause schema
-
#629
f690ebe
Thanks @gcanti! - Schema: add filter overloading returning OptionFor more complex scenarios, you can return an
Option<ParseError>
type instead of a boolean. In this context,None
indicates success, andSome(error)
rejects the input with a specific error
-
#623
3a56b06
Thanks @sukovanej! - ExportJsonSchema7
types. -
#626
67c154e
Thanks @gcanti! - S.rename: handle field transformations, closes #625
-
#618
95a0354
Thanks @gcanti! - Arbitrary: remove runtime dependency from Schema module -
#617
0cd3262
Thanks @matheuspuel! - add Schema.transformLiteral and Schema.transformLiterals -
#618
95a0354
Thanks @gcanti! - Pretty: remove runtime dependency from Schema module
- #615
f851621
Thanks @tim-smart! - update effect
- #613
2af3914
Thanks @tim-smart! - update effect
-
#593
cbc2e3f
Thanks @gcanti! - ParseResult: merge failure APIs intofail
-
#607
e85aefb
Thanks @gcanti! - Bug Fix: align index signature behaviour to TypeScript -
#589
3b99569
Thanks @gcanti! - - removeValidDate
(which is just an alias ofDate
)- add
DateFromString
(decodes from string, output: possibly invalid Date)
- add
-
#593
cbc2e3f
Thanks @gcanti! - ParseResult: renamesuccess
tosucceed
(standard naming)
-
#597
caeed29
Thanks @jessekelly881! - added BigDecimal -
#585
5b27f03
Thanks @gcanti! - improve JSON Schema output:- rename
dependencies
to$defs
- remove
"type"
from const schemas - use
"oneOf"
for enums and add"title"
s - add support for
record(pattern, number)
- add
"$id"
and"$comment"
properties - literals should be converted to
enum
instead ofanyOf
, closes #579
- rename
-
#603
8e21d7e
Thanks @gcanti! - TreeFormatter: enhanceformatActual
for data types with a customtoString
implementation, closes #600
- #595
931b557
Thanks @tim-smart! - add _tag to TaggedRequest.Base
-
#592
c2b0e6b
Thanks @jessekelly881! - added ParseResult.try -
#590
0d0f0be
Thanks @gcanti! - Parser: should use the original ast to generate a more informative error message when an incorrect data type is provided
- #580
4491e75
Thanks @tim-smart! - fix missing class .struct schema
- #577
9653cf4
Thanks @tim-smart! - update effect
- #574
2ed5f8e
Thanks @tim-smart! - add TaggedRequest class
-
#568
573419e
Thanks @tim-smart! - add Schema.TaggedError -
#568
573419e
Thanks @tim-smart! - add Schema.TaggedClass
-
#566
1c1d5a5
Thanks @matheuspuel! - add dual api to Schema.rename -
#566
1c1d5a5
Thanks @matheuspuel! - forbid excess properties on Schema.rename -
#564
8440e1e
Thanks @fubhy! - UsesideEffects: []
to circumvent bundler issues
- #561
ec63224
Thanks @tim-smart! - update effect
- #553
522161a
Thanks @gcanti! - Fix bug in property signature transformations when used for renaming (old key/value pair was not removed)
- #546
b6e8e12
Thanks @rjdellecese! - added S.uppercased, S.uppercase, and S.Uppercase
- #540
85526bf
Thanks @tim-smart! - update effect
- #538
c8a8b79
Thanks @tim-smart! - update effect
-
#532
1e115af
Thanks @gcanti! - Arbitrary: add BigIntConstraints support -
#530
23b1e1c
Thanks @gcanti! - Arbitrary: merge ArrayConstraints
- #523
dca107a
Thanks @jessekelly881! - Replaced TreeFormatter with ArrayFormatter for BrandErrors when using Schema.brand
- #519
9fe7693
Thanks @tim-smart! - update effect
- #515
c9bf451
Thanks @sukovanej! - Update effect and fast-check.
-
#514
3acbc38
Thanks @gcanti! - Arbitrary: handle array constraints -
#514
3acbc38
Thanks @gcanti! - Arbitrary: fix recursive generation (memory issues)
- #508
618b1b5
Thanks @matheuspuel! - fix encode discriminated union with transformation
-
#491
135072e
Thanks @gcanti! - Make transformations strict by default (and allow relaxing constraints withstrict: false
option) -
#495
c02334c
Thanks @tim-smart! - update effect
- #475
46dcfeb
Thanks @tim-smart! - memoize the Parser per AST
- #488
e00491c
Thanks @tim-smart! - update effect
- #485
0a20788
Thanks @gcanti! - Arbitrary: use Math.fround when creating number constraints, closes #484
-
#483
c80c94f
Thanks @gcanti! - Schema: add jsonSchema annotation helper -
#481
56f5ac0
Thanks @gcanti! - AST/Schema: add mutable combinator
- #476
1fb1002
Thanks @tim-smart! - update effect
- #468
da7a851
Thanks @tim-smart! - update effect
-
#457
693b81f
Thanks @tim-smart! - update effect -
#457
693b81f
Thanks @tim-smart! - use preconstruct for builds
- #452
ca65e43
Thanks @tim-smart! - update effect
- #449
5950b14
Thanks @tim-smart! - update to use unified "effect" package
-
#439
2197496
Thanks @gcanti! - Schema: remove *Result APIs- decodeResult (use decode instead)
- encodeResult (use encode instead)
- parseResult (use parse instead)
- validateResult (use validate instead)
- #441
63f1149
Thanks @tim-smart! - update /data & /io
- #434
994a37e
Thanks @gcanti! - Exclude property signatures from index signatures validations, fix #433
- #428
73a8424
Thanks @tim-smart! - fix Class transform helper types
-
#420
3a46cbc
Thanks @tim-smart! - have Schema.Class constructors implement Schema directly -
#422
295561b
Thanks @gcanti! - move ToAsserts utility type to Schema namespace
-
#401
8b1ae6b
Thanks @gcanti! - backport AST changes from POC:- change decode in Declaration- change decode in Refinement (to filter)
- remove isReversed from Refinement
- add transformation to Transform (and remove decode, encode, propertySignatureTransformations)
- refactor PropertySignature
-
#401
8b1ae6b
Thanks @gcanti! - refactor annotations: keys must be symbols -
#411
2f6c4d1
Thanks @gcanti! - renamesymbol
tosymbolFromSelf
and addsymbol
which decodes/encodes from/tostring
-
#401
8b1ae6b
Thanks @gcanti! - remove Spread in favour of /data/Types#Simplify -
#413
20ef377
Thanks @tim-smart! - update /io -
#401
8b1ae6b
Thanks @gcanti! - fix fromBrand definition (self is a Schema<I, A> now instead of Schema) -
#401
8b1ae6b
Thanks @gcanti! - renamebigint
tobigintFromSelf
andBigintFromString
tobigint
-
#401
8b1ae6b
Thanks @gcanti! - change transformation display in error messages (from A -> B to A <-> B) -
#401
8b1ae6b
Thanks @gcanti! - move From, To to Schema namespace (conforming to the ecosystem standard) -
#401
8b1ae6b
Thanks @gcanti! - renametransformResult
totransformOrFail
and change signature (add additional ast parameter to transformations)
-
#401
8b1ae6b
Thanks @gcanti! - record: add support for branded keys -
#407
9a1b8de
Thanks @fubhy! - Add support forbase64
,base64url
andhex
encoding -
#412
3768461
Thanks @gcanti! - relax transform / transformOrFail / compose constraints -
#401
8b1ae6b
Thanks @gcanti! - TreeFormatter: should not collapse union members -
#401
8b1ae6b
Thanks @gcanti! - add description annotations to: string, number, boolean, symbol, bigint, object
- #403
da52c2b
Thanks @tim-smart! - update /data & /io
-
#397
376fc3d
Thanks @jessekelly881! - added S.Lowercase -
#382
d79309b
Thanks @fubhy! - AddedbigintFromNumber
transform
-
#392
4c1ed27
Thanks @gcanti! - pattern filter: set default Arbitrary -
#388
27a78bb
Thanks @gcanti! - compose: allow forcing decoding / encoding
- #376
64c2567
Thanks @tim-smart! - update /io
-
#375
bd61bcf
Thanks @tim-smart! - update build tools -
#373
e74455e
Thanks @tim-smart! - use peer deps for /data and /io
- #370
70e4fff
Thanks @tim-smart! - update /data and /io
- #366
77fffed
Thanks @tim-smart! - update /data and /io
-
#350
00f6898
Thanks @vecerek! - Add schema for BigintFromString -
#359
cb00668
Thanks @vecerek! - Adds combinator that splits a string into an array of strings -
#361
60affeb
Thanks @vecerek! - Addscompose
: a combinator that composes Schema<A, B> with Schema<B, C> into Schema<A, C>.
-
#357
00c2a47
Thanks @sukovanej! - Update /data. -
#357
00c2a47
Thanks @sukovanej! - Add_id
toSchema
. AddisSchema
guard.
- #355
d6930c1
Thanks @IMax153! - upgrade to@effect/[email protected]
and@effect/[email protected]
- #338
b2560df
Thanks @tim-smart! - update /io and /data
- #334
5a6d733
Thanks @tim-smart! - update /io
- #332
9f0fa5d
Thanks @tim-smart! - update dependencies
- #322
5f5bcb5
Thanks @tim-smart! - rename *Effect parser methods
- #310
10f8457
Thanks @sukovanej! - Update /data and /io.
- #303
0f70b22
Thanks @sukovanej! - Update @effect/data and fast-check.
-
#285
39d3c55
Thanks @gcanti! - Arbitrary: fix maximum call stack size exceeded when producing nested arrays and records that are too deep
-
#274
eae1614
Thanks @gcanti! - remove getPropertySignatures API -
#274
eae1614
Thanks @gcanti! - rename AST.getTo -> to, AST.getFrom -> from
- #272
d91a7a7
Thanks @gcanti! - pick / omit: add support for structs with property signature transformations
- #258
1b65e53
Thanks @mikearnaldi! - Try publishing again
- #256
162e099
Thanks @gcanti! - leverage annotations (e.g. maxLength, int, between) to improve fast-check performance
- #254
32e987a
Thanks @mikearnaldi! - Update effect/io, make parsing fields of records and tuples parallel
-
#247
28c7484
Thanks @gcanti! - refactor optional APIs (Default values and Optional fields asOption
s)
-
#238
f4ce344
Thanks @sukovanej! - update @effect/io dependency -
#243
87382ae
Thanks @gcanti! - narrow down IndexSignature type -
#239
58be561
Thanks @gcanti! - rename DateFromString to date
-
#243
87382ae
Thanks @gcanti! - Arbitrary: should throw on effectful refinements -
#231
2c2d749
Thanks @tim-smart! - add isValidDate filter -
#217
7911525
Thanks @jessekelly881! - data/Boolean: added S.not transform -
#243
87382ae
Thanks @gcanti! - createRecord: should throw on unsupported literals -
#237
2a911ef
Thanks @gcanti! - export ValidDateFromSelf and rename validDate filter
-
#232
49ebaba
Thanks @gcanti! - rename OptionalSchema to PropertySignature -
#232
49ebaba
Thanks @gcanti! - simplify keyof and getPropertySignatures implementations -
#232
49ebaba
Thanks @gcanti! - remove optionsFromOptionals API
-
#215
b47e8ab
Thanks @tsteckenborn! - aligns usage of dateFromString with numberFromString -
#219
10c505a
Thanks @gcanti! - remove hasTransformation optimisations -
#223
6cc1a56
Thanks @gcanti! - upgrade to latest /data and /io -
#219
10c505a
Thanks @gcanti! - keyof cannot handle refinements nor transformations -
#219
10c505a
Thanks @gcanti! - fix transformation signatures
-
#219
10c505a
Thanks @gcanti! - cannot build an Arbitrary for transformations -
#219
10c505a
Thanks @gcanti! - fix AST.getTo implementation for Transform -
#219
10c505a
Thanks @gcanti! - export NumberFromString schema -
#218
c6c96a4
Thanks @OlaoluwaM! - Added missing assertion functions for some AST nodes
- #211
45c322b
Thanks @mikearnaldi! - Update effect/data and effect/io
- #206
39da1cb
Thanks @mikearnaldi! - Update effect/data and effect/io
-
#201
5aa2d78
Thanks @gcanti! - cannot compute property signatures for refinements -
#202
6f51084
Thanks @gcanti! - Schema: add support for never to From / To utility types
-
#196
96e5bf5
Thanks @gcanti! - tuples should always fail on excess indexes -
#196
96e5bf5
Thanks @gcanti! - refactor ParseOptions, closes #163
- #173
4090099
Thanks @jessekelly881! - Schema: added S.required
-
#188
bb31acb
Thanks @gcanti! - getPropertySignatures: cannot compute property signatures for transformations -
#188
bb31acb
Thanks @gcanti! - upgrade to latest @effect/data @effect/io -
#188
bb31acb
Thanks @gcanti! -partial
cannot handle refinement or transformations
-
#184
b0b6423
Thanks @gcanti! - make optionsFromOptionals composable -
#182
f7899b7
Thanks @gcanti! - optionsFromOptionals: ensure non overlapping property signatures -
#181
0062b25
Thanks @gcanti! - fix optionsFromOptionals implementation
- #174
c3a1230
Thanks @mikearnaldi! - Only run effects when allowed
-
#172
6277f5a
Thanks @mikearnaldi! - Optimize ParseResult conditional functions -
#176
dbb0a59
Thanks @gcanti! - Optimize internal validations
- #169
6b0a45f
Thanks @mikearnaldi! - Add back missing commits from wrong rebase.
-
#165
3704121
Thanks @mikearnaldi! - AST: remove isReversed from Transform -
#165
3704121
Thanks @mikearnaldi! - make ParseError tagged -
#165
3704121
Thanks @mikearnaldi! - ParseResult: add optional message to Type error -
#165
3704121
Thanks @mikearnaldi! - remove useless options argument from is -
#165
3704121
Thanks @mikearnaldi! - Integrate Effect into Parser -
#165
3704121
Thanks @mikearnaldi! - simplify dateFromString -
#165
3704121
Thanks @mikearnaldi! - Schema: add reverse API -
#165
3704121
Thanks @mikearnaldi! - rename decodeFromInput to decode and decode to parse
-
#165
3704121
Thanks @mikearnaldi! - add parse, parseOption, parseEither -
#165
3704121
Thanks @mikearnaldi! - fix trim, clamp, clampBigint definition
-
#144
df9ea09
Thanks @gcanti! - rename encodeOrThrow -> encode -
#144
df9ea09
Thanks @gcanti! - AST: rename typeAlis to Declaration -
#144
df9ea09
Thanks @gcanti! - renametransformOrFail
totransformEither
-
#144
df9ea09
Thanks @gcanti! - rename encode -> encodeEither -
#144
df9ea09
Thanks @gcanti! - AST: change Refinement definition form predicate to decode -
#144
df9ea09
Thanks @gcanti! - move /formatter/Tree up and rename to TreeFormatter -
#144
df9ea09
Thanks @gcanti! - remove /annotation/Hook module -
#144
df9ea09
Thanks @gcanti! - refactor instanceOf as Declaration -
#144
df9ea09
Thanks @gcanti! - rename decodeOrThrow -> decode -
#144
df9ea09
Thanks @gcanti! - AST: refactor typeAlias adding decode -
#144
df9ea09
Thanks @gcanti! - rename getOption -> decodeOption -
#144
df9ea09
Thanks @gcanti! - remove /annotation/AST module -
#144
df9ea09
Thanks @gcanti! - rename decode -> decodeEither -
#144
df9ea09
Thanks @gcanti! - formatErrors/ should collapse trees that have a branching factor of 1 -
#144
df9ea09
Thanks @gcanti! - simplify Arbitrary implementation
- #145
cc05ffe
Thanks @tim-smart! - update /data to 0.4.1
- #127
fd87ac6
Thanks @mikearnaldi! - Fix release for github
- #125
41841a3
Thanks @mikearnaldi! - update release
-
#119
62ed1b0
Thanks @mikearnaldi! - Move to the @effect org -
#120
6ddb736
Thanks @gcanti! - move parseNumber to /data/Number -
#120
6ddb736
Thanks @gcanti! - upgrade to latest effect/data -
#120
6ddb736
Thanks @gcanti! - /data/Option rename fromNullable to parseNullable -
#120
6ddb736
Thanks @gcanti! - refactor instanceOf (to a constructor) -
#120
6ddb736
Thanks @gcanti! - Added clamp transform to Number and Bigint