Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
108 KiB
@effect/schema
0.62.2
Patch Changes
0.62.1
Patch Changes
- Updated dependencies [
b5a8215]:- effect@2.3.1
0.62.0
Minor Changes
-
#2006
9a2d1c1Thanks @github-actions! - With this change we now require a string key to be provided for all tags and renames the dear oldTagtoGenericTag, so when previously you could do:import { Effect, Context } from "effect"; interface Service { readonly _: unique symbol; } const Service = Context.Tag< Service, { number: Effect.Effect<never, never, number>; } >();you are now mandated to do:
import { Effect, Context } from "effect"; interface Service { readonly _: unique symbol; } const Service = Context.GenericTag< Service, { number: Effect.Effect<never, never, number>; } >("Service");This makes by default all tags globals and ensures better debuggaility when unexpected errors arise.
Furthermore we introduce a new way of constructing tags that should be considered the new default:
import { Effect, Context } from "effect"; class Service extends Context.Tag("Service")< Service, { number: Effect.Effect<never, never, number>; } >() {} const program = Effect.flatMap(Service, ({ number }) => number).pipe( Effect.flatMap((_) => Effect.log(`number: ${_}`)), );this will use "Service" as the key and will create automatically an opaque identifier (the class) to be used at the type level, it does something similar to the above in a single shot.
-
#2006
1a77f72Thanks @github-actions! - changeEffecttype parameters order fromEffect<R, E, A>toEffect<A, E = never, R = never> -
#2006
d3f9f4dThanks @github-actions! - Schema: switchreadonlyMapFromSelf,readonlyMapfrom positional arguments to a singleoptionsargument:Before:
import * as S from "@effect/schema/Schema"; S.readonlyMapFromSelf(S.string, S.number); S.readonlyMap(S.string, S.number);Now:
import * as S from "@effect/schema/Schema"; S.readonlyMapFromSelf({ key: S.string, value: S.number }); S.readonlyMap({ key: S.string, value: S.number }); -
#2006
d3f9f4dThanks @github-actions! - Schema: switchhashMapFromSelf,hashMapfrom positional arguments to a singleoptionsargument:Before:
import * as S from "@effect/schema/Schema"; S.hashMapFromSelf(S.string, S.number); S.hashMap(S.string, S.number);Now:
import * as S from "@effect/schema/Schema"; S.hashMapFromSelf({ key: S.string, value: S.number }); S.hashMap({ key: S.string, value: S.number }); -
#2006
d3f9f4dThanks @github-actions! - Schema: switchcauseFromSelf,causefrom positional arguments to a singleoptionsargument:Before:
import * as S from "@effect/schema/Schema"; S.causeFromSelf(S.string); S.causeFromSelf(S.string, S.unknown); S.cause(S.string); S.cause(S.string, S.unknown);Now:
import * as S from "@effect/schema/Schema"; S.causeFromSelf({ error: S.string }); S.causeFromSelf({ error: S.string, defect: S.unknown }); S.cause({ error: S.string }); S.cause({ error: S.string, defect: S.unknown }); -
#2006
d3f9f4dThanks @github-actions! - Schema: switchexitFromSelf,exitfrom positional arguments to a singleoptionsargument:Before:
import * as S from "@effect/schema/Schema"; S.exitFromSelf(S.string, S.number); S.exit(S.string, S.number);Now:
import * as S from "@effect/schema/Schema"; S.exitFromSelf({ failure: S.string, success: S.number }); S.exit({ failure: S.string, success: S.number }); -
#2006
a34dbdcThanks @github-actions! - - Schema: change type parameters order fromSchema<R, I, A>toSchema<A, I = A, R = never>- Serializable: change type parameters order from
Serializable<R, I, A>toSerializable<A, I, R> - Class: change type parameters order from
Class<R, I, A, C, Self, Inherited>toClass<A, I, R, C, Self, Inherited> - PropertySignature: change type parameters order from
PropertySignature<R, From, FromIsOptional, To, ToIsOptional>toPropertySignature<From, FromIsOptional, To, ToIsOptional, R = never>
- Serializable: change type parameters order from
-
#2006
d3f9f4dThanks @github-actions! - Schema: switcheitherFromSelf,either,eitherFromUnionfrom positional arguments to a singleoptionsargument:Before:
import * as S from "@effect/schema/Schema"; S.eitherFromSelf(S.string, S.number); S.either(S.string, S.number); S.eitherFromUnion(S.string, S.number);Now:
import * as S from "@effect/schema/Schema"; S.eitherFromSelf({ left: S.string, right: S.number }); S.either({ left: S.string, right: S.number }); S.eitherFromUnion({ left: S.string, right: S.number }); -
#2006
02c3461Thanks @github-actions! - With this change we remove theData.Datatype and we makeEqual.Equal&Hash.Hashimplicit traits.The main reason is that
Data.Data<A>was structurally equivalent toA & Equal.Equalbut extendingEqual.Equaldoesn't mean that the equality is implemented by-value, so the type was simply adding noise without gaining any level of safety.The module
Dataremains unchanged at the value level, all the functions previously available are supposed to work in exactly the same manner.At the type level instead the functions return
Readonlyvariants, so for example we have:import { Data } from "effect"; const obj = Data.struct({ a: 0, b: 1, });will have the
objtyped as:declare const obj: { readonly a: number; readonly b: number; }; -
#2006
9a2d1c1Thanks @github-actions! - This change enablesEffect.serviceConstantsandEffect.serviceMembersto access any constant in the service, not only the effects, namely it is now possible to do:import { Effect, Context } from "effect"; class NumberRepo extends Context.TagClass("NumberRepo")< NumberRepo, { readonly numbers: Array<number>; } >() { static numbers = Effect.serviceConstants(NumberRepo).numbers; } -
#2006
56b8691Thanks @github-actions! - Fix usage of Schema.TaggedError in combination with Unify.When used with Unify we previously had:
import { Schema } from "@effect/schema"; import type { Unify } from "effect"; class Err extends Schema.TaggedError<Err>()("Err", {}) {} // $ExpectType Effect<unknown, unknown, unknown> export type IdErr = Unify.Unify<Err>;With this fix we now have:
import { Schema } from "@effect/schema"; import type { Unify } from "effect"; class Err extends Schema.TaggedError<Err>()("Err", {}) {} // $ExpectType Err export type IdErr = Unify.Unify<Err>;
Patch Changes
-
#2006
4cd6e14Thanks @github-actions! - Rename transform type parameters and de/en-coder param names to be more helpful in IDE hints. -
#2006
9dc04c8Thanks @github-actions! - Introducing Optional Annotations inoptionalAPI.Previously, when adding annotations to an optional field using
optionalAPI, you needed to usepropertySignatureAnnotations. However, a new optional argumentannotationsis now available to simplify this process.Before:
import * as S from "@effect/schema/Schema"; const myschema = S.struct({ a: S.optional(S.string).pipe( S.propertySignatureAnnotations({ description: "my description..." }), ), });Now:
import * as S from "@effect/schema/Schema"; const myschema = S.struct({ a: S.optional(S.string, { annotations: { description: "my description..." }, }), });With this update, you can easily include annotations directly within the
optionalAPI without the need for additional calls. -
Updated dependencies [
96bcee2,96bcee2,c77f635,e343a74,acf1894,9a2d1c1,1a77f72,c986f0e,96bcee2,70dde23,81b7425,02c3461,0e56e99,8b0ded9,8dd83e8,5127afe,d75f6fe,7356e5c,3077cde,be19ce0,4a5d01a,78f47ab,52e5d20,c6137ec,f5ae081,4a5d01a,60686f5,9a2d1c1,5127afe,8ee2931,6727474,5127afe]:- effect@2.3.0
0.61.7
Patch Changes
0.61.6
Patch Changes
-
#2057
6928a2bThanks @joepjoosten! - Fix for possible stack overflow errors when using Array.push with spread operator arguments -
Updated dependencies [
d0b911c,330e1a4,6928a2b,296bc1c]:- effect@2.2.4
0.61.5
Patch Changes
-
#2011
f1ff44bThanks @gcanti! - add option to preserve excess properties, closes #2008 -
#2017
13785cfThanks @gcanti! - Equivalence: handle transformations
0.61.4
Patch Changes
-
#2005
6bf02c7Thanks @gcanti! - optional: rearrange overloads to enhance DX, closes #2002 -
Updated dependencies [
22794e0,f73e6c0]:- effect@2.2.3
0.61.3
Patch Changes
0.61.2
Patch Changes
- #1988
64f710aThanks @gcanti! - Class constructor: avoid overwritingpropswithadditionalProps, closes #1987
0.61.1
Patch Changes
-
#1975
c7550f9Thanks @gcanti! - fix templateLiteral signature (R should be never) -
#1974
8d1f6e4Thanks @gcanti! - causeFromSelf: add missing type parameter -
#1978
ac30bf4Thanks @gcanti! - Allow non-async Effects to be used with *Sync combinators, closes #1976ParseResult- add
astandmessagefields toForbidden
- add
-
Updated dependencies [
d404561,7b84a3c]:- effect@2.2.2
0.61.0
Minor Changes
-
#1922
62b40e8Thanks @gcanti! - Refactoring:- Schema:
- refactor
Schema.declareAPI to make it safe - add
Schema.declareoverloads - add
encodeUnknown*APIs - rename
parse*APIs todecodeUnknown* - symplify brand implementation
- rename
paramstoannotationintypeIdannotation - add optional
{ strict: false }parameter tocompose Class- rename
transformtotransformOrFail - rename
transformFromtotransformOrFailFrom
- rename
- add
hashSetandhashSetFromSelf - add
hashMapandhashMapFromSelf - add
listandlistFromSelf
- refactor
- AST:
- return
ParseResult.ParseIssueinstead ofParseResult.ParseErrorin all APIs - Declaration
- split
decodeintodecodeUnknown/encodeUnknown - remove
typefield
- split
- return
- ParseResult
- align
mapBothwithEffect(i.e. onFailure, onSuccess handlers) - add missing
Declarationnode inParseIssue
- align
- Schema:
-
#1922
62b40e8Thanks @gcanti! - add context tracking to Schema, closes #1873
Patch Changes
0.60.7
Patch Changes
0.60.6
Patch Changes
- Updated dependencies [
21b9edd]:- effect@2.1.2
0.60.5
Patch Changes
0.60.4
Patch Changes
-
#1939
0d1af1eThanks @gcanti! - fixhead/headOrsignatures and addgetNumberIndexedAccess -
Updated dependencies [
a222524]:- effect@2.1.1
0.60.3
Patch Changes
0.60.2
Patch Changes
0.60.1
Patch Changes
- Updated dependencies [
f7f19f6]:- effect@2.0.5
0.60.0
Minor Changes
-
#1913
b557a10Thanks @gcanti! - ParseResult refactoring:- remove
ParseResulttype - rename
mapLefttomapError - rename
bimaptomapBoth
- remove
Patch Changes
-
#1910
ec2bdfaThanks @gcanti! - refactoreitherFromUnionas union of transformations -
#1892
687e02eThanks @matheuspuel! - Schema: fix ParseIssue.actual on transformation -
#1891
8eec87eThanks @gcanti! - fixpickbehavior when the input is a record -
#1906
0c397e7Thanks @matheuspuel! - Schema: show error message when throw ParseError -
#1909
74b9094Thanks @tim-smart! - fix formatting of suspend before initialization -
#1904
337e80fThanks @gcanti! - add more title and identifier annotations -
Updated dependencies [
536c1df,8eec87e,540b294,536c1df,a3f96d6,8eec87e,536c1df,8eec87e,8eec87e,25adce7,536c1df]:- effect@2.0.4
0.59.1
Patch Changes
-
#1888
5b46e99Thanks @gcanti! - Schema: treat missing properties asundefined(excludingisandasserts), closes #1882 -
#1794
210d27eThanks @matheuspuel! - add eitherFromUnion -
Updated dependencies [
87f7ef2,1d3a06b]:- effect@2.0.3
0.59.0
Minor Changes
-
#1878
c4b84f7Thanks @gcanti! - Schema: removefrom/toAPI in favour ofmakein:- Equivalence
- JSONSchema
- Pretty
Patch Changes
-
#1878
c4b84f7Thanks @gcanti! - Schema: Pretty addprettyannotation API -
#1878
c4b84f7Thanks @gcanti! - Schema: Arbitrary addarbitraryannotation -
#1878
c4b84f7Thanks @gcanti! - Schema: Equivalence addequivalenceannotation
0.58.0
Minor Changes
-
#1877
a904a73Thanks @gcanti! - Schema: Arbitrary removefrom/toAPI in favour ofmake -
#1842
7b2f874Thanks @fubhy! - Schema: simplifyAST.createRefinementreturn type -
#1842
7b2f874Thanks @fubhy! - Schema: refactorParseResultmodule:- add
Unionissue, and replaceUnionMemberwithUnion - add
Tupleissue, and replaceIndexwithTuple - add
TypeLiteralissue - add
Transformissue - add
Refinementissue - add
astfield toMember - rename
UnionMembertoMember Type: renameexpectedtoastParseErrorreplaceerrorsfield witherrorfield and refactorparseErrorconstructor accordinglyIndexreplaceerrorsfield witherrorfieldKeyreplaceerrorsfield witherrorfieldMemberreplaceerrorsfield witherrorfieldParseErrorreplaceerrorsfield witherrorfield- make
ParseErroraData.TaggedError Forbidden: addactualfield
- add
Patch Changes
-
#1842
7b2f874Thanks @fubhy! - Schema: add more description annotations to built-in schemas -
#1842
7b2f874Thanks @fubhy! - Schema: add outeroptionarg to parse/decode/encode/validation/asserts/is APIs
0.57.2
Patch Changes
- Updated dependencies [
d5a1949]:- effect@2.0.2
0.57.1
Patch Changes
- Updated dependencies [
16bd87d]:- effect@2.0.1
0.57.0
Minor Changes
d0471caThanks @mikearnaldi! - Switch to monorepo structure
Patch Changes
-
d987daaThanks @mikearnaldi! - Switch effect dependency to caret -
#1848
04fb8b4Thanks @fubhy! - Avoid default parameter initilization -
Updated dependencies [
d987daa,7b5eaa3,0724211,9f2bc5a,04fb8b4,d0471ca,bcf0900,6299b84]:- effect@2.0.0
0.56.1
Patch Changes
-
#684
6b9585bThanks @patroza! - improve: Actually use Arbitrary interface in to/from/unsafe signature -
#679
0f8a8f1Thanks @gcanti! - Schema: add annotations argument toattachPropertySignature
0.56.0
Minor Changes
- #673
0508ac5Thanks @tim-smart! - update effect
0.55.0
Minor Changes
-
#649
d80b933Thanks @gcanti! - Arbitrary: should throw on declarations without annotations -
#669
294dfadThanks @gcanti! - Schema: refactorparseJsonto replaceParseJsonandfromJson -
#649
d80b933Thanks @gcanti! - Schema: refactorS.optionalAPI.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
d80b933Thanks @gcanti! - Schema: replacepropertySignatureconstructor withpropertySignatureAnnotationscombinator -
#669
294dfadThanks @gcanti! - Schema: simplifysplitparameters to only acceptseparator -
#669
294dfadThanks @gcanti! - Schema: remove useless combinatorslowercaseuppercasetrimnumberFromStringsymbolFromStringbigintFromStringbigintFromNumbersecretdurationFromHrTimedurationFromMillisdurationFromNanosuint8ArrayFromNumbersbase64base64urlhexdateFromStringbigDecimalFromNumberbigDecimalFromStringnot
Patch Changes
0.54.1
Patch Changes
-
#665
a238f20Thanks @gcanti! - AST: make Annotations readonly -
#665
a238f20Thanks @gcanti! - Schema: remove Mutable helper in favour of Types.Mutable -
#665
a238f20Thanks @gcanti! - AST: preserve identifier annotations when callingfrom
0.54.0
Minor Changes
- #662
7f448ddThanks @tim-smart! - update effect
0.53.3
Patch Changes
- #654
a5950d1Thanks @jessekelly881! - added S.Secret
0.53.2
Patch Changes
0.53.1
Patch Changes
-
#655
54f61d6Thanks @tim-smart! - fix for never error types in TaggedRequest.Any -
#604
88f61ccThanks @jessekelly881! - added filters for Duration -
#605
c728880Thanks @jessekelly881! - added toString for schema classes
0.53.0
Minor Changes
-
#635
30802d5Thanks @gcanti! - JSONSchema: renameJsonSchema7ToptoJsonSchema7Root -
#650
05c2275Thanks @tim-smart! - update effect -
#640
8dcf12cThanks @gcanti! - ParseResult: renameParseErrorstoParseIssue -
#636
deddf6eThanks @gcanti! - Schema: rename lazy to suspend (to align with Effect.suspend)
Patch Changes
- #645
ece6128Thanks @gcanti! - ensure that JSON Schema annotations can be exclusively applied to refinements
0.52.0
Minor Changes
- #632
ad220ddThanks @tim-smart! - update effect
Patch Changes
-
#609
8ca0220Thanks @tim-smart! - add Serializable module -
#609
8ca0220Thanks @tim-smart! - add FiberId schema -
#609
8ca0220Thanks @tim-smart! - add Exit schema -
#609
8ca0220Thanks @tim-smart! - add Cause schema
0.51.5
Patch Changes
-
#629
f690ebeThanks @gcanti! - Schema: add filter overloading returning OptionFor more complex scenarios, you can return an
Option<ParseError>type instead of a boolean. In this context,Noneindicates success, andSome(error)rejects the input with a specific error
0.51.4
Patch Changes
-
#623
3a56b06Thanks @sukovanej! - ExportJsonSchema7types. -
#626
67c154eThanks @gcanti! - S.rename: handle field transformations, closes #625
0.51.3
Patch Changes
0.51.2
Patch Changes
-
#618
95a0354Thanks @gcanti! - Arbitrary: remove runtime dependency from Schema module -
#617
0cd3262Thanks @matheuspuel! - add Schema.transformLiteral and Schema.transformLiterals -
#618
95a0354Thanks @gcanti! - Pretty: remove runtime dependency from Schema module
0.51.1
Patch Changes
- #615
f851621Thanks @tim-smart! - update effect
0.51.0
Minor Changes
- #613
2af3914Thanks @tim-smart! - update effect
Patch Changes
0.50.0
Minor Changes
-
#593
cbc2e3fThanks @gcanti! - ParseResult: merge failure APIs intofail -
#607
e85aefbThanks @gcanti! - Bug Fix: align index signature behaviour to TypeScript -
#589
3b99569Thanks @gcanti! - - removeValidDate(which is just an alias ofDate)- add
DateFromString(decodes from string, output: possibly invalid Date)
- add
-
#593
cbc2e3fThanks @gcanti! - ParseResult: renamesuccesstosucceed(standard naming)
Patch Changes
-
#597
caeed29Thanks @jessekelly881! - added BigDecimal -
#585
5b27f03Thanks @gcanti! - improve JSON Schema output:- rename
dependenciesto$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
enuminstead ofanyOf, closes #579
- rename
-
#603
8e21d7eThanks @gcanti! - TreeFormatter: enhanceformatActualfor data types with a customtoStringimplementation, closes #600
0.49.4
Patch Changes
- #595
931b557Thanks @tim-smart! - add _tag to TaggedRequest.Base
0.49.3
Patch Changes
-
#592
c2b0e6bThanks @jessekelly881! - added ParseResult.try -
#590
0d0f0beThanks @gcanti! - Parser: should use the original ast to generate a more informative error message when an incorrect data type is provided
0.49.2
Patch Changes
0.49.1
Patch Changes
- #580
4491e75Thanks @tim-smart! - fix missing class .struct schema
0.49.0
Minor Changes
- #577
9653cf4Thanks @tim-smart! - update effect
Patch Changes
- #574
2ed5f8eThanks @tim-smart! - add TaggedRequest class
0.48.4
Patch Changes
0.48.3
Patch Changes
0.48.2
Patch Changes
-
#568
573419eThanks @tim-smart! - add Schema.TaggedError -
#568
573419eThanks @tim-smart! - add Schema.TaggedClass
0.48.1
Patch Changes
-
#566
1c1d5a5Thanks @matheuspuel! - add dual api to Schema.rename -
#566
1c1d5a5Thanks @matheuspuel! - forbid excess properties on Schema.rename -
#564
8440e1eThanks @fubhy! - UsesideEffects: []to circumvent bundler issues
0.48.0
Minor Changes
- #561
ec63224Thanks @tim-smart! - update effect
0.47.7
Patch Changes
0.47.6
Patch Changes
0.47.5
Patch Changes
- #553
522161aThanks @gcanti! - Fix bug in property signature transformations when used for renaming (old key/value pair was not removed)
0.47.4
Patch Changes
0.47.3
Patch Changes
- #546
b6e8e12Thanks @rjdellecese! - added S.uppercased, S.uppercase, and S.Uppercase
0.47.2
Patch Changes
0.47.1
Patch Changes
- #540
85526bfThanks @tim-smart! - update effect
0.47.0
Minor Changes
- #538
c8a8b79Thanks @tim-smart! - update effect
0.46.4
Patch Changes
-
#532
1e115afThanks @gcanti! - Arbitrary: add BigIntConstraints support -
#530
23b1e1cThanks @gcanti! - Arbitrary: merge ArrayConstraints
0.46.3
Patch Changes
0.46.2
Patch Changes
- #523
dca107aThanks @jessekelly881! - Replaced TreeFormatter with ArrayFormatter for BrandErrors when using Schema.brand
0.46.1
Patch Changes
- #519
9fe7693Thanks @tim-smart! - update effect
0.46.0
Minor Changes
- #515
c9bf451Thanks @sukovanej! - Update effect and fast-check.
0.45.8
Patch Changes
-
#514
3acbc38Thanks @gcanti! - Arbitrary: handle array constraints -
#514
3acbc38Thanks @gcanti! - Arbitrary: fix recursive generation (memory issues)
0.45.7
Patch Changes
0.45.6
Patch Changes
- #508
618b1b5Thanks @matheuspuel! - fix encode discriminated union with transformation
0.45.5
Patch Changes
0.45.4
Patch Changes
0.45.3
Patch Changes
0.45.2
Patch Changes
0.45.1
Patch Changes
0.45.0
Minor Changes
-
#491
135072eThanks @gcanti! - Make transformations strict by default (and allow relaxing constraints withstrict: falseoption) -
#495
c02334cThanks @tim-smart! - update effect
Patch Changes
- #475
46dcfebThanks @tim-smart! - memoize the Parser per AST
0.44.0
Minor Changes
- #488
e00491cThanks @tim-smart! - update effect
0.43.2
Patch Changes
- #485
0a20788Thanks @gcanti! - Arbitrary: use Math.fround when creating number constraints, closes #484
0.43.1
Patch Changes
-
#483
c80c94fThanks @gcanti! - Schema: add jsonSchema annotation helper -
#481
56f5ac0Thanks @gcanti! - AST/Schema: add mutable combinator
0.43.0
Minor Changes
- #476
1fb1002Thanks @tim-smart! - update effect
0.42.0
Minor Changes
0.41.1
Patch Changes
0.41.0
Minor Changes
- #468
da7a851Thanks @tim-smart! - update effect
0.40.2
Patch Changes
0.40.1
Patch Changes
0.40.0
Minor Changes
-
#457
693b81fThanks @tim-smart! - update effect -
#457
693b81fThanks @tim-smart! - use preconstruct for builds
0.39.2
Patch Changes
0.39.1
Patch Changes
- #452
ca65e43Thanks @tim-smart! - update effect
0.39.0
Minor Changes
- #449
5950b14Thanks @tim-smart! - update to use unified "effect" package
0.38.0
Minor Changes
-
#439
2197496Thanks @gcanti! - Schema: remove *Result APIs- decodeResult (use decode instead)
- encodeResult (use encode instead)
- parseResult (use parse instead)
- validateResult (use validate instead)
Patch Changes
0.37.2
Patch Changes
0.37.1
Patch Changes
0.37.0
Minor Changes
- #441
63f1149Thanks @tim-smart! - update /data & /io
0.36.5
Patch Changes
0.36.4
Patch Changes
- #434
994a37eThanks @gcanti! - Exclude property signatures from index signatures validations, fix #433
0.36.3
Patch Changes
0.36.2
Patch Changes
- #428
73a8424Thanks @tim-smart! - fix Class transform helper types
0.36.1
Patch Changes
0.36.0
Minor Changes
-
#420
3a46cbcThanks @tim-smart! - have Schema.Class constructors implement Schema directly -
#422
295561bThanks @gcanti! - move ToAsserts utility type to Schema namespace
0.35.1
Patch Changes
0.35.0
Minor Changes
-
#401
8b1ae6bThanks @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
8b1ae6bThanks @gcanti! - refactor annotations: keys must be symbols -
#411
2f6c4d1Thanks @gcanti! - renamesymboltosymbolFromSelfand addsymbolwhich decodes/encodes from/tostring -
#401
8b1ae6bThanks @gcanti! - remove Spread in favour of /data/Types#Simplify -
#413
20ef377Thanks @tim-smart! - update /io -
#401
8b1ae6bThanks @gcanti! - fix fromBrand definition (self is a Schema<I, A> now instead of Schema) -
#401
8b1ae6bThanks @gcanti! - renamebiginttobigintFromSelfandBigintFromStringtobigint -
#401
8b1ae6bThanks @gcanti! - change transformation display in error messages (from A -> B to A <-> B) -
#401
8b1ae6bThanks @gcanti! - move From, To to Schema namespace (conforming to the ecosystem standard) -
#401
8b1ae6bThanks @gcanti! - renametransformResulttotransformOrFailand change signature (add additional ast parameter to transformations)
Patch Changes
-
#401
8b1ae6bThanks @gcanti! - record: add support for branded keys -
#407
9a1b8deThanks @fubhy! - Add support forbase64,base64urlandhexencoding -
#412
3768461Thanks @gcanti! - relax transform / transformOrFail / compose constraints -
#401
8b1ae6bThanks @gcanti! - TreeFormatter: should not collapse union members -
#401
8b1ae6bThanks @gcanti! - add description annotations to: string, number, boolean, symbol, bigint, object
0.34.0
Minor Changes
- #403
da52c2bThanks @tim-smart! - update /data & /io
Patch Changes
-
#397
376fc3dThanks @jessekelly881! - added S.Lowercase -
#382
d79309bThanks @fubhy! - AddedbigintFromNumbertransform
0.33.2
Patch Changes
-
#392
4c1ed27Thanks @gcanti! - pattern filter: set default Arbitrary -
#388
27a78bbThanks @gcanti! - compose: allow forcing decoding / encoding
0.33.1
Patch Changes
0.33.0
Minor Changes
- #376
64c2567Thanks @tim-smart! - update /io
Patch Changes
-
#375
bd61bcfThanks @tim-smart! - update build tools -
#373
e74455eThanks @tim-smart! - use peer deps for /data and /io
0.32.0
Minor Changes
- #370
70e4fffThanks @tim-smart! - update /data and /io
0.31.0
Minor Changes
- #366
77fffedThanks @tim-smart! - update /data and /io
0.30.4
Patch Changes
-
#350
00f6898Thanks @vecerek! - Add schema for BigintFromString -
#359
cb00668Thanks @vecerek! - Adds combinator that splits a string into an array of strings -
#361
60affebThanks @vecerek! - Addscompose: a combinator that composes Schema<A, B> with Schema<B, C> into Schema<A, C>.
0.30.3
Patch Changes
-
#357
00c2a47Thanks @sukovanej! - Update /data. -
#357
00c2a47Thanks @sukovanej! - Add_idtoSchema. AddisSchemaguard.
0.30.2
Patch Changes
0.30.1
Patch Changes
0.30.0
Minor Changes
0.29.1
Patch Changes
0.29.0
Minor Changes
- #338
b2560dfThanks @tim-smart! - update /io and /data
0.28.0
Minor Changes
- #334
5a6d733Thanks @tim-smart! - update /io
0.27.0
Minor Changes
- #332
9f0fa5dThanks @tim-smart! - update dependencies
0.26.1
Patch Changes
0.26.0
Minor Changes
0.25.0
Minor Changes
- #322
5f5bcb5Thanks @tim-smart! - rename *Effect parser methods
0.24.0
Minor Changes
Patch Changes
0.23.0
Minor Changes
0.22.0
Minor Changes
0.21.1
Patch Changes
0.21.0
Minor Changes
- #310
10f8457Thanks @sukovanej! - Update /data and /io.
0.20.3
Patch Changes
0.20.2
Patch Changes
- #303
0f70b22Thanks @sukovanej! - Update @effect/data and fast-check.
0.20.1
Patch Changes
0.20.0
Minor Changes
0.19.3
Patch Changes
-
#285
39d3c55Thanks @gcanti! - Arbitrary: fix maximum call stack size exceeded when producing nested arrays and records that are too deep
0.19.2
Patch Changes
0.19.1
Patch Changes
0.19.0
Minor Changes
0.18.0
Minor Changes
-
#274
eae1614Thanks @gcanti! - remove getPropertySignatures API -
#274
eae1614Thanks @gcanti! - rename AST.getTo -> to, AST.getFrom -> from
0.17.5
Patch Changes
- #272
d91a7a7Thanks @gcanti! - pick / omit: add support for structs with property signature transformations
0.17.4
Patch Changes
0.17.3
Patch Changes
0.17.2
Patch Changes
- #258
1b65e53Thanks @mikearnaldi! - Try publishing again
0.17.1
Patch Changes
- #256
162e099Thanks @gcanti! - leverage annotations (e.g. maxLength, int, between) to improve fast-check performance
0.17.0
Minor Changes
- #254
32e987aThanks @mikearnaldi! - Update effect/io, make parsing fields of records and tuples parallel
0.16.0
Minor Changes
0.15.0
Minor Changes
-
#247
28c7484Thanks @gcanti! - refactor optional APIs (Default values and Optional fields asOptions)
0.14.1
Patch Changes
0.14.0
Minor Changes
-
#238
f4ce344Thanks @sukovanej! - update @effect/io dependency -
#243
87382aeThanks @gcanti! - narrow down IndexSignature type -
#239
58be561Thanks @gcanti! - rename DateFromString to date
Patch Changes
-
#243
87382aeThanks @gcanti! - Arbitrary: should throw on effectful refinements -
#231
2c2d749Thanks @tim-smart! - add isValidDate filter -
#217
7911525Thanks @jessekelly881! - data/Boolean: added S.not transform -
#243
87382aeThanks @gcanti! - createRecord: should throw on unsupported literals -
#237
2a911efThanks @gcanti! - export ValidDateFromSelf and rename validDate filter
0.13.1
Patch Changes
0.13.0
Minor Changes
-
#232
49ebabaThanks @gcanti! - rename OptionalSchema to PropertySignature -
#232
49ebabaThanks @gcanti! - simplify keyof and getPropertySignatures implementations -
#232
49ebabaThanks @gcanti! - remove optionsFromOptionals API
0.12.1
Patch Changes
0.12.0
Minor Changes
0.11.1
Patch Changes
0.11.0
Minor Changes
-
#215
b47e8abThanks @tsteckenborn! - aligns usage of dateFromString with numberFromString -
#219
10c505aThanks @gcanti! - remove hasTransformation optimisations -
#223
6cc1a56Thanks @gcanti! - upgrade to latest /data and /io -
#219
10c505aThanks @gcanti! - keyof cannot handle refinements nor transformations -
#219
10c505aThanks @gcanti! - fix transformation signatures
Patch Changes
-
#219
10c505aThanks @gcanti! - cannot build an Arbitrary for transformations -
#219
10c505aThanks @gcanti! - fix AST.getTo implementation for Transform -
#219
10c505aThanks @gcanti! - export NumberFromString schema -
#218
c6c96a4Thanks @OlaoluwaM! - Added missing assertion functions for some AST nodes
0.10.0
Minor Changes
- #211
45c322bThanks @mikearnaldi! - Update effect/data and effect/io
0.9.1
Patch Changes
0.9.0
Minor Changes
- #206
39da1cbThanks @mikearnaldi! - Update effect/data and effect/io
0.8.3
Patch Changes
0.8.2
Patch Changes
-
#201
5aa2d78Thanks @gcanti! - cannot compute property signatures for refinements -
#202
6f51084Thanks @gcanti! - Schema: add support for never to From / To utility types
0.8.1
Patch Changes
0.8.0
Minor Changes
-
#196
96e5bf5Thanks @gcanti! - tuples should always fail on excess indexes -
#196
96e5bf5Thanks @gcanti! - refactor ParseOptions, closes #163
Patch Changes
- #173
4090099Thanks @jessekelly881! - Schema: added S.required
0.7.1
Patch Changes
0.7.0
Minor Changes
-
#188
bb31acbThanks @gcanti! - getPropertySignatures: cannot compute property signatures for transformations -
#188
bb31acbThanks @gcanti! - upgrade to latest @effect/data @effect/io -
#188
bb31acbThanks @gcanti! -partialcannot handle refinement or transformations
0.6.0
Minor Changes
Patch Changes
-
#184
b0b6423Thanks @gcanti! - make optionsFromOptionals composable -
#182
f7899b7Thanks @gcanti! - optionsFromOptionals: ensure non overlapping property signatures -
#181
0062b25Thanks @gcanti! - fix optionsFromOptionals implementation
0.5.0
Minor Changes
0.4.0
Minor Changes
- #174
c3a1230Thanks @mikearnaldi! - Only run effects when allowed
Patch Changes
-
#172
6277f5aThanks @mikearnaldi! - Optimize ParseResult conditional functions -
#176
dbb0a59Thanks @gcanti! - Optimize internal validations
0.3.1
Patch Changes
- #169
6b0a45fThanks @mikearnaldi! - Add back missing commits from wrong rebase.
0.3.0
Minor Changes
-
#165
3704121Thanks @mikearnaldi! - AST: remove isReversed from Transform -
#165
3704121Thanks @mikearnaldi! - make ParseError tagged -
#165
3704121Thanks @mikearnaldi! - ParseResult: add optional message to Type error -
#165
3704121Thanks @mikearnaldi! - remove useless options argument from is -
#165
3704121Thanks @mikearnaldi! - Integrate Effect into Parser -
#165
3704121Thanks @mikearnaldi! - simplify dateFromString -
#165
3704121Thanks @mikearnaldi! - Schema: add reverse API -
#165
3704121Thanks @mikearnaldi! - rename decodeFromInput to decode and decode to parse
Patch Changes
-
#165
3704121Thanks @mikearnaldi! - add parse, parseOption, parseEither -
#165
3704121Thanks @mikearnaldi! - fix trim, clamp, clampBigint definition
0.2.1
Patch Changes
0.2.0
Minor Changes
-
#144
df9ea09Thanks @gcanti! - rename encodeOrThrow -> encode -
#144
df9ea09Thanks @gcanti! - AST: rename typeAlis to Declaration -
#144
df9ea09Thanks @gcanti! - renametransformOrFailtotransformEither -
#144
df9ea09Thanks @gcanti! - rename encode -> encodeEither -
#144
df9ea09Thanks @gcanti! - AST: change Refinement definition form predicate to decode -
#144
df9ea09Thanks @gcanti! - move /formatter/Tree up and rename to TreeFormatter -
#144
df9ea09Thanks @gcanti! - remove /annotation/Hook module -
#144
df9ea09Thanks @gcanti! - refactor instanceOf as Declaration -
#144
df9ea09Thanks @gcanti! - rename decodeOrThrow -> decode -
#144
df9ea09Thanks @gcanti! - AST: refactor typeAlias adding decode -
#144
df9ea09Thanks @gcanti! - rename getOption -> decodeOption -
#144
df9ea09Thanks @gcanti! - remove /annotation/AST module -
#144
df9ea09Thanks @gcanti! - rename decode -> decodeEither -
#144
df9ea09Thanks @gcanti! - formatErrors/ should collapse trees that have a branching factor of 1 -
#144
df9ea09Thanks @gcanti! - simplify Arbitrary implementation
Patch Changes
0.1.0
Minor Changes
- #145
cc05ffeThanks @tim-smart! - update /data to 0.4.1
Patch Changes
0.0.5
Patch Changes
0.0.4
Patch Changes
0.0.3
Patch Changes
- #127
fd87ac6Thanks @mikearnaldi! - Fix release for github
0.0.2
Patch Changes
- #125
41841a3Thanks @mikearnaldi! - update release
0.0.1
Patch Changes
-
#119
62ed1b0Thanks @mikearnaldi! - Move to the @effect org -
#120
6ddb736Thanks @gcanti! - move parseNumber to /data/Number -
#120
6ddb736Thanks @gcanti! - upgrade to latest effect/data -
#120
6ddb736Thanks @gcanti! - /data/Option rename fromNullable to parseNullable -
#120
6ddb736Thanks @gcanti! - refactor instanceOf (to a constructor) -
#120
6ddb736Thanks @gcanti! - Added clamp transform to Number and Bigint