Context
Shipped on 2026-05-02, the checklist answers Y.Map format changed from nested Y.Maps to flat dot-notation keys for performance. A client-side migration (migrateYDocToFlatKeys) runs on every Y.Doc load to convert any remaining old-format documents.
Once all production Y.Docs have been opened at least once on the new format (give it one full release cycle), this migration code is dead weight.
Files to remove
packages/web/src/primitives/useProject/reactor/migrate.ts -- the migration module
packages/web/src/primitives/useProject/reactor/migrate.test.ts -- its unit tests
packages/web/e2e/flat-key-migration.spec.ts -- e2e test for the migration
Code to update
packages/web/src/project/ConnectionPool.ts -- remove the three migrateYDocToFlatKeys() call sites and the import
When to remove
After all active users have loaded their projects at least once on the flat-key format. A conservative window is 4-6 weeks after 2026-05-02 (target: mid-June 2026). Check server logs or Y.Doc snapshots to confirm no nested-format documents remain before removing.
Related
- The
localChecklists Dexie table migration (migrateLocalChecklistsToYDoc) has a similar TODO in packages/web/src/primitives/db.ts (shipped 2026-04-18).
Context
Shipped on 2026-05-02, the checklist answers Y.Map format changed from nested Y.Maps to flat dot-notation keys for performance. A client-side migration (
migrateYDocToFlatKeys) runs on every Y.Doc load to convert any remaining old-format documents.Once all production Y.Docs have been opened at least once on the new format (give it one full release cycle), this migration code is dead weight.
Files to remove
packages/web/src/primitives/useProject/reactor/migrate.ts-- the migration modulepackages/web/src/primitives/useProject/reactor/migrate.test.ts-- its unit testspackages/web/e2e/flat-key-migration.spec.ts-- e2e test for the migrationCode to update
packages/web/src/project/ConnectionPool.ts-- remove the threemigrateYDocToFlatKeys()call sites and the importWhen to remove
After all active users have loaded their projects at least once on the flat-key format. A conservative window is 4-6 weeks after 2026-05-02 (target: mid-June 2026). Check server logs or Y.Doc snapshots to confirm no nested-format documents remain before removing.
Related
localChecklistsDexie table migration (migrateLocalChecklistsToYDoc) has a similar TODO inpackages/web/src/primitives/db.ts(shipped 2026-04-18).