Releases: graphql-nexus/nexus
v0.15.0
BREAKING CHANGES
-
1d97b78 allow asNexusMethod to specify TS type (#473)
The global TS type
NexusGenRootTypes
no longer contains scalars. All scalars now live under a new global TS type namedNexusGenScalars
.// before let foo: NexusGenRootTypes['String']
// after let foo: NexusGenScalars['String']
-
122b0e1 base
hasNextPage
in connectionPlugin upon gt not gte (#458)
Features
-
1d97b78 (breaking) allow asNexusMethod to specify TS type (#473)
- Create a new
NexusGenScalars
for all scalar types - Remove scalars from
NexusGenRootTypes
(might be a breaking change, need review) - Use the
NexusGenScalars
for all non specified (base GraphQL) scalars ininput
andoutput
types - Add
rootTyping
parameter toasNexusMethod
to allow the user to specify it, otherwise it will fallback to thebackingTypeMap
- Create a new
-
122b0e1 (breaking) base hasNextPage in connectionPlugin upon gt not gte (#458)
Fixes
- 61eccca MaybePromiseDeep case of null with .then (#475)
- 5b900b1 connectionPlugin config: allow first and last to be zero (#436)
Improvements
Chores
v0.14.0
Features
Fixes
- 8c7615e return types of queryField and mutationField (#415)
- 035e0a1 typegen stable path generation with Windows (#400)
Improvements
- 286bd66 improve: update warning to use new package name
- 358c33e refactor: add typegen utils module
- 72a13a9 refactor: update lang headers
- cd08bb2 refactor: update lang headers
- b9df04b refactor: getOwnPackage util (#409)
- 3156f9b refactor: sort imports
Chores
- 8c7b047 setup dripip for release scripts
- 7fce3dc fix links (#433)
- 57f1c7c update example lock file, fix tests
- 6e58acd Disable Renovate (#430)
- 0518101 fix typo on readme file (#420)
- 70d2abb fix link
- d74f997 examples update
- 17fad3a update snapshots
- 9deb327 setup renovate
- a10463e update lockfile entries (#404)
- ccae81a update changelog
Unspecified Changes
v0.13.1
See changelog
v0.12.0-rc.7
Adds connectionPlugin
for relay style pagination:
See: https://nexus.js.org/docs/plugin-connection and prisma-labs/graphql-framework-experiment#324 for more info
v0.12.0-rc.5
- feat: add
customPrintSchemaFn
tomakeSchema
config
v0.12.0-rc.4
- refactor: Remove NEXUS_SHOULD_GENERATE_ARTIFACTS env var
- feat: Add
shouldExitAfterGenerateArtifacts
- Warn on missing
outputs
inmakeSchema
config
v0.12.0-rc.3
- fix: bug in nullability check plugin
v0.12.0-rc.2
-
feat(deps): Bumps the default minimum version of graphql-js to 14.5.0
Nexus uses the new
extensions
property on types to store metadata provided to Nexus types, in order to make them usable by plugins. -
feat: Adds "Plugins" API, see the docs for more info on what all these can help accomplish
-
feat(plugin): Add
nullabilityGuardPlugin
. See the docs for more info -
feat(plugin): Add
fieldAuthorizePlugin
. See the docs for more infoThis is the same behavior as before, but implemented more flexibly as a plugin. This will be
automatically added if no plugins are specified, otherwise it will need to be imported & added
tomakeSchema
. -
feat(schema): Adds
shouldExitAfterGenerateArtifacts
option tomakeSchema
The
shouldExitAfterGenerateArtifacts
makes it possible to exit after the types are generated,
useful if you do not check a schema artifact into source control, but wish to generate before the code runs. -
refactor: Removes
nexusWrappedType
This was an internal implementation detail which should not affect end users
-
refactor: Removes
t.modifyType
APIThis may not have ever worked, it was only intended to modify fields on an
objectType
which were
originally implemented by an interface. Please open an issue if this is a breaking change for you, so we
can understand the use-case and design a better API. -
test: Improved code coverage, adds base threshold to new PRs