lithent 1.0.2 → 1.0.4
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 +7 -8
- package/dist/lithent.mjs +363 -796
- 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 +0 -1
- package/examples/dist/assets/index.f6f52820.js +2 -0
- package/examples/dist/assets/index.f6f52820.js.map +1 -0
- package/examples/dist/index.html +1 -1
- package/package.json +1 -1
- package/src/diff.ts +12 -26
- package/src/render.ts +33 -14
- package/src/tests/renew.tsx +3 -2
- package/src/utils/predicator.ts +0 -5
- package/src/wDom.ts +3 -7
- package/examples/dist/assets/index.1e9792b7.js +0 -2
- package/examples/dist/assets/index.1e9792b7.js.map +0 -1
package/README.md
CHANGED
|
@@ -9,8 +9,7 @@ used lightly in a variety of situations.
|
|
|
9
9
|
- https://superlucky84.github.io/lithent
|
|
10
10
|
- (This guide page is written in lithent.)
|
|
11
11
|
|
|
12
|
-
`(9.
|
|
13
|
-
|
|
12
|
+
`(9.64 KiB / gzip: 3.76 KiB)`
|
|
14
13
|
|
|
15
14
|
## 🚩 Table of Contents
|
|
16
15
|
|
|
@@ -61,10 +60,10 @@ pnpm add lithent
|
|
|
61
60
|
|
|
62
61
|
#### Or Use CDN
|
|
63
62
|
|
|
64
|
-
* UMD : https://cdn.jsdelivr.net/npm/lithent@1.0.
|
|
65
|
-
* UMD-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.0.
|
|
66
|
-
* ESM : https://cdn.jsdelivr.net/npm/lithent@1.0.
|
|
67
|
-
* ESM-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.0.
|
|
63
|
+
* UMD : https://cdn.jsdelivr.net/npm/lithent@1.0.4/dist/lithent.umd.js
|
|
64
|
+
* UMD-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.0.4/helper/dist/lithentHelper.umd.js
|
|
65
|
+
* ESM : https://cdn.jsdelivr.net/npm/lithent@1.0.4/dist/lithent.mjs
|
|
66
|
+
* ESM-HELPER: https://cdn.jsdelivr.net/npm/lithent@1.0.4/helper/dist/lithentHelper.mjs
|
|
68
67
|
|
|
69
68
|
|
|
70
69
|
It's easier to use lithent with JSX or HTM.
|
|
@@ -124,8 +123,8 @@ const destroy = render(html`<${Component} />`, document.getElementById('root'));
|
|
|
124
123
|
#### With UMD
|
|
125
124
|
|
|
126
125
|
```html
|
|
127
|
-
<script src="https://cdn.jsdelivr.net/npm/lithent@1.0.
|
|
128
|
-
<!--script src="https://cdn.jsdelivr.net/npm/lithent@1.0.
|
|
126
|
+
<script src="https://cdn.jsdelivr.net/npm/lithent@1.0.4/dist/lithent.umd.js"></script>
|
|
127
|
+
<!--script src="https://cdn.jsdelivr.net/npm/lithent@1.0.4/helper/dist/lithentHelper.umd.js"></script-->
|
|
129
128
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/htm/3.1.1/htm.js"></script>
|
|
130
129
|
|
|
131
130
|
<div id="root"></div>
|