diff --git a/lerna.json b/lerna.json index 82a4658..344c5d4 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "packages": ["plugins/*"], + "packages": ["plugins/relay-global-id", "plugins/relay-mutation", "plugins/relay-node-interface"], "npmClient": "yarn", "useWorkspaces": true, "version": "independent" diff --git a/plugins/relay-global-id/CHANGELOG.md b/plugins/relay-global-id/CHANGELOG.md index d898918..51657cc 100644 --- a/plugins/relay-global-id/CHANGELOG.md +++ b/plugins/relay-global-id/CHANGELOG.md @@ -3,6 +3,41 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.1](https://github.com/passionkind/nexus-plugins/compare/sltx-nexus-plugin-relay-global-id@0.3.0...sltx-nexus-plugin-relay-global-id@0.3.1) (2021-06-05) + +**Note:** Version bump only for package sltx-nexus-plugin-relay-global-id + + + + + +# 0.3.0 (2021-06-05) + + +### Bug Fixes + +* add publishConfig to package.json ([8444527](https://github.com/passionkind/nexus-plugins/commit/8444527c32502e5b91369035cf68e8fa44366d6b)) +* backward compatibility in relay-global-id and relay-node-interface plugins ([6b29ef9](https://github.com/passionkind/nexus-plugins/commit/6b29ef948cf2892d099f5e514f8b6c3d83baf61e)) +* fix datetime and relay-global-id to pass extra field configs back to nexus schema ([86d7bfb](https://github.com/passionkind/nexus-plugins/commit/86d7bfb5b0d3e9fecfd0ad5b59c16c9821a07817)) +* stuff ([4fcae7d](https://github.com/passionkind/nexus-plugins/commit/4fcae7d93f09eaa7b4fcdd0b4a3c43f2666e0d1d)) +* versions on package.json to 0.0.0 ([49283b5](https://github.com/passionkind/nexus-plugins/commit/49283b521f7dc14ea877f96b4e60665d890b736b)) + + +### Features + +* add yup-validation plugin ([c3f0c70](https://github.com/passionkind/nexus-plugins/commit/c3f0c703a71414e9a7b59ae5d0e7bf5edacf57fe)) +* allow nonNullDefaults plugin config on relay plugins ([#5](https://github.com/passionkind/nexus-plugins/issues/5)) ([027dff9](https://github.com/passionkind/nexus-plugins/commit/027dff99b85910de0400b4b9dadbe72ef537f09b)) +* upgrade dependencies and use nexus v1 instead of @nexus/schema ([2f27c77](https://github.com/passionkind/nexus-plugins/commit/2f27c77435060a89e89420ee7a35d9d6b67c2d15)) + + +### BREAKING CHANGES + +* You must be using GraphQL v15 and nexus v1 now. + + + + + # [0.2.0](https://github.com/JCMais/nexus-plugins/compare/@jcm/nexus-plugin-relay-global-id@0.1.2...@jcm/nexus-plugin-relay-global-id@0.2.0) (2021-01-24) ### Features diff --git a/plugins/relay-global-id/package.json b/plugins/relay-global-id/package.json index 6effacf..fad79ab 100644 --- a/plugins/relay-global-id/package.json +++ b/plugins/relay-global-id/package.json @@ -1,6 +1,6 @@ { - "name": "@jcm/nexus-plugin-relay-global-id", - "version": "0.2.0", + "name": "sltx-nexus-plugin-relay-global-id", + "version": "0.3.1", "description": "Adds t.relayGlobalId to the schema builder", "keywords": [ "nexus", diff --git a/plugins/relay-global-id/src/index.ts b/plugins/relay-global-id/src/index.ts index 6d2d897..8e95ed6 100644 --- a/plugins/relay-global-id/src/index.ts +++ b/plugins/relay-global-id/src/index.ts @@ -76,7 +76,7 @@ export type RelayGlobalIdNexusFieldConfig< export function relayGlobalIdPlugin(pluginConfig: RelayGlobalIdPluginConfig = {}) { const { nexusFieldName = 'relayGlobalId', - relayGlobalIdPluginImportId = '@jcm/nexus-plugin-relay-global-id', + relayGlobalIdPluginImportId = 'sltx-nexus-plugin-relay-global-id', shouldAddRawId: shouldAddRawIdPluginConfig = true, field: fieldPluginConfig, resolve: resolvePluginConfig, diff --git a/plugins/relay-mutation/CHANGELOG.md b/plugins/relay-mutation/CHANGELOG.md index bb75885..b0ddf6f 100644 --- a/plugins/relay-mutation/CHANGELOG.md +++ b/plugins/relay-mutation/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.1](https://github.com/passionkind/nexus-plugins/compare/sltx-nexus-plugin-relay-mutation@0.3.0...sltx-nexus-plugin-relay-mutation@0.3.1) (2021-06-05) + +**Note:** Version bump only for package sltx-nexus-plugin-relay-mutation + +# 0.3.0 (2021-06-05) + +### Bug Fixes + +- allow optional description for relay mutation plugin ([88c5e71](https://github.com/passionkind/nexus-plugins/commit/88c5e713b20591dd4fd785ba575aa26a6d463dac)) +- **mutation:** fix type of input argument for the mutateAndGetPayload function ([f1cdff9](https://github.com/passionkind/nexus-plugins/commit/f1cdff9fa341cec5a9027acc103f6f4d2cae4fd9)) +- **relay-mutation:** fix types for mutateAndGetPayload ([09d9db9](https://github.com/passionkind/nexus-plugins/commit/09d9db93b86e0c13bc7799bb1d5fbac8bbc391e4)) +- **relay-mutation:** make input/payload types follow CamelCase naming ([62c6336](https://github.com/passionkind/nexus-plugins/commit/62c63361141b145f2e91799621e4bb62ed88a01b)) +- **relay-mutation:** remove tests file from tsconfig.json ([3c8ae65](https://github.com/passionkind/nexus-plugins/commit/3c8ae653de95df9ca454cbaabfd2e5d999f0add8)) + +### Features + +- add relay-mutation plugin ([7f17137](https://github.com/passionkind/nexus-plugins/commit/7f17137e9bf974b157a14731a45034de9c261cc3)) +- add yup-validation plugin ([c3f0c70](https://github.com/passionkind/nexus-plugins/commit/c3f0c703a71414e9a7b59ae5d0e7bf5edacf57fe)) +- upgrade dependencies and use nexus v1 instead of @nexus/schema ([2f27c77](https://github.com/passionkind/nexus-plugins/commit/2f27c77435060a89e89420ee7a35d9d6b67c2d15)) + +### BREAKING CHANGES + +- You must be using GraphQL v15 and nexus v1 now. + # [0.2.0](https://github.com/JCMais/nexus-plugins/compare/@jcm/nexus-plugin-relay-mutation@0.1.3...@jcm/nexus-plugin-relay-mutation@0.2.0) (2021-01-24) ### Features diff --git a/plugins/relay-mutation/package.json b/plugins/relay-mutation/package.json index 1d39236..c93a5ee 100644 --- a/plugins/relay-mutation/package.json +++ b/plugins/relay-mutation/package.json @@ -1,6 +1,6 @@ { - "name": "@jcm/nexus-plugin-relay-mutation", - "version": "0.2.0", + "name": "sltx-nexus-plugin-relay-mutation", + "version": "0.3.1", "description": "Adds relayMutation(field, config) method to the nexus/schema builder to create Relay compatible mutations", "keywords": [ "nexus", diff --git a/plugins/relay-mutation/src/index.ts b/plugins/relay-mutation/src/index.ts index 931e8c7..875169b 100644 --- a/plugins/relay-mutation/src/index.ts +++ b/plugins/relay-mutation/src/index.ts @@ -31,6 +31,7 @@ export type RelayMutationNexusFieldConfig< TypeName extends string = any, FieldName extends string = any > = { + description?: string inputFields?: ( t: core.InputDefinitionBlock>, ) => void @@ -48,7 +49,7 @@ const ucfirst = (text: string) => export const relayMutationPlugin = (pluginConfig: RelayMutationPluginConfig = {}) => { const { nexusFieldName = 'relayMutation', - relayMutationPluginImportId = '@jcm/nexus-plugin-relay-mutation', + relayMutationPluginImportId = 'sltx-nexus-plugin-relay-mutation', defaultMutationInputTypeNameCreator = (text) => ucfirst(`${text}Input`), defaultMutationPayloadTypeNameCreator = (text) => ucfirst(`${text}Payload`), } = pluginConfig diff --git a/plugins/relay-node-interface/CHANGELOG.md b/plugins/relay-node-interface/CHANGELOG.md index aedbdaa..84bd0c5 100644 --- a/plugins/relay-node-interface/CHANGELOG.md +++ b/plugins/relay-node-interface/CHANGELOG.md @@ -3,6 +3,33 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 0.3.0 (2021-06-05) + + +### Bug Fixes + +* add publishConfig to package.json ([8444527](https://github.com/passionkind/nexus-plugins/commit/8444527c32502e5b91369035cf68e8fa44366d6b)) +* backward compatibility in relay-global-id and relay-node-interface plugins ([6b29ef9](https://github.com/passionkind/nexus-plugins/commit/6b29ef948cf2892d099f5e514f8b6c3d83baf61e)) +* fix datetime and relay-global-id to pass extra field configs back to nexus schema ([86d7bfb](https://github.com/passionkind/nexus-plugins/commit/86d7bfb5b0d3e9fecfd0ad5b59c16c9821a07817)) +* stuff ([4fcae7d](https://github.com/passionkind/nexus-plugins/commit/4fcae7d93f09eaa7b4fcdd0b4a3c43f2666e0d1d)) +* versions on package.json to 0.0.0 ([49283b5](https://github.com/passionkind/nexus-plugins/commit/49283b521f7dc14ea877f96b4e60665d890b736b)) + + +### Features + +* add yup-validation plugin ([c3f0c70](https://github.com/passionkind/nexus-plugins/commit/c3f0c703a71414e9a7b59ae5d0e7bf5edacf57fe)) +* allow nonNullDefaults plugin config on relay plugins ([#5](https://github.com/passionkind/nexus-plugins/issues/5)) ([027dff9](https://github.com/passionkind/nexus-plugins/commit/027dff99b85910de0400b4b9dadbe72ef537f09b)) +* upgrade dependencies and use nexus v1 instead of @nexus/schema ([2f27c77](https://github.com/passionkind/nexus-plugins/commit/2f27c77435060a89e89420ee7a35d9d6b67c2d15)) + + +### BREAKING CHANGES + +* You must be using GraphQL v15 and nexus v1 now. + + + + + # [0.2.0](https://github.com/JCMais/nexus-plugins/compare/@jcm/nexus-plugin-relay-node-interface@0.1.2...@jcm/nexus-plugin-relay-node-interface@0.2.0) (2021-01-24) ### Features diff --git a/plugins/relay-node-interface/package.json b/plugins/relay-node-interface/package.json index 8a39e79..e5e88fb 100644 --- a/plugins/relay-node-interface/package.json +++ b/plugins/relay-node-interface/package.json @@ -1,6 +1,6 @@ { - "name": "@jcm/nexus-plugin-relay-node-interface", - "version": "0.2.0", + "name": "sltx-nexus-plugin-relay-node-interface", + "version": "0.3.0", "description": "Creates the Relay Node interface and add node/nodes fields to the Query type", "keywords": [ "nexus",