@pumped-fn/lite 0.2.0 → 1.0.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.
- package/CHANGELOG.md +58 -0
- package/README.md +534 -134
- package/dist/index.cjs +72 -25
- package/dist/index.d.cts +24 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +24 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +72 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @pumped-fn/lite
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9ee6ac2: Add comprehensive README documentation for release
|
|
8
|
+
|
|
9
|
+
- Add installation instructions
|
|
10
|
+
- Add quick start guide with complete example
|
|
11
|
+
- Document all core concepts (Atoms, Flows, Controllers, Tags, Presets, Extensions)
|
|
12
|
+
- Add lifecycle diagrams (state machine, resolution flow, invalidation flow)
|
|
13
|
+
- Add complete API reference tables
|
|
14
|
+
- Add comparison with @pumped-fn/core-next
|
|
15
|
+
- Add guidance on when to choose lite vs core-next
|
|
16
|
+
|
|
17
|
+
- 219fce4: Update MIGRATION.md with accurate API documentation
|
|
18
|
+
|
|
19
|
+
- Add Controller.on() event filtering (`'resolved'`, `'resolving'`, `'*'`)
|
|
20
|
+
- Add scope.select() fine-grained subscription example
|
|
21
|
+
- Add Fine-grained select() to feature comparison table
|
|
22
|
+
- Fix Quick Reference table with event filtering syntax
|
|
23
|
+
|
|
24
|
+
## 1.0.0
|
|
25
|
+
|
|
26
|
+
### Major Changes
|
|
27
|
+
|
|
28
|
+
- f5dc22f: **BREAKING**: `createScope()` now returns `Scope` synchronously instead of `Promise<Scope>`.
|
|
29
|
+
|
|
30
|
+
Migration:
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
// Before
|
|
34
|
+
const scope = await createScope();
|
|
35
|
+
|
|
36
|
+
// After
|
|
37
|
+
const scope = createScope();
|
|
38
|
+
// resolve() waits for ready internally, or use:
|
|
39
|
+
await scope.ready;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**BREAKING**: `Controller.on()` now requires explicit event type.
|
|
43
|
+
|
|
44
|
+
Migration:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
// Before
|
|
48
|
+
ctl.on(() => { ... })
|
|
49
|
+
|
|
50
|
+
// After
|
|
51
|
+
ctl.on('resolved', () => { ... }) // Most common: react to new values
|
|
52
|
+
ctl.on('resolving', () => { ... }) // Loading states
|
|
53
|
+
ctl.on('*', () => { ... }) // All state changes
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Other changes:
|
|
57
|
+
|
|
58
|
+
- Fix duplicate listener notifications (was 3x per invalidation, now 2x)
|
|
59
|
+
- On failed state, only `'*'` listeners are notified (not `'resolved'`)
|
|
60
|
+
|
|
3
61
|
## 0.2.0
|
|
4
62
|
|
|
5
63
|
### Minor Changes
|