Moerill / fvtt-find-the-culprit

MIT License
8 stars 10 forks source link

Bug, sort of: lots of deprecation warnings while running a search #42

Open esheyw opened 1 year ago

esheyw commented 1 year ago

For every module activated during a search, the console gets one of these:

commons.js:1703 Error: You are accessing BasePackage#data which is now deprecated in favor of referencing schema fields directly on the BasePackage instance.
Deprecated since Version 10
Backwards-compatible support will be removed in Version 12
    at logCompatibilityWarning (commons.js:1692:19)
    at get data [as data] (commons.js:11759:7)
    at find-the-culprit.js:291:46
    at Array.map (<anonymous>)
    at doBinarySearchStep (find-the-culprit.js:288:22)
    at Object.doStep [as fn] (find-the-culprit.js:183:10)
    at #call (foundry.js:724:20)
    at Hooks.callAll (foundry.js:681:17)
    at Game.setupGame (foundry.js:7952:11)
    at async Game._initializeGameView (foundry.js:8999:5)
    at async Game.initialize (foundry.js:7825:5)

which is just a lot of clutter when trying to find more serious warnings. Would be great if this could be rectified at some point.