@rindo/core 4.17.0 → 4.17.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/internal",
3
- "version": "4.17.0",
3
+ "version": "4.17.2",
4
4
  "description": "Rindo internals only to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -893,18 +893,18 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
893
893
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
894
894
 
895
895
  // src/runtime/vdom/update-element.ts
896
- var updateElement = (oldVnode, newVnode, isSvgMode2, memberName) => {
896
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
897
897
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
898
898
  const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
899
899
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
900
900
  if (import_app_data9.BUILD.updatable) {
901
- for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
901
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
902
902
  if (!(memberName in newVnodeAttrs)) {
903
903
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
904
904
  }
905
905
  }
906
906
  }
907
- for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
907
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
908
908
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
909
909
  }
910
910
  };
@@ -2092,7 +2092,6 @@ var disconnectedCallback = async (elm) => {
2092
2092
 
2093
2093
  // src/runtime/dom-extras.ts
2094
2094
  var import_app_data17 = require("@rindo/core/internal/app-data");
2095
- var import_mock_doc = require("../../mock-doc/index.cjs");
2096
2095
  var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
2097
2096
  patchCloneNode(hostElementPrototype);
2098
2097
  patchSlotAppendChild(hostElementPrototype);
@@ -2271,7 +2270,7 @@ var patchTextContent = (hostElementPrototype) => {
2271
2270
  const text = [];
2272
2271
  let slotContent = node.nextSibling;
2273
2272
  while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2274
- if (slotContent.nodeType === import_mock_doc.NODE_TYPES.TEXT_NODE || slotContent.nodeType === import_mock_doc.NODE_TYPES.ELEMENT_NODE) {
2273
+ if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
2275
2274
  text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2276
2275
  }
2277
2276
  slotContent = slotContent.nextSibling;
@@ -2307,7 +2306,7 @@ var patchTextContent = (hostElementPrototype) => {
2307
2306
  get() {
2308
2307
  var _a;
2309
2308
  const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2310
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === import_mock_doc.NODE_TYPES.TEXT_NODE) {
2309
+ if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2311
2310
  return slotNode.nextSibling.textContent;
2312
2311
  } else if (slotNode) {
2313
2312
  return slotNode.textContent;
@@ -2318,7 +2317,7 @@ var patchTextContent = (hostElementPrototype) => {
2318
2317
  set(value) {
2319
2318
  var _a;
2320
2319
  const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2321
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === import_mock_doc.NODE_TYPES.TEXT_NODE) {
2320
+ if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2322
2321
  slotNode.nextSibling.textContent = value;
2323
2322
  } else if (slotNode) {
2324
2323
  slotNode.textContent = value;
@@ -3061,8 +3060,8 @@ function flushLoadModule(bundleId) {
3061
3060
  }
3062
3061
 
3063
3062
  // src/testing/platform/testing-window.ts
3064
- var import_mock_doc2 = require("../../mock-doc/index.cjs");
3065
- var win = (0, import_mock_doc2.setupGlobal)(global);
3063
+ var import_mock_doc = require("../../mock-doc/index.cjs");
3064
+ var win = (0, import_mock_doc.setupGlobal)(global);
3066
3065
  var doc = win.document;
3067
3066
 
3068
3067
  // src/testing/platform/testing-platform.ts
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/internal/testing",
3
- "version": "4.17.0",
3
+ "version": "4.17.2",
4
4
  "description": "Rindo internal testing platform to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc (CommonJS) v4.17.0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Mock Doc (CommonJS) v4.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc v4.17.0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Mock Doc v4.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
 
5
5
  // src/runtime/runtime-constants.ts
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/mock-doc",
3
- "version": "4.17.0",
3
+ "version": "4.17.2",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core",
3
- "version": "4.17.0",
3
+ "version": "4.17.2",
4
4
  "license": "MIT",
5
5
  "main": "./internal/rindo-core/index.cjs",
6
6
  "module": "./internal/rindo-core/index.js",
@@ -115,7 +115,7 @@
115
115
  "rollup": "2.56.3",
116
116
  "rollup-plugin-sourcemaps": "^0.6.3",
117
117
  "semver": "^7.3.7",
118
- "terser": "5.30.3",
118
+ "terser": "5.30.4",
119
119
  "typescript": "~5.4.0",
120
120
  "webpack": "^5.75.0",
121
121
  "ws": "8.16.0"
@@ -144,6 +144,6 @@
144
144
  "prettier": "@familyjs/prettier-config",
145
145
  "volta": {
146
146
  "node": "20.12.2",
147
- "npm": "10.5.2"
147
+ "npm": "10.6.0"
148
148
  }
149
149
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- Rindo Screenshot v4.17.0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Screenshot v4.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/screenshot",
3
- "version": "4.17.0",
3
+ "version": "4.17.2",
4
4
  "description": "Rindo Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Rindo Screenshot Pixel Match v4.17.0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Screenshot Pixel Match v4.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;