Skip to content

Releases: zuixjs/zuix

v1.2.6

15 Dec 12:01

Choose a tag to compare

fix(core): Fix bug when hot-swapping components on the same DOM node

v1.2.5

02 Nov 23:13

Choose a tag to compare

1.2.5

v1.2.4

29 Oct 22:34

Choose a tag to compare

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 ComponentCache instance by ID (getCachedComponent).
  • Explicitly remove a component from the cache to force reallocation or free resources (removeCachedComponent).

v1.2.3

25 Oct 19:10

Choose a tag to compare

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

25 Oct 04:01

Choose a tag to compare

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 class or function was not one of the first tokens in the file.

  • Added JSDoc comments to the zuix.d.ts definition file. This provides better IntelliSense and inline documentation for developers using zuix.js in a TypeScript environment.

v1.2.1

25 Oct 03:49

Choose a tag to compare

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() and expose() 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 checked state via an observed object (Proxy) would prevent subsequent user clicks from unchecking it.

1.1.28

24 May 09:20

Choose a tag to compare

  • fix: ObjectObserver.observable(..) bug when JSON.stringify-ied.

1.1.27

18 May 16:18

Choose a tag to compare

  • fix: zuix.controller(..) not caching controller when options.componentId is passed
  • updated JSDocs
  • revamped helpers/Util class

1.1.26

18 May 16:17

Choose a tag to compare

  • ShadowDOM: automatically replace :root with :host for 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

1.1.25

11 May 10:44

Choose a tag to compare

  • fix parentContext value when parsing a nested component options