Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Deprecation warnings for global function call in FoundryVTT v12 #78

Open
morepurplemorebetter opened this issue Oct 11, 2024 · 1 comment

Comments

@morepurplemorebetter
Copy link

Description

I'm getting a couple of warning messages in my console from this module on load:

Error: You are accessing globalThis.duplicate which must now be accessed via foundry.utils.duplicate
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
[...]
getBoardData https://[address]/modules/moulinette-core/dist/core.min.js:1
[...]
Error: You are accessing globalThis.mergeObject which must now be accessed via foundry.utils.mergeObject
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
[...]
get defaultOptions https://[address]/modules/moulinette-core/dist/core.min.js:1
[...]

As far as I can tell, accessing these through foundry.utils is also supported in FoundryVTT v10 & v11. Thus, changing this won't affect the other versions this module works with.

Versions

Moulinette-core: v12.2.0
FoundryVTT: v12.331

@SvenWerlen
Copy link
Owner

Thanks for reporting it. I'm working a new modules which are optimized for v12+.
I fixed those issues but will still consider fixing them on current versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants