Releases: storyblok/pluginsblok
@storyblok/[email protected]
What's Changed
- chore: update the region-helper package to 1.3.0 by @demetriusfeijoo in storyblok/app-extension-auth#87
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- feat: return with the getAll method by @demetriusfeijoo in storyblok/app-extension-auth#77
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- fix: query params inference method by @demetriusfeijoo in storyblok/app-extension-auth#70
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- feat(shape-940): upgrade region helper + adding possibility to change the auth endpoint by @ademarCardoso in storyblok/app-extension-auth#60
New Contributors
- @ademarCardoso made their first contribution in storyblok/app-extension-auth#60
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- chore(deps): upgrade dependencies by @Dawntraoz in storyblok/app-extension-auth#57
- chore(deps): downgrade node engine, keep node v22 for development and update docs by @Dawntraoz in storyblok/app-extension-auth#59
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- Create LICENSE by @edodusi in storyblok/app-extension-auth#46
- chore: add license to package.json by @edodusi in storyblok/app-extension-auth#49
- Pass client secret to cookie adapter by @dovca in storyblok/app-extension-auth#48
- Revert dependencies upgrade (Node version back to 14 from 22)
New Contributors
- @edodusi made their first contribution in storyblok/app-extension-auth#46
- @dovca made their first contribution in storyblok/app-extension-auth#48
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- Create LICENSE by @edodusi in storyblok/app-extension-auth#46
- chore: add license to package.json by @edodusi in storyblok/app-extension-auth#49
- Pass client secret to cookie adapter by @dovca in storyblok/app-extension-auth#48
- chore(deps): upgrade dependencies by @Dawntraoz in storyblok/app-extension-auth#52
- chore: release @storyblok/[email protected] by @Dawntraoz in storyblok/app-extension-auth#53
New Contributors
- @edodusi made their first contribution in storyblok/app-extension-auth#46
- @dovca made their first contribution in storyblok/app-extension-auth#48
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
Migrating v1 to v2
The @storyblok/app-extension-auth v1 stored the access token in a cookie. However, in a future version of v2, the library will offer an adapter pattern, allowing you to store the access token elsewhere, such as in a dedicated database. The following breaking changes abstract the code to make this transition easier in the near future:
sessionCookieStore → getSessionStore
// from
import { sessionCookieStore } from '@storyblok/app-extension-auth'
// to
import { getSessionStore } from '@storyblok/app-extension-auth'getSessionStore
const sessionStore = getSessionStore(authHandlerParams)({
req: event.node.req,
res: event.node.res,
})The sessionStore created by sessionCookieStore now has three methods: get, put, and remove. The getAll method is no longer provided. If you believe the getAll method is still useful for your use case, please let us know by opening a GitHub issue.
The put and remove methods now return a Promise<boolean> instead of a Promise<void>.
AuthHandlerParams
import { authHandler } from '@storyblok/app-extension-auth'
const params: AuthHandlerParams = {
// ...
}
authHandler(params)The parameter AuthHandlerParams['cookieName'] has been renamed to AuthHandlerParams['sessionKey'].
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- feat: moving cookie related logic to cookieAdapter.ts by @BibiSebi in storyblok/app-extension-auth#42
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]
@storyblok/[email protected]
What's Changed
- feat: expire cookie after 1 week by @eunjae-lee in storyblok/app-extension-auth#41
- feat: add
inferSessionQueryby @eunjae-lee in storyblok/app-extension-auth#43 - docs: add migration section for v2 by @eunjae-lee in storyblok/app-extension-auth#40
Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]