v0.8: User Import, Custom Translations
like-a-bause
released this
06 Jul 12:12
·
510 commits
to main
since this release
In this release we consolidated the version numbers of the hanko backend and hanko-elements and the frontend-sdk, so it's clear which components work together. On top of that we introduce several small features. Some of the highlights are:
- Custom translations for hanko-elements
- User import
- Improved events in hanko-elements
- Documentation for creating a nuxt app with hanko. The nuxt module can be found here. Thanks to @danielroe and @McPizza0
- New example: deno/fresh. Thanks to @tobihans
Migrating from hanko-elements v0.5.5 to v0.8.0
The "onSessionResumed" and "onSessionIsNotPresent" events have been removed. To determine the session validity, the frontend-sdk
can now be used as follows:
import {register} from "@teamhanko/hanko-elements";
const apiUrl = "...";
const {hanko} = await register(apiUrl);
const isValid = hanko.session.isValid(); // Performs a client-side check if the session is valid, returns a boolean.
const session = hanko.session.get(); // Returns an object containing the `userID`, `expirationSeconds` and the `jwt`.
What's Changed
- chore(deps): bump github.com/go-playground/validator/v10 from 10.13.0 to 10.14.1 in /backend by @dependabot in #820
- chore(deps-dev): bump eslint from 8.39.0 to 8.42.0 in /frontend by @dependabot in #821
- chore: fix typo by @danielroe in #822
- docs(social): fix apple guide typo, sign-in-with button wording by @lfleischmann in #824
- feat: update go version to 1.20 by @like-a-bause in #823
- chore(deps-dev): bump vite from 4.3.3 to 4.3.9 in /frontend by @dependabot in #826
- feat: introduce custom translations by @bjoern-m in #815
- test: improve webauthn handler test by @FreddyDevelop in #805
- chore(deps-dev): bump turbo from 1.8.3 to 1.10.2 in /frontend by @dependabot in #828
- chore(deps): bump github.com/labstack/echo-contrib from 0.14.1 to 0.15.0 in /backend by @dependabot in #810
- chore(deps): bump github.com/go-webauthn/webauthn from 0.7.1 to 0.8.2 in /backend by @dependabot in #608
- chore(deps): bump golang.org/x/text from 0.9.0 to 0.10.0 in /backend by @dependabot in #839
- chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.9 to 2.0.10 in /backend by @dependabot in #840
- docs: fix broken links by @FreddyDevelop in #838
- refeactor: switch the ports of the api spec to match the quickstart p… by @like-a-bause in #835
- Feat user import by @like-a-bause in #693
- chore(deps): bump golang.org/x/crypto from 0.9.0 to 0.10.0 in /backend by @dependabot in #846
- chore(deps): bump github.com/brianvoe/gofakeit/v6 from 6.20.2 to 6.22.0 in /backend by @dependabot in #854
- chore(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 in /backend by @dependabot in #845
- chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.10 to 2.0.11 in /backend by @dependabot in #853
- chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.2 to 2.0.11 in /quickstart by @dependabot in #852
- docs: use correct docker image in readme by @FreddyDevelop in #861
- refactor: use echo.HTTPError instead of redundant own type. This way … by @like-a-bause in #862
- chore(deps-dev): bump jest-environment-jsdom from 29.4.3 to 29.5.0 in /frontend by @dependabot in #858
- fix(examples-vue): README typo by @tobihans in #863
- test: improve password handler test by @FreddyDevelop in #842
- Add documentation for Nuxtjs with nuxt-hanko module by @McPizza0 in #827
- French translations by @bjoern-m in #851
- chore: remove autofocus from the email input field by @bjoern-m in #866
- Feat k8s deploy by @like-a-bause in #756
- docs: fix mismatch with actual code by @FreddyDevelop in #871
- Docs/deno fresh by @tobihans in #834
- test: use test suite for well known tests by @FreddyDevelop in #872
- chore(deps-dev): bump eslint-plugin-vue from 9.14.1 to 9.15.1 in /frontend by @dependabot in #870
- Chore improve events by @bjoern-m in #864
- Improve the Hanko-elements readme file by @bjoern-m in #878
- fix: remove duplicate section by @bjoern-m in #881
- added a schedule a demo badge by @PeerRich in #880
- chore: bump frontend versions to 0.8.0 by @like-a-bause in #843
- fix: return shadowed error by @FreddyDevelop in #883
- chore(deps): bump golang.org/x/text from 0.10.0 to 0.11.0 in /backend by @dependabot in #890
- chore(deps): bump semver from 7.3.7 to 7.5.3 in /e2e by @dependabot in #876
- feat: add cache control header when returning jwks.json by @FreddyDevelop in #884
- test: improve passcode handler tests by @FreddyDevelop in #873
- feat(hanko-elements): add 'hidePasskeyButtonOnLogin' options by @bjoern-m in #865
New Contributors
- @danielroe made their first contribution in #822
- @tobihans made their first contribution in #863
- @McPizza0 made their first contribution in #827
- @PeerRich made their first contribution in #880
Full Changelog: backend/v0.7.1...backend/v0.8.0