Releases: zuixjs/zuix
v1.2.6
v1.2.5
v1.2.4
feat: Add methods for direct component cache management
Exposes the new getCachedComponent and removeCachedComponent methods to the zuix core API.
These methods allow developers to:
- Retrieve a
ComponentCacheinstance by ID (getCachedComponent). - Explicitly remove a component from the cache to force reallocation or free resources (
removeCachedComponent).
v1.2.3
fix(core): improve robustness of controller parser
This patch significantly improves the controller loader's parsing logic to make it more robust against different code formatting styles.
This fix ensures that controllers with JSDoc headers or helper variables defined in the global scope are now loaded correctly, improving backward compatibility.
v1.2.2
fix(core): improve controller parsing and add IntelliSense comments
This patch improves the robustness of the controller loader and enhances the developer experience by adding JSDoc comments to TypeScript definitions.
-
The controller normalization logic has been updated to correctly handle JavaScript files that begin with comments. The previous parser could fail if
classorfunctionwas not one of the first tokens in the file. -
Added JSDoc comments to the
zuix.d.tsdefinition file. This provides better IntelliSense and inline documentation for developers using zuix.js in a TypeScript environment.
v1.2.1
This release introduces a quality-of-life improvement to the controller's declare() and expose() methods, and also fixes a bug related to checkbox databinding.
-
Controller methods passed to
declare()andexpose()are now automatically bound to the controller instance. This eliminates the need to manually use.bind(this)when making controller methods available to the view script or the public component API. The implementation is fully backward-compatible. -
Fixes a bug where programmatically setting a checkbox's
checkedstate via an observed object (Proxy) would prevent subsequent user clicks from unchecking it.
1.1.28
1.1.27
1.1.26
- ShadowDOM: automatically replace
:rootwith:hostfor imported CSS - Scriptlet: added
trigger(eventPath, data)to trigger context events from the view scripting scope (HTML) - Fix: check component container before component view when checking shadow root
- Fix: propagate component events also on custom element tag if defined