@txo/service-graphql-react 2.3.14 → 2.3.15
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,3 +1,10 @@
|
|
|
1
|
+
## [2.3.15](https://github.com/technology-studio/service-graphql-react/compare/v2.3.14...v2.3.15) (2023-03-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @apollo/client to ^3.7.10 ([a209bdd](https://github.com/technology-studio/service-graphql-react/commit/a209bdd430b740aea037f729ec67bb03430a7479))
|
|
7
|
+
|
|
1
8
|
## [2.3.14](https://github.com/technology-studio/service-graphql-react/compare/v2.3.13...v2.3.14) (2023-02-26)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* @Date: 2021-09-01T16:09:57+02:00
|
|
4
4
|
* @Copyright: Technology Studio
|
|
5
5
|
**/
|
|
6
|
-
import type { QueryHookOptions, TypedDocumentNode, QueryResult } from '@apollo/client';
|
|
6
|
+
import type { QueryHookOptions, TypedDocumentNode, QueryResult, OperationVariables } from '@apollo/client';
|
|
7
7
|
import type { Get } from 'type-fest';
|
|
8
8
|
import type { CallAttributes, ServiceProp } from '@txo/service-prop';
|
|
9
|
-
export type QueryServiceProp<ATTRIBUTES, DATA, MAPPED_DATA, CALL_ATTRIBUTES extends CallAttributes<ATTRIBUTES>> = Omit<ServiceProp<ATTRIBUTES, MAPPED_DATA, CALL_ATTRIBUTES>, 'call' | 'clear' | 'options' | 'clearException'> & {
|
|
9
|
+
export type QueryServiceProp<ATTRIBUTES extends OperationVariables, DATA, MAPPED_DATA, CALL_ATTRIBUTES extends CallAttributes<ATTRIBUTES>> = Omit<ServiceProp<ATTRIBUTES, MAPPED_DATA, CALL_ATTRIBUTES>, 'call' | 'clear' | 'options' | 'clearException'> & {
|
|
10
10
|
query: QueryResult<DATA, ATTRIBUTES>;
|
|
11
11
|
promiselessRefetch: (variables?: Partial<ATTRIBUTES>) => void;
|
|
12
12
|
};
|
|
13
|
-
type QueryOptions<DATA, ATTRIBUTES, DATA_PATH extends string> = {
|
|
13
|
+
type QueryOptions<DATA, ATTRIBUTES extends OperationVariables, DATA_PATH extends string> = {
|
|
14
14
|
options?: QueryHookOptions<DATA, ATTRIBUTES>;
|
|
15
15
|
dataPath: DATA_PATH;
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UseServiceQuery.js","sourceRoot":"","sources":["../../src/Hooks/UseServiceQuery.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,+BAMc;
|
|
1
|
+
{"version":3,"file":"UseServiceQuery.js","sourceRoot":"","sources":["../../src/Hooks/UseServiceQuery.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,+BAMc;AAQd,yCAEuB;AACvB,0DAA4B;AAO5B,kDAE0B;AAC1B,iEAA6D;AAC7D,gDAEyB;AACzB,yFAA+E;AAG/E,sDAAqD;AACrD,0DAAgD;AAChD,sDAAsD;AAEtD,IAAM,gBAAgB,GAAG,UAAC,KAAmB,EAAE,SAA8C,IAAa,OAAA,CACxG,IAAA,8BAAc,EAAC,IAAA,yBAAO,EAAC,KAAK,CAAC,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAC,CAChD,EAFyG,CAEzG,CAAA;AAcD,IAAM,uBAAuB,GAAG,UAAC,CAAiB,EAAE,CAAiB;IACnE,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,EAAE;QACzB,OAAO,KAAK,CAAA;KACb;IACD,IAAI,CAAC,CAAC,KAAK,CAAC,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OA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WAAA;KACV,CAAC,EANmB,CAMnB,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAA;AA/DY,QAAA,eAAe,mBA+D3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txo/service-graphql-react",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.15",
|
|
4
4
|
"description": "Technology Studio - Service graphql react",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"type-fest": "^3.6.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@apollo/client": "^3.7.
|
|
46
|
+
"@apollo/client": "^3.7.10",
|
|
47
47
|
"@txo-peer-dep/service-error-handler-react": "^1.2.2",
|
|
48
48
|
"@txo-peer-dep/service-graphql": "^3.2.2",
|
|
49
49
|
"graphql": "^16.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@apollo/client": "^3.7.
|
|
52
|
+
"@apollo/client": "^3.7.10",
|
|
53
53
|
"@commitlint/cli": "^17.4.4",
|
|
54
54
|
"@commitlint/config-conventional": "^17.4.4",
|
|
55
55
|
"@semantic-release/changelog": "^6.0.2",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@types/lodash.get": "^4.4.7",
|
|
63
63
|
"@types/lodash.set": "^4.3.7",
|
|
64
64
|
"@types/react": "^18.0.28",
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
66
|
-
"@typescript-eslint/parser": "^5.
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
66
|
+
"@typescript-eslint/parser": "^5.54.1",
|
|
67
67
|
"commitizen": "^4.3.0",
|
|
68
68
|
"concurrently": "^7.6.0",
|
|
69
|
-
"eslint": "^8.
|
|
70
|
-
"eslint-config-txo-typescript-react": "^1.0.
|
|
69
|
+
"eslint": "^8.35.0",
|
|
70
|
+
"eslint-config-txo-typescript-react": "^1.0.60",
|
|
71
71
|
"eslint-formatter-pretty": "^4.1.0",
|
|
72
72
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
73
73
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"eslint-plugin-redux-saga": "^1.3.2",
|
|
81
81
|
"graphql": "^16.6.0",
|
|
82
82
|
"husky": "^8.0.3",
|
|
83
|
-
"jest": "^29.
|
|
83
|
+
"jest": "^29.5.0",
|
|
84
84
|
"lint-staged": "^13.1.2",
|
|
85
85
|
"react": "^18.2.0",
|
|
86
86
|
"react-dom": "^18.2.0",
|
|
87
87
|
"redux-saga": "^1.2.2",
|
|
88
|
-
"rimraf": "^4.
|
|
89
|
-
"semantic-release": "^20.1.
|
|
90
|
-
"semantic-release-slack-bot": "^
|
|
88
|
+
"rimraf": "^4.3.0",
|
|
89
|
+
"semantic-release": "^20.1.1",
|
|
90
|
+
"semantic-release-slack-bot": "^4.0.0",
|
|
91
91
|
"ts-jest": "^29.0.5",
|
|
92
92
|
"typescript": "^4.9.5"
|
|
93
93
|
},
|
|
@@ -16,6 +16,7 @@ import type {
|
|
|
16
16
|
QueryHookOptions,
|
|
17
17
|
TypedDocumentNode,
|
|
18
18
|
QueryResult,
|
|
19
|
+
OperationVariables,
|
|
19
20
|
} from '@apollo/client'
|
|
20
21
|
import {
|
|
21
22
|
useQuery,
|
|
@@ -45,14 +46,14 @@ const calculateContext = (query: DocumentNode, variables: Record<string, unknown
|
|
|
45
46
|
serviceContext(getName(query), variables ?? {})
|
|
46
47
|
)
|
|
47
48
|
|
|
48
|
-
export type QueryServiceProp<ATTRIBUTES, DATA, MAPPED_DATA, CALL_ATTRIBUTES extends CallAttributes<ATTRIBUTES>> =
|
|
49
|
+
export type QueryServiceProp<ATTRIBUTES extends OperationVariables, DATA, MAPPED_DATA, CALL_ATTRIBUTES extends CallAttributes<ATTRIBUTES>> =
|
|
49
50
|
Omit<ServiceProp<ATTRIBUTES, MAPPED_DATA, CALL_ATTRIBUTES>, 'call' | 'clear' | 'options' | 'clearException'>
|
|
50
51
|
& {
|
|
51
52
|
query: QueryResult<DATA, ATTRIBUTES>,
|
|
52
53
|
promiselessRefetch: (variables?: Partial<ATTRIBUTES>) => void,
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
type QueryOptions<DATA, ATTRIBUTES, DATA_PATH extends string> = {
|
|
56
|
+
type QueryOptions<DATA, ATTRIBUTES extends OperationVariables, DATA_PATH extends string> = {
|
|
56
57
|
options?: QueryHookOptions<DATA, ATTRIBUTES>,
|
|
57
58
|
dataPath: DATA_PATH,
|
|
58
59
|
}
|