Skip to content

Releases: benmccallum/fairybread

v8.0.0-preview.1

13 Aug 15:54
91f6e04
Compare
Choose a tag to compare
v8.0.0-preview.1 Pre-release
Pre-release
Add preview for HCv12 (#58)

v7.0.0

24 Jul 15:33
c46e9e7
Compare
Choose a tag to compare

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. Use ShouldValidateArgument. 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 and ValidateAttribtue 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

10 Jul 12:41
Compare
Choose a tag to compare
v7.0.0-rc.1 Pre-release
Pre-release
v7.0.0 rc1

v7.0.0-preview.1

26 Jun 18:54
Compare
Choose a tag to compare
v7.0.0-preview.1 Pre-release
Pre-release

Version 7 will re-imagine how validation middleware is hooked up and make it much easier.

v6.1.0

14 Jun 08:14
Compare
Choose a tag to compare

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

11 May 13:10
84af2a9
Compare
Choose a tag to compare
6.0.1

v6.0.1-preview.2

05 May 10:19
Compare
Choose a tag to compare
v6.0.1-preview.2 Pre-release
Pre-release
Merge branch 'develop' into main

v6.0.1-preview.1

27 Apr 09:47
Compare
Choose a tag to compare
v6.0.1-preview.1 Pre-release
Pre-release
Merge branch 'develop' into main

v6.0.0

12 Apr 12:15
955fa25
Compare
Choose a tag to compare
Merge pull request #42 from benmccallum/develop

6.0.0

v6.0.0-rc.1

09 Apr 09:18
Compare
Choose a tag to compare
v6.0.0-rc.1 Pre-release
Pre-release
v6 rc1 first