Skip to content

v0.7.0

Compare
Choose a tag to compare
@dswbx dswbx released this 08 Feb 15:59
· 121 commits to main since this release
09d35d3

Breaking Changes

Removed Api export from bknd, so you now have to import it from bknd/client:

-import { Api } from "bknd";
+import { Api } from "bknd/client";

If you were using Astro, you'd now need to await the getApi helper. This ensures that authentication is always verified:

import { getApi } from "bknd/adapter/astro";

+const api = await getApi(Astro, { mode: "dynamic" });
-const api = getApi(Astro, { mode: "dynamic" });
-await api.verifyAuth();
const user = api.getUser();

New Form component

bknd is extensively using JSON Schema, and is also using form generators to automatically generate them mainly for the advanced settings. But these forms don't really look and feel good, so I've made a custom implementation that is highly adjustable. It automatically infers the types from the JSON Schema and validates it according to your needs. The new media settings were built using it, here is a general demo:

form_demo.mp4

Improved Media Settings

Previously, the only way to enable media was to go over to Advanced Settings. Since these are mainly auto generated, the experience wasn't very nice. Check here how it is improved now using the custom JSON Schema form generator implementation:

image

Full Changelog

  • Adapter: verified auth & env-specific construction by @dswbx in #59
  • adapter(cloudflare): add supports for the new assets feature by @dswbx in #61
  • optimize adapter imports to deduplicate by @dswbx in #62
  • fix/api-and-adapter by @dswbx in #63
  • updated API instantiation, and update user on verify by @dswbx in #64
  • feat/auth-redirect-param by @dswbx in #65
  • also sending cookies on json auth requests by @dswbx in #66
  • fix clearing schema on unauthorized secrets fetching by @dswbx in #69
  • fix/api-query-with-string-object by @dswbx in #67
  • Improved media settings UI/UX by @dswbx in #68
  • Feat/optimize form renders by @dswbx in #70
  • feat/elements-native-form by @dswbx in #71
  • Release 0.7 by @dswbx in #60

Full Changelog: 0.6.2...v0.7.0