- 598cca4: Properly minify modules Move towards ESM first with CommonJS as secondary output
- Add artifacts to NPM release
-
Use middleware responses instead of api page redirect
This removes the
createApiPage
export and uses Middleware responses to serve a 401 when basic authentication fails. This requiresnext
>=13.1.This is a much cleaner and less hacky approach to return the correct status code to a browser.
⚠️ This is a breaking change, please use v2 if you are belownext
13.1
- BREAKING CHANGE: Removes SSR Middleware
- BREAKING CHANGE: Updates Next.js middleware to use API pages for 401 error message
- Adds first version of the Next.js middleware
- fix(middleware): return true when request object does not have a url
- fix(auth): fix empty credentials returning valid authorization
- fix(middleware): allow optional use of options object
- chore: update all dependencies