April 18, 2023
·
245 commits
to master
since this release
@graphql-inspector/action@3.4.12
Patch Changes
- Updated dependencies
[3184249b,
3184249b,
3184249b]:- @graphql-inspector/core@4.1.0
- @graphql-inspector/github@3.4.10
@graphql-inspector/cli@3.4.13
Patch Changes
- Updated dependencies []:
- @graphql-inspector/audit-command@3.4.9
- @graphql-inspector/coverage-command@4.0.5
- @graphql-inspector/diff-command@3.4.9
- @graphql-inspector/introspect-command@3.4.9
- @graphql-inspector/similar-command@3.4.9
- @graphql-inspector/validate-command@3.4.9
@graphql-inspector/audit-command@3.4.9
Patch Changes
@graphql-inspector/coverage-command@4.0.5
Patch Changes
@graphql-inspector/diff-command@3.4.9
Patch Changes
@graphql-inspector/introspect-command@3.4.9
Patch Changes
@graphql-inspector/similar-command@3.4.9
Patch Changes
@graphql-inspector/validate-command@3.4.9
Patch Changes
@graphql-inspector/core@4.1.0
Minor Changes
-
#2392
3184249b
Thanks @n1ru4l! - Wrap string values in quotes, so they can be
differentiated from types.- Input field 'Foo.b' default value changed from 'undefined' to 'Bbb' + Input field 'Foo.b' default value changed from 'undefined' to '"Bbb"'
-
#2392
3184249b
Thanks @n1ru4l! - AddisSafeBasedOnUsagetoCriticalitytype.
This value is set totruein case the criticality is set toCriticalityLevel.Dangerousbased
on usage. This is helpful for statistics. -
#2392
3184249b
Thanks @n1ru4l! - include meta data in the changes that are machine
processable. This is useful if you want to efficiently store the changes in some database and
later-on reconstruct the full change objects.export type FieldDescriptionChangedChange = { type: ChangeType.FieldDescriptionChanged; meta: { typeName: string; fieldName: string; oldDescription: string; newDescription: string; }; };
You can construct the full
Changeobject from thetypeandmetaproperties.import { ChangeType, fieldDescriptionChangedFromMeta } from '@graphql-inspector/core'; console.log( fieldDescriptionChangedFromMeta({ type: ChangeType.FieldDescriptionChanged, meta: { typeName: 'Foo', fieldName: 'bar', oldDescription: 'This is the old description', newDescription: 'This is the new description', }, }), );
console.log output:
{ type: 'FIELD_DESCRIPTION_CHANGED', criticality: { level: 'NON_BREAKING' }, message: "Field 'Foo.bar' description changed from 'This is the old description' to 'This is the new description'", meta: { typeName: 'Foo', fieldName: 'bar', oldDescription: 'This is the old description', newDescription: 'This is the new description' }, path: 'Foo.bar' }