From 88c5e713b20591dd4fd785ba575aa26a6d463dac Mon Sep 17 00:00:00 2001 From: Bastian Kistner Date: Fri, 30 Apr 2021 14:12:01 +0200 Subject: [PATCH 1/7] fix: allow optional description for relay mutation plugin --- plugins/relay-mutation/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/relay-mutation/src/index.ts b/plugins/relay-mutation/src/index.ts index 931e8c7..fb08ac5 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 From fc9e15c52411559557717f586a006203c897f0fe Mon Sep 17 00:00:00 2001 From: Bastian Kistner Date: Sat, 5 Jun 2021 15:06:54 +0200 Subject: [PATCH 2/7] fix --- lerna.json | 2 +- plugins/relay-global-id/package.json | 4 ++-- plugins/relay-mutation/package.json | 4 ++-- plugins/relay-node-interface/package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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/package.json b/plugins/relay-global-id/package.json index 6effacf..cb7e300 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.2.1", "description": "Adds t.relayGlobalId to the schema builder", "keywords": [ "nexus", diff --git a/plugins/relay-mutation/package.json b/plugins/relay-mutation/package.json index 1d39236..38b1233 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.2.1", "description": "Adds relayMutation(field, config) method to the nexus/schema builder to create Relay compatible mutations", "keywords": [ "nexus", diff --git a/plugins/relay-node-interface/package.json b/plugins/relay-node-interface/package.json index 8a39e79..5dfde23 100644 --- a/plugins/relay-node-interface/package.json +++ b/plugins/relay-node-interface/package.json @@ -1,5 +1,5 @@ { - "name": "@jcm/nexus-plugin-relay-node-interface", + "name": "sltx-nexus-plugin-relay-node-interface", "version": "0.2.0", "description": "Creates the Relay Node interface and add node/nodes fields to the Query type", "keywords": [ From 5ca85b3fd12a6532b9807f143fd3c29c16042b85 Mon Sep 17 00:00:00 2001 From: Bastian Kistner Date: Sat, 5 Jun 2021 15:07:08 +0200 Subject: [PATCH 3/7] Publish - sltx-nexus-plugin-relay-global-id@0.3.0 - sltx-nexus-plugin-relay-mutation@0.3.0 - sltx-nexus-plugin-relay-node-interface@0.3.0 --- plugins/relay-global-id/CHANGELOG.md | 27 +++++++++++++++++++++++ plugins/relay-global-id/package.json | 2 +- plugins/relay-mutation/CHANGELOG.md | 20 +++++++++++++++++ plugins/relay-mutation/package.json | 2 +- plugins/relay-node-interface/CHANGELOG.md | 27 +++++++++++++++++++++++ plugins/relay-node-interface/package.json | 2 +- 6 files changed, 77 insertions(+), 3 deletions(-) diff --git a/plugins/relay-global-id/CHANGELOG.md b/plugins/relay-global-id/CHANGELOG.md index d898918..b810393 100644 --- a/plugins/relay-global-id/CHANGELOG.md +++ b/plugins/relay-global-id/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-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 cb7e300..e014f27 100644 --- a/plugins/relay-global-id/package.json +++ b/plugins/relay-global-id/package.json @@ -1,6 +1,6 @@ { "name": "sltx-nexus-plugin-relay-global-id", - "version": "0.2.1", + "version": "0.3.0", "description": "Adds t.relayGlobalId to the schema builder", "keywords": [ "nexus", diff --git a/plugins/relay-mutation/CHANGELOG.md b/plugins/relay-mutation/CHANGELOG.md index bb75885..24db705 100644 --- a/plugins/relay-mutation/CHANGELOG.md +++ b/plugins/relay-mutation/CHANGELOG.md @@ -3,6 +3,26 @@ 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 + +- 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 38b1233..6f5225b 100644 --- a/plugins/relay-mutation/package.json +++ b/plugins/relay-mutation/package.json @@ -1,6 +1,6 @@ { "name": "sltx-nexus-plugin-relay-mutation", - "version": "0.2.1", + "version": "0.3.0", "description": "Adds relayMutation(field, config) method to the nexus/schema builder to create Relay compatible mutations", "keywords": [ "nexus", 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 5dfde23..e5e88fb 100644 --- a/plugins/relay-node-interface/package.json +++ b/plugins/relay-node-interface/package.json @@ -1,6 +1,6 @@ { "name": "sltx-nexus-plugin-relay-node-interface", - "version": "0.2.0", + "version": "0.3.0", "description": "Creates the Relay Node interface and add node/nodes fields to the Query type", "keywords": [ "nexus", From a3ea29fb11664af0189ec5924391f3d02fef2033 Mon Sep 17 00:00:00 2001 From: Bastian Kistner Date: Sat, 5 Jun 2021 15:13:30 +0200 Subject: [PATCH 4/7] fix types --- plugins/relay-mutation/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay-mutation/src/index.ts b/plugins/relay-mutation/src/index.ts index fb08ac5..875169b 100644 --- a/plugins/relay-mutation/src/index.ts +++ b/plugins/relay-mutation/src/index.ts @@ -49,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 From 7324b15b8d6324c556a7d6ad873c532cc3f46f43 Mon Sep 17 00:00:00 2001 From: Bastian Kistner Date: Sat, 5 Jun 2021 15:13:54 +0200 Subject: [PATCH 5/7] Publish - sltx-nexus-plugin-relay-mutation@0.3.1 --- plugins/relay-mutation/CHANGELOG.md | 4 ++++ plugins/relay-mutation/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/relay-mutation/CHANGELOG.md b/plugins/relay-mutation/CHANGELOG.md index 24db705..b0ddf6f 100644 --- a/plugins/relay-mutation/CHANGELOG.md +++ b/plugins/relay-mutation/CHANGELOG.md @@ -3,6 +3,10 @@ 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 diff --git a/plugins/relay-mutation/package.json b/plugins/relay-mutation/package.json index 6f5225b..c93a5ee 100644 --- a/plugins/relay-mutation/package.json +++ b/plugins/relay-mutation/package.json @@ -1,6 +1,6 @@ { "name": "sltx-nexus-plugin-relay-mutation", - "version": "0.3.0", + "version": "0.3.1", "description": "Adds relayMutation(field, config) method to the nexus/schema builder to create Relay compatible mutations", "keywords": [ "nexus", From 8872e78df0c3727a3defaead3d03f151670c7f18 Mon Sep 17 00:00:00 2001 From: Bastian Kistner Date: Sat, 5 Jun 2021 15:15:01 +0200 Subject: [PATCH 6/7] fix --- plugins/relay-global-id/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From 3a61bcf27940ab5708251a5e921c909fcc532046 Mon Sep 17 00:00:00 2001 From: Bastian Kistner Date: Sat, 5 Jun 2021 15:15:24 +0200 Subject: [PATCH 7/7] Publish - sltx-nexus-plugin-relay-global-id@0.3.1 --- plugins/relay-global-id/CHANGELOG.md | 8 ++++++++ plugins/relay-global-id/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/relay-global-id/CHANGELOG.md b/plugins/relay-global-id/CHANGELOG.md index b810393..51657cc 100644 --- a/plugins/relay-global-id/CHANGELOG.md +++ b/plugins/relay-global-id/CHANGELOG.md @@ -3,6 +3,14 @@ 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) diff --git a/plugins/relay-global-id/package.json b/plugins/relay-global-id/package.json index e014f27..fad79ab 100644 --- a/plugins/relay-global-id/package.json +++ b/plugins/relay-global-id/package.json @@ -1,6 +1,6 @@ { "name": "sltx-nexus-plugin-relay-global-id", - "version": "0.3.0", + "version": "0.3.1", "description": "Adds t.relayGlobalId to the schema builder", "keywords": [ "nexus",