@webqit/observer 3.8.7 → 3.8.8
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 +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
Observe and intercept operations on arbitrary JavaScript objects and arrays using a utility-first, general-purpose reactivity API! This API re-explores the unique design of the [Object.observe()](https://web.dev/es7-observe/) API and unifies that with
|
|
14
|
+
Observe and intercept operations on arbitrary JavaScript objects and arrays using a utility-first, general-purpose reactivity API! This API re-explores the unique design of the [Object.observe()](https://web.dev/es7-observe/) API and unifies that with the rest of JavaScript's metaprogramming APIs like Proxy "traps" and the `Reflect` API!
|
|
15
15
|
|
|
16
16
|
The Observer API comes as one little API for all things _object observability_. (Only `~5.8KiB min|zip`)
|
|
17
17
|
|
|
@@ -32,7 +32,7 @@ Observer.deleteProperty(state, 'oldProp');
|
|
|
32
32
|
> [!TIP]
|
|
33
33
|
> Reactivity is anchored on the programmtic APIs — `.set()`, `.deleteProperty()`, etc. — but reactivity is also possible over literal JavaScript operations like `obj.prop = value`, `delete obj.prop` — by means of the `accessorize()` and `proxy()` methods covered just ahead.
|
|
34
34
|
>
|
|
35
|
-
> For full-fledged Imperative Reactive Programming, you may to see the [Quantum JS](https://github.com/webqit/quantum-js) project.
|
|
35
|
+
> For full-fledged Imperative Reactive Programming, you may want to see the [Quantum JS](https://github.com/webqit/quantum-js) project.
|
|
36
36
|
|
|
37
37
|
---
|
|
38
38
|
|
|
@@ -42,6 +42,8 @@ This documentation is for Observer@2.x. For the previous version, see [Observer@
|
|
|
42
42
|
|
|
43
43
|
</details>
|
|
44
44
|
|
|
45
|
+
## Table of Contents
|
|
46
|
+
|
|
45
47
|
- [Why Observer](#why-observer)
|
|
46
48
|
- [Quick Start](#quick-start)
|
|
47
49
|
- [Key Features](#key-features)
|
|
@@ -95,7 +97,7 @@ By enabling observability at the object/array level, the Observer API effectivel
|
|
|
95
97
|
+ you are able to weild *the sheer power of mutability* in programming to your advantage — and unappologetically
|
|
96
98
|
+ you are able to make sense of a mutable world — and integrate with it — rather than stand at odds with it.
|
|
97
99
|
|
|
98
|
-
The Observer API collapses layers of complexity that reactive frameworks have built around immutability, bringing you back to the simplicity and power of direct mutation—
|
|
100
|
+
The Observer API collapses layers of complexity that reactive frameworks have built around immutability, bringing you back to the simplicity and power of direct mutation—and this time, with full observability.
|
|
99
101
|
|
|
100
102
|
**The Result** is *mutation-based reactivity* as a first-class concept in JavaScript.
|
|
101
103
|
|