Skip to content

RuleScript v1.4.0

Choose a tag to compare

@github-actions github-actions released this 02 Jul 07:08
· 68 commits to main since this release
b95bc96

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 elseif branches, object literals, object and array target assignments, conditional member access (?.), and null coalescing (??).
  • Added array and object destructuring declarations.
  • Added const, export function, and export const.
  • Added ArrayInsert, ArrayRemoveAt, ArraySort, ObjectKeys, and ObjectContainsKey.

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 const declarations are included in cursor-aware VisibleVariables.
  • 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 function or export const.
  • elseif, export, and const are 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.