@meonode/ui 0.3.18 → 0.4.1

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 (37) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/dist/client.d.ts +1 -1
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/components/html.node.d.ts +139 -139
  5. package/dist/components/react.node.d.ts +3 -3
  6. package/dist/components/styled-renderer.client.d.ts +1 -1
  7. package/dist/components/styled-renderer.client.d.ts.map +1 -1
  8. package/dist/components/theme-provider.client.d.ts +1 -1
  9. package/dist/components/theme-provider.client.d.ts.map +1 -1
  10. package/dist/components/theme-provider.d.ts +1 -1
  11. package/dist/constants/common.const.d.ts +1 -0
  12. package/dist/constants/common.const.d.ts.map +1 -1
  13. package/dist/constants/common.const.js +1 -1
  14. package/dist/core.node.d.ts +70 -19
  15. package/dist/core.node.d.ts.map +1 -1
  16. package/dist/core.node.js +103 -50
  17. package/dist/helper/common.helper.d.ts +1 -1
  18. package/dist/helper/common.helper.d.ts.map +1 -1
  19. package/dist/helper/theme.helper.d.ts +1 -1
  20. package/dist/helper/theme.helper.d.ts.map +1 -1
  21. package/dist/hoc/component.hoc.d.ts +3 -3
  22. package/dist/hoc/component.hoc.d.ts.map +1 -1
  23. package/dist/hoc/component.hoc.js +1 -1
  24. package/dist/hoc/portal.hoc.d.ts +1 -1
  25. package/dist/hoc/portal.hoc.d.ts.map +1 -1
  26. package/dist/hook/usePortal.d.ts +1 -1
  27. package/dist/hook/usePortal.d.ts.map +1 -1
  28. package/dist/main.d.ts +1 -1
  29. package/dist/main.d.ts.map +1 -1
  30. package/dist/main.js +1 -1
  31. package/dist/nextjs-registry/index.d.ts +1 -1
  32. package/dist/{node.type.d.ts → types/node.type.d.ts} +11 -2
  33. package/dist/types/node.type.d.ts.map +1 -0
  34. package/dist/types/node.type.js +1 -0
  35. package/package.json +17 -17
  36. package/dist/node.type.d.ts.map +0 -1
  37. /package/dist/{node.type.js → types/env.d.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.1] - 2025-11-14
9
+
10
+ ### Test
11
+ - **node**: enhance dependency and memoization tests with real-world scenarios ([`d7452fa`](https://github.com/l7aromeo/meonode-ui/commit/d7452fae9b3ef22a82dc83210851849d82de479f))
12
+
13
+ ### Fix
14
+ - **core**: enhance error handling and improve style property detection ([`ca79c27`](https://github.com/l7aromeo/meonode-ui/commit/ca79c277cdfea5b62b54779ec2492518681639d1))
15
+
16
+ ### Chore
17
+ - **deps**: update dependencies in package.json for improved stability and performance ([`eba2108`](https://github.com/l7aromeo/meonode-ui/commit/eba21080c953b1c6b6c1bbb6a401257845116f09))
18
+
19
+ ### Perf
20
+ - **core**: Optimize prop processing and caching with new signature generation ([`8cf0319`](https://github.com/l7aromeo/meonode-ui/commit/8cf0319fd99c3c8496b6e63207cb378b6c521ae2))
21
+
22
+ ### Refactor
23
+ - **types**: move node.type.ts to types directory and update imports ([`ccf769a`](https://github.com/l7aromeo/meonode-ui/commit/ccf769a2670e4546bfa776034a4fa8925ca2d27d))
24
+
25
+ ## [0.4.0] - 2025-11-13
26
+
27
+ ### Feature
28
+ - **core**: Implemented an advanced memoization and caching system to optimize rendering performance. This includes:
29
+ - **Dependency-Based Memoization**: Nodes can now be created with a dependency array, similar to React's `useMemo`, to prevent unnecessary re-renders of the node and its entire subtree if dependencies have not changed. ([`3b0a110`](https://github.com/l7aromeo/meonode-ui/commit/3b0a110eb3db25862476d020182be9f0dba663e4))
30
+ - **Enhanced Prop Caching**: The prop signature generation is now more robust, and the cache uses an advanced LRU eviction strategy to remain efficient. ([`3b0a110`](https://github.com/l7aromeo/meonode-ui/commit/3b0a110eb3db25862476d020182be9f0dba663e4))
31
+ - **API Updates**: The `Node`, `createNode`, `createChildrenFirstNode`, and `Component` HOCs have been updated to accept an optional `deps` array to enable memoization. ([`3b0a110`](https://github.com/l7aromeo/meonode-ui/commit/3b0a110eb3db25862476d020182be9f0dba663e4))
32
+
33
+ ### Test
34
+ - **core**: Added a comprehensive suite of tests for the new memoization and caching system, covering dependency-based memoization, reactive and non-reactive children, complex state updates, and memoization of Higher-Order Components (HOCs). ([`6bcd1b1`](https://github.com/l7aromeo/meonode-ui/commit/6bcd1b1bc6b2450c3d4296cb4af326f61cfee401))
35
+
8
36
  ## [0.3.18] - 2025-11-12
9
37
 
10
38
  ### Fixed
@@ -642,4 +670,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
642
670
  - This changelog covers the most recent development history available
643
671
  - The project focuses on building React UIs with type-safe fluency without JSX syntax
644
672
  - Recent development has emphasized Emotion integration, type safety improvements, and enhanced flexbox support
645
- - For a complete history, view all commits on GitHub: [View all commits](https://github.com/l7aromeo/meonode-ui/commits)
673
+ - For a complete history, view all commits on GitHub: [View all commits](https://github.com/l7aromeo/meonode-ui/commits)
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { NodeInstance } from './node.type.js';
1
+ import type { NodeInstance } from './types/node.type.js';
2
2
  /**
3
3
  * Renders a Meonode instance into a DOM container.
4
4
  * @param node The Meonode instance to render (e.g., created with Div(), P(), etc.).
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,OAAO,mCAIjE"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAG3D;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,OAAO,mCAIjE"}