@rindo/core 2.16.0-beta.1 → 2.16.1
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 +30 -12
- package/cli/index.js +30 -12
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.js +209 -147
- package/compiler/rindo.min.js +2 -2
- package/dependencies.json +1 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +4 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +3 -3
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/rindo-public-compiler.d.ts +1 -0
- package/internal/testing/index.js +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +3 -1
- package/mock-doc/index.d.ts +1 -0
- package/mock-doc/index.js +3 -1
- package/mock-doc/package.json +1 -1
- package/package.json +3 -1
- package/screenshot/index.js +2 -0
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +18 -14
- package/testing/package.json +1 -1
package/internal/client/dom.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Rindo Client Patch Browser
|
|
2
|
+
Rindo Client Patch Browser v2.16.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
(function(){
|
|
5
5
|
var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return !b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return !(!a||!(a.__CE_isImportDocument||a instanceof Document))}
|
package/internal/client/index.js
CHANGED
|
@@ -11,7 +11,7 @@ let renderingRef = null;
|
|
|
11
11
|
let queueCongestion = 0;
|
|
12
12
|
let queuePending = false;
|
|
13
13
|
/*
|
|
14
|
-
Rindo Client Platform
|
|
14
|
+
Rindo Client Platform v2.16.1 | MIT Licensed | https://rindojs.web.app
|
|
15
15
|
*/
|
|
16
16
|
import { BUILD, NAMESPACE } from '@rindo/core/internal/app-data';
|
|
17
17
|
const win = typeof window !== 'undefined' ? window : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core/internal/client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "Rindo internal client platform to be imported by the Rindo Compiler and internal runtime. 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 Client Patch Browser
|
|
2
|
+
Rindo Client Patch Browser v2.16.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
import { BUILD, NAMESPACE } from '@rindo/core/internal/app-data';
|
|
5
5
|
import { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@rindo/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Rindo Client Patch Esm
|
|
2
|
+
Rindo Client Patch Esm v2.16.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
import { BUILD } from '@rindo/core/internal/app-data';
|
|
5
5
|
import { CSS, plt, win, promiseResolve } from '@rindo/core';
|
|
@@ -59,9 +59,9 @@ function hydrateApp(e, t, o, n, s) {
|
|
|
59
59
|
enumerable: !0
|
|
60
60
|
});
|
|
61
61
|
} else 64 & l && Object.defineProperty(e, n, {
|
|
62
|
-
value() {
|
|
63
|
-
const
|
|
64
|
-
return
|
|
62
|
+
value(...e) {
|
|
63
|
+
const t = getHostRef(this);
|
|
64
|
+
return t.$onInstancePromise$.then((() => t.$lazyInstance$[n](...e))).catch(consoleError);
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core/internal/hydrate",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "Rindo internal hydrate 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/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core/internal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.16.1",
|
|
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",
|
|
@@ -98,7 +98,7 @@ const defaultConsoleError = e => {
|
|
|
98
98
|
caughtErrors.push(new Error(e.join(", ")));
|
|
99
99
|
}, consoleDevWarn = (...e) => {
|
|
100
100
|
const t = e.filter((e => "string" == typeof e || "number" == typeof e || "boolean" == typeof e));
|
|
101
|
-
console.warn
|
|
101
|
+
console.warn(...t);
|
|
102
102
|
}, nextTick = e => {
|
|
103
103
|
queuedTicks.push(e);
|
|
104
104
|
}, win = mockDoc.setupGlobal(global), doc = win.document;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core/internal/testing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.16.1",
|
|
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Mock Doc (CommonJS)
|
|
2
|
+
Rindo Mock Doc (CommonJS) v2.16.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
var mockDoc = (function(exports) {
|
|
5
5
|
'use strict';
|
|
@@ -4268,9 +4268,11 @@ function cloneDocument(srcDoc) {
|
|
|
4268
4268
|
const dstWin = cloneWindow(srcDoc.defaultView);
|
|
4269
4269
|
return dstWin.document;
|
|
4270
4270
|
}
|
|
4271
|
+
// TODO - Evaluate reconciling MockWindow, Window differences
|
|
4271
4272
|
/**
|
|
4272
4273
|
* Constrain setTimeout() to 1ms, but still async. Also
|
|
4273
4274
|
* only allow setInterval() to fire once, also constrained to 1ms.
|
|
4275
|
+
* @param win the mock window instance to update
|
|
4274
4276
|
*/
|
|
4275
4277
|
function constrainTimeouts(win) {
|
|
4276
4278
|
win.__allowInterval = false;
|
package/mock-doc/index.d.ts
CHANGED
|
@@ -923,6 +923,7 @@ declare function cloneDocument(srcDoc: Document): Document;
|
|
|
923
923
|
/**
|
|
924
924
|
* Constrain setTimeout() to 1ms, but still async. Also
|
|
925
925
|
* only allow setInterval() to fire once, also constrained to 1ms.
|
|
926
|
+
* @param win the mock window instance to update
|
|
926
927
|
*/
|
|
927
928
|
declare function constrainTimeouts(win: any): void;
|
|
928
929
|
export { MockAttr, MockAttributeMap, MockComment, MockCustomEvent, MockDocument, MockElement, MockHTMLElement, MockHeaders, MockKeyboardEvent, MockMouseEvent, MockNode, MockRequest, MockRequestInfo, MockRequestInit, MockResponse, MockResponseInit, MockTextNode, MockWindow, NODE_TYPES, SerializeNodeToHtmlOptions, cloneAttributes, cloneDocument, cloneWindow, constrainTimeouts, createDocument, createFragment, parseHtmlToDocument, parseHtmlToFragment, patchWindow, resetDocument, serializeNodeToHtml, setupGlobal, teardownGlobal }
|
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Mock Doc
|
|
2
|
+
Rindo Mock Doc v2.16.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
const CONTENT_REF_ID = 'r';
|
|
5
5
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -4265,9 +4265,11 @@ function cloneDocument(srcDoc) {
|
|
|
4265
4265
|
const dstWin = cloneWindow(srcDoc.defaultView);
|
|
4266
4266
|
return dstWin.document;
|
|
4267
4267
|
}
|
|
4268
|
+
// TODO - Evaluate reconciling MockWindow, Window differences
|
|
4268
4269
|
/**
|
|
4269
4270
|
* Constrain setTimeout() to 1ms, but still async. Also
|
|
4270
4271
|
* only allow setInterval() to fire once, also constrained to 1ms.
|
|
4272
|
+
* @param win the mock window instance to update
|
|
4271
4273
|
*/
|
|
4272
4274
|
function constrainTimeouts(win) {
|
|
4273
4275
|
win.__allowInterval = false;
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./internal/rindo-core/index.cjs",
|
|
6
6
|
"module": "./internal/rindo-core/index.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "node scripts --prepare && npm run tsc.prod && npm run rollup.prod.ci",
|
|
28
|
+
"changelog": "conventional-changelog -p angular -o -i CHANGELOG.md -s",
|
|
28
29
|
"clean": "rm -rf build/ cli/ compiler/ dev-server/ internal/ mock-doc/ sys/ testing/ && npm run clean-scripts",
|
|
29
30
|
"clean-scripts": "rm -rf scripts/build",
|
|
30
31
|
"license": "node scripts --license",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"dts-bundle-generator": "~5.3.0",
|
|
87
88
|
"eslint": "^8.13.0",
|
|
88
89
|
"eslint-config-prettier": "^8.5.0",
|
|
90
|
+
"eslint-plugin-jsdoc": "^39.3.1",
|
|
89
91
|
"execa": "4.1.0",
|
|
90
92
|
"exit": "^0.1.2",
|
|
91
93
|
"fast-deep-equal": "3.1.3",
|
package/screenshot/index.js
CHANGED
|
@@ -437,6 +437,8 @@ class ScreenshotConnector {
|
|
|
437
437
|
* Forward-slash paths can be used in Windows as long as they're not
|
|
438
438
|
* extended-length paths and don't contain any non-ascii characters.
|
|
439
439
|
* This was created since the path methods in Node.js outputs \\ paths on Windows.
|
|
440
|
+
* @param path the Windows-based path to convert
|
|
441
|
+
* @returns the converted path
|
|
440
442
|
*/
|
|
441
443
|
const normalizePath = (path) => {
|
|
442
444
|
if (typeof path !== 'string') {
|
package/screenshot/package.json
CHANGED
package/sys/node/index.js
CHANGED
package/sys/node/package.json
CHANGED
package/sys/node/worker.js
CHANGED
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Testing
|
|
2
|
+
Rindo Testing v2.16.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
function _lazyRequire(e) {
|
|
5
5
|
return new Proxy({}, {
|
|
@@ -1237,7 +1237,7 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
|
|
|
1237
1237
|
return t;
|
|
1238
1238
|
}, trimFalsy = e => {
|
|
1239
1239
|
const t = e;
|
|
1240
|
-
for (
|
|
1240
|
+
for (let e = t.length - 1; e >= 0 && !t[e]; e--) t.pop();
|
|
1241
1241
|
return t;
|
|
1242
1242
|
}, noop = () => {}, isFunction = e => "function" == typeof e, isString = e => "string" == typeof e, isIterable = e => (e => null != e)(e) && isFunction(e[Symbol.iterator]), windowsPathRegex = /^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/, hasError = e => null != e && 0 !== e.length && e.some((e => "error" === e.level && "runtime" !== e.type)), normalizePath = e => {
|
|
1243
1243
|
if ("string" != typeof e) throw new Error("invalid path to normalize");
|
|
@@ -1351,22 +1351,26 @@ const jestPreprocessor = {
|
|
|
1351
1351
|
return [ process.version, _tsCompilerOptionsKey, e, t, r, !!s.instrument, 7 ].join(":");
|
|
1352
1352
|
}
|
|
1353
1353
|
}, deepEqual = function e(t, r) {
|
|
1354
|
-
var s, n, o, i, a, l, c, u, d, h;
|
|
1355
1354
|
if (t === r) return !0;
|
|
1356
1355
|
if (t && r && "object" == typeof t && "object" == typeof r) {
|
|
1357
|
-
|
|
1358
|
-
|
|
1356
|
+
const s = Array.isArray(t), n = Array.isArray(r);
|
|
1357
|
+
let o, i, a;
|
|
1358
|
+
if (s && n) {
|
|
1359
|
+
if (i = t.length, i != r.length) return !1;
|
|
1359
1360
|
for (o = i; 0 != o--; ) if (!e(t[o], r[o])) return !1;
|
|
1360
1361
|
return !0;
|
|
1361
1362
|
}
|
|
1362
1363
|
if (s != n) return !1;
|
|
1363
|
-
|
|
1364
|
+
const l = t instanceof Date, c = r instanceof Date;
|
|
1365
|
+
if (l != c) return !1;
|
|
1364
1366
|
if (l && c) return t.getTime() == r.getTime();
|
|
1365
|
-
|
|
1367
|
+
const u = t instanceof RegExp, d = r instanceof RegExp;
|
|
1368
|
+
if (u != d) return !1;
|
|
1366
1369
|
if (u && d) return t.toString() == r.toString();
|
|
1367
|
-
|
|
1370
|
+
const h = Object.keys(t);
|
|
1371
|
+
if (i = h.length, i !== Object.keys(r).length) return !1;
|
|
1368
1372
|
for (o = i; 0 != o--; ) if (!Object.prototype.hasOwnProperty.call(r, h[o])) return !1;
|
|
1369
|
-
for (o = i; 0 != o--; ) if (
|
|
1373
|
+
for (o = i; 0 != o--; ) if (a = h[o], !e(t[a], r[a])) return !1;
|
|
1370
1374
|
return !0;
|
|
1371
1375
|
}
|
|
1372
1376
|
return t != t && r != r;
|
|
@@ -3033,7 +3037,7 @@ const createSystem = e => {
|
|
|
3033
3037
|
u("/");
|
|
3034
3038
|
const D = {
|
|
3035
3039
|
name: "in-memory",
|
|
3036
|
-
version: "
|
|
3040
|
+
version: "2.16.1",
|
|
3037
3041
|
events: i,
|
|
3038
3042
|
access: async e => c(e),
|
|
3039
3043
|
accessSync: c,
|
|
@@ -3353,16 +3357,16 @@ class TestingLogger {
|
|
|
3353
3357
|
return "";
|
|
3354
3358
|
}
|
|
3355
3359
|
info(...e) {
|
|
3356
|
-
this.isEnabled && console.log
|
|
3360
|
+
this.isEnabled && console.log(...e);
|
|
3357
3361
|
}
|
|
3358
3362
|
warn(...e) {
|
|
3359
|
-
this.isEnabled && console.warn
|
|
3363
|
+
this.isEnabled && console.warn(...e);
|
|
3360
3364
|
}
|
|
3361
3365
|
error(...e) {
|
|
3362
|
-
this.isEnabled && console.error
|
|
3366
|
+
this.isEnabled && console.error(...e);
|
|
3363
3367
|
}
|
|
3364
3368
|
debug(...e) {
|
|
3365
|
-
this.isEnabled && console.log
|
|
3369
|
+
this.isEnabled && console.log(...e);
|
|
3366
3370
|
}
|
|
3367
3371
|
color(e, t) {}
|
|
3368
3372
|
red(e) {
|