@mintjamsinc/ichigojs 0.1.4 → 0.1.6

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.
@@ -84,6 +84,13 @@ export declare class VNode {
84
84
  */
85
85
  get dependentIdentifiers(): string[];
86
86
  get preparableIdentifiers(): string[];
87
+ /**
88
+ * Gets the user data storage for this virtual node.
89
+ * This is lazily initialized and provides a Proxy-free space for storing
90
+ * arbitrary data associated with lifecycle directives.
91
+ * @returns A Map for storing user data.
92
+ */
93
+ get userData(): Map<string, any>;
87
94
  /**
88
95
  * The DOM path of this virtual node.
89
96
  * This is a string representation of the path from the root to this node,
@@ -123,6 +130,14 @@ export declare class VNode {
123
130
  /**
124
131
  * Cleans up any resources used by this virtual node.
125
132
  * This method is called when the virtual node is no longer needed.
133
+ *
134
+ * Cleanup order:
135
+ * 1. Call onUnmount lifecycle hooks
136
+ * 2. Auto-cleanup userData (close() on Closeable objects)
137
+ * 3. Recursively destroy child nodes
138
+ * 4. Unregister dependencies
139
+ * 5. Clean up directive manager
140
+ * 6. Call onUnmounted lifecycle hooks
126
141
  */
127
142
  destroy(): void;
128
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintjamsinc/ichigojs",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "ichigo.js - Simple and intuitive reactive framework. Lightweight, fast, and user-friendly virtual DOM library",
5
5
  "main": "./dist/ichigo.umd.js",
6
6
  "module": "./dist/ichigo.esm.js",