@rindo/core 4.25.3 → 4.27.0
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 +4 -4
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.js +1545 -1475
- 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 +4 -4
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +4 -4
- package/internal/app-data/index.cjs +3 -14
- package/internal/app-data/index.js +0 -11
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +639 -228
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/shadow-css.js +30 -6
- package/internal/hydrate/index.js +674 -233
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +22 -5
- package/internal/hydrate/runner.js +34 -9
- package/internal/package.json +1 -1
- package/internal/rindo-private.d.ts +6 -13
- package/internal/rindo-public-compiler.d.ts +23 -6
- package/internal/testing/index.js +637 -242
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +233 -233
- package/mock-doc/index.d.ts +5 -1
- package/mock-doc/index.js +230 -230
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/index.js +4 -4
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +3 -3
- package/sys/node/index.js +9 -9
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +9 -16
- package/testing/jest/jest-27-and-under/matchers/html.d.ts +2 -1
- package/testing/jest/jest-28/matchers/html.d.ts +2 -1
- package/testing/jest/jest-29/matchers/html.d.ts +2 -1
- package/testing/package.json +1 -1
package/sys/node/package.json
CHANGED
package/sys/node/worker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Node System Worker v4.
|
|
2
|
+
Rindo Node System Worker v4.27.0 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
"use strict";var f=Object.create;var s=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(r,e,d,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of E(e))!R.call(r,o)&&o!==d&&s(r,o,{get:()=>e[o],enumerable:!(t=p(e,o))||t.enumerable});return r};var a=(r,e,d)=>(d=r!=null?f(y(r)):{},g(e||!r||!r.__esModule?s(d,"default",{value:r,enumerable:!0}):d,r));var l=a(require("../../compiler/rindo.js")),m=a(require("../../sys/node/index.js"));var c=(r,e)=>{let d=o=>{o&&o.code==="ERR_IPC_CHANNEL_CLOSED"&&r.exit(0)},t=(o,n)=>{let i={rindoId:o,rindoRtnValue:null,rindoRtnError:"Error"};typeof n=="string"?i.rindoRtnError+=": "+n:n&&(n.stack?i.rindoRtnError+=": "+n.stack:n.message&&(i.rindoRtnError+=":"+n.message)),r.send(i,d)};r.on("message",async o=>{if(o&&typeof o.rindoId=="number")try{let n={rindoId:o.rindoId,rindoRtnValue:await e(o),rindoRtnError:null};r.send(n,d)}catch(n){t(o.rindoId,n)}}),r.on("unhandledRejection",o=>{t(-1,o)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);c(process,M);
|
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Testing v4.
|
|
2
|
+
Rindo Testing v4.27.0 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
@@ -378,6 +378,8 @@ var require_semver = __commonJS({
|
|
|
378
378
|
this.inc("patch", identifier, identifierBase);
|
|
379
379
|
this.inc("pre", identifier, identifierBase);
|
|
380
380
|
break;
|
|
381
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
382
|
+
// prepatch.
|
|
381
383
|
case "prerelease":
|
|
382
384
|
if (this.prerelease.length === 0) {
|
|
383
385
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -405,6 +407,8 @@ var require_semver = __commonJS({
|
|
|
405
407
|
}
|
|
406
408
|
this.prerelease = [];
|
|
407
409
|
break;
|
|
410
|
+
// This probably shouldn't be used publicly.
|
|
411
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
408
412
|
case "pre": {
|
|
409
413
|
const base = Number(identifierBase) ? 1 : 0;
|
|
410
414
|
if (!identifier && identifierBase === false) {
|
|
@@ -1635,8 +1639,8 @@ var require_resolve = __commonJS({
|
|
|
1635
1639
|
});
|
|
1636
1640
|
|
|
1637
1641
|
// src/testing/index.ts
|
|
1638
|
-
var
|
|
1639
|
-
__export(
|
|
1642
|
+
var index_exports = {};
|
|
1643
|
+
__export(index_exports, {
|
|
1640
1644
|
MockHeaders: () => import_mock_doc2.MockHeaders,
|
|
1641
1645
|
MockRequest: () => import_mock_doc2.MockRequest,
|
|
1642
1646
|
MockRequestInfo: () => import_mock_doc2.MockRequestInfo,
|
|
@@ -1666,7 +1670,7 @@ __export(testing_exports, {
|
|
|
1666
1670
|
shuffleArray: () => shuffleArray,
|
|
1667
1671
|
transpile: () => transpile
|
|
1668
1672
|
});
|
|
1669
|
-
module.exports = __toCommonJS(
|
|
1673
|
+
module.exports = __toCommonJS(index_exports);
|
|
1670
1674
|
|
|
1671
1675
|
// src/testing/jest/jest-rindo-connector.ts
|
|
1672
1676
|
var import_major2 = __toESM(require_major());
|
|
@@ -10646,22 +10650,12 @@ var getBuildFeatures = (cmps) => {
|
|
|
10646
10650
|
const slotRelocation = cmps.some((c) => c.encapsulation !== "shadow" && c.htmlTagNames.includes("slot"));
|
|
10647
10651
|
const f = {
|
|
10648
10652
|
allRenderFn: cmps.every((c) => c.hasRenderFn),
|
|
10649
|
-
cmpDidLoad: cmps.some((c) => c.hasComponentDidLoadFn),
|
|
10650
|
-
cmpShouldUpdate: cmps.some((c) => c.hasComponentShouldUpdateFn),
|
|
10651
|
-
cmpDidUnload: cmps.some((c) => c.hasComponentDidUnloadFn),
|
|
10652
|
-
cmpDidUpdate: cmps.some((c) => c.hasComponentDidUpdateFn),
|
|
10653
|
-
cmpDidRender: cmps.some((c) => c.hasComponentDidRenderFn),
|
|
10654
|
-
cmpWillLoad: cmps.some((c) => c.hasComponentWillLoadFn),
|
|
10655
|
-
cmpWillUpdate: cmps.some((c) => c.hasComponentWillUpdateFn),
|
|
10656
|
-
cmpWillRender: cmps.some((c) => c.hasComponentWillRenderFn),
|
|
10657
10653
|
formAssociated: cmps.some((c) => c.formAssociated),
|
|
10658
|
-
connectedCallback: cmps.some((c) => c.hasConnectedCallbackFn),
|
|
10659
|
-
disconnectedCallback: cmps.some((c) => c.hasDisconnectedCallbackFn),
|
|
10660
10654
|
element: cmps.some((c) => c.hasElement),
|
|
10661
10655
|
event: cmps.some((c) => c.hasEvent),
|
|
10662
10656
|
hasRenderFn: cmps.some((c) => c.hasRenderFn),
|
|
10663
10657
|
lifecycle: cmps.some((c) => c.hasLifecycle),
|
|
10664
|
-
asyncLoading:
|
|
10658
|
+
asyncLoading: true,
|
|
10665
10659
|
hostListener: cmps.some((c) => c.hasListener),
|
|
10666
10660
|
hostListenerTargetWindow: cmps.some((c) => c.hasListenerTargetWindow),
|
|
10667
10661
|
hostListenerTargetDocument: cmps.some((c) => c.hasListenerTargetDocument),
|
|
@@ -10702,7 +10696,6 @@ var getBuildFeatures = (cmps) => {
|
|
|
10702
10696
|
watchCallback: cmps.some((c) => c.hasWatchCallback),
|
|
10703
10697
|
taskQueue: true
|
|
10704
10698
|
};
|
|
10705
|
-
f.asyncLoading = f.cmpWillUpdate || f.cmpWillLoad || f.cmpWillRender;
|
|
10706
10699
|
f.vdomAttribute = f.vdomAttribute || f.reflect;
|
|
10707
10700
|
f.vdomPropOrAttr = f.vdomPropOrAttr || f.reflect;
|
|
10708
10701
|
return f;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as d from '@rindo/core/internal';
|
|
1
2
|
export declare function toEqualHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string): {
|
|
2
3
|
message: () => string;
|
|
3
4
|
pass: boolean;
|
|
@@ -6,7 +7,7 @@ export declare function toEqualLightHtml(input: string | HTMLElement | ShadowRoo
|
|
|
6
7
|
message: () => string;
|
|
7
8
|
pass: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot:
|
|
10
|
+
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot: d.SerializeDocumentOptions['serializeShadowRoot']): {
|
|
10
11
|
message: () => string;
|
|
11
12
|
pass: boolean;
|
|
12
13
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as d from '@rindo/core/internal';
|
|
1
2
|
export declare function toEqualHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string): {
|
|
2
3
|
message: () => string;
|
|
3
4
|
pass: boolean;
|
|
@@ -6,7 +7,7 @@ export declare function toEqualLightHtml(input: string | HTMLElement | ShadowRoo
|
|
|
6
7
|
message: () => string;
|
|
7
8
|
pass: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot:
|
|
10
|
+
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot: d.SerializeDocumentOptions['serializeShadowRoot']): {
|
|
10
11
|
message: () => string;
|
|
11
12
|
pass: boolean;
|
|
12
13
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as d from '@rindo/core/internal';
|
|
1
2
|
export declare function toEqualHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string): {
|
|
2
3
|
message: () => string;
|
|
3
4
|
pass: boolean;
|
|
@@ -6,7 +7,7 @@ export declare function toEqualLightHtml(input: string | HTMLElement | ShadowRoo
|
|
|
6
7
|
message: () => string;
|
|
7
8
|
pass: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot:
|
|
10
|
+
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot: d.SerializeDocumentOptions['serializeShadowRoot']): {
|
|
10
11
|
message: () => string;
|
|
11
12
|
pass: boolean;
|
|
12
13
|
};
|