Skip to content

April 18, 2023

Choose a tag to compare

@github-actions github-actions released this 18 Apr 08:16
· 245 commits to master since this release
43fe29b

@graphql-inspector/action@3.4.12

Patch Changes

@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! - Add isSafeBasedOnUsage to Criticality type.
    This value is set to true in case the criticality is set to CriticalityLevel.Dangerous based
    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 Change object from the type and meta properties.

    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'
    }

@graphql-inspector/github@3.4.10

Patch Changes