Skip to content

1.0.0

Compare
Choose a tag to compare
@jasonkuhrt jasonkuhrt released this 14 Dec 18:10
· 154 commits to main since this release

BREAKING CHANGES

rename package to nexus

#69980ad531

You will now need to install Nexus Schema from the npm package nexus instead of @nexus/schema.

forbid null for descriptions

0a43cbc

It is no longer permitted to pass null to description of enum, objects, args, input objects, interfaces, unions. Now you must pass either a string or nothing.

remove backward compatible code and warnings

#73078b8b08

  • Legacy resolveType is no longer part of the API
  • Legacy scalar shorthands are no longer supported
  • declarativeWrappingPlugin is no longer enabled by default
  • ScalarInputFieldConfig type is removed

Rename typegenAutoConfig and rootTyping

#723d66e8f1

Make contextType independent of source types

642be8b


Features

  • 78b8b08 (breaking) remove backward compatible code and warnings (#730)
  • d66e8f1 (breaking) rename typegenAutoConfig and rootTyping (#723)
  • 642be8b (breaking) make contextType independent of source types
  • dc1e21b pass connection args to field extensions (#710)
  • 96368ab allow arbitrary extensions on nexus types (#684)
  • 0cff220 Don't force async if connection resolvers are sync (#707)
  • 9d0f4f4 add .asArg for enum, fix default typings (#708)
  • cf5b269 support graphql@^14.5 (#677)
  • 71ea266 allow promise to be returned from pageInfoFromNodes
  • bb13600 add requireResolver: false
  • af7c06c connection can accept non-String cursor

Fixes

  • 242046c subscriptionField overload for builder api access (#694)
  • 6220d85 proper typings for edge extension
  • 927d4b8 export connection plugin args
  • 8d14709 custom edge fields not resolved

Improvements

  • 80ad531 (breaking) improve: rename package to nexus (#699)
  • 5377df5 docs: cover abstract type funcs with jsdoc
  • 3531a31 docs: cover root types with jsdoc
  • 57ca56f docs: cover arguments related things with jsdoc (#726)
  • 0a43cbc (breaking) improve: forbid null for descriptions
  • 7dbb4ac docs: cover isTypeOf and extension with jsdoc (#720)
  • 405ee53 docs: cover resolve method with jsdoc
  • 08ce751 docs: add jsdoc for type prop on field config
  • 6f51434 docs: cover the output type builder api with jsdoc (#715)
  • e05a50e docs: cover extendType with jsdocs
  • 2c8102b docs: cover objectType with jsdocs (#703)

Docs


Chores

  • 8b3e88c add support for interfaces implementing interfaces to sdlConverter (#713)
  • ea989d5 SDLConverter fixes (#717)
  • 439864a Prettier on the codebase for JSDoc formatting (#706)
  • fae8aeb bump jest testTimeout, seems to flake on unionTooComplexToRepresent