Skip to content

Commit e5e197c

Browse files
committed
Pin to the latest compatibility date for Cloudflare workers
This change applies to the kv-response-cache plugin
1 parent cae6868 commit e5e197c

File tree

7 files changed

+22
-17
lines changed

7 files changed

+22
-17
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@envelop/response-cache-cloudflare-kv': minor
3+
---
4+
5+
Pin response-cache-cloudflare-kv to the latest compatibility date for Cloudflare worker types

packages/plugins/response-cache-cloudflare-kv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"typings": "dist/typings/index.d.ts",
5252
"peerDependencies": {
53-
"@cloudflare/workers-types": "^4.20231121.0",
53+
"@cloudflare/workers-types": "^4.20240512.0",
5454
"@envelop/response-cache": "^6.1.2",
5555
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
5656
},

packages/plugins/response-cache-cloudflare-kv/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ExecutionResult } from 'graphql';
2-
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types';
2+
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types/2023-07-01';
33
import type { Cache, CacheEntityRecord } from '@envelop/response-cache';
44
import { buildOperationKey } from './cache-key.js';
55
import { invalidate } from './invalidate.js';

packages/plugins/response-cache-cloudflare-kv/test/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ExecutionResult } from 'graphql';
2-
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types';
2+
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types/2023-07-01';
33
import type { Cache } from '@envelop/response-cache';
44
import { buildOperationKey } from '../src/cache-key.js';
55
import { createKvCache, type KvCacheConfig } from '../src/index.js';

packages/plugins/response-cache-cloudflare-kv/test/invalidate.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ExecutionResult } from 'graphql';
2-
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types';
2+
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types/2023-07-01';
33
import { buildEntityKey, buildOperationKey } from '../src/cache-key.js';
44
import { KvCacheConfig } from '../src/index.js';
55
import { getAllKvKeysForPrefix, invalidate } from '../src/invalidate.js';

packages/plugins/response-cache-cloudflare-kv/test/set.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ExecutionResult } from 'graphql';
2-
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types';
2+
import type { ExecutionContext, KVNamespace } from '@cloudflare/workers-types/2023-07-01';
33
import { buildEntityKey, buildOperationKey } from '../src/cache-key.js';
44
import { KvCacheConfig } from '../src/index.js';
55
import { getAllKvKeysForPrefix } from '../src/invalidate.js';

pnpm-lock.yaml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)