Deprecate the old (prior to 1.3.0) Drag Ruler API

This commit is contained in:
Manuel Vögele
2021-05-18 12:47:52 +02:00
parent 4aab6eec95
commit e63ee1988d
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -14,6 +14,9 @@
### Translation
- Corrected typos in the german translation (thanks to CarnVanBeck!)
### API
- The old API that Drag Ruler offered prior to version 1.3.0 is now deprecated. Speed Providers that still use this API will continue to work for now, but will generate a warning in the console about the deprecation. All modules and game systems offered on the FoundryVTT website have already updated to the new API. If you see the deprecation warning, please consider updating to the current version of the respective system/module you're using.
## 1.6.5
### Bugfixes
+3
View File
@@ -14,6 +14,9 @@ function register(module, type, speedProvider) {
providerInstance = new speedProvider(id)
}
else {
console.warn(`Drag Ruler | The ${type} '${module.id}' uses the old, deprecated version of the Drag Ruler API. ` +
"That old API will be removed in a future Drag Ruler version. " +
`Please update the ${type} ${module.id} to stay compatible with future Drag Ruler versions.`);
speedProvider.id = id
speedProvider.usesRuler = () => true
providerInstance = speedProvider