From b41595f0f5bf8823d8d9b24e09fd958eeb11ffdb Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sat, 3 Sep 2022 23:10:29 +0900 Subject: [PATCH 1/2] bump up Hono version --- README.md | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e015c20d..28fc42a0 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ const config: VerifyFirebaseAuthConfig = { } // Or you can specify here the extended VerifyFirebaseAuthEnv type. -const app = new Hono() +const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>() // set middleware app.use("*", verifyFirebaseAuth(config)); diff --git a/package.json b/package.json index 6ea97763..85f32806 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ }, "dependencies": { "firebase-auth-cloudflare-workers": "^1.0.0", - "hono": "^2.0.5" + "hono": "^2.1.3" }, "devDependencies": { "@cloudflare/workers-types": "^3.14.1", diff --git a/yarn.lock b/yarn.lock index 73be20e6..d945a76d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3245,10 +3245,10 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" -hono@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/hono/-/hono-2.0.5.tgz#a40355f5fddb287f631c3953828b834c2775cb45" - integrity sha512-Vuwj2Qbk94y6NSTzaMo2eYHLyX0OpKmTONKOhUYUK6Lx6L/IRsDJ37aBY+7wi3oli7Sez792cAuZ5vdSt/Qt+g== +hono@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/hono/-/hono-2.1.3.tgz#51cc616ffadd5ad279ca3129f1328d77fa180c7d" + integrity sha512-+GV1f19Vx4E76+8cYGUJit0pxu1oA2lvUE3ctxf4eg3Ov7OlmldZhdnH5EjLNzbgQOcBo8wZV6izRa5lHa4fmg== html-escaper@^2.0.0: version "2.0.2" From 145fcca0f0f77a2416c8e9efd97338301ca72b59 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sat, 3 Sep 2022 23:59:41 +0900 Subject: [PATCH 2/2] fix test --- test/index.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index fc6eb0d6..179ac678 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -135,7 +135,7 @@ describe("verifyFirebaseAuth middleware", () => { }, ], ])("%s", async (_, { headerKey, env, config, wantStatus }) => { - const app = new Hono(); + const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>(); resetAuth(); @@ -167,7 +167,7 @@ describe("verifyFirebaseAuth middleware", () => { const getSpy = jest.spyOn(nopKeyStore, "get"); const putSpy = jest.spyOn(nopKeyStore, "put"); - const app = new Hono(); + const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>(); resetAuth(); @@ -202,7 +202,7 @@ describe("verifyFirebaseAuth middleware", () => { const testingJWT = generateDummyJWT(); const nopKeyStore = new NopKeyStore(); - const app = new Hono(); + const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>(); resetAuth();