github emdash-cms/emdash emdash@1.0.1-rc.1

latest releases: @emdash-cms/plugin-test@0.2.6-rc.1, @emdash-cms/sandbox-workerd@0.9.1-rc.1, @emdash-cms/plugin-embeds@0.1.53-rc.1...
pre-release2 hours ago

Patch Changes

  • #3531 f6674fa Thanks @danielmlr! - Fixes recreating a deleted collection failing with Collection "…" already exists (COLLECTION_EXISTS) on sites with media usage tracking turned on, which new sites turn on automatically. Creating a collection through the admin, the API, MCP or a seed now finishes the deleted collection's media usage cleanup first, so sites already stuck in this state can recreate the collection after upgrading.

    Each create attempt does a bounded amount of that cleanup. If it can't finish, for example because the deleted collection referenced media from many entries, the error says the collection is being deleted, and the next attempt continues where the last one stopped. If the cleanup has failed, the error says so and includes the deleted collection's ID in details.deletedCollectionId. Both errors keep the COLLECTION_EXISTS code. Send that ID as { "collectionId": "…" } to POST /_emdash/api/admin/media-usage/collection-deletions/retry, which requires the schema:manage permission and, for API tokens, the admin scope, then create the collection again.

  • #3537 02c2ad3 Thanks @akapug! - Fixes the WordPress media URL rewrite matching a URL map key that carries a query string by its base URL. A key such as an attachment's ?attachment_id=7 shortlink also matched the home page, so the rewrite pointed links to the home page at that file. Such a key now matches that URL only, and inside a text field only where the URL ends with it.

  • #3322 1cdca21 Thanks @danielmlr! - Fixes routeCtx.ui being undefined for the declared Block Kit pages and dashboard widgets of plugins registered in plugins: []. They now receive the administrator's locale, text direction, and surface, as sandboxed plugins do, so a plugin can localize its Block Kit text in both install modes.

  • Updated dependencies [c66b49b, 9e297d6, a3609fb, 618591e]:

    • @emdash-cms/admin@1.0.1-rc.1
    • @emdash-cms/auth@1.0.1-rc.1
    • @emdash-cms/blocks@1.0.1-rc.1
    • @emdash-cms/gutenberg-to-portable-text@1.0.1-rc.1

Don't miss a new emdash release

NewReleases is sending notifications on new releases.