@graphql-hive/apollo 0.46.0-alpha-20260106170311-3d224b6d153915707423bfdb5b041ee51b5aacd4 → 0.46.0-alpha-20260106173600-b3d81deaaab2bd5bb6d503a3980237e1a297f360
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/cjs/index.js +3 -13
- package/cjs/version.js +1 -1
- package/esm/index.js +3 -13
- package/esm/version.js +1 -1
- package/package.json +2 -2
- package/typings/version.d.cts +1 -1
- package/typings/version.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -122,14 +122,8 @@ function createHive(clientOrOptions, ctx) {
|
|
|
122
122
|
? getLoggerFromContext(ctx)
|
|
123
123
|
: undefined;
|
|
124
124
|
return (0, core_1.createHive)(Object.assign(Object.assign({ logger: contextLogger }, clientOrOptions), { agent: Object.assign({ name: 'hive-client-apollo', version: version_js_1.version }, clientOrOptions.agent), experimental__persistedDocuments: clientOrOptions.experimental__persistedDocuments
|
|
125
|
-
? Object.assign(Object.assign({}, clientOrOptions.experimental__persistedDocuments), { layer2Cache:
|
|
126
|
-
|
|
127
|
-
const userL2Config = (_a = clientOrOptions.experimental__persistedDocuments) === null || _a === void 0 ? void 0 : _a.layer2Cache;
|
|
128
|
-
if (persistedDocumentsCache) {
|
|
129
|
-
return Object.assign({ cache: persistedDocumentsCache }, (userL2Config || {}));
|
|
130
|
-
}
|
|
131
|
-
return userL2Config;
|
|
132
|
-
})() }) : undefined }));
|
|
125
|
+
? Object.assign(Object.assign({}, clientOrOptions.experimental__persistedDocuments), { layer2Cache: persistedDocumentsCache || clientOrOptions.experimental__persistedDocuments.layer2Cache
|
|
126
|
+
? Object.assign({ cache: persistedDocumentsCache }, (clientOrOptions.experimental__persistedDocuments.layer2Cache || {})) : undefined }) : undefined }));
|
|
133
127
|
}
|
|
134
128
|
function useHive(clientOrOptions) {
|
|
135
129
|
let hive;
|
|
@@ -226,11 +220,7 @@ function useHive(clientOrOptions) {
|
|
|
226
220
|
typeof context.request.http.body.documentId === 'string') {
|
|
227
221
|
persistedDocumentHash = context.request.http.body.documentId;
|
|
228
222
|
try {
|
|
229
|
-
|
|
230
|
-
const contextValue = isLegacyV3
|
|
231
|
-
? context.context
|
|
232
|
-
: context.contextValue;
|
|
233
|
-
const document = await hive.experimental__persistedDocuments.resolve(context.request.http.body.documentId, { waitUntil: contextValue === null || contextValue === void 0 ? void 0 : contextValue.waitUntil });
|
|
223
|
+
const document = await hive.experimental__persistedDocuments.resolve(context.request.http.body.documentId);
|
|
234
224
|
if (document) {
|
|
235
225
|
context.request.query = document;
|
|
236
226
|
}
|
package/cjs/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.version = void 0;
|
|
4
|
-
exports.version = '0.46.0-alpha-
|
|
4
|
+
exports.version = '0.46.0-alpha-20260106173600-b3d81deaaab2bd5bb6d503a3980237e1a297f360';
|
package/esm/index.js
CHANGED
|
@@ -112,14 +112,8 @@ export function createHive(clientOrOptions, ctx) {
|
|
|
112
112
|
? getLoggerFromContext(ctx)
|
|
113
113
|
: undefined;
|
|
114
114
|
return createHiveClient(Object.assign(Object.assign({ logger: contextLogger }, clientOrOptions), { agent: Object.assign({ name: 'hive-client-apollo', version }, clientOrOptions.agent), experimental__persistedDocuments: clientOrOptions.experimental__persistedDocuments
|
|
115
|
-
? Object.assign(Object.assign({}, clientOrOptions.experimental__persistedDocuments), { layer2Cache:
|
|
116
|
-
|
|
117
|
-
const userL2Config = (_a = clientOrOptions.experimental__persistedDocuments) === null || _a === void 0 ? void 0 : _a.layer2Cache;
|
|
118
|
-
if (persistedDocumentsCache) {
|
|
119
|
-
return Object.assign({ cache: persistedDocumentsCache }, (userL2Config || {}));
|
|
120
|
-
}
|
|
121
|
-
return userL2Config;
|
|
122
|
-
})() }) : undefined }));
|
|
115
|
+
? Object.assign(Object.assign({}, clientOrOptions.experimental__persistedDocuments), { layer2Cache: persistedDocumentsCache || clientOrOptions.experimental__persistedDocuments.layer2Cache
|
|
116
|
+
? Object.assign({ cache: persistedDocumentsCache }, (clientOrOptions.experimental__persistedDocuments.layer2Cache || {})) : undefined }) : undefined }));
|
|
123
117
|
}
|
|
124
118
|
export function useHive(clientOrOptions) {
|
|
125
119
|
let hive;
|
|
@@ -216,11 +210,7 @@ export function useHive(clientOrOptions) {
|
|
|
216
210
|
typeof context.request.http.body.documentId === 'string') {
|
|
217
211
|
persistedDocumentHash = context.request.http.body.documentId;
|
|
218
212
|
try {
|
|
219
|
-
|
|
220
|
-
const contextValue = isLegacyV3
|
|
221
|
-
? context.context
|
|
222
|
-
: context.contextValue;
|
|
223
|
-
const document = await hive.experimental__persistedDocuments.resolve(context.request.http.body.documentId, { waitUntil: contextValue === null || contextValue === void 0 ? void 0 : contextValue.waitUntil });
|
|
213
|
+
const document = await hive.experimental__persistedDocuments.resolve(context.request.http.body.documentId);
|
|
224
214
|
if (document) {
|
|
225
215
|
context.request.query = document;
|
|
226
216
|
}
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.46.0-alpha-
|
|
1
|
+
export const version = '0.46.0-alpha-20260106173600-b3d81deaaab2bd5bb6d503a3980237e1a297f360';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/apollo",
|
|
3
|
-
"version": "0.46.0-alpha-
|
|
3
|
+
"version": "0.46.0-alpha-20260106173600-b3d81deaaab2bd5bb6d503a3980237e1a297f360",
|
|
4
4
|
"description": "GraphQL Hive + Apollo Server",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@graphql-hive/logger": "^1.0.9",
|
|
12
|
-
"@graphql-hive/core": "0.19.0-alpha-
|
|
12
|
+
"@graphql-hive/core": "0.19.0-alpha-20260106173600-b3d81deaaab2bd5bb6d503a3980237e1a297f360"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
package/typings/version.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.46.0-alpha-
|
|
1
|
+
export declare const version = "0.46.0-alpha-20260106173600-b3d81deaaab2bd5bb6d503a3980237e1a297f360";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/typings/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.46.0-alpha-
|
|
1
|
+
export declare const version = "0.46.0-alpha-20260106173600-b3d81deaaab2bd5bb6d503a3980237e1a297f360";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|