@thi.ng/rdom 0.8.6 → 0.8.7

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dom.js +3 -3
  3. package/package.json +27 -27
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-03-11T12:13:49Z
3
+ - **Last updated**: 2022-04-07T14:17:30Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [0.8.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.8.7) (2022-04-07)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
17
+
12
18
  ### [0.8.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.8.1) (2021-11-19)
13
19
 
14
20
  #### 🩹 Bug fixes
package/dom.js CHANGED
@@ -114,7 +114,7 @@ export const $el = (tag, attribs, body, parent, idx = -1) => {
114
114
  : document.createElement(tag);
115
115
  }
116
116
  else {
117
- el = document.createElementNS(PREFIXES[tag.substr(0, qidx)], tag);
117
+ el = document.createElementNS(PREFIXES[tag.substring(0, qidx)], tag);
118
118
  }
119
119
  attribs && $attribs(el, attribs);
120
120
  body != null && $text(el, body);
@@ -206,7 +206,7 @@ const setAttrib = (el, id, val, attribs) => {
206
206
  el.setAttribute(id, val);
207
207
  }
208
208
  else {
209
- id = id.substr(2);
209
+ id = id.substring(2);
210
210
  isArray(val)
211
211
  ? el.addEventListener(id, val[0], val[1])
212
212
  : el.addEventListener(id, val);
@@ -261,7 +261,7 @@ const setAttrib = (el, id, val, attribs) => {
261
261
  : el.setAttribute(id, val);
262
262
  }
263
263
  else {
264
- const ns = PREFIXES[id.substr(0, idx)];
264
+ const ns = PREFIXES[id.substring(0, idx)];
265
265
  val === false || val == null
266
266
  ? el.removeAttributeNS(ns, id)
267
267
  : el.setAttributeNS(ns, id, val);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rdom",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,18 +35,18 @@
35
35
  "test": "testament test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.3.4",
39
- "@thi.ng/checks": "^3.1.4",
40
- "@thi.ng/errors": "^2.1.4",
41
- "@thi.ng/hiccup": "^4.2.5",
42
- "@thi.ng/paths": "^5.1.4",
43
- "@thi.ng/prefixes": "^2.1.4",
44
- "@thi.ng/rstream": "^7.2.3",
45
- "@thi.ng/strings": "^3.3.2"
38
+ "@thi.ng/api": "^8.3.5",
39
+ "@thi.ng/checks": "^3.1.5",
40
+ "@thi.ng/errors": "^2.1.5",
41
+ "@thi.ng/hiccup": "^4.2.6",
42
+ "@thi.ng/paths": "^5.1.5",
43
+ "@thi.ng/prefixes": "^2.1.5",
44
+ "@thi.ng/rstream": "^7.2.4",
45
+ "@thi.ng/strings": "^3.3.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-extractor": "^7.19.4",
49
- "@thi.ng/testament": "^0.2.4",
49
+ "@thi.ng/testament": "^0.2.5",
50
50
  "rimraf": "^3.0.2",
51
51
  "tools": "^0.0.1",
52
52
  "typedoc": "^0.22.13",
@@ -81,52 +81,52 @@
81
81
  ],
82
82
  "exports": {
83
83
  ".": {
84
- "import": "./index.js"
84
+ "default": "./index.js"
85
85
  },
86
86
  "./api": {
87
- "import": "./api.js"
87
+ "default": "./api.js"
88
88
  },
89
89
  "./checks": {
90
- "import": "./checks.js"
90
+ "default": "./checks.js"
91
91
  },
92
92
  "./compile": {
93
- "import": "./compile.js"
93
+ "default": "./compile.js"
94
94
  },
95
95
  "./component": {
96
- "import": "./component.js"
96
+ "default": "./component.js"
97
97
  },
98
98
  "./dom": {
99
- "import": "./dom.js"
99
+ "default": "./dom.js"
100
100
  },
101
101
  "./event": {
102
- "import": "./event.js"
102
+ "default": "./event.js"
103
103
  },
104
104
  "./klist": {
105
- "import": "./klist.js"
105
+ "default": "./klist.js"
106
106
  },
107
107
  "./list": {
108
- "import": "./list.js"
108
+ "default": "./list.js"
109
109
  },
110
110
  "./object": {
111
- "import": "./object.js"
111
+ "default": "./object.js"
112
112
  },
113
113
  "./promise": {
114
- "import": "./promise.js"
114
+ "default": "./promise.js"
115
115
  },
116
116
  "./replace": {
117
- "import": "./replace.js"
117
+ "default": "./replace.js"
118
118
  },
119
119
  "./scheduler": {
120
- "import": "./scheduler.js"
120
+ "default": "./scheduler.js"
121
121
  },
122
122
  "./sub": {
123
- "import": "./sub.js"
123
+ "default": "./sub.js"
124
124
  },
125
125
  "./switch": {
126
- "import": "./switch.js"
126
+ "default": "./switch.js"
127
127
  },
128
128
  "./wrap": {
129
- "import": "./wrap.js"
129
+ "default": "./wrap.js"
130
130
  }
131
131
  },
132
132
  "thi.ng": {
@@ -140,5 +140,5 @@
140
140
  "status": "beta",
141
141
  "year": 2020
142
142
  },
143
- "gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
143
+ "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
144
144
  }