v0.19.0
Breaking Changes
SDL file generation by default in development
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
New Abstract types system. Learn more at https://nxs.li/guides/abstract-types.
Type functions for list & nullability & .nonNull / .nullable chaining
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
- f7b9cf8 docs: fix typo
- f49d0b0 update to use new 0.19 api (#667)
- 3e8843f add atomicOperations setting for prisma plugin (#587)
- 75c4c09 Add release changelog entries to CHANGELOG.md (#656)
- 36503f7 @tgriesser/schemats for simpler DB output in ghost example (#633)
- 45938cf fix little typo in 021-abstract-types.mdx (#624)
- 5870d5e fix installation note (#609)