This is the first release candidate of 0.5.0
.
Breaking change: useSession
was renamed to useAuth
The useSession
composable is deprecated. useSession
is now called useAuth
:
const { status } = useAuth()
To upgrade:
- install the latest module version
- replace all
useSession
composable calls withuseAuth
- Clean the nuxt cache (
rm -r .nuxt
) so that it correctly picks up the renaming
Addition: Guest Mode
You can now use guest mode on your pages:
definePageMeta({
auth: {
unauthenticatedOnly: true,
navigateAuthenticatedTo: '/profile'
}
})
More extended release notes will follow with the general release.
What's Changed
- Docs: Fix broken glossary links by @pascalwengerter in #285
- feat: Rename to use useAuth, upgrade deps by @BracketJohn in #302
- Add guest mode by @BracketJohn in #304
- feat: switch to pnpm for development by @BracketJohn in #305
- release: 0.5.0-rc.0 by @BracketJohn in #306
New Contributors
- @pascalwengerter made their first contribution in #285
Full Changelog: 0.4.4...0.5.0-rc.0