tova 0.9.7 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/codegen/base-codegen.js +2 -1
- package/src/stdlib/inline.js +8 -0
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -2328,7 +2328,8 @@ export class BaseCodegen {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
2330
|
// window() / table_window() — partition_by/order_by/desc are meta, rest are window fns
|
|
2331
|
-
|
|
2331
|
+
// Only apply named-argument rewriting when actual NamedArguments are used
|
|
2332
|
+
if ((calleeName === 'window' || calleeName === 'table_window') && node.arguments.some(a => a.type === 'NamedArgument')) {
|
|
2332
2333
|
const META_KEYS = new Set(['partition_by', 'order_by', 'desc']);
|
|
2333
2334
|
const optParts = [];
|
|
2334
2335
|
const winParts = [];
|
package/src/stdlib/inline.js
CHANGED
|
@@ -1651,6 +1651,14 @@ export const STDLIB_DEPS = {
|
|
|
1651
1651
|
json_parse: ['Ok', 'Err'],
|
|
1652
1652
|
date_parse: ['Ok', 'Err'],
|
|
1653
1653
|
read_text: ['Ok', 'Err'],
|
|
1654
|
+
read_bytes: ['Ok', 'Err'],
|
|
1655
|
+
write_text: ['Ok', 'Err'],
|
|
1656
|
+
mkdir: ['Ok', 'Err'],
|
|
1657
|
+
rm: ['Ok', 'Err'],
|
|
1658
|
+
cp: ['Ok', 'Err'],
|
|
1659
|
+
mv: ['Ok', 'Err'],
|
|
1660
|
+
file_stat: ['Ok', 'Err'],
|
|
1661
|
+
file_size: ['Ok', 'Err'],
|
|
1654
1662
|
try_fn: ['Ok', 'Err'],
|
|
1655
1663
|
try_async: ['Ok', 'Err'],
|
|
1656
1664
|
// LazyTable requires Table and table_* functions
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/embed-runtime.js — do not edit
|
|
2
|
-
export const VERSION = "0.9.
|
|
2
|
+
export const VERSION = "0.9.8";
|