@signaltree/core 1.1.1 → 1.1.3
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.
- package/README.md +19 -18
- package/fesm2022/signaltree-core.mjs +361 -434
- package/fesm2022/signaltree-core.mjs.map +1 -1
- package/index.d.ts +1 -213
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,14 +4,14 @@ The foundation package for SignalTree - featuring revolutionary recursive typing
|
|
|
4
4
|
|
|
5
5
|
## ✨ What is @signaltree/core?
|
|
6
6
|
|
|
7
|
-
SignalTree Core is the lightweight (
|
|
7
|
+
SignalTree Core is the lightweight (5.1KB gzipped) foundation that provides:
|
|
8
8
|
|
|
9
9
|
- **🔥 Revolutionary Recursive Typing** with deep nesting support and strong type inference
|
|
10
10
|
- **⚡ Excellent Performance** - 0.021ms at 15+ levels with consistent speed
|
|
11
11
|
- **🏆 Strong Type Safety** with TypeScript inference at 25+ recursive levels
|
|
12
12
|
- **💾 Memory Efficient** through structural sharing and lazy signals
|
|
13
13
|
- **🌳 Lightweight Abstractions** for recursive patterns
|
|
14
|
-
- **📦 Compact Bundle Size** - Complete recursive power in just
|
|
14
|
+
- **📦 Compact Bundle Size** - Complete recursive power in just 5.1KB gzipped
|
|
15
15
|
|
|
16
16
|
### 🔥 Recursive Depth Performance Metrics
|
|
17
17
|
|
|
@@ -572,12 +572,12 @@ _Exceptional scaling: Only 92% performance overhead for 4x depth increase_
|
|
|
572
572
|
|
|
573
573
|
### Advanced Performance Features
|
|
574
574
|
|
|
575
|
-
| Feature | SignalTree Core
|
|
576
|
-
| ------------------- |
|
|
577
|
-
| Batching efficiency | Standard
|
|
578
|
-
| Memoization speedup | Basic
|
|
579
|
-
| Memory efficiency | **Optimized**
|
|
580
|
-
| Bundle impact |
|
|
575
|
+
| Feature | SignalTree Core | With Extensions | Notes |
|
|
576
|
+
| ------------------- | ----------------- | ---------------------- | ---------------------- |
|
|
577
|
+
| Batching efficiency | Standard | **455.8x improvement** | vs non-batched |
|
|
578
|
+
| Memoization speedup | Basic | **197.9x speedup** | vs non-memoized |
|
|
579
|
+
| Memory efficiency | **Optimized** | **Further optimized** | Lazy signals + cleanup |
|
|
580
|
+
| Bundle impact | **5.1KB gzipped** | **+15KB max** | Tree-shakeable |
|
|
581
581
|
|
|
582
582
|
### Developer Experience (Core Package)
|
|
583
583
|
|
|
@@ -858,15 +858,16 @@ const tree = signalTree(initialState).pipe(withBatching(), withMemoization(), wi
|
|
|
858
858
|
|
|
859
859
|
### Available Extensions
|
|
860
860
|
|
|
861
|
-
- **@signaltree/batching** (+1KB) - Batch multiple updates
|
|
862
|
-
- **@signaltree/memoization** (+
|
|
863
|
-
- **@signaltree/middleware** (+
|
|
864
|
-
- **@signaltree/async** (+
|
|
865
|
-
- **@signaltree/entities** (+
|
|
866
|
-
- **@signaltree/devtools** (+
|
|
867
|
-
- **@signaltree/time-travel** (+
|
|
868
|
-
- **@signaltree/ng-forms** (+
|
|
869
|
-
- **@signaltree/
|
|
861
|
+
- **@signaltree/batching** (+1.1KB gzipped) - Batch multiple updates
|
|
862
|
+
- **@signaltree/memoization** (+1.7KB gzipped) - Intelligent caching & performance
|
|
863
|
+
- **@signaltree/middleware** (+1.2KB gzipped) - Middleware system & taps
|
|
864
|
+
- **@signaltree/async** (+1.7KB gzipped) - Advanced async actions & states
|
|
865
|
+
- **@signaltree/entities** (+929B gzipped) - Advanced entity management
|
|
866
|
+
- **@signaltree/devtools** (+2.3KB gzipped) - Redux DevTools integration
|
|
867
|
+
- **@signaltree/time-travel** (+1.5KB gzipped) - Undo/redo functionality
|
|
868
|
+
- **@signaltree/ng-forms** (+3.4KB gzipped) - Complete Angular forms integration
|
|
869
|
+
- **@signaltree/serialization** (+3.6KB gzipped) - State persistence & SSR support
|
|
870
|
+
- **@signaltree/presets** (+0.5KB gzipped) - Environment-based configurations
|
|
870
871
|
|
|
871
872
|
## 🎯 When to Use Core Only
|
|
872
873
|
|
|
@@ -999,7 +1000,7 @@ Extend the core with optional feature packages:
|
|
|
999
1000
|
|
|
1000
1001
|
### Performance & Optimization
|
|
1001
1002
|
|
|
1002
|
-
- **[@signaltree/batching](../batching)** (+
|
|
1003
|
+
- **[@signaltree/batching](../batching)** (+3.7KB) - Batch multiple updates for better performance
|
|
1003
1004
|
- **[@signaltree/memoization](../memoization)** (+2KB) - Intelligent caching & performance optimization
|
|
1004
1005
|
|
|
1005
1006
|
### Advanced Features
|