1.0.0
BREAKING CHANGES
rename package to nexus
You will now need to install Nexus Schema from the npm package nexus instead of @nexus/schema.
forbid null for descriptions
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
- Legacy
resolveType
is no longer part of the API - Legacy scalar shorthands are no longer supported
declarativeWrappingPlugin
is no longer enabled by defaultScalarInputFieldConfig
type is removed
Rename typegenAutoConfig and rootTyping
Make contextType
independent of source types
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
- 81f2e37 docs: move source type section into its own guide (#711)
- 0191f69 docs: add sticky table of content
- 1da85cf marker outside of li, fix positioning (#719)
- c6a8399 add feedback loop and code re-use to Why Nexus (#725)
- fa3fd96 update "Why Nexus" (#712)
- 02bff7d use plain JS objects for storing the context (#718)
- c2a3ef9 update tutorial testing chapter (#709)
- b5e3335 own guide for nullability
- c16f6c6 fix typo
- 96b31d3 fix typo
- a9ca189 fix many things in the tutorial
- 947b04a fix common to install test deps in tutorial
- df3819e fix errors in next.js guide
- e3253ab add nexus next.js adoption guide (#691)
- 27d95d8 code sandbox for subscriptions
- abed6e0 update playground link to codesandbox
- 1e4fd3c fix nullability yaml frontmatter