Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packages": ["plugins/*"],
"packages": ["plugins/relay-global-id", "plugins/relay-mutation", "plugins/relay-node-interface"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
Expand Down
35 changes: 35 additions & 0 deletions plugins/relay-global-id/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions plugins/relay-global-id/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/relay-global-id/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
24 changes: 24 additions & 0 deletions plugins/relay-mutation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions plugins/relay-mutation/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion plugins/relay-mutation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export type RelayMutationNexusFieldConfig<
TypeName extends string = any,
FieldName extends string = any
> = {
description?: string
inputFields?: (
t: core.InputDefinitionBlock<core.GetGen3<'fieldTypeNames', TypeName, FieldName>>,
) => void
Expand All @@ -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
Expand Down
27 changes: 27 additions & 0 deletions plugins/relay-node-interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions plugins/relay-node-interface/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down