Skip to content

v1.67.0

Choose a tag to compare

@jaapstronks jaapstronks released this 13 Oct 19:11
75071bc

1.67.0 (2026-10-13)

⚠ BREAKING CHANGES

  • deleteOldActivityEvents, cleanupExpiredSlideLocks, listSeedThemes, resolveSeedThemeSlug, installationDefaultThemeId, replaceTagLinks and getUserIdByEmail take a scope first; withDbGuard moved to server/db/client.js, initializeStorage and closeStorage to server/db/lifecycle.js, pendingMigrationsError and strandedFileDataError to server/db/boot-check.js; __resetStorageForTests removed.

  • Fork impact, with no re-export shims at the old paths:

    Module Change
    server/storage/activity-events.js deleteOldActivityEvents(scope, olderThan): instance retention scope only
    server/storage/slide-locks.js cleanupExpiredSlideLocks(scope): instance retention scope only
    server/storage/themes.js listSeedThemes(scope): organization or reasoned instance scope
    server/storage/settings.js resolveSeedThemeSlug(scope, slug), installationDefaultThemeId(scope): organization or reasoned instance scope
    server/storage/tags.js replaceTagLinks(scope, { linkTable, rowId, tagNames }): the orgId field is removed; the organization comes from the scope
    server/storage/utils/index.js getUserIdByEmail(scope, db, email): the orgId argument is removed; the organization comes from the scope
    server/db/client.js withDbGuard(fallback, fn) moved from server/storage/utils/db-guard.js; no longer exported by server/storage/utils/index.js
    server/db/lifecycle.js initializeStorage(), closeStorage() moved from server/storage/lifecycle.js
    server/db/boot-check.js pendingMigrationsError(), strandedFileDataError(repoRoot) moved from server/storage/boot-check.js

    The no-op __resetStorageForTests is removed, and with it uninstallFacadeStorage() from tests/pg/helpers/harness.js; fork pg tests drop that call (closeTestDb() is the whole teardown). See docs/reference/storage-scope.md.

Changed

  • finish scope-first storage exports and move DB infrastructure to server/db (#1639) (35b48c3)