github bknd-io/bknd v0.11.0

latest releases: v0.17.1, v0.17.0, v0.16.1...
5 months ago

Media: Infinite loading & Detail Dialog (#123)

The media screen is now infinitely loading more media entries as you scroll. When you click on an item, a detail dialog tries to preview the file and shows related information including quick-copy snippets.

v0.11_media_o.mp4

Adapter & Starters improvements + E2E

There's been a ton of fixes and adjustments for the adapter implementation and cli starters. The cloudflare (#119, #120) and AWS (#134) starter are now running smoother generating required infrastructure parts. Adapters have been aligned more tightly so that they can now run a shared unit and e2e test suite to ensure they work as expected (#124, #126, #135).

CLI: Better env discovery (#125) & user token generation (#140)

The CLI now detects the desired environment smarter (e.g. if you use npx bknd run by checking the given parameters, then checks existence of a bknd.config.* file, afterwards reads environment variables (DB_URL, DB_TOKEN) and only then falls back to generate a new file as database. This now enables creating a dedicated bknd.config.ts file that contains all instructions how to start your instance, in your app but also using the CLI. If you choose to exclude the Admin UI from your app, you can now still run it locally using the CLI (npx bknd run). Here is an example bknd.config.ts:

// import the config of your adapter which inherits from `BkndConfig`
import type { BkndConfig } from "bknd/adapter"; 

export default {
   // you can also pass a postgres connection
   connection: {
      url: "file:data.db",
   },
   // an initial config is only applied if the database was empty
   initialConfig: { /* ... */ },
   options: {
      // the seed function is only executed if the database was empty
      seed: async (ctx) => {
         await ctx.em.mutator("<entity>").insertMany([ /* ... */ ]);
         await ctx.app.module.auth.createUser({ /* ... */ });
      },
   },
} as const satisfies BkndConfig;

Additionally, you can now generate tokens of users for authentication. It uses the same discovery as run to determine which environment to generate tokens from. To start the interaction, run:

npx bknd user token

Other Changes

  • Fix Astro create CLI by @cameronapak in #128
  • refactored EventManager to run asyncs on call only, app defaults to run before response by @dswbx in #129
  • keep extension from file when generating random name by @dswbx in #127
  • fixed limbo batching issue by disabling batching by @dswbx in #133
  • docker: add option to overwrite bknd version used by @dswbx in #136
  • cli: create: allow non-interactive create by @dswbx in #137
  • fixes issues in firefox where view transitions are not available by @dswbx in #139

New Contributors

Full Changelog: v0.10.1...v0.11.0

Don't miss a new bknd release

NewReleases is sending notifications on new releases.