2019-01-22 03:29:30 +08:00
# Changelog
2019-11-08 05:39:33 +08:00
### 0.12.0 final (unreleased)
2020-01-23 09:17:17 +08:00
### 0.12.0-rc.7
- feat: Added `connectionPlugin`
### 0.12.0-rc.6
- fix: #329: Union members typing (#363)
- fix: #361 , error when using interfaceType & implements (#362)
2019-11-20 21:18:34 +08:00
### 0.12.0-rc.5
- feat: Add `customPrintSchemaFn` to makeSchema config
2019-11-08 06:38:00 +08:00
### 0.12.0-rc.4
2019-11-08 05:39:33 +08:00
- refactor: Remove NEXUS_SHOULD_GENERATE_ARTIFACTS env var
2019-11-08 12:11:03 +08:00
2019-11-08 05:39:33 +08:00
- feat: Add `shouldExitAfterGenerateArtifacts`
2019-11-08 12:11:03 +08:00
2019-11-08 05:39:33 +08:00
- Warn on missing `outputs` in `makeSchema` config
2019-11-08 12:11:03 +08:00
- Type-level `defaultResolver` has been removed, similar functionality can be achieved with the `onCreateFieldResolver` plugin API
2019-11-08 05:39:33 +08:00
### 0.12.0-rc.2, rc.3
- fix: bug in nullability check plugin
### 0.12.0-rc
- feat(deps): Bumps the default minimum version of graphql-js to 14.5.0
Nexus uses the new [`extensions` property ](https://github.com/graphql/graphql-js/pull/2097 ) on types to store metadata provided to Nexus types, in order to make them usable by plugins.
- feat: Adds "Plugins" API, [see the docs ](docs/api-plugins.md ) for more info on what all these can help accomplish
- feat(plugin): Add `nullabilityGuardPlugin` . See [the docs ](docs/plugin-nullabilityGuard.md ) for more info
- feat(plugin): Add `fieldAuthorizePlugin` . See [the docs ](docs/plugin-fieldAuthorize.md ) 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
2019-10-08 09:03:25 +08:00
2019-10-17 05:06:44 +08:00
#### beta.14
- feat(plugins): onInstall hook (#236)
- feat(deps): add support for TypeScript 3.6 (#255)
2019-10-09 10:13:18 +08:00
#### beta.13
- fix(typegen): explicitly await removeFile before write (#254)
2019-10-08 09:52:00 +08:00
#### beta.12
2019-10-08 09:03:25 +08:00
2019-11-08 05:39:33 +08:00
- feat(config): < strike > env var for should-generate-artifacts (#244)
2019-10-08 09:03:25 +08:00
You can now set the `shouldGenerateArtifacts` config option by env var
2019-11-08 05:39:33 +08:00
`NEXUS_SHOULD_GENERATE_ARTIFACTS=true|false` .</ strike > (removed, see 0.12 release notes)
2019-10-08 09:03:25 +08:00
- fix(typegen): delete prev file before writing next (#252)
Before, sometimes, you would have to open the typegen file to make VSCode pick
up its changed version. This change should reduce/remove the need for this
workaround.
2019-11-08 05:39:33 +08:00
* feat: < strike > by default typegen as an @types package (#230)
2019-10-08 09:03:25 +08:00
BREAKING CHANGE
You should not have to configure typegen manually anymore. We
generate by default into `node_modules/@types/nexus-typegen` which TypeScript
will automatically pick up. If you use the `types` `tsc` compiler option
however, make sure to include `nexus-typegen` .
This is a breaking change because typegen is enabled even when config
`outputs` have not been configured (before, they were required). The
2019-11-08 05:39:33 +08:00
heuristics of `shouldGenerateArtifacts` remain unchanged.</ strike > (removed, see 0.12 release notes)
2019-10-08 09:03:25 +08:00
2019-04-27 04:30:37 +08:00
### 0.11.7
- Types: Allow Promise return value for subscriptions
2019-03-27 05:13:38 +08:00
### 0.11.6
- More for #55 , incorrect return types.
2019-03-18 23:13:35 +08:00
### 0.11.5
- Fix lists w/ configurable depth/nullability, #89
2019-03-15 06:01:29 +08:00
### 0.11.4
- Fix import path gen on windows, #84
- More improvements to `MaybePromiseDeep`
2019-03-13 07:44:21 +08:00
### 0.11.3
- Fix type for passing `NexusWrappedType` as arg type #81
- Fix types on `MaybePromiseDeep`
2019-03-11 01:37:30 +08:00
### 0.11.2
- Fix `mkdir` for versions of node without recursive option (< 10.15.1 ).
2019-03-08 13:55:49 +08:00
### 0.11.1
- Export `queryField` & `subscriptionField` on public API
2019-03-08 08:49:00 +08:00
### 0.11.0
- Fix allowing nested input types (#68), fixes default type definitions for input fields
- Add `queryField` abstraction to mirror `mutationField`
- Alpha release of `subscriptionField` (working, but undocumented) for GraphQL subscriptions
2019-02-24 01:25:12 +08:00
### 0.10.0
- Add an optional field level authorize #32 , part of a more robust authorization story in #23
- Add mutationField abstraction, #46
2019-02-23 10:35:48 +08:00
### 0.9.17
- More for #55 , type error on Promise/null resolve
2019-02-23 06:49:25 +08:00
### 0.9.16
- Fix #52 , args being incorrectly imported as types
- Feature: extendInputType, #51
2019-02-23 03:48:47 +08:00
### 0.9.15
- Fix #55 , type error for Promise numeric field return
2019-02-19 07:06:18 +08:00
### 0.9.14
- Fix #44 , add correct typings for union type
2019-02-15 23:05:34 +08:00
### 0.9.13
- Fix #41 , replace `path.sep` with '/' in `typegenAutoConfig`
2019-02-15 13:02:30 +08:00
### 0.9.12
- Fix #33 , consistent `t.list` chaining output for inputs & scalars
- Fix #34 , include used imports on SDL converter
- Fix #27 , args output for SDL converter
- Other SDL converter cleanup: reference types rather than strings, default values
### 0.9.11
- Fix typing regression in 0.9.10
### 0.9.10
- Fix #26 , incorrect typing on boolean return type
2019-02-05 23:17:19 +08:00
### 0.9.9
- `TypegenConfigSourceModule` : `sources.module` -> `sources.source`
2019-02-05 22:07:45 +08:00
### 0.9.8
- Fix `MaybePromiseDeep` typing for non-object values
- `NexusGenCustomScalarMethods` -> `NexusGenCustomDefinitionMethods` for when we allow non-scalars to be `asNexusMethod`
2019-02-04 10:04:26 +08:00
### 0.9.7
2019-02-05 22:07:45 +08:00
- Fix `MaybePromiseDeep` typing
2019-02-04 10:04:26 +08:00
- Add `asNexusMethod` to annotate GraphQLScalarType
### 0.9.6
- Fallback Query construction to `missingType` internally
2019-02-03 06:44:06 +08:00
### 0.9.5
- Fix `nonNullDefaults` on schema
- Finalize objects as they are constructed
- Changes to a few internal methods
2019-02-03 02:42:28 +08:00
### 0.9.4
- Internal: nexusWrappedFn -> nexusWrappedType
2019-02-03 01:15:53 +08:00
### 0.9.3
- Minor internal changes
2019-02-01 06:38:35 +08:00
### 0.9.2
- Fixes for conditional nullability check
- Fixes for return type of MaybePromiseDeep
- Docs cleanup
### 0.9.1:
- General deploy/package.json cleanup
2019-01-31 23:56:45 +08:00
### 0.9.0:
2019-01-22 03:29:30 +08:00
2019-02-01 06:38:35 +08:00
- Major API changes. See #16 for more info
2019-01-22 03:29:30 +08:00
### 0.7.0-alpha.1
Changed the type-signatures around so fields which are not defined in the backing types associated with the
### 0.6.2
2019-02-01 06:38:35 +08:00
Initial release