You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
- RefCallback<T>, RefProp<T> types
- 40+ new SVG attributes, no catch-all
- New HTML globals (contentEditable, popover, inert, etc.)
- Compiler fix: _bindText only for simple identifiers (toLocaleString fix)
- _bindText/_bindDirect runtime fallback for non-signal callables
- Unhandled component errors now console.error
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: content/docs/core/index.mdx
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -421,8 +421,9 @@ jsx(Card, {
421
421
Pyreon provides comprehensive JSX type definitions for all standard HTML and SVG elements. Each element type has its own attribute interface with proper typing:
422
422
423
423
-**HTML elements**: `div`, `span`, `button`, `input`, `form`, `a`, `img`, etc.
424
-
-**SVG elements**: `svg`, `path`, `circle`, `rect`, `g`, `text`, etc.
-**SVG elements**: `svg`, `path`, `circle`, `rect`, `g`, `text`, etc. -- includes 40+ SVG-specific attributes for gradients, patterns, markers, clipping, masking, filters, presentation, text, and path elements (no catch-all index signature)
Copy file name to clipboardExpand all lines: content/docs/runtime-dom/index.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ When `mount` is called, the following lifecycle occurs:
77
77
78
78
1.**Container cleared** -- All existing DOM children are removed.
79
79
2.**VNode tree walked** -- `mountChild` recursively processes each node.
80
-
3.**Components initialized** -- Each component function is called once. An `EffectScope` is created for the component so all signals and effects are tracked.
80
+
3.**Components initialized** -- Each component function is called once. An `EffectScope` is created for the component so all signals and effects are tracked. If a component throws during setup or render, the error is logged via `console.error` instead of being silently swallowed.
81
81
4.**DOM elements created** -- `document.createElement` for element VNodes (or `cloneNode` for template-optimized elements).
82
82
5.**Props applied** -- Event listeners registered, reactive effects created for dynamic attributes.
83
83
6.**Children mounted** -- Recursive depth-first mount of child VNodes.
@@ -1368,6 +1368,8 @@ function StaggeredList() {
1368
1368
|`mountChild`| Mount a single child node (internal) |
1369
1369
|`createTemplate`| Create a template-cloning factory |
Copy file name to clipboardExpand all lines: content/docs/vite-plugin/index.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,8 @@ The Pyreon compiler transform does three things:
174
174
175
175
3.**Template emission** -- Element trees with 2 or more consecutive DOM elements (no components) are compiled into `_tpl()` calls. Templates use `cloneNode` internally, which is faster than creating elements one by one.
176
176
177
+
Within templates, the compiler emits `_bindText` only for **simple identifiers** (e.g., `count()`, `name()`). Property access calls like `value.toLocaleString()` or `row.label()` use `_bind()` instead, which preserves the correct `this` context. The `_bindText` and `_bindDirect` runtime helpers include a fallback to `renderEffect` when the source is a non-signal callable (i.e., lacks `.direct()`), making them safe for any callable value.
178
+
177
179
Compiler warnings are surfaced in the terminal via Vite's warning system, including the file path, line, and column number.
0 commit comments