backend/v0.8.0
teamhanko/hankobackend/v0.8.0Jul 6, 2023by like-a-bause
AI Summary
This release consolidates version numbers across backend, elements, and SDK, introduces custom translations, user import, and new integration examples like Deno/Fresh.
Key Highlights
- Consolidated version numbers for backend, hanko-elements, and frontend-sdk.
- Introduced custom translations for hanko-elements.
- Added user import functionality.
- Documentation for Nuxt.js integration and a new Deno/Fresh example added.
Breaking Changes
- Removed 'onSessionResumed' and 'onSessionIsNotPresent' events.
- Changed 'register()' method signature to return a frontend-sdk instance.
- API URL parameter removed from web components (hanko-auth, hanko-profile).
New Features
- Custom translations
- User import
- Nuxt integration docs
- Deno/Fresh example
Full Release Notes
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](https://github.com/nuxt-modules/hanko). 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:
```js
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 https://github.com/teamhanko/hanko/pull/820
* chore(deps-dev): bump eslint from 8.39.0 to 8.42.0 in /frontend by @dependabot in https://github.com/teamhanko/hanko/pull/821
* chore: fix typo by @danielroe in https://github.com/teamhanko/hanko/pull/822
* docs(social): fix apple guide typo, sign-in-with button wording by @lfleischmann in https://github.com/teamhanko/hanko/pull/824
* feat: update go version to 1.20 by @like-a-bause in https://github.com/teamhanko/hanko/pull/823
* chore(deps-dev): bump vite from 4.3.3 to 4.3.9 in /frontend by @dependabot in https://github.com/teamhanko/hanko/pull/826
* feat: introduce custom translations by @bjoern-m in https://github.com/teamhanko/hanko/pull/815
* test: improve webauthn handler test by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/805
* chore(deps-dev): bump turbo from 1.8.3 to 1.10.2 in /frontend by @dependabot in https://github.com/teamhanko/hanko/pull/828
* chore(deps): bump github.com/labstack/echo-contrib from 0.14.1 to 0.15.0 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/810
* chore(deps): bump github.com/go-webauthn/webauthn from 0.7.1 to 0.8.2 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/608
* chore(deps): bump golang.org/x/text from 0.9.0 to 0.10.0 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/839
* chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.9 to 2.0.10 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/840
* docs: fix broken links by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/838
* refeactor: switch the ports of the api spec to match the quickstart p… by @like-a-bause in https://github.com/teamhanko/hanko/pull/835
* Feat user import by @like-a-bause in https://github.com/teamhanko/hanko/pull/693
* chore(deps): bump golang.org/x/crypto from 0.9.0 to 0.10.0 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/846
* chore(deps): bump github.com/brianvoe/gofakeit/v6 from 6.20.2 to 6.22.0 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/854
* chore(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/845
* chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.10 to 2.0.11 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/853
* chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.2 to 2.0.11 in /quickstart by @dependabot in https://github.com/teamhanko/hanko/pull/852
* docs: use correct docker image in readme by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/861
* refactor: use echo.HTTPError instead of redundant own type. This way … by @like-a-bause in https://github.com/teamhanko/hanko/pull/862
* chore(deps-dev): bump jest-environment-jsdom from 29.4.3 to 29.5.0 in /frontend by @dependabot in https://github.com/teamhanko/hanko/pull/858
* fix(examples-vue): README typo by @tobihans in https://github.com/teamhanko/hanko/pull/863
* test: improve password handler test by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/842
* Add documentation for Nuxtjs with nuxt-hanko module by @McPizza0 in https://github.com/teamhanko/hanko/pull/827
* French translations by @bjoern-m in https://github.com/teamhanko/hanko/pull/851
* chore: remove autofocus from the email input field by @bjoern-m in https://github.com/teamhanko/hanko/pull/866
* Feat k8s deploy by @like-a-bause in https://github.com/teamhanko/hanko/pull/756
* docs: fix mismatch with actual code by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/871
* Docs/deno fresh by @tobihans in https://github.com/teamhanko/hanko/pull/834
* test: use test suite for well known tests by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/872
* chore(deps-dev): bump eslint-plugin-vue from 9.14.1 to 9.15.1 in /frontend by @dependabot in https://github.com/teamhanko/hanko/pull/870
* Chore improve events by @bjoern-m in https://github.com/teamhanko/hanko/pull/864
* Improve the Hanko-elements readme file by @bjoern-m in https://github.com/teamhanko/hanko/pull/878
* fix: remove duplicate section by @bjoern-m in https://github.com/teamhanko/hanko/pull/881
* added a schedule a demo badge by @PeerRich in https://github.com/teamhanko/hanko/pull/880
* chore: bump frontend versions to 0.8.0 by @like-a-bause in https://github.com/teamhanko/hanko/pull/843
* fix: return shadowed error by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/883
* chore(deps): bump golang.org/x/text from 0.10.0 to 0.11.0 in /backend by @dependabot in https://github.com/teamhanko/hanko/pull/890
* chore(deps): bump semver from 7.3.7 to 7.5.3 in /e2e by @dependabot in https://github.com/teamhanko/hanko/pull/876
* feat: add cache control header when returning jwks.json by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/884
* test: improve passcode handler tests by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/873
* feat(hanko-elements): add 'hidePasskeyButtonOnLogin' options by @bjoern-m in https://github.com/teamhanko/hanko/pull/865
## New Contributors
* @danielroe made their first contribution in https://github.com/teamhanko/hanko/pull/822
* @tobihans made their first contribution in https://github.com/teamhanko/hanko/pull/863
* @McPizza0 made their first contribution in https://github.com/teamhanko/hanko/pull/827
* @PeerRich made their first contribution in https://github.com/teamhanko/hanko/pull/880
**Full Changelog**: https://github.com/teamhanko/hanko/compare/backend/v0.7.1...backend/v0.8.0