@jasonshimmy/custom-elements-runtime 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,7 +22,7 @@ component('my-counter', {
22
22
  template: ({ count }) => html`
23
23
  <button data-on-click="increment">Count: ${count}</button>
24
24
  `({ count }),
25
- increment: (_e, state) => state.count++
25
+ increment(event, state) { state.count++; }
26
26
  });
27
27
  ```
28
28
 
@@ -54,7 +54,7 @@ See the [API Reference](docs/api-reference.md) for advanced configuration, SSR,
54
54
  - Templates require a single root node. Fragments are supported, but strict reconciliation and keys are recommended for robust updates.
55
55
  - Only one event handler per event type per element; handlers must be defined on the config object.
56
56
  - Controlled input sync always prioritizes user typing over state updates.
57
- - SSR hydration is opt-in via `hydrate`; refs, event listeners, and lifecycle hooks are excluded during SSR.
57
+ - SSR hydration is opt-in via `data-hydrate`; refs, event listeners, and lifecycle hooks are excluded during SSR.
58
58
  - User-generated content is escaped in templates using `html` and `compile` helpers.
59
59
  - Only documented features are supported; undocumented features may not work as expected.
60
60
  - Plugin system hooks must be pure and side-effect free for best results.
@@ -112,16 +112,17 @@ See the [API Reference](docs/api-reference.md) for advanced configuration, SSR,
112
112
 
113
113
  ## 📚 Documentation
114
114
 
115
+ - [Advanced Use Cases](docs/advanced-use-cases.md): Patterns for event bus, store, plugin system, async templates, error boundaries, SSR, VDOM.
115
116
  - [API Reference](docs/api-reference.md): All runtime exports, configuration options, and advanced patterns.
116
117
  - [Core Concepts](docs/core-concepts.md): State, attribute sync, event binding, input binding, global store, event bus, lifecycle, error boundaries, SSR, plugin system.
117
118
  - [Data Model vs Data Bind](docs/data-model-vs-data-bind.md): Comparison, use cases, modifiers, deep binding, edge cases.
118
- - [Advanced Use Cases](docs/advanced-use-cases.md): Patterns for event bus, store, plugin system, async templates, error boundaries, SSR, VDOM.
119
+ - [Examples](docs/examples.md): Concise, accurate code for all features and patterns.
119
120
  - [Form Input Bindings](docs/form-input-bindings.md): All supported input types, modifiers, deep binding, edge cases, VDOM patching.
120
- - [SSR Guide](docs/ssr.md): SSR, hydration, limitations, API.
121
- - [Routing](docs/routing.md): Lightweight, functional router with SSR/static site support.
122
121
  - [Framework Comparison](docs/framework-comparison.md): Unique features, tradeoffs, strengths, and when to choose each approach.
123
122
  - [Framework Integration](docs/framework-integration.md): Using with React, Vue, Angular, Svelte, and Lit.
124
- - [Examples](docs/examples.md): Concise, accurate code for all features and patterns.
123
+ - [Routing](docs/routing.md): Lightweight, functional router with SSR/static site support.
124
+ - [SSR](docs/ssr.md): SSR, hydration, limitations, API.
125
+
125
126
 
126
127
  See the [API Reference](docs/api-reference.md) for detailed usage, configuration options, and advanced patterns. For advanced topics, see the linked docs above.
127
128
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jasonshimmy/custom-elements-runtime",
3
3
  "description": "A powerful, modern, and lightweight runtime for creating reactive web components with TypeScript",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "web-components",