Releases: benmccallum/fairybread
v8.0.0-preview.1
Add preview for HCv12 (#58)
v7.0.0
This release changes the way the validation field middleware is added.
It is now registered only on fields that have args (rather than on every field in your schema regardless of whether it even had a validator). Runtime-determination of whether an arg should be validated is gone (but if people were using it we can add it back again). It's effectively been "replaced" by schema-build-time determination, using a similar option that'll be executed by a type interceptor and attach the middleware only where needed. This vastly simplies FairyBread and will improve perf.
API changes:
IFairyBreadOptions.ShouldValidate
is now gone. UseShouldValidateArgument
. If you need runtime support, let me know and we can re-add it.IFairyBreadOptions.SetNullResultOnValidationError
is removed. Before, the default was true, and now FairyBread won't set the Result at all. See #46. If you still need the control back though, let me know and we can re-add this option.IArgumentDescriptor.UseValidation
,IInputObjectTypeDescriptor.UseValidation
andValidateAttribtue
are gone for similar reasons. Every query field's arg is now validated by default.
Default behaviour changes:
- Due to schema-build-time determination of where validation is needed, it isn't really necessary to disable by default validation in Query types which was mostly for perf reasons. So now arguments are validated by default anywhere in the schema, including inside Query type, wherever there's an appropriate validator.
Next
- v7.1 will take this even further and only add the validation middleware when there's actually validators set up for the arg/s of a particular field.
- v7.2 will introduce ability to explicitly set validation on args as/when needed to override implicitness.
v7.0.0-rc.1
v7.0.0 rc1
v7.0.0-preview.1
Version 7 will re-imagine how validation middleware is hooked up and make it much easier.
v6.1.0
Introduces a new configurable option called SetNullResultOnValidationError
which is currently set to true
by default to maintain v6 behaviour, but will likely be set to false
by default in version 7.
v6.0.1
6.0.1
v6.0.1-preview.2
Merge branch 'develop' into main
v6.0.1-preview.1
Merge branch 'develop' into main
v6.0.0
Merge pull request #42 from benmccallum/develop 6.0.0
v6.0.0-rc.1
v6 rc1 first