Aioros opened merge request !242: Safe fixes for v14 compatibility at Simone Ricciardi / FoundryVTT Dice So Nice

Aioros
2026-02-27T15:55:22Z

Two necessary fixes for v14 here (as reported in #539) that do not break compatibility with v13:

foundry.utils.mergeObject does not like merging null anymore, the empty object will do just fine in any version;

we directly remove the sound property from the chat message when necessary instead of mergeObject with the deletion key.

Point 2 is part of a bigger issue that I would like to get your opinion on. Version 14 started a deprecation period for update keys like "-=" and "==", and for the performDeletions option in mergeObject. As a result, DSN triggers a whole lot of deprecation warnings. The new keys and the new option are not available in v13 though, so either we move to a v14-only DSN, or we will need to find a nice way of supporting both.

My current idea is to have our own mergeObject in Utils with a version check that translates as needed, which would cover all our cases except a couple of setFlag in old migrations. Let me know what you think.