@thi.ng/hdom-mock 2.1.5 → 2.1.6

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/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
+ ### [2.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-mock@2.1.6) (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
  ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-mock@2.1.0) (2021-11-17)
13
19
 
14
20
  #### 🚀 Features
package/index.js CHANGED
@@ -150,7 +150,7 @@ export class MockHDOM {
150
150
  break;
151
151
  default:
152
152
  if (isListener) {
153
- const lid = id.substr(2);
153
+ const lid = id.substring(2);
154
154
  const listeners = el.listeners[lid];
155
155
  (listeners || (el.listeners[lid] = [])).push(val);
156
156
  }
@@ -170,7 +170,7 @@ export class MockHDOM {
170
170
  for (let i = attribs.length; i-- > 0;) {
171
171
  const a = attribs[i];
172
172
  if (a.indexOf("on") === 0) {
173
- const listeners = el.listeners[a.substr(2)];
173
+ const listeners = el.listeners[a.substring(2)];
174
174
  if (listeners) {
175
175
  const i = listeners.indexOf(prev[a]);
176
176
  i >= 0 && listeners.splice(i, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom-mock",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Mock base implementation for @thi.ng/hdom API",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,13 +34,13 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.4",
38
- "@thi.ng/checks": "^3.1.4",
39
- "@thi.ng/hdom": "^9.1.5"
37
+ "@thi.ng/api": "^8.3.5",
38
+ "@thi.ng/checks": "^3.1.5",
39
+ "@thi.ng/hdom": "^9.1.6"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.19.4",
43
- "@thi.ng/testament": "^0.2.4",
43
+ "@thi.ng/testament": "^0.2.5",
44
44
  "rimraf": "^3.0.2",
45
45
  "tools": "^0.0.1",
46
46
  "typedoc": "^0.22.13",
@@ -62,7 +62,7 @@
62
62
  ],
63
63
  "exports": {
64
64
  ".": {
65
- "import": "./index.js"
65
+ "default": "./index.js"
66
66
  }
67
67
  },
68
68
  "thi.ng": {
@@ -70,5 +70,5 @@
70
70
  "status": "alpha",
71
71
  "year": 2018
72
72
  },
73
- "gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
73
+ "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
74
74
  }