Skip to content

Latest commit

 

History

History
305 lines (220 loc) · 12.5 KB

CHANGELOG.md

File metadata and controls

305 lines (220 loc) · 12.5 KB

@graphql-inspector/core

6.2.1

Patch Changes

6.2.0

Minor Changes

  • #2827 60d674d Thanks @TuvalSimha! - Added missing types to Change type and fix typo "DirectiveUsageInputObjectdRemovedChange" to "DirectiveUsageInputObjectRemovedChange"

6.1.0

Minor Changes

Patch Changes

6.0.1

Patch Changes

6.0.0

Major Changes

  • #2719 50874f2 Thanks @TuvalSimha! - Upgrade the Node version from 16 to 18, as the minimum required version is now 18. Additionally, ensure that GraphQL Yoga is upgraded to version 5.

5.1.0

Minor Changes

5.0.2

Patch Changes

5.0.1

Patch Changes

5.0.0

Major Changes

Patch Changes

4.2.2

Patch Changes

  • #2452 1b1b954c Thanks @TuvalSimha! - Add a new stats display for coverage command + display new Total queries / mutations / Sub

4.2.1

Patch Changes

4.2.0

Minor Changes

4.1.1

Patch Changes

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

4.0.3

Patch Changes

  • #2419 34f84e8f Thanks @TuvalSimha! - Update bob version -> change the way we build the packages (Dist folder build now esm and cjs versions)

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Major Changes

3.5.1

Patch Changes

3.5.0

Minor Changes

  • #2240 ca29cdd1 Thanks @Tohaker! - suppressRemovalOfDeprecatedField rule will now mark removed types as dangerous