Skip to content

fix(grammar): fix secondary compoments grammar#91

Merged
char0n merged 4 commits into
mainfrom
char0n/grammar-fix-components-secondary-grammar
Jan 29, 2026
Merged

fix(grammar): fix secondary compoments grammar#91
char0n merged 4 commits into
mainfrom
char0n/grammar-fix-components-secondary-grammar

Conversation

@char0n
Copy link
Copy Markdown
Member

@char0n char0n commented Jan 29, 2026

"inputs" field is not allowed.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the "inputs" field from the ComponentsExpression grammar, as indicated by the description stating that the "inputs" field is not allowed. The change updates the type definitions, grammar files, documentation, and test fixtures to reflect that only "parameters", "successActions", and "failureActions" are valid fields for $components expressions.

Changes:

  • Removed "inputs" from the ComponentsExpression field type definition
  • Removed test fixture for $components.inputs.username
  • Updated grammar opcodes and ABNF definitions to exclude "inputs"

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
types/index.d.ts Removed "inputs" from the ComponentsExpression field type union
test/fixtures/expressions-valid.js Removed the invalid $components.inputs.username test case
src/grammar.js Updated generated grammar opcodes and ABNF string to remove "inputs" option
src/grammar.bnf Updated BNF grammar definition to remove "inputs" from components-field rule
README.md Updated grammar documentation to remove "inputs" from components-field rule

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/grammar.js Outdated
Comment thread src/grammar.bnf Outdated
Comment thread README.md
char0n and others added 2 commits January 29, 2026 15:06
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Jan 29, 2026

@char0n I've opened a new pull request, #92, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@char0n char0n merged commit b53544a into main Jan 29, 2026
4 checks passed
@char0n char0n deleted the char0n/grammar-fix-components-secondary-grammar branch January 29, 2026 14:10
char0n pushed a commit that referenced this pull request Jan 29, 2026
## [2.0.2](v2.0.1...v2.0.2) (2026-01-29)

### Bug Fixes

* **grammar:** fix secondary compoments grammar ([#91](#91)) ([b53544a](b53544a))
* **types:** fix downstream type usage ([#90](#90)) ([cc65b1d](cc65b1d))
@char0n
Copy link
Copy Markdown
Member Author

char0n commented Jan 29, 2026

🎉 This PR is included in version 2.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants