Skip to content

Commit

Permalink
docs(migration): add v2.2.5 to v2.3.0 (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Oct 22, 2022
1 parent c190283 commit 8523820
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Migration Guide

## v2.2.5 to v2.3.0

There is a braking change associated to the security update.

### Basic Auth Middleware and Bearer Auth Middleware

If you are using Basic Auth and Bearer Auth in your Handler (nested), change as follows:

```ts
app.use('/auth/*', async (c, next) => {
const auth = basicAuth({ username: c.env.USERNAME, password: c.env.PASSWORD })
return auth(c, next) // Older: `await auth(c, next)`
})
```

## v2.0.9 to v2.1.0

There are two BREAKING CHANGES.
Expand Down

0 comments on commit 8523820

Please sign in to comment.