@rindo/core 4.17.1 → 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.
- package/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.js +87 -83
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +7 -8
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +7 -8
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +13986 -20
- package/internal/package.json +1 -1
- package/internal/testing/index.js +8 -9
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +3 -3
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +16 -16
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
package/internal/package.json
CHANGED
|
@@ -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
|
|
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 ===
|
|
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) ===
|
|
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) ===
|
|
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
|
|
3065
|
-
var win = (0,
|
|
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.
|
|
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
|
package/mock-doc/index.cjs
CHANGED
package/mock-doc/index.js
CHANGED
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core",
|
|
3
|
-
"version": "4.17.
|
|
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.
|
|
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.
|
|
147
|
+
"npm": "10.6.0"
|
|
148
148
|
}
|
|
149
149
|
}
|
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED