Skip to content

Generalize input binding and rename always to live#662

Merged
1cg merged 1 commit intobigskysoftware:devfrom
scriptogre:generalize-input-binding
Apr 19, 2026
Merged

Generalize input binding and rename always to live#662
1cg merged 1 commit intobigskysoftware:devfrom
scriptogre:generalize-input-binding

Conversation

@scriptogre
Copy link
Copy Markdown
Contributor

Bind changes:

  • Unify _twoWayBind, _shorthandBind, and _radioBind into a single adapter-based _bind function
  • Auto-detect element properties (value, checked, valueAsNumber, textContent for contenteditable, value for custom elements)
  • Remove bare 'bind $var' shorthand (now requires 'bind $var to me')
  • Move assignability validation to install time for element expressions
  • Wrap bind install in try/catch for proper error reporting
  • Update all existing tests, add 7 new tests, update docs

Rename always -> live:

  • Rename feature keyword, source file, test file, and doc file
  • Update all references across tests, docs, and playground

Bind changes:
- Unify _twoWayBind, _shorthandBind, and _radioBind into a single
  adapter-based _bind function
- Auto-detect element properties (value, checked, valueAsNumber,
  textContent for contenteditable, value for custom elements)
- Remove bare 'bind $var' shorthand (now requires 'bind $var to me')
- Move assignability validation to install time for element expressions
- Wrap bind install in try/catch for proper error reporting
- Update all existing tests, add 7 new tests, update docs

Rename always -> live:
- Rename feature keyword, source file, test file, and doc file
- Update all references across tests, docs, and playground
@1cg 1cg merged commit 0ed6a17 into bigskysoftware:dev Apr 19, 2026
4 checks passed
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.

2 participants