Generate Types (#166)
Whether you define your data structure using the prototype functions or prefer to visually construct it using the Admin UI, you can now let bknd generate types for all your entities by running:
npx bknd types
Make sure to include the generated type definition to your tsconfig.json
:
Bcrypt hashing (#147)
Along with the previous options of "plain" and "sha256", you can now use "bcrypt" as your password strategy hash:
Media permissions (#142)
Security is important, and so now when having the Guard enabled, your users' role must include permissions to read, list, upload and delete media files. If you had an admin role with implicit_allow
enabled, the new permissions are applied automatically.
Other Changes
- cleanup: replace console.log/warn with $console, remove commented-out code by @dswbx in #141
- adjust typebox imports and enable TS incremental by @dswbx in #146
- update admin basepath handling and window context integration by @dswbx in #155
- update dependencies in package.json by @dswbx in #156
- add validation logs and improve data validation handling by @dswbx in #157
- modify MediaApi to support custom fetch implementation, defaults to native fetch by @dswbx in #158
- trigger repository-find-[one|many]-[before|after] based on limit by @dswbx in #160
- refactor error handling in authenticator and password strategy by @dswbx in #161
- add disableSubmitOnError prop to NativeForm and export getFlashMessage by @dswbx in #162
- update imports to adjust nodeTestRunner path and remove unused export by @dswbx in #163
- fix sync events not awaited by @dswbx in #164
- Dropzone: extract DropzoneInner and unify state management with zustand by @dswbx in #165
- replace LiquidJs rendering with simplified renderer by @dswbx in #167
Full Changelog: v0.11.2...v0.12.0