Skip to content

Commit 325e808

Browse files
committed
[add] VNode unRef() callback
[optimize] reuse similar Deleting DOM nodes instead of Creating ones [fix] Empty & Text children updating [migrate] replace David-DM.org with Libraries.io for Dependency badge
1 parent ea506db commit 325e808

File tree

8 files changed

+130
-67
lines changed

8 files changed

+130
-67
lines changed

ReadMe.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
A light-weight DOM Renderer supports [Web components][1] standard & [TypeScript][2] language.
44

5-
[![CI & CD](https://github.com/EasyWebApp/DOM-Renderer/actions/workflows/main.yml/badge.svg)][3]
6-
7-
[![Open in GitPod](https://img.shields.io/badge/GitPod-dev--now-blue?logo=gitpod)][4]
5+
[![NPM Dependency](https://img.shields.io/librariesio/github/EasyWebApp/DOM-Renderer.svg)][3]
6+
[![CI & CD](https://github.com/EasyWebApp/DOM-Renderer/actions/workflows/main.yml/badge.svg)][4]
87

98
[![NPM](https://nodei.co/npm/dom-renderer.png?downloads=true&downloadRank=true&stars=true)][5]
109

10+
[![Open in GitPod](https://img.shields.io/badge/GitPod-dev--now-blue?logo=gitpod)][6]
11+
1112
## Usage
1213

1314
### JavaScript
@@ -38,7 +39,7 @@ console.log(newVNode);
3839

3940
### TypeScript
4041

41-
[![Edit DOM Renderer example](https://codesandbox.io/static/img/play-codesandbox.svg)][6]
42+
[![Edit DOM Renderer example](https://codesandbox.io/static/img/play-codesandbox.svg)][7]
4243

4344
#### `tsconfig.json`
4445

@@ -65,21 +66,29 @@ const newVNode = new DOMRenderer().render(
6566
console.log(newVNode);
6667
```
6768

69+
## Framework
70+
71+
### Web components
72+
73+
[![Edit MobX Web components](https://codesandbox.io/static/img/play-codesandbox.svg)][8]
74+
6875
## Original
6976

7077
### Inspiration
7178

72-
[![SnabbDOM](https://github.com/snabbdom.png)][7]
79+
[![SnabbDOM](https://github.com/snabbdom.png)][9]
7380

7481
### Prototype
7582

76-
[![Edit DOM Renderer](https://codesandbox.io/static/img/play-codesandbox.svg)][8]
83+
[![Edit DOM Renderer](https://codesandbox.io/static/img/play-codesandbox.svg)][10]
7784

7885
[1]: https://www.webcomponents.org/
7986
[2]: https://www.typescriptlang.org/
80-
[3]: https://github.com/EasyWebApp/DOM-Renderer/actions/workflows/main.yml
81-
[4]: https://gitpod.io/#https://github.com/EasyWebApp/DOM-Renderer
87+
[3]: https://libraries.io/npm/dom-renderer
88+
[4]: https://github.com/EasyWebApp/DOM-Renderer/actions/workflows/main.yml
8289
[5]: https://nodei.co/npm/dom-renderer/
83-
[6]: https://codesandbox.io/s/dom-renderer-example-pmcsvs?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.tsx&theme=dark
84-
[7]: https://github.com/snabbdom/snabbdom
85-
[8]: https://codesandbox.io/s/dom-renderer-pglxkx?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.ts&theme=dark
90+
[6]: https://gitpod.io/#https://github.com/EasyWebApp/DOM-Renderer
91+
[7]: https://codesandbox.io/s/dom-renderer-example-pmcsvs?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.tsx&theme=dark
92+
[8]: https://codesandbox.io/s/mobx-web-components-pvn9rf?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FWebComponent.ts&moduleview=1&theme=dark
93+
[9]: https://github.com/snabbdom/snabbdom
94+
[10]: https://codesandbox.io/s/dom-renderer-pglxkx?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.ts&theme=dark

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dom-renderer",
3-
"version": "2.0.0-rc.5",
3+
"version": "2.0.0",
44
"license": "LGPL-3.0-or-later",
55
"author": "[email protected]",
66
"description": "A light-weight DOM Renderer supports Web components standard & TypeScript language",
@@ -29,7 +29,7 @@
2929
},
3030
"devDependencies": {
3131
"@types/jest": "^29.5.3",
32-
"@types/node": "^18.17.1",
32+
"@types/node": "^18.17.2",
3333
"husky": "^8.0.3",
3434
"jest": "^29.6.2",
3535
"jest-environment-jsdom": "^29.6.2",

pnpm-lock.yaml

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)