Repository navigation
v1.0.15 — Statements that can run
This release makes the statement factories refuse calls the engine can't run. About 40 factories now require arguments that used to be optional, because without them the statement fails with a 500 at runtime or quietly returns a wrong answer. No real workspace we swept leaves any of these out, but a call that omits one will now fail to type-check.
npm install @xano/sdk@1.0.15⚠️ Statements now require the arguments the engine can't run without
These arguments used to be optional and are now required. Each one was checked against a live run:
nameon the 24 update-variable statements (s.math.*,s.text.*,s.array.push/pop/shift/unshift/merge,s.math.bitwise.*). Without it:Missing var entry.exprandifons.array.find/filter/every/has/partition/find_index/filter_count.exprandvalueons.array.difference/intersection,valueons.array.merge, andexprons.array.group_byands.precondition.valueons.object.keys/values/entries. Without it, these returned[]with a 200 status.
To fix a type error, pass the operand you meant. precondition.error / payload, throw_error.name, media filename and zip passwords stay optional.
⚠️ Every s.expect.* assertion requires its operands
The engine replaces a missing operand with 0. Before this release, deliberately failing assertions such as to_equal({}) and to_be_null() passed. All 18 assertions now require their operands.
output is only offered where the statement binds as
An output block is applied only when the statement binds as. s.array.merge, s.array.push, s.math.add, s.math.bitwise.* and s.storage.delete_file no longer accept it, and a non-empty output with no as now throws at compile time. Before, it was stored and ignored.
s.await accepts terminate
s.await({ terminate }) now exposes the engine's new terminate flag. It's optional.
Sandbox examples use real operands
30 examples/sandbox stubs called statements with only as, which deployed statements that returned a 500, [], or an assertion that always passed. They now use real operands, and every rewritten assertion passes on a live instance.
Notes
The past/future assertions only recognize epoch milliseconds that are exactly 13 digits long, so a millisecond timestamp from before 2001-09-09 is read as seconds. The test example calls this out.