Deprecate the old (prior to 1.3.0) Drag Ruler API
This commit is contained in:
@@ -14,6 +14,9 @@
|
|||||||
### Translation
|
### Translation
|
||||||
- Corrected typos in the german translation (thanks to CarnVanBeck!)
|
- 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
|
## 1.6.5
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ function register(module, type, speedProvider) {
|
|||||||
providerInstance = new speedProvider(id)
|
providerInstance = new speedProvider(id)
|
||||||
}
|
}
|
||||||
else {
|
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.id = id
|
||||||
speedProvider.usesRuler = () => true
|
speedProvider.usesRuler = () => true
|
||||||
providerInstance = speedProvider
|
providerInstance = speedProvider
|
||||||
|
|||||||
Reference in New Issue
Block a user