Skip to content

feat: array#17

Merged
anton62k merged 2 commits intomasterfrom
feat/array
Jan 29, 2026
Merged

feat: array#17
anton62k merged 2 commits intomasterfrom
feat/array

Conversation

@anton62k
Copy link
Contributor

@anton62k anton62k commented Jan 29, 2026

Summary by cubic

Add array context tokens and bump the spec to v1.2, enabling formulas to use #index/#length and @prev/@next (with parent/root paths) inside arrays. Updated parser, grammar, types, and docs; switched build to tsdown with .mjs ESM outputs.

  • New Features

    • Added array context tokens: #index, #length, and @prev/@next.
    • Supported nested context paths: @parent.x and @root.x.
    • Parser now detects context_token and sets minVersion to 1.2.
    • New types: ArrayLevelContext and ArrayContext.
    • SPEC updated to v1.2 and documented AST utilities.
  • Dependencies

    • Replaced tsup with tsdown; renamed config and updated ESLint ignores.
    • ESM outputs now use .mjs; CJS remains .cjs.
    • Updated export type declarations to .d.ts.

Written for commit abd3052. Summary will update on new commits. Review in cubic

cubic-dev-ai[bot]
cubic-dev-ai bot previously approved these changes Jan 29, 2026
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 15 files

@sonarqubecloud
Copy link

@anton62k anton62k merged commit 913d249 into master Jan 29, 2026
3 checks passed
@anton62k anton62k deleted the feat/array branch January 29, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant