sprae 10.10.0 → 10.10.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/package.json +2 -2
- package/readme.md +6 -6
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sprae",
|
|
3
3
|
"description": "DOM microhydration.",
|
|
4
|
-
"version": "10.10.
|
|
4
|
+
"version": "10.10.1",
|
|
5
5
|
"main": "./sprae.js",
|
|
6
6
|
"module": "./sprae.js",
|
|
7
|
-
"unpkg": "dist/sprae.
|
|
7
|
+
"unpkg": "dist/sprae.auto.min.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
10
10
|
"core.js",
|
package/readme.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ∴ spræ [](https://github.com/dy/sprae/actions/workflows/node.js.yml) [](https://bundlephobia.com/package/sprae) [](https://npmjs.
|
|
1
|
+
# ∴ spræ [](https://github.com/dy/sprae/actions/workflows/node.js.yml) [](https://bundlephobia.com/package/sprae) [](https://www.npmjs.com/package/sprae)
|
|
2
2
|
|
|
3
3
|
> DOM tree microhydration
|
|
4
4
|
|
|
@@ -304,10 +304,10 @@ name.value = 'Dolly';
|
|
|
304
304
|
Provider | Size | Feature
|
|
305
305
|
:---|:---|:---
|
|
306
306
|
[`ulive`](https://ghub.io/ulive) (default) | 350b | Minimal implementation, basic performance, good for small states.
|
|
307
|
-
[`@webreflection/signal`](https://
|
|
308
|
-
[`usignal`](https://
|
|
307
|
+
[`@webreflection/signal`](https://ghub.io/@webreflection/signal) | 531b | Class-based, better performance, good for small-medium states.
|
|
308
|
+
[`usignal`](https://ghub.io/usignal) | 850b | Class-based with optimizations, good for medium states.
|
|
309
309
|
[`@preact/signals-core`](https://ghub.io/@preact/signals-core) | 1.47kb | Best performance, good for any states, industry standard.
|
|
310
|
-
[`signal-polyfill`](https://
|
|
310
|
+
[`signal-polyfill`](https://ghub.com/signal-polyfill) | 2.5kb | Proposal signals. Use via [adapter](https://gist.github.com/dy/bbac687464ccf5322ab0e2fd0680dc4d).
|
|
311
311
|
|
|
312
312
|
|
|
313
313
|
## Evaluator
|
|
@@ -322,7 +322,7 @@ import justin from 'subscript/justin'
|
|
|
322
322
|
sprae.use({compile: justin}) // set up justin as default compiler
|
|
323
323
|
```
|
|
324
324
|
|
|
325
|
-
[_Justin_](https://github.com/dy/subscript
|
|
325
|
+
[_Justin_](https://github.com/dy/subscript#justin) is minimal JS subset that avoids "unsafe-eval" CSP and provides sandboxing.
|
|
326
326
|
|
|
327
327
|
###### Operators:
|
|
328
328
|
|
|
@@ -464,7 +464,7 @@ npm run results
|
|
|
464
464
|
* Wavearea: [demo](https://dy.github.io/wavearea?src=//cdn.freesound.org/previews/586/586281_2332564-lq.mp3), [code](https://github.com/dy/wavearea)
|
|
465
465
|
* Carousel: [demo](https://rwdevelopment.github.io/sprae_js_carousel/), [code](https://github.com/RWDevelopment/sprae_js_carousel)
|
|
466
466
|
* Tabs: [demo](https://rwdevelopment.github.io/sprae_js_tabs/), [code](https://github.com/RWDevelopment/sprae_js_tabs?tab=readme-ov-file)
|
|
467
|
-
* Prostogreen [demo](
|
|
467
|
+
* Prostogreen [demo](https://web-being.org/prostogreen/), [code](https://github.com/web-being/prostogreen/)
|
|
468
468
|
|
|
469
469
|
<!--
|
|
470
470
|
## See Also
|