github graphql-nexus/nexus v0.19.0

latest releases: next, 1.4.0-next.13, 1.4.0-next.12...
3 years ago

Breaking Changes

SDL file generation by default in development

#652618521d

SDL file generation will be enabled by default in development now.

If you were enabling it manually before and outputting to project root at schema.graphql You can probably now just rely on the default.

If you were relying on the default to disable SDL file generation before then now you need to pass an explicit false:

makeSchema({
  outputs: {
    schema: false
  }
})


Highlights

Abstract types system

#602967d2df

New Abstract types system. Learn more at https://nxs.li/guides/abstract-types.


Type functions for list & nullability & .nonNull / .nullable chaining

#538de832e7
#655306dbaa

New API for specifying list and nullability types. Learn more at https://nexusjs.org/docs/api/list-nonNull.



All Changes

Features

  • 1551506 Improved description for types on output method / output field (#666)
  • 5ab7dd3 Simplified upgrade path w/ better warning messages (#663)
  • 306dbaa .nonNull / .nullable chaining, additional cleanup (#655)
  • 618521d (breaking) SDL file generation by default in development (#652)
  • 481e2c7 Allow contextType to specify an TypingImport config (#606)
  • 4f4f9f4 add onFieldDefinition / onArgDefinition / onInputFieldDefinition (#640)
  • bfcc959 add t.modify API for modifying inherited fields (#634)
  • 94ba687 deprecate plugin onInstall return for consistent API (#637)
  • de832e7 type functions for list & nullability (#538)
  • 967d2df abstract types system (#602)

Fixes

  • 57bb5b0 Ensure we can modify nullability of an interface field (#662)
  • 5c73102 Make custom scalars work with interfaceType (#661)

Improvements

  • eb04d8f SDL converter list/nonNull chaining (#660)
  • 506b61b deps: update all to latest (#649)
  • 3a3d03b refactor: move wrapping helper fns to definitions/wrapping.ts (#643)
  • 9ba7d9b refactor: Simplify typegen with keyof and intersection types (#628)
  • e33906c refactor: remove namespace, separate internal types (#627)
  • bff7008 resolveType warning, restore declarativeWrapping list behavior (#658)
  • 1e11720 Refine exports for plugins (#639)

Docs

Tests

Don't miss a new nexus release

NewReleases is sending notifications on new releases.