@graphql-yoga/plugin-response-cache 3.8.0 → 3.8.1-alpha-20240701184805-40467cd7
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 +2 -2
- package/package.json +2 -2
- package/typings/index.d.cts +2 -2
- package/typings/index.d.ts +2 -2
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createInMemoryCache = exports.
|
|
3
|
+
exports.createInMemoryCache = exports.hashSHA256 = exports.cacheControlDirective = void 0;
|
|
4
|
+
exports.useResponseCache = useResponseCache;
|
|
4
5
|
const response_cache_1 = require("@envelop/response-cache");
|
|
5
6
|
var response_cache_2 = require("@envelop/response-cache");
|
|
6
7
|
Object.defineProperty(exports, "cacheControlDirective", { enumerable: true, get: function () { return response_cache_2.cacheControlDirective; } });
|
|
@@ -126,5 +127,4 @@ function useResponseCache(options) {
|
|
|
126
127
|
},
|
|
127
128
|
};
|
|
128
129
|
}
|
|
129
|
-
exports.useResponseCache = useResponseCache;
|
|
130
130
|
exports.createInMemoryCache = response_cache_1.createInMemoryCache;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-response-cache",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1-alpha-20240701184805-40467cd7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^15.2.0 || ^16.0.0",
|
|
7
|
-
"graphql-yoga": "^5.6.
|
|
7
|
+
"graphql-yoga": "^5.6.1-alpha-20240701184805-40467cd7"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@envelop/response-cache": "^6.1.2"
|
package/typings/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecutionResult } from 'graphql';
|
|
2
2
|
import { Maybe, Plugin, PromiseOrValue } from 'graphql-yoga';
|
|
3
|
-
import { BuildResponseCacheKeyFunction as EnvelopBuildResponseCacheKeyFunction, Cache as EnvelopCache, ResponseCacheExtensions as EnvelopResponseCacheExtensions, UseResponseCacheParameter as UseEnvelopResponseCacheParameter } from '@envelop/response-cache';
|
|
3
|
+
import { BuildResponseCacheKeyFunction as EnvelopBuildResponseCacheKeyFunction, Cache as EnvelopCache, createInMemoryCache as envelopCreateInMemoryCache, ResponseCacheExtensions as EnvelopResponseCacheExtensions, UseResponseCacheParameter as UseEnvelopResponseCacheParameter } from '@envelop/response-cache';
|
|
4
4
|
export { cacheControlDirective, hashSHA256 } from '@envelop/response-cache';
|
|
5
5
|
export type BuildResponseCacheKeyFunction = (params: Omit<Parameters<EnvelopBuildResponseCacheKeyFunction>[0], 'context'> & {
|
|
6
6
|
request: Request;
|
|
@@ -22,4 +22,4 @@ export interface Cache extends EnvelopCache {
|
|
|
22
22
|
get(key: string): PromiseOrValue<ExecutionResult<Record<string, unknown>, ResponseCachePluginExtensions> | undefined>;
|
|
23
23
|
}
|
|
24
24
|
export declare function useResponseCache(options: UseResponseCacheParameter): Plugin;
|
|
25
|
-
export declare const createInMemoryCache: (
|
|
25
|
+
export declare const createInMemoryCache: (...args: Parameters<typeof envelopCreateInMemoryCache>) => Cache;
|
package/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecutionResult } from 'graphql';
|
|
2
2
|
import { Maybe, Plugin, PromiseOrValue } from 'graphql-yoga';
|
|
3
|
-
import { BuildResponseCacheKeyFunction as EnvelopBuildResponseCacheKeyFunction, Cache as EnvelopCache, ResponseCacheExtensions as EnvelopResponseCacheExtensions, UseResponseCacheParameter as UseEnvelopResponseCacheParameter } from '@envelop/response-cache';
|
|
3
|
+
import { BuildResponseCacheKeyFunction as EnvelopBuildResponseCacheKeyFunction, Cache as EnvelopCache, createInMemoryCache as envelopCreateInMemoryCache, ResponseCacheExtensions as EnvelopResponseCacheExtensions, UseResponseCacheParameter as UseEnvelopResponseCacheParameter } from '@envelop/response-cache';
|
|
4
4
|
export { cacheControlDirective, hashSHA256 } from '@envelop/response-cache';
|
|
5
5
|
export type BuildResponseCacheKeyFunction = (params: Omit<Parameters<EnvelopBuildResponseCacheKeyFunction>[0], 'context'> & {
|
|
6
6
|
request: Request;
|
|
@@ -22,4 +22,4 @@ export interface Cache extends EnvelopCache {
|
|
|
22
22
|
get(key: string): PromiseOrValue<ExecutionResult<Record<string, unknown>, ResponseCachePluginExtensions> | undefined>;
|
|
23
23
|
}
|
|
24
24
|
export declare function useResponseCache(options: UseResponseCacheParameter): Plugin;
|
|
25
|
-
export declare const createInMemoryCache: (
|
|
25
|
+
export declare const createInMemoryCache: (...args: Parameters<typeof envelopCreateInMemoryCache>) => Cache;
|