Update JS Scripting tern definitions #1576
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reference
openhab/openhab-js@v3.0.0...v3.1.2.
Last updates was in #1552.
Description
This updated the tern definitions for the current openhab-js version included in the addon (3.1.2).
The tern definitions for the
cache
namespace were updated to allow access to theshared
and theprivate
caches from core (see openhab/openhab-js#191).For documentation of the
cache
, have a look at https://openhab.github.io/openhab-js/cache.html.Testing
I need to check whether autocompletion for
cache
works correctly.@ghys This should go into 3.4.0. Since the feature freeze is already active, this should get merged as bugfix.
It indeed fixes deprecation warnings that will be logged when someone tries to use something like
cache.get()
(which now would becache.private.get()
orcache.shared.get()
).