mirror of
https://github.com/penpot/penpot.git
synced 2026-11-18 08:01:21 +00:00
* 🐛 Fix duplicate-file crash on nil keys in deleted component objects * ♻️ Withdraw the legacy-36 migration in favor of 0036 legacy-36 and 0036-clear-nil-keys-in-objects perform the same cleanup of nil keys in `:objects`. Migrations only clean up invalid data here, so they carry no order dependency between them and running both is wasteful. Remove the legacy-36 defmethod and its id from `available-migrations`, the same way 0021-fix-shape-svg-attrs was withdrawn in favor of 0035. Files that recorded legacy-36 re-migrate through 0036; their persisted `:migrations` lists keep the old id, and the playwright fixtures recording it stay untouched. Add a migrate-file test proving a file that recorded legacy-36 is re-armed for 0036 and passes schema validation after. Document the withdrawal pattern in the migration subtleties memory. AI-assisted-by: inkling-2-small-free --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>