RuleScript v1.4.0
RuleScript v1.4.0
RuleScript v1.4.0 expands the language's data-manipulation features and editor analysis, and introduces explicit module boundaries.
Language and Runtime
- Added
elseifbranches, object literals, object and array target assignments, conditional member access (?.), and null coalescing (??). - Added array and object destructuring declarations.
- Added
const,export function, andexport const. - Added
ArrayInsert,ArrayRemoveAt,ArraySort,ObjectKeys, andObjectContainsKey.
Static Analysis and Public API
- Added richer object-shape, collection-element, assignment, nullability, and function-return inference.
- Added typed metadata for every built-in function.
- Added readonly and export metadata to variable and function symbols.
- Imported
export constdeclarations are included in cursor-awareVisibleVariables. - Added diagnostics for missing properties, invalid or readonly assignments, invalid indexes, null access, invalid null coalescing, and duplicate object properties.
Breaking Changes
- Imported functions and constants are private unless explicitly declared with
export. - Modules without explicit exports no longer expose members through global or alias imports.
- Existing imported declarations must be migrated to
export functionorexport const. elseif,export, andconstare newly reserved words.
Validation
- Release build: 0 warnings and 0 errors.
- Test suite: 514 passed, 0 failed, 0 skipped.
- NuGet package version:
1.4.0.