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.
This pull request introduces significant updates to the
tql
module, focusing on integrating OPC UA (Open Platform Communications Unified Architecture) support, improving JavaScript context handling, and fixing minor issues in the codebase. The changes include adding a new OPC UA module, enhancing the JavaScript runtime context, and updating tests to validate the new functionality.OPC UA Integration:
opcua
module to the JavaScript runtime, enabling OPC UA client creation and interactions, such as reading node values. This includes support for MessageSecurityModes and TimestampsToReturn. (mods/tql/fm_script_modules.go
,mods/tql/fm_script.go
, [1] [2]mods/tql/fm_script_test.go
, mods/tql/fm_script_test.goR1036-R1225)JavaScript Context Enhancements:
JSContext
struct to includecontext.Context
, allowing better control and cancellation of operations within the JavaScript runtime. (mods/tql/fm_script.go
, [1] [2]Dependency Updates:
github.com/gopcua/opcua
and related dependencies togo.mod
for OPC UA support. Updated several indirect dependencies to their latest versions. (go.mod
, [1] [2]Minor Fixes and Improvements:
saptial_haversine
tospatial_haversine
andlogx
tolog_x
. (mods/tql/fm_script_modules.go
, [1]mods/tql/fm_script_test.go
, [2]cspell.json
file to include new terms related to the changes, such asopcua
,deinit
, andEPSG
. (cspell.json
, [1] [2] [3]These changes enhance the functionality and maintainability of the
tql
module, particularly by introducing robust support for OPC UA interactions.