Skip to content

Releases: graphql-nexus/nexus

v0.15.0

04 Aug 13:56
1d97b78
Compare
Choose a tag to compare

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 named NexusGenScalars.

    // 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 in input and output types
    • Add rootTyping parameter to asNexusMethod to allow the user to specify it, otherwise it will fallback to the backingTypeMap
  • 903ceb8 add subscriptionType (#462)

  • ee7c371 use prettier api to load config (#460)

  • 9c8e776 support typescript 3.9 (#459)

  • 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

  • f0c163a move renovate config into github dir
  • 78af756 format with prisma-labs prettier config (#461)
  • fe2553c Update repo name in examples readme (#443)
  • b3abdb9 dripip managed version

v0.14.0

03 Jun 20:11
Compare
Choose a tag to compare

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

Unspecified Changes

v0.13.1

30 Mar 20:40
Compare
Choose a tag to compare

See changelog

v0.12.0-rc.7

23 Jan 01:22
Compare
Choose a tag to compare

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

20 Nov 13:21
Compare
Choose a tag to compare
  • feat: add customPrintSchemaFn to makeSchema config

v0.12.0-rc.4

07 Nov 22:38
Compare
Choose a tag to compare
  • refactor: Remove NEXUS_SHOULD_GENERATE_ARTIFACTS env var
  • feat: Add shouldExitAfterGenerateArtifacts
  • Warn on missing outputs in makeSchema config

v0.12.0-rc.3

07 Nov 22:39
Compare
Choose a tag to compare
  • fix: bug in nullability check plugin

v0.12.0-rc.2

07 Nov 22:39
Compare
Choose a tag to compare
  • 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 info

    This 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
    to makeSchema.

  • feat(schema): Adds shouldExitAfterGenerateArtifacts option to makeSchema

    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 API

    This 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