Unverified Commit 6aab3eca authored by Hong Minhee's avatar Hong Minhee
Browse files

`WorkersKvStore` class

parent 94f077ee
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -41,13 +41,18 @@ To be released. Note that 1.6.0 was skipped due to a mistake in the versioning.
     -  Added `HttpMessageSignaturesSpecDeterminer` interface.
     -  Added `--first-knock` option to `fedify lookup` command.

 -  Added `WorkersKvStore` class.  [[#233], [#241], [#242]]

 -  The minimum supported version of Node.js is now 22.0.0.

[RFC 9421]: https://www.rfc-editor.org/rfc/rfc9421
[#208]: https://github.com/fedify-dev/fedify/issues/208
[#227]: https://github.com/fedify-dev/fedify/issues/227
[#233]: https://github.com/fedify-dev/fedify/issues/233
[#235]: https://github.com/fedify-dev/fedify/pull/235
[#237]: https://github.com/fedify-dev/fedify/pull/237
[#241]: https://github.com/fedify-dev/fedify/issues/241
[#242]: https://github.com/fedify-dev/fedify/pull/242


Version 1.5.3
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ const mf = new Miniflare({
  modules: [
    { type: "ESModule", path: join(import.meta.dirname ?? ".", "server.js") },
  ],
  kvNamespaces: ["KV1", "KV2", "KV3"],
  async outboundService(request: Request) {
    const url = new URL(request.url);
    if (url.hostname.endsWith(".test")) {
+5 −5
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ await configure({
});

export default {
  async fetch(request: Request): Promise<Response> {
  async fetch(request: Request, env: unknown): Promise<Response> {
    if (request.method === "GET") {
      return new Response(
        JSON.stringify(tests.map(({ name }) => name)),
@@ -98,7 +98,7 @@ export default {
      }
      logs.splice(0, logs.length); // Clear logs
      try {
        await fn({ name, origin: "", step });
        await fn({ name, origin: "", step, env });
      } catch (e) {
        failed ??= e;
      }
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
    "./sig": "./sig/mod.ts",
    "./vocab": "./vocab/mod.ts",
    "./webfinger": "./webfinger/mod.ts",
    "./x/cfworkers": "./x/cfworkers.ts",
    "./x/denokv": "./x/denokv.ts",
    "./x/fresh": "./x/fresh.ts",
    "./x/hono": "./x/hono.ts",
@@ -18,6 +19,7 @@
  },
  "imports": {
    "@cfworker/json-schema": "npm:@cfworker/json-schema@^4.1.1",
    "@cloudflare/workers-types": "npm:@cloudflare/workers-types@^4.20250529.0",
    "@es-toolkit/es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.38.0",
    "@hongminhee/deno-mock-fetch": "jsr:@hongminhee/deno-mock-fetch@^0.3.2",
    "@hugoalh/http-header-link": "jsr:@hugoalh/http-header-link@^1.0.2",
+1 −1
Original line number Diff line number Diff line
@@ -1233,7 +1233,7 @@ test("handleInbox()", async () => {

  onNotFoundCalled = null;
  const signedRequest = await signRequest(
    unsignedRequest.clone(),
    unsignedRequest.clone() as Request,
    rsaPrivateKey3,
    rsaPublicKey3.id!,
  );
Loading