Skip to content

v0.12.0-alpha.0

Pre-release
Pre-release

Choose a tag to compare

@WillYallop WillYallop released this 13 Jul 16:36
· 632 commits to master since this release

Features:

  • Migrated from Fastify to Hono to facilitate multi-runtime support.
  • A new NodeJS adapter package has been created and deployed to NPM. This allows Lucid to be deployed to any NodeJS environment.
  • A new Cloudflare adapter package has been created and deployed to NPM. This allows Lucid to be deployed to Cloudflare workers.
  • Core now ships a CLI for running the dev server, building for deployment, migrating and running seeds.
  • Implemented a new auto save feature for collections. (5448b30)
  • A new initial admin user flow has been added so you can set the admin user up how you like instead of being prompted after logging in. (189ab48)
  • A new first-party Resend plugin has been published, along with some new email table columns for storing metadata on the strategy and the any response data. (54bb98f)
  • New client only endpoint for getting the media src which supports converting and resizing images. (045c6d0)
  • Implemented image presets in the media config. This allows you to define custom image sizes and formats. You can then pass the key to the CDN endpoint to process an image based on that preset. (690fbfc)
  • The media config now supports a new urlStrategy callback so if you don't want to stream media via our CDN route you can set a strategy that used to generate media URLs within the CMS. (185b118)
  • Removed the fast-average-colour-node and blurhash dependencies from core. Instead image metadata is worked out and supplied via the SPA. (a1fcec9)
  • Implemented a new media config option for supplying your own image processor along with making the Sharp dependency optional. This is in preparation for supporting other runtimes where Sharp may not be supported. In this case you can pass an exported passthroughImageProcessor fn or supply your own custom one. (04b7f20)
  • Email MJML templates are now prerendered on dev/build CLI commands meaning we don't have to bundle MJML. (04b42b5)
  • Collections columns are no longer removed from the DB via the collection migration. ()
  • The page builder and revisions pages now include an alert when a migration is needed, fields also display an icon indicating that they haven't been migrated yet. (febbdf5)
  • Added config options to configure CORS origins and headers. (9ecec69)
  • Selected brick tabs are now persisted in local storage. (a21d947)

Breaking changes:

  • The CDN endpoint no longer supports width, height or quality params for image resizing/processing. The format query param is now locked behind a disabled by default onDemandFormats media option. (690fbfc)
  • Storage and processed media config options have been renamed to be more descriptive. storage is storageLimit, maxSize is maxFileSize, process.limit is processedImageLimit and process.store is storeProcessedImages. (690fbfc)
  • Fallback image config no longer accepts a boolean to denote it should stream the local 404 image. Instead we just support remote URLs now or the standard 404 response. (0893f27)
  • The argon2 package has been replaced with @‌noble/hashes scrypt due to not being supported in some serverless environments. (8191b1b)
  • Dropped the need for the lucid-client-key for authenticating with the client integrations. This is now encoded in the API key you receive on creating/regenerating a client integration. (0528f28)

Bug Fixes:

  • Video streaming is now correctly setup with range headers so you can scrub the timeline on video playback correctly. (dfe1b64)
  • @lucidcms/plugin-local-storage now correctly infers the mimetype based on the file, instead of doing a lookup based on the extension. This means video/mp4 is now correctly inferred instead of it being returned as application/mp4 which subsequently sets the wrong media type. (dfe1b64)
  • Fixed bug where onError callback wasn't being fired when uploading a piece of media that exceeds the allowed file size. This meant it wasn't being removed from storage. (d467abc)
  • Fixed issue with nested repeater priority not being dropped. This meant for the PostreSQL adapter collection migrations partially failed. (3058bf9)
  • Fixed bug where on document create the redirect didn't take into account the version type. Creating a draft would take you to a published version that didn't exist. (bab1523)
  • Fixed bug with UI not refreshing correctly when swapping between collections when on both are on create mode. (a12f4db)
  • Fixed bug where the created and updated by user details where expected to never be null. When the user who created a document was deleted, any subsequent query to that document would fail validation. (ee7e63c)