This is the preview of the changes that make Zweihänder compatible with Foundry 11. It contains the following changes:
explicitly apply ZH CSS classes on startup (changing Foundry setting to the same value no longer triggers onChange)
move compendium sources to packs-src directory and generate them to packs (Foundry 11 automatically migrates existing compendiums to LevelDB, which in this case results in writes to packs; it doesn't break or overwrite anything, but to be secure I moved the sources)
introduce updates to handle deprecations in Foundry:
editor handlebar helper no longer expects text to be passed via content= parameter
enrichHTML is async now, so zhProcessRuleText helper was removed and its functionality moved to corresponding getData methods
These are all the issues I have found so far. Additional testing is still recommended. E.g. I haven't yet fully tried the migration of existing world.
The changes are meant to be compatible with both Foundry 10 and 11.
Hint: probably the easiest way to review this PR would be to go commit by commit instead of viewing all changes at once.
This is the preview of the changes that make Zweihänder compatible with Foundry 11. It contains the following changes:
packs-src
directory and generate them topacks
(Foundry 11 automatically migrates existing compendiums to LevelDB, which in this case results in writes topacks
; it doesn't break or overwrite anything, but to be secure I moved the sources)editor
handlebar helper no longer expects text to be passed viacontent=
parametergetData
methodsThese are all the issues I have found so far. Additional testing is still recommended. E.g. I haven't yet fully tried the migration of existing world.
The changes are meant to be compatible with both Foundry 10 and 11.
Hint: probably the easiest way to review this PR would be to go commit by commit instead of viewing all changes at once.