@graphcommerce/react-hook-form 3.0.0 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
8
+ Thanks [@paales](https://github.com/paales)! - made packages public
9
+
10
+ * [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
11
+ [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
12
+ Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
13
+
14
+ ## 3.0.2
15
+
16
+ ### Patch Changes
17
+
18
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
19
+ [`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7)
20
+ Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and
21
+ `ApolloErrorSnackbar` to the ecommerce-ui package.
22
+
23
+ Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from
24
+ `magento-graphcms` example.
25
+
26
+ Removed dependency an `@graphcommerce/react-hook-form` from `magento-graphcms` example.
27
+
28
+ Added dependency `@graphcommerce/ecommerce-ui` from `magento-graphcms` example.
29
+
30
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
31
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
32
+ Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
33
+ `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
34
+ duplicate packages in the node_modules folders.
35
+
36
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
37
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
38
+ Thanks [@paales](https://github.com/paales)! - Upgraded to
39
+ [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
40
+ implementing
41
+ [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
42
+ soon.
43
+
44
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
45
+ frontend to be able to revalidate pages manually.
46
+
47
+ ## 3.0.1
48
+
49
+ ### Patch Changes
50
+
51
+ - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
52
+ Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
53
+ so that the packages link to back to the website and repository
54
+
3
55
  ## 3.0.0
4
56
 
5
57
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@graphcommerce/react-hook-form",
3
- "version": "3.0.0",
3
+ "homepage": "https://www.graphcommerce.org/",
4
+ "repository": "github:graphcommerce-org/graphcommerce",
5
+ "version": "3.0.3",
4
6
  "sideEffects": false,
5
7
  "engines": {
6
8
  "node": "14.x"
@@ -13,16 +15,17 @@
13
15
  }
14
16
  },
15
17
  "devDependencies": {
16
- "@graphcommerce/eslint-config-pwa": "^4.0.0",
17
- "@graphcommerce/prettier-config-pwa": "^4.0.0",
18
- "@graphcommerce/typescript-config-pwa": "^4.0.0",
19
- "@playwright/test": "^1.18.1"
18
+ "@graphcommerce/eslint-config-pwa": "^4.0.3",
19
+ "@graphcommerce/prettier-config-pwa": "^4.0.2",
20
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
21
+ "@playwright/test": "^1.19.1"
20
22
  },
21
23
  "dependencies": {
24
+ "@apollo/client": "^3.5.9",
22
25
  "graphql": "^16.3.0",
23
26
  "react": "^17.0.2",
24
27
  "react-dom": "^17.0.2",
25
- "react-hook-form": "7.26.1",
26
- "type-fest": "^2.11.2"
28
+ "react-hook-form": "7.27.1",
29
+ "type-fest": "^2.12.0"
27
30
  }
28
31
  }
@@ -1,4 +1,4 @@
1
- import { ApolloError } from '@graphcommerce/graphql'
1
+ import { ApolloError } from '@apollo/client'
2
2
  import React, { useContext, useEffect } from 'react'
3
3
  import { isFormGqlOperation } from '../useFormGqlMutation'
4
4
  import { composedFormContext } from './context'
@@ -1,4 +1,4 @@
1
- import { ApolloError } from '@graphcommerce/graphql'
1
+ import { ApolloError } from '@apollo/client'
2
2
  import { FieldValues, FormState, UseFormReturn } from 'react-hook-form'
3
3
  import { SetOptional } from 'type-fest'
4
4
 
@@ -5,7 +5,7 @@ import {
5
5
  useApolloClient,
6
6
  MutationTuple,
7
7
  ApolloError,
8
- } from '@graphcommerce/graphql'
8
+ } from '@apollo/client'
9
9
  import { UseFormProps, UseFormReturn, UnpackNestedValue, DeepPartial } from 'react-hook-form'
10
10
  import diff from './diff'
11
11
  import { useGqlDocumentHandler, UseGqlDocumentHandler } from './useGqlDocumentHandler'
@@ -1,4 +1,4 @@
1
- import { MutationHookOptions, TypedDocumentNode, useMutation } from '@graphcommerce/graphql'
1
+ import { MutationHookOptions, TypedDocumentNode, useMutation } from '@apollo/client'
2
2
  import { useForm, UseFormReturn } from 'react-hook-form'
3
3
  import { useFormGql, UseFormGqlMethods, UseFormGraphQlOptions } from './useFormGql'
4
4
  import { useFormMuiRegister, UseMuiFormRegister } from './useFormMuiRegister'
@@ -1,4 +1,4 @@
1
- import { LazyQueryHookOptions, TypedDocumentNode } from '@graphcommerce/graphql'
1
+ import { LazyQueryHookOptions, TypedDocumentNode } from '@apollo/client'
2
2
  import { useForm } from 'react-hook-form'
3
3
  import { useFormGql, UseFormGraphQlOptions } from './useFormGql'
4
4
  import { UseFormGqlMutationReturn } from './useFormGqlMutation'
@@ -1,4 +1,4 @@
1
- import { TypedDocumentNode } from '@graphcommerce/graphql'
1
+ import { TypedDocumentNode } from '@apollo/client'
2
2
  import {
3
3
  DefinitionNode,
4
4
  OperationDefinitionNode,
@@ -5,7 +5,7 @@ import {
5
5
  QueryLazyOptions,
6
6
  TypedDocumentNode,
7
7
  useLazyQuery,
8
- } from '@graphcommerce/graphql'
8
+ } from '@apollo/client'
9
9
  import { useEffect, useRef } from 'react'
10
10
  import { Promisable } from 'type-fest'
11
11