@contentful/field-editor-shared 4.1.0 → 4.1.2-canary.0
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/dist/cjs/queryClient.js
CHANGED
|
@@ -62,9 +62,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
62
62
|
}
|
|
63
63
|
return newObj;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
const RQ_MAJOR = parseInt(rqVersion ?? '4', 10);
|
|
67
|
-
const IS_V5 = RQ_MAJOR >= 5;
|
|
65
|
+
const IS_V5 = typeof _reactquery.QueryClient.prototype.setLogger !== 'function';
|
|
68
66
|
const clientContext = /*#__PURE__*/ _react.createContext(undefined);
|
|
69
67
|
let sharedQueryClientInstance;
|
|
70
68
|
function createDefaultQueryClient() {
|
package/dist/esm/queryClient.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { QueryClient, QueryClientProvider, useQuery as useRQv4, useQueryClient as useHostQueryClientV4 } from '@tanstack/react-query';
|
|
3
|
-
const
|
|
4
|
-
const RQ_MAJOR = parseInt(rqVersion ?? '4', 10);
|
|
5
|
-
const IS_V5 = RQ_MAJOR >= 5;
|
|
3
|
+
const IS_V5 = typeof QueryClient.prototype.setLogger !== 'function';
|
|
6
4
|
const clientContext = /*#__PURE__*/ React.createContext(undefined);
|
|
7
5
|
let sharedQueryClientInstance;
|
|
8
6
|
function createDefaultQueryClient() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-shared",
|
|
3
|
-
"version": "4.1.0",
|
|
3
|
+
"version": "4.1.2-canary.0+ecbe8dca",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"registry": "https://npm.pkg.github.com/"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "ecbe8dca52eb154743907f92397d76a4b819148d"
|
|
77
77
|
}
|