lithent 1.14.0 → 1.14.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/README.md +17 -17
- package/dist/lithent.mjs +210 -213
- package/dist/lithent.mjs.map +1 -1
- package/dist/lithent.umd.js +1 -1
- package/dist/lithent.umd.js.map +1 -1
- package/dist/utils/predicator.d.ts +1 -3
- package/examples/dist/assets/index-49a-yvJN.js +2 -0
- package/examples/dist/assets/index-49a-yvJN.js.map +1 -0
- package/examples/dist/index.html +1 -1
- package/{src/tests/helper-cacheupdate.tsx → helper/src/tests/cacheupdate.tsx} +3 -27
- package/{src/tests/helper-computed.tsx → helper/src/tests/computed.tsx} +2 -26
- package/{src/tests/helper-effect.tsx → helper/src/tests/effect.tsx} +3 -30
- package/helper/src/tests/store2.tsx +59 -0
- package/{src/tests/helper-storeObserver.tsx → helper/src/tests/storeObserver.tsx} +2 -94
- package/package.json +2 -2
- package/src/render.ts +5 -30
- package/src/tests/core-input.tsx +4 -6
- package/src/tests/core-renew.tsx +21 -1
- package/src/tests/core-textarea.tsx +2 -0
- package/src/utils/predicator.ts +7 -7
- package/src/utils/redraw.ts +5 -8
- package/src/wDom.ts +14 -22
- package/examples/dist/assets/index-42zKyFLo.js +0 -2
- package/examples/dist/assets/index-42zKyFLo.js.map +0 -1
- package/src/tests/helper-store.tsx +0 -96
- package/src/tests/helper-store2.tsx +0 -149
package/README.md
CHANGED
|
@@ -21,8 +21,8 @@ Lithent were developed to make it easy to insert Virtual DOM component
|
|
|
21
21
|
fragments into pages already drawn with SSR, and are intended to be
|
|
22
22
|
used lightly in a variety of situations.
|
|
23
23
|
|
|
24
|
-
`(lithent.mjs 14.
|
|
25
|
-
`(lithent.umd.js 10.
|
|
24
|
+
`(lithent.mjs 14.25 kB │ gzip: 4.49 kB │ map: 59.74 kB)`
|
|
25
|
+
`(lithent.umd.js 10.39 kB │ gzip: 4.03 kB │ map: 58.16 kB)`
|
|
26
26
|
|
|
27
27
|
## 🚩 Table of Contents
|
|
28
28
|
- [Thanks for the introduction](#thanks-for-the-introduction)
|
|
@@ -78,14 +78,14 @@ pnpm add lithent
|
|
|
78
78
|
|
|
79
79
|
#### Or Use CDN
|
|
80
80
|
|
|
81
|
-
* UMD : https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
82
|
-
* UMD-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
83
|
-
* UMD-FTAGS: https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
84
|
-
* UMD-TAG: https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
85
|
-
* ESM : https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
86
|
-
* ESM-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
87
|
-
* ESM-FTAGS: https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
88
|
-
* ESM-TAG: https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
81
|
+
* UMD : https://cdn.jsdelivr.net/npm/lithent@1.14.1/dist/lithent.umd.js
|
|
82
|
+
* UMD-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.14.1/helper/dist/lithentHelper.umd.js
|
|
83
|
+
* UMD-FTAGS: https://cdn.jsdelivr.net/npm/lithent@1.14.1/ftags/dist/lithentFTags.umd.js
|
|
84
|
+
* UMD-TAG: https://cdn.jsdelivr.net/npm/lithent@1.14.1/tag/dist/lithentTag.umd.js
|
|
85
|
+
* ESM : https://cdn.jsdelivr.net/npm/lithent@1.14.1/dist/lithent.mjs
|
|
86
|
+
* ESM-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.14.1/helper/dist/lithentHelper.mjs
|
|
87
|
+
* ESM-FTAGS: https://cdn.jsdelivr.net/npm/lithent@1.14.1/ftags/dist/lithentFTags.mjs
|
|
88
|
+
* ESM-TAG: https://cdn.jsdelivr.net/npm/lithent@1.14.1/tag/dist/lithentTag.mjs
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
It's easier to use lithent with JSX or HTM.
|
|
@@ -110,9 +110,9 @@ import { fTags, fFragment, fMount } from 'lithent/ftags';
|
|
|
110
110
|
const { section, div, p, br, strong } = fTags;
|
|
111
111
|
|
|
112
112
|
/* UMD
|
|
113
|
-
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
114
|
-
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
115
|
-
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
113
|
+
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.1/dist/lithent.umd.js"></script>
|
|
114
|
+
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.1/helper/dist/lithentHelper.umd.js"></script>
|
|
115
|
+
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.1/ftags/dist/lithentFTags.umd.js"></script>
|
|
116
116
|
|
|
117
117
|
const { render } = lithent;
|
|
118
118
|
const { fTags, fMount, fFragment } = lithentFTags;
|
|
@@ -185,10 +185,10 @@ const destroy = render(lTag`<${Component} />`, document.getElementById('root'),
|
|
|
185
185
|
#### With UMD
|
|
186
186
|
|
|
187
187
|
```html
|
|
188
|
-
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
189
|
-
<!--script src="https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
190
|
-
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
191
|
-
<!--script src="https://cdn.jsdelivr.net/npm/lithent@1.14.
|
|
188
|
+
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.1/dist/lithent.umd.js"></script>
|
|
189
|
+
<!--script src="https://cdn.jsdelivr.net/npm/lithent@1.14.1/helper/dist/lithentHelper.umd.js"></script-->
|
|
190
|
+
<script src="https://cdn.jsdelivr.net/npm/lithent@1.14.1/tag/dist/lithentTag.umd.js"></script>
|
|
191
|
+
<!--script src="https://cdn.jsdelivr.net/npm/lithent@1.14.1/ftags/dist/lithentFTags.umd.js"></script-->
|
|
192
192
|
|
|
193
193
|
<div id="root"></div>
|
|
194
194
|
|