@reckona/mreact-reactive-dom 0.0.2 → 0.0.4

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 +6 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -18,6 +18,12 @@ createRoot(document.body, () => {
18
18
  });
19
19
  ```
20
20
 
21
+ Keep the dispose function returned by `createRoot()` when you mount manually.
22
+ `bindText()`, `bindList()`, `effect()`, and the other low-level bindings use an
23
+ explicit lifetime model. Bindings created inside a `createRoot()` scope are
24
+ cleaned up when that root is disposed; bindings created outside a root must be
25
+ disposed manually.
26
+
21
27
  ## Core APIs
22
28
 
23
29
  - `createRoot()` owns a DOM scope and cleanup lifecycle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reckona/mreact-reactive-dom",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Fine-grained DOM binding runtime for compiled mreact output.",
5
5
  "keywords": [
6
6
  "compiler-runtime",
@@ -39,7 +39,7 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@reckona/mreact-reactive-core": "0.0.2",
43
- "@reckona/mreact-shared": "0.0.2"
42
+ "@reckona/mreact-reactive-core": "0.0.4",
43
+ "@reckona/mreact-shared": "0.0.4"
44
44
  }
45
45
  }