This repository was archived by the owner on Aug 2, 2026. It is now read-only.
v0.4.6
MeoNode UI v0.4.6 – Enhanced Caching & Memoization with Safe Lifecycle Management
Release Date: 2025-11-17
Bug Fixes
- core/cache: Enhance memoization & caching system to prevent memory leaks and ensure safe lifecycle management. (
253d7d00)
Introduces a robust, three-layered cleanup strategy to ensure cache integrity:- Lifecycle-driven Cleanup:
MeoNodeUnmountercomponent ensures that caches of unmounted nodes are immediately cleaned when components are removed. - Event-driven SPA Cleanup:
NavigationCacheManagerUtiltriggers debounced cache clearing during SPA navigations (pushState/popstate), preventing stale entries. - GC-driven Safety Net: Uses
FinalizationRegistryto automatically clean cache entries for objects that are garbage collected, providing an additional layer of memory safety.
- Lifecycle-driven Cleanup:
Refactor
- core: Migrate core logic from
src/helper/to a newsrc/util/directory for better separation of concerns. - core: Extract internal utility functions from
core.node.tsintonode.util.tsfor modularity and reusability. - core: Make internal caches on
BaseNodepublic to support externalized cache management and monitoring.
Chore
- tooling: Enable TypeScript's
strict: truemode and update the codebase to comply fully with strict type checks. - tooling: Add CommonJS (
require) exports inpackage.jsonfor improved module compatibility in different environments. - tooling: Update test scripts to include
NODE_OPTIONS='--expose-gc', allowing explicit garbage collection during tests for more accurate memory testing. - tests: Refine test suite by standardizing
afterEachhooks and updating memoization tests to directly validate internal cache behavior.
Version Update
- Current version: 0.4.6