The newest change log is in README.md
- (Apollon77) Fix existsState and existsObject
- (Apollon77) Fix handling of month schedules with given date list
- (Apollon77) Optimize scheduling to make sure to not miss triggers if callbacks would need too long
- (Apollon77) Fix automatic start of Rules scripts when starting adapter
- (Apollon77) Fix blockly subscribes broken in 5.4.0
- (Apollon77) Automatically create missing folder objects when states are created using createState
- (Apollon77) Fix special characters in blockly subscribe logic
- (Apollon77) Fix timing issue where state updates could not be current on startup
- (Apollon77) Fix state name handing
- (Apollon77) Fix potential crash cases reported by Sentry
- (bluefox) Added async functions: createStateAsync, deleteStateAsync
- (Apollon77) fix problem that scripts were not starting when scriptsEnabled State was triggered (or startScript was used)
- (Apollon77) Make sure callbacks on startScript/stopScript work and Async variants also resolve
- (Apollon77) Make sure startScriptAsync, stopScriptAsync and runScriptAsync resolve in debug mode too
- (Apollon77) Add missing callback check in setObject
- (Apollon77) Prevent some crash cases reported by Sentry (IOBROKER-JAVASCRIPT-A3)
- (Apollon77) Fix Enum Updates
- (Apollon77) Optimize making sure data are current for synchronous return of states/objects even for asynchronous action cases before
- (Apollon77) Make sure admin files is cleaned up on update
- (Apollon77) update channel/device structures for $ selector on object updates
- (Apollon77) Adjustments for js-controller 4.0
- (bluefox) Fixed build process
- (AlCalzone) Fixed broken dependency
- (klein0r) Fixed some german translations
- (winnyschuster) Fixed astro schedules
- (bluefox) Fixed the font in the editor
- (agross) Added the monitoring of symlinks my mirroring
- (Apollon77) Fix two crash cases reported by Sentry
- (AlCalzone) Typings improvement
- (winnyschuster) added "Solar noon" to astro-list
- (agross) Allow to define different states for reading and writing alias values
- (AlCalzone) Fixed the loading of Node.js typings
- (bluefox) Fixed the font in the editor
- (bluefox) Parse variables to floats for mathematical operations
- (bluefox) Names with the dot at the end are not allowed anymore
- (bluefox) The blockly sounds are disabled
- (Apollon77) Make sure day of weeks is an array (Sentry IOBROKER-JAVASCRIPT-7Y)
- (bluefox) Report to sentry is disabled in GUI if sentry is deactivated
- (bluefox) Fixed many GitHub issues
- (bluefox) Fixed the debug of scripts
- (bluefox) Fixed error in rules
- (bluefox) Added fallback for admin4
- (agross) Fix imports like "rxjs/operators" for versioned npm modules
- (Apollon77) Add support to install npm packages as defined version (name@version)
- (Apollon77) Adjust logging for "array"/"object" type handling
- IMPORTANT: Admin 5.1.9 is now required for this JavaScript version!
- (Apollon77) BREAKING: Convert state values for object types "array"/"object" to stringified as required by js-controller 3.3. This means such objects should not be "JSON.parsed" after reading!
- (foxriver76) add adapter to tier 1 for js-controller 3.3 (this means will be started first!)
- (bluefox) Implemented the change of theme and the expert mode via admin
- (bluefox) fixed the error with the simulation
- (Xyolyp) Blockly: Allow Value read from datapoint as switch input
- (ThomasPohl) Blockly: add text_multiline block
- (Apollon77) Prevent crash case(Sentry IOBROKER-JAVASCRIPT-70)
- (bluefox) fixed the error in the debugging
- (bluefox) Showed the runtime information for the rules
- (bluefox) Implemented the debug of the instances from javascript adapter
- (bluefox) Implemented the debug of scripts possibility
- (bluefox) Rules: added "use trigger value" for the "set action" blocks
- (bluefox) fixed the font for the editor
- (bluefox) fixed error in blockly
- (bluefox) added date to the time condition
- (bluefox) added date to the time condition
- (bluefox) fixed the error if no condition
- (bluefox) Translations
- (bluefox) Added the "set state with delay" block
- (bluefox) Added the pushsafer block
- (bluefox) Implemented the hysteresis
- (bluefox) Implemented the toggle functionality
- (bluefox) Fixed errors in rules
- (bluefox) Implemented the memory for condition
- (bluefox) Fixed error in the rules
- (bluefox) added the rules engine
- (Apollon77) Add some additional checks for getSchedules
- (Garfonso) make sure promisified methods reject with Error instead of string so that async errors can be catched correctly
- (Huseriato) update some german blockly translations
- (Apollon77) Handle more cases with invalid script names/state-ids (Sentry IOBROKER-JAVASCRIPT-5W)
- (Apollon77) Handle more cases with invalid script names/state-ids (Sentry IOBROKER-JAVASCRIPT-5R)
- (Apollon77) Handle more cases with invalid script names/state-ids (Sentry IOBROKER-JAVASCRIPT-4B)
- (Apollon77) Optimize error handling in createState and file mirror again
- (Apollon77) Do not try to set a state value if object creation was not successful (Sentry IOBROKER-JAVASCRIPT-5G)
- (Apollon77) Make sure no incorrect states are trying to be set (Sentry IOBROKER-JAVASCRIPT-5F, IOBROKER-JAVASCRIPT-5A)
- (Apollon77) Make sure to end all Timeouts
- (Apollon77) Prevent crash case (Sentry IOBROKER-JAVASCRIPT-51)
- (paul53) Corrected
variables.isDayTime
- (AlCalzone) catch errors during virtual-tsc compile calls
- (Apollon77) Prevent crash case (Sentry)
- (Apollon77) Prevent crash case (Sentry IOBROKER-JAVASCRIPT-4Q)
- (paul53) Corrected
variables.isDayTime
- (AlCalzone) TypeScripts which augment the global scope are now correctly compiled
- (AlCalzone) If no type declarations are found for an installed package,
require
will no longer show the error "module not found" - (AlCalzone) Removed the
--prefix
argument innpm install
, so package installations on Windows no longer mess up the install directory - (bluefox) Corrected the set of the binary state
- (bluefox) null timeouts are checked now
- (bluefox) null timeouts are checked now
- (AlCalzone) Correction for the typescript with async functions
- (bluefox) Corrected search in scripts
- (AlCalzone) In global TypeScripts,
import
can now be used - (AlCalzone) Iteration of
$(...)
query results in TypeScript no longer causes compilation to fail - (AlCalzone) Already-compiled TypeScripts are now recompiled after an update of the adapter to benefit of potential fixes
- (bluefox) Corrected schedule on date object
- (bluefox) Corrected the moving of scripts
- (bluefox) Corrected search tab
- (bluefox) Corrected the calculation of isDayTime variable
- (bluefox) Corrected
trim()
issue by CRON builder - (bluefox) Corrected functions call in blockly
- (bluefox) Corrected CRON name in blockly
- (bluefox) Corrected search in blockly
- (Apollon77) Fix possible crash case (Sentry IOBROKER-JAVASCRIPT-47, IOBROKER-JAVASCRIPT-44)
- (AlCalzone) pass ID as the result, not the error to the callback of createState
- (AlCalzone) update the editor's type declarations when switching scripts
- (AlCalzone) The corrections for typescript were added
- (AlCalzone) corrected the crash IOBROKER-JAVASCRIPT-40
- (AlCalzone) corrected typescript for async/await
- (bluefox) Corrected the function calls.
- (AlCalzone) Optimized the typescript compilation
- (bluefox) All scripts support now
await
calls. THIS COULD HAVE SOME SIDE-EFFECT (unknown yet). - (AlCalzone) Matched the exact ID if the $ selector contains no wildcard
- (bluefox) Added new block in blockly: "pause"
- (bluefox) Changed the order of folders and scripts to "folders first".
- (bluefox) Extend the documentation.
- (bluefox) Corrected the error with blockly and "day of week" conversion.
- (bluefox) Make the mirroring instance adjustable
- (bluefox) Correct the dark mode for blockly
- (bluefox) Corrected the special variables: isDayTime and dayTime
- (Bluefox) Added the settings for columns in the state selection dialog
- (AlCalzone) add xyzAsync methods and wait/sleep
- (Apollon77) Prevent a crash case (Sentry IOBROKER-JAVASCRIPT-3N)
- (Bluefox) Fixed JS editor in blockly
- (Bluefox) Fixed the select ID dialog
- (Bluefox) Fixed blockly problem
- (Bluefox) Fixed styling
- (AlCalzone) Allowed async functions whenever a callback is accepted
- (AlCalzone) Allowed
true
as 2nd parameter in getObject - (AlCalzone) Forced TypeScript to treat each script as a separate module
- (Bluefox) Replaced the Select-ID dialog
- (Apollon77) Catch error case when npm installation fails (Sentry IOBROKER-JAVASCRIPT-3K)
- (Apollon77) Prevent crash case in mirroring (Sentry IOBROKER-JAVASCRIPT-3M)
- (bluefox) Fixed the loading of page
- (AlCalzone) fix type resolution for rxjs in TypeScripts
- (Apollon77) caught some more file errors in mirror logic
- (Apollon77) caught some more file errors in mirror logic (Sentry IOBROKER-JAVASCRIPT-2X, IOBROKER-JAVASCRIPT-3C)
- (Apollon77) make sure 0_userdata.0 objects/states are not overwritten on createState
- (Apollon77) Prevent wrong errors when setting "null" values for states
- (Apollon77) Prevent potential crash when no typings could be found (Sentry IOBROKER-JAVASCRIPT-2T)
- (Apollon77) catch an error in mirroring functionality( Sentry IOBROKER-JAVASCRIPT-2V)
- (Apollon77) make sure names are handled correctly if they are not strings (Sentry IOBROKER-JAVASCRIPT-2Y)
- (Apollon77) make sure invalid schedules can not crash adapter (Sentry IOBROKER-JAVASCRIPT-31)
- (Apollon77/paul53) Allow "deleteState" with full javascript.X object Id again (from same instance only)
- (bluefox) Revert changes for sync getState, because "on change" detection is broken
- (AlCalzone) Several issues with Typescript, Typings and virtual-tsc optimized and fixed
- (bluefox) Store JS in browser cache by enabling serviceWorkers
- (Apollon77) prevent multiple script restarts on fast file content change for mirroring or fast object changes
- (bluefox) Fixed error with warnings collapsed blocks
- (Apollon77) optimize Sentry error reporting to prevent false positives
- (bluefox) Corrected sendTo and clear delay blocks.
- (bluefox) BREAKING: Please check "stopTimeout" blocks in your blockly scripts that the correct timeout name is listed there and correct after the update!
- (paul53) fix "control" blockly node with "delete delay if running"
- (foxriver76) change dependencies with Admin
- (bluefox) Names for scripts can not have dots anymore. They will be replaced by "_"
- (bluefox) "schedule" name is not allowed for CRON
- (bluefox) Convert strings to Date by formatDate
- (bluefox) Fixed blockly blocks because of deprecated functions
- (bluefox) Corrected schedule wizard
- (AlCazone) Update monaco editor
- (bluefox) Fixed blockly blocks because of deprecated functions
- (bluefox) Corrected schedule wizard
- (bluefox) Corrected block: request, exec
- (bluefox) Updated blockly to 3.20200402.1
- (bluefox) Added to blockly the switch/case block.
- (Mic-M) fix log crash
- (Apollon77) Add new Sentry key and exclude user script exceptions
- (Garfonso) Several fixes and optimizations for Mirroring functionality
- (Apollon77) add support for 0_userdata.0 to createState and deleteState
- (Apollon77) Nodejs 10 is new minimum Version!
- (Apollon77) Add Sentry for use in js-controller 3.0 and React component
- (Apollon77) prevent warnings with js-controller 3.0
- (Garfonso) fix enum object cache handling
- (bluefox/Apollon77) enhance existsState
- (klein0r) Added JSONata for Object conversion
- (Apollon77) Fix Astro functions and error message
- (Apollon77) usage with all kinds of admin ports and reverse proxies optimized
- (Apollon77) Add new socket.io client library to prevent errors
- (bluefox) Fixed the authentication error detection
- (bluefox) Made adapter compatible with js-controller >= 2.2.x
- (bluefox) fixed the load of zip files if more than one host
- (bluefox) Values are showed in select ID dialog
- (bluefox) Allow select with $ the schedule objects
- (bluefox) Search in scripts was corrected
- (AlCalzone) Fix syntax help for Node.js runtime methods (#418)
- (AlCalzone) Target ES 2017 in TypeScript (#419)
- (AlCalzone) Automatically load declarations for 3rd party modules (#422)
- (bluefox) Functions with non latin text are working now
- (bluefox) Fixed login with non-admin user
- (bluefox) fixed log
- (bluefox) Some GUI fixes
- (bluefox) log handlers were implemented
- (bluefox) fixed the error with $ selector and with disabled subscribes
- (bluefox) implement inter-script communication.
- (bluefox) Implemented the mirroring on disk
- (bluefox) Translation for other languages was added
- (bluefox) Fixed the errors in editor
- (bluefox) Added the polish language to CRON
- (bluefox) Fixed the import of scripts
- (bluefox) Fixed locale settings
- (bluefox) fixed Monaco Loading
- (bluefox) added missing blockly element
- (AlCalzone) Improved the warning message when assigning a variable of wrong type to a state
- (thewhobox) Added selector blockly, language strings, regexp
- (thewhobox) Fixed Blockly bug
- (paul53) fixed for suncalc.getTimes between middle night and nadir
- (bluefox) Schedule was corrected
- (jkuehner) Updated the blockly to the latest code
- (bleufox) scriptEnabled variables not only for experts
- (bleufox) fixed one error with "cannot extract blockly"
- (bluefox) GUI fixes
- (bluefox) show problem scripts as yellow pause icon
- (Apollon77/AlCalzone) fixes unwanted changes in last version
- (SchumyHao) Add Chinese support
- (bluefox) add set/getBinaryState
- (bluefox) Used VM2 as sandbox. The script errors will be caught.
- (bluefox) refactoring: split into many modules
- (AlCalzone) Change TypeScript version range to include TS 3.0+
- (bluefox) Error with formatDate was fixed
- (bluefox) Pattern error is fixed
- (bluefox) Fixing the CSS for CRON dialog
- (bluefox) Fixing the reorder of scripts
- (bluefox) Pattern error is fixed
- (bluefox) more translations are added
- (bluefox) update blockly engine
- (bluefox) fixed: sometimes MSG is not defined
- (AlCalzone) TypeScript support (preparations)
- (bluefox) add sendToHost call
- (bluefox) protect exec call
- (bluefox) add getStateDelayed function
- (soef) typo error in line number correction fixed
- (soef) patternMatching optimized
- (bluefox) Support of new admin
- (bluefox) file and line info added to log outputs
- (bluefox) fix build CRON block
- (bluefox) Add the toggle blockly block
- (Apollon77/bluefox) Accept for subscribes arrays of IDs
- (bluefox) add the genitive month for formatDate
- (bluefox) Catch error by request if host unavailable
- (bluefox) add "request" to script namespace
- (bluefox)Fix stopScript
- (bluefox) Support of system coordinates
- (bluefox) fix error if no scripts exists
- (bluefox) all callbacks in try/catch
- (bluefox) Translations
- (bluefox) allow creation of states for other javascript instances
- (bluefox) Fix import of scripts
- (bluefox) Ask to save before start the script
- (bluefox) Extend compareTime function with astro features
- (bluefox) fix stopScript
- (bluefox) Try to fix error with sayit
- (bluefox) Allow with stopScript() to stop itself
- (bluefox) Fix error with subscribe for only required states
- (bluefox) Fix error with of blocks in adapters
- (bluefox) Support of subscribe for only required states
- (bluefox) add delFile
- (bluefox) fix error with names
- (bluefox) Support of blocks in adapters
- (bluefox) Move sendTo blocks into adapters
- (bluefox) New blocks: compare time, write state
- (bluefox) Documentation
- (bluefox) Bugfixing of blockly
- (bluefox) add ack for trigger in blockly
- (bluefox) add block to get info about trigger
- (bluefox) start description of blockly
- (bluefox) add runScript functions
- (bluefox) disable zoom on wheel in blockly
- (bluefox) fix block: time compare
- (bluefox) add extendObject function
- (bluefox) add custom sendTo block
- (bluefox) add multiple trigger block
- (bluefox) Fix sendTo blocks
- (bluefox) Support of convert day of week into text in blockly
- (bluefox) Fixed the convert date block
- (bluefox) Change name of sandbox debug variable
- (bluefox) Fix disabling of script
- (bluefox) Beta Release with Blockly
- (bluefox) fix sayIt Block
- (bluefox) add more blockly modules
- (bluefox) add debug mode and verbose mode
- (bluefox) modify blockly modules
- (bluefox) give back some response even if state does not exist
- (bluefox) blockly support
- (bluefox) export/import of scripts
- (bluefox) fix delete state
- (bluefox) adapter is compatible with redis
- (bluefox) add for script onStop handler
- (bluefox) do not show error if regexp ID
- (bluefox) keep configured libraries by upgrade (once more)
- (bluefox) keep configured libraries by upgrade
- (bluefox) catch an error if some system object changed, e.g. _design/history
- (bluefox) fix warning with wrong types one more time
- (bluefox) fix warning with wrong types
- (bluefox) try to fix "Duplicate name" error
- (bluefox) modify readFile/writeFile commands
- (gh-god) fix stop of script and unsubscribe
- (paul53) check type of set value and min, max by setState
- (bluefox) add getHistory command
- (bluefox) fix error in GUI
- (bluefox) do not update script on save
- (bluefox) add lines wrap
- (bluefox) sort drop down group selector
- (bluefox) check if object yet exists, when creates group
- (bluefox) fix edit of instance
- (bluefox) add instance variable
- (bluefox) fix start of scripts on adapter start
- (bluefox) add new scope variable "name" to print name of script:
log(name) => script.js.common.ScriptName
- (bluefox) fix resize of script window
- (bluefox) delete state even if no object exists
- Breaking changes.
- (bluefox) Support of script groups
- (bluefox) global scripts have name script.js.global.ScriptName and not script.js.ScriptName_global
- (bluefox) start creation of tests
- (bluefox) add deleteState function
- (bluefox) fix adapterSubscribe
- (bluefox) do not allow empty IDs in pattern by subscription
- (bluefox) fix error by getObject if object does't exist
- (bluefox) use v1.0-pre version of node-schedule
- (bluefox) try another version of node-schedule
- (bluefox) use older node-schedule version 0.5.1
- (bluefox) update node-schedule version
- (bluefox) fix adapterSubscribe and adapterUnsubscribe
- (bluefox) fix error by states to control activity of scripts
- (bluefox) fix error by setStateDelayed
- (bluefox) add clearStateDelayed
- (bluefox) add javascript.INSTANCE.scriptEnabled.SCRIPT_NAME state to control activity of scripts
- (bluefox) fix error if id is regExp
- (bluefox) fix setObject
- (bluefox) implement adapterSubscribe/adapterUnsubscribe
- (bluefox) clear enums cache if some enum changed
- (bluefox) add getSubscriptions function
- (bluefox) fix error if name is null
- (bluefox) Add setObject function
- (angelnu) Add getAstroDay and isAstroDay functions.
- (bluefox) fix clearSchedule
- (bluefox) add unsubscribe
- (bluefox) add clearSchedule function (only for non astro function)
- (bluefox) allow break the "each" by returning of false value.
- (bluefox) enable resize of columns in select ID dialog
- (bluefox) fix error with regex and name
- (bluefox) adapter is stable => make 1.0.0
- (bluefox) update ace editor
- (bluefox) add new function "setStateDelayed"
- (bluefox) change createState: if "def" exists, the state will be created with "def" value.
- (bluefox) allow set state of object if value was never set
- (bluefox) fix error if many additional npm packets
- (bluefox) new function getIdByName
- (bluefox) fix error with regexp
- (bluefox) make edit buttons (in admin tab) visible
- (bluefox) add console.log, console.warn, console.error commands
- (bluefox) update packets
- (bluefox) fix error with enums
- (bluefox) extend getObject with enum names and add new function getEnums
- (bluefox) sort scripts alphabetically and globals at begin
- (bluefox) fix error in getObjectEnums
- (bluefox) fix error with selector and enums
- (bluefox) fix channelName and channelId and optimize matching
- (bluefox) fix select dialog
- (bluefox) own tab in admin
- (bluefox) cron editor (limited)
- (bluefox) global scripts
- (bluefox) fix error with schedule and sunday
- (bluefox) show error if suncalc cannot calculate time and set time to 23:59:59
- (bluefox) show error if suncalc cannot calculate time
- (bluefox) fix error with invalid additional packages
- (bluefox) allow additionally install other npm packages for javascript
- (bluefox) fix warning with createState
- (bluefox) fix astro function
- (bluefox) extend createState with native and common
- (bluefox) add new convert functions: toInt, toFloat, toBool
- (bluefox) convert automatically grad to decimal grad
- (bluefox) fix some errors
- (bluefox) enable on('localVar', function ()...)
- (bluefox) fix error with astro. Add longitude and latitude to settings.
- (bluefox) fix selector if brackets are wrong
- (bluefox) make possible use "on" instead schedule
- (bluefox) extend readme
- (bluefox) add "change: 'any'" condition to trigger on updated value
- (bluefox) fix log function
- (bluefox) fix sendTo function
- (bluefox) add functions to sandbox: formatDate, writeFile, readFile
- (bluefox) fix createState and expand it.
- (bluefox) fix "on('state1', 'state2');"
- (bluefox) catch errors if states deleted
- (bluefox) add settings page
- (bluefox) enable npm install
- (bluefox) check errors if invalid object.
- (bluefox) add some log outputs.
- (bluefox) fix context of all callbacks.
- (bluefox) Support of jquery like selector $. See above for details.
- (bluefox) Support of wrapper "cb" for callbacks in script. (Expert mode)
- (bluefox) support change, delete and add of the scripts without restart of adapter
- (hobbyquaker) fixed typo
- (hobbyquaker) require() in scripts works now
- (hobbyquaker) fixes
- (hobbyquaker) CoffeeScript support
- (hobbyquaker) fixes
- (hobbyquaker) first release