Skip to content

Commit

Permalink
Release v22.9.0
Browse files Browse the repository at this point in the history
-- git fetch;git merge-base --is-ancestor @{upstream} HEAD

-- lj lint

-- rm -rf node_modules;npm install
added 2 packages, and audited 3 packages in 485ms

found 0 vulnerabilities

-- npm outdated

-- ! git rev-parse -q --verify v22.9.0

-- lj test
DOM lite
  ✔ it can create nodes #1 [41/41]
  ✔ it can create elements with namespace #2 [1/1]
  ✔ it can clone HTMLElements #3 [42/42]
  ✔ it can set style parameters #4 [10/10]
  ✔ it can clone HTMLElements #5 [18/18]
  ✔ it can clone Text #6 [2/2]
  ✔ it has getters/setters #7 [11/11]
  ✔ it has HTMLElement #8 [28/28]
  ✔ it has HTMLElement.attributes #9 [30/30]
  ✔ it has documentFragment #10 [28/28]
Selectors
  ✔ getElementById, getElementsByTagName, getElementsByClassName, querySelector #11 [36/36]
  ✔ Element.matches and Element.closest #12 [133/133]
  ✔ :nth-child selector #13 [15/15]
  ✔ :nth-last-child selector #14 [16/16]
  ✔ :lang() selector #15 [2/2]
parser
  ✔ replace document #16 [7/7]
  ✔ atom #17 [3/3]
DOMParser
  ✔ MDN DOMParser example #18 [4/4]
1..18
# pass  18/18 [427/427] in 27 ms at 21:44:09
  • Loading branch information
lauriro committed Sep 26, 2022
1 parent 81c80bc commit 848354c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Examples
--------

```javascript
var document = require("dom-lite").document;
const { document, DOMParser, XMLSerializer } = require("dom-lite");

var el = document.createElement("h1");
el.id = 123;
Expand Down Expand Up @@ -47,11 +47,10 @@ Follow [Coding Style Guide](https://github.com/litejs/litejs/wiki/Style-Guide)
Run tests

```
npm install -g @litejs/cli jshint c8
npm install -g jshint c8
npm install
lj test
lj lint
c8 lj test
npm test
jshint *.js
```


Expand Down
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@


/**
* @version 0.5.1
* @date 2016-07-26
* @stability 2 - Unstable
* @version 22.9.0
* @date 2022-09-26
* @author Lauri Rooden <lauri@rooden.ee>
* @license MIT License
*/
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "dom-lite",
"version": "20.2.0",
"version": "22.9.0",
"license": "MIT",
"author": "Lauri Rooden <lauri@rooden.ee>",
"description": "A small DOM implementation",
"keywords": [
"browser",
"document",
"dom",
"DOMParser",
"XMLSerializer",
"litejs"
],
"main": "index.js",
"readmeFilename": "README.md",
"files": [
"index.js"
],
"files": [],
"scripts": {
"release": "lj release test/index.js --brief",
"test": "c8 lj test test/index.js --brief"
},
"repository": "git://github.com/litejs/dom-lite.git",
Expand All @@ -27,6 +28,7 @@
"@litejs/cli": "22.8.0"
},
"litejs": {
"build": "lj build --readme index.js",
"lint": "jshint *.js"
},
"jshintConfig": {
Expand Down

0 comments on commit 848354c

Please sign in to comment.