Patch Changes
-
#3518
bc54886Thanks @ascorbic! - Moves the subpaths that only EmDash itself loads underemdash/internal/, and the D1 and Hyperdrive migration executors under@emdash-cms/cloudflare/internal/. These paths are not public API: their exports can change or be removed in any release.Sites that use
emdash()inastro.config.mjsneed no changes. The integration, the database, cache and media adapter helpers, and the first-party Cloudflare, workerd sandbox and plugin-test packages all load the new paths automatically.The following subpaths are removed:
Removed subpath Now loaded from emdash/routes/*emdash/internal/routes/*emdash/middleware/authemdash/internal/middleware/authemdash/middleware/redirectemdash/internal/middleware/redirectemdash/middleware/request-contextemdash/internal/middleware/request-contextemdash/middleware/setupemdash/internal/middleware/setupemdash/middleware/media-usage-write-fenceemdash/internal/middleware/media-usage-write-fenceemdash/image-endpointemdash/internal/image-endpointemdash/media/local-runtimeemdash/internal/media/local-runtimeemdash/object-cache/memoryemdash/internal/object-cache/memoryemdash/db/sqlite-migrationsemdash/internal/db/sqlite-migrationsemdash/db/libsql-migrationsemdash/internal/db/libsql-migrationsemdash/db/postgres-migrationsemdash/internal/db/postgres-migrationsemdash/database/migration-lockemdash/internal/database/migration-lockemdash/database/pg-migration-lockemdash/internal/database/pg-migration-lockemdash/plugins/hostemdash/internal/plugins/hostemdash/plugins/http-wireemdash/internal/plugins/http-wireemdash/plugins/adapt-sandbox-entryemdash/internal/plugins/adapt-sandbox-entryemdash/plugin-test-runtimeemdash/internal/plugin-test-runtimeemdash/testing/registryemdash/internal/testing/registry@emdash-cms/cloudflare/db/d1-migrations@emdash-cms/cloudflare/internal/db/d1-migrations@emdash-cms/cloudflare/db/hyperdrive-migrations@emdash-cms/cloudflare/internal/db/hyperdrive-migrationsWhat should I do?
If your project or package imports one of the removed subpaths directly, replace the import with a public entrypoint:
- To configure a database, object cache or media provider, use
sqlite(),libsql()orpostgres()fromemdash/db,memoryCache()fromemdash/astro, orlocalMedia()fromemdash/media, instead of writing their entrypoints by hand. - To test a plugin, use
@emdash-cms/plugin-testinstead ofemdash/plugin-test-runtime. - To run your own middleware before EmDash's, set the
middleware.outeroption ofemdash(). The internal auth, setup, redirect and request-context middleware have no public replacement.
Rebuild after upgrading.
emdash migraterejects a migration manifest written by an earlier EmDash version. - To configure a database, object cache or media provider, use
-
Updated dependencies [
d274172,bc54886,0b4be2c,0b4be2c,0b4be2c,0b4be2c,0b4be2c]:- emdash@1.0.1-rc.0
- @emdash-cms/blocks@1.0.1-rc.0
- @emdash-cms/cloudflare@1.0.1-rc.0