0.19.0
Local variable overhaul
The local variable system has had a bunch of fixes and additions. The getter and setter nodes have been redesigned, and are easier to work with.
Variable setters can now declare if the variable is mutable or immutable, triggering an error if an immutable variable is set more than once.
Shortcut for setting local variables
A new shortcut has been added that makes it a lot easier to set local variables. One can now click any function output data property, which changes it to automatically set a local variable with that value after the function has been called. One can also change the mutability attribute through this mechanism, as well as change the variable name.
Additions
- We now display a persistent error notification when there are fatal errors in the project.
- The modules overview now expands to show the currently selected item, if the item was in a collapsed part of the overview. This is useful for example when navigating through other means than clicking items in the modules overview directly, like when using 'go to definition'.
- Made it possible to change the height of panels by dragging the bottom edge. Double click the indicator to reset.
- Support for setting Basic auth tokens as secrets.
- Support for setting custom tokens as secrets. These can be set on any header name.
- Support for using multiple secrets in headers to requests.
- Added support for some builtin math functions in expressions, callable through the
math
name space: e.g. math.cos(3.14) or math.random(0, 10). Available functions can be found listed in the expression docs.
Bug fixes
- Fixed bug which caused the 'Dependency' notification to appear just after publishing a project for the first time.
- Made sure the packages list updates properly after upgrading a package.
- Fixed bug which caused glitchy layout in the name tooltip on instances of functions from deeply nested modules.
Breaking changes
- The
old value
output of the variable setter node has been removed. It was not useful, but negatively impacted the nodes size.
Std lib
- Added Std.EphemeralStore.
Value for Key
- which is a non-triggable version of EphemeralStore.Get - Added support for RSA encryption/decryption as well as signing and verification.
- Fixed some buggy edge cases in
Http.Endpoint
route matching, like duplicate query parameters. - Added Std.String.
Number of Bytes
- which returns the number of bytes in the string - Added Std.GenerateCuid2 - Which generates unique IDs using the Cuid2 standard
- Added Std.ConsumeContext - Which lets you convert a consumed context value into a normal data output
- Added Std.BorrowContext - Which lets you convert a borrowed context value into a normal data output
- Added Std.ProduceContext - Which lets you convert a data input to a context value.
Breaking changes
- Std.String.Length - Now returns number of characters in the string, instead of number of bytes