@rindo/core 3.0.1 → 3.2.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/config-flags.d.ts +122 -122
- package/cli/index.cjs +2335 -2432
- package/cli/index.d.ts +19 -19
- package/cli/index.js +2336 -2433
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.d.ts +73 -73
- package/compiler/rindo.js +66180 -62899
- package/compiler/rindo.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +218 -218
- package/compiler/transpile.d.ts +32 -32
- package/dev-server/client/app-error.d.ts +18 -18
- package/dev-server/client/events.d.ts +6 -6
- package/dev-server/client/hmr-components.d.ts +1 -1
- package/dev-server/client/hmr-external-styles.d.ts +1 -1
- package/dev-server/client/hmr-images.d.ts +1 -1
- package/dev-server/client/hmr-inline-styles.d.ts +1 -1
- package/dev-server/client/hmr-util.d.ts +9 -9
- package/dev-server/client/hmr-window.d.ts +10 -10
- package/dev-server/client/index.d.ts +6 -6
- package/dev-server/client/index.js +781 -781
- package/dev-server/client/logger.d.ts +5 -5
- package/dev-server/client/package.json +1 -1
- package/dev-server/client/progress.d.ts +3 -3
- package/dev-server/client/status.d.ts +4 -4
- package/dev-server/connector.html +2 -2
- package/dev-server/index.d.ts +3 -3
- package/dev-server/index.js +228 -228
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +1300 -1281
- package/dev-server/ws.js +1 -1
- package/dev-server/xdg-open +0 -0
- package/internal/app-data/index.cjs +88 -88
- package/internal/app-data/index.d.ts +4 -4
- package/internal/app-data/index.js +88 -88
- 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 +3380 -3380
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +155 -155
- package/internal/client/patch-esm.js +25 -25
- package/internal/client/shadow-css.js +382 -382
- package/internal/hydrate/package.json +1 -1
- package/internal/index.d.ts +2 -2
- package/internal/index.js +1 -1
- package/internal/package.json +1 -1
- package/internal/rindo-private.d.ts +2289 -2268
- package/internal/rindo-public-compiler.d.ts +2429 -2356
- package/internal/rindo-public-docs.d.ts +139 -139
- package/internal/rindo-public-runtime.d.ts +1636 -1636
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +4766 -4766
- package/mock-doc/index.d.ts +1006 -1006
- package/mock-doc/index.js +4766 -4766
- package/mock-doc/package.json +1 -1
- package/package.json +9 -9
- package/screenshot/connector-base.d.ts +42 -42
- package/screenshot/connector-local.d.ts +7 -7
- package/screenshot/index.d.ts +3 -3
- package/screenshot/index.js +615 -615
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.d.ts +1 -1
- package/screenshot/pixel-match.js +14 -14
- package/screenshot/screenshot-compare.d.ts +3 -3
- package/screenshot/screenshot-fs.d.ts +15 -15
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/glob.js +1 -1
- package/sys/node/graceful-fs.js +1 -1
- package/sys/node/index.d.ts +22 -22
- package/sys/node/index.js +14 -8
- package/sys/node/node-fetch.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +12 -12
- package/testing/index.js +7 -3
- package/testing/jest/jest-config.d.ts +16 -16
- package/testing/jest/jest-environment.d.ts +15 -15
- package/testing/jest/jest-preprocessor.d.ts +59 -59
- package/testing/jest/jest-runner.d.ts +10 -10
- package/testing/jest/jest-screenshot.d.ts +2 -2
- package/testing/jest/jest-serializer.d.ts +4 -4
- package/testing/jest/jest-setup-test-framework.d.ts +1 -1
- package/testing/jest-preset.js +1 -1
- package/testing/matchers/attributes.d.ts +14 -14
- package/testing/matchers/class-list.d.ts +12 -12
- package/testing/matchers/events.d.ts +21 -21
- package/testing/matchers/html.d.ts +12 -12
- package/testing/matchers/index.d.ts +23 -23
- package/testing/matchers/screenshot.d.ts +5 -5
- package/testing/matchers/text.d.ts +4 -4
- package/testing/mock-fetch.d.ts +11 -11
- package/testing/mocks.d.ts +56 -56
- package/testing/package.json +1 -1
- package/testing/puppeteer/index.d.ts +2 -2
- package/testing/puppeteer/puppeteer-browser.d.ts +6 -6
- package/testing/puppeteer/puppeteer-declarations.d.ts +403 -403
- package/testing/puppeteer/puppeteer-element.d.ts +67 -67
- package/testing/puppeteer/puppeteer-emulate.d.ts +2 -2
- package/testing/puppeteer/puppeteer-events.d.ts +21 -21
- package/testing/puppeteer/puppeteer-page.d.ts +2 -2
- package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -4
- package/testing/reset-build-conditionals.d.ts +2 -2
- package/testing/spec-page.d.ts +2 -2
- package/testing/test-transpile.d.ts +2 -2
- package/testing/testing-logger.d.ts +25 -25
- package/testing/testing-sys.d.ts +6 -6
- package/testing/testing-utils.d.ts +79 -79
- package/testing/testing.d.ts +2 -2
- package/dependencies.json +0 -120
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./internal/rindo-core/index.cjs",
|
|
6
6
|
"module": "./internal/rindo-core/index.js",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"bin/",
|
|
16
16
|
"cli/",
|
|
17
17
|
"compiler/",
|
|
18
|
-
"dependencies.json",
|
|
19
18
|
"dev-server/",
|
|
20
19
|
"internal/",
|
|
21
20
|
"mock-doc/",
|
|
@@ -60,19 +59,19 @@
|
|
|
60
59
|
"@types/inquirer": "^7.3.1",
|
|
61
60
|
"@types/jest": "^27.0.3",
|
|
62
61
|
"@types/listr": "^0.14.4",
|
|
63
|
-
"@types/node": "^
|
|
62
|
+
"@types/node": "^18.14.0",
|
|
64
63
|
"@types/pixelmatch": "^5.2.4",
|
|
65
64
|
"@types/pngjs": "^6.0.1",
|
|
66
65
|
"@types/prompts": "^2.0.9",
|
|
67
66
|
"@types/semver": "^7.3.12",
|
|
68
67
|
"@types/sizzle": "^2.3.2",
|
|
69
|
-
"@types/webpack": "^4.41.26",
|
|
70
68
|
"@types/ws": "^8.5.4",
|
|
71
69
|
"@types/yarnpkg__lockfile": "^1.1.5",
|
|
72
70
|
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
|
73
71
|
"@typescript-eslint/parser": "^5.38.0",
|
|
74
72
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
75
73
|
"ansi-colors": "4.1.3",
|
|
74
|
+
"assert": "^2.0.0",
|
|
76
75
|
"autoprefixer": "10.4.13",
|
|
77
76
|
"conventional-changelog-cli": "^2.2.2",
|
|
78
77
|
"dts-bundle-generator": "~7.1.0",
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
"eslint-plugin-jest": "^27.0.4",
|
|
82
81
|
"eslint-plugin-jsdoc": "^39.3.1",
|
|
83
82
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
84
|
-
"execa": "
|
|
83
|
+
"execa": "7.0.0",
|
|
85
84
|
"exit": "^0.1.2",
|
|
86
85
|
"fs-extra": "^11.0.0",
|
|
87
86
|
"glob": "8.1.0",
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
"jest-cli": "^27.4.5",
|
|
93
92
|
"jest-environment-node": "^27.4.4",
|
|
94
93
|
"listr": "^0.14.3",
|
|
95
|
-
"magic-string": "^0.
|
|
94
|
+
"magic-string": "^0.30.0",
|
|
96
95
|
"merge-source-map": "^1.1.0",
|
|
97
96
|
"mime-db": "^1.46.0",
|
|
98
97
|
"minimatch": "5.1.2",
|
|
@@ -104,6 +103,7 @@
|
|
|
104
103
|
"pixelmatch": "5.3.0",
|
|
105
104
|
"postcss": "^8.2.8",
|
|
106
105
|
"prettier": "2.8.3",
|
|
106
|
+
"process": "^0.11.10",
|
|
107
107
|
"prompts": "2.4.2",
|
|
108
108
|
"puppeteer": "^19.5.0",
|
|
109
109
|
"rollup": "2.42.3",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"sizzle": "^2.3.6",
|
|
113
113
|
"terser": "5.16.1",
|
|
114
114
|
"typescript": "4.9.4",
|
|
115
|
-
"webpack": "^
|
|
115
|
+
"webpack": "^5.75.0",
|
|
116
116
|
"ws": "8.12.0"
|
|
117
117
|
},
|
|
118
118
|
"engines": {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
],
|
|
139
139
|
"prettier": "@familyjs/prettier-config",
|
|
140
140
|
"volta": {
|
|
141
|
-
"node": "
|
|
142
|
-
"npm": "
|
|
141
|
+
"node": "18.14.1",
|
|
142
|
+
"npm": "9.3.1"
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import type * as d from '@rindo/core/internal';
|
|
2
|
-
export declare class ScreenshotConnector implements d.ScreenshotConnector {
|
|
3
|
-
rootDir: string;
|
|
4
|
-
cacheDir: string;
|
|
5
|
-
packageDir: string;
|
|
6
|
-
screenshotDirName: string;
|
|
7
|
-
imagesDirName: string;
|
|
8
|
-
buildsDirName: string;
|
|
9
|
-
masterBuildFileName: string;
|
|
10
|
-
screenshotCacheFileName: string;
|
|
11
|
-
logger: d.Logger;
|
|
12
|
-
buildId: string;
|
|
13
|
-
buildMessage: string;
|
|
14
|
-
buildAuthor: string;
|
|
15
|
-
buildUrl: string;
|
|
16
|
-
previewUrl: string;
|
|
17
|
-
buildTimestamp: number;
|
|
18
|
-
appNamespace: string;
|
|
19
|
-
screenshotDir: string;
|
|
20
|
-
imagesDir: string;
|
|
21
|
-
buildsDir: string;
|
|
22
|
-
masterBuildFilePath: string;
|
|
23
|
-
screenshotCacheFilePath: string;
|
|
24
|
-
currentBuildDir: string;
|
|
25
|
-
updateMaster: boolean;
|
|
26
|
-
allowableMismatchedRatio: number;
|
|
27
|
-
allowableMismatchedPixels: number;
|
|
28
|
-
pixelmatchThreshold: number;
|
|
29
|
-
waitBeforeScreenshot: number;
|
|
30
|
-
pixelmatchModulePath: string;
|
|
31
|
-
initBuild(opts: d.ScreenshotConnectorOptions): Promise<void>;
|
|
32
|
-
pullMasterBuild(): Promise<void>;
|
|
33
|
-
getMasterBuild(): Promise<d.ScreenshotBuild>;
|
|
34
|
-
completeBuild(masterBuild: d.ScreenshotBuild): Promise<d.ScreenshotBuildResults>;
|
|
35
|
-
publishBuild(results: d.ScreenshotBuildResults): Promise<d.ScreenshotBuildResults>;
|
|
36
|
-
generateJsonpDataUris(build: d.ScreenshotBuild): Promise<void>;
|
|
37
|
-
getScreenshotCache(): Promise<d.ScreenshotCache>;
|
|
38
|
-
updateScreenshotCache(screenshotCache: d.ScreenshotCache, buildResults: d.ScreenshotBuildResults): Promise<d.ScreenshotCache>;
|
|
39
|
-
toJson(masterBuild: d.ScreenshotBuild, screenshotCache: d.ScreenshotCache): string;
|
|
40
|
-
sortScreenshots(screenshots: d.Screenshot[]): d.Screenshot[];
|
|
41
|
-
sortCompares(compares: d.ScreenshotDiff[]): d.ScreenshotDiff[];
|
|
42
|
-
}
|
|
1
|
+
import type * as d from '@rindo/core/internal';
|
|
2
|
+
export declare class ScreenshotConnector implements d.ScreenshotConnector {
|
|
3
|
+
rootDir: string;
|
|
4
|
+
cacheDir: string;
|
|
5
|
+
packageDir: string;
|
|
6
|
+
screenshotDirName: string;
|
|
7
|
+
imagesDirName: string;
|
|
8
|
+
buildsDirName: string;
|
|
9
|
+
masterBuildFileName: string;
|
|
10
|
+
screenshotCacheFileName: string;
|
|
11
|
+
logger: d.Logger;
|
|
12
|
+
buildId: string;
|
|
13
|
+
buildMessage: string;
|
|
14
|
+
buildAuthor: string;
|
|
15
|
+
buildUrl: string;
|
|
16
|
+
previewUrl: string;
|
|
17
|
+
buildTimestamp: number;
|
|
18
|
+
appNamespace: string;
|
|
19
|
+
screenshotDir: string;
|
|
20
|
+
imagesDir: string;
|
|
21
|
+
buildsDir: string;
|
|
22
|
+
masterBuildFilePath: string;
|
|
23
|
+
screenshotCacheFilePath: string;
|
|
24
|
+
currentBuildDir: string;
|
|
25
|
+
updateMaster: boolean;
|
|
26
|
+
allowableMismatchedRatio: number;
|
|
27
|
+
allowableMismatchedPixels: number;
|
|
28
|
+
pixelmatchThreshold: number;
|
|
29
|
+
waitBeforeScreenshot: number;
|
|
30
|
+
pixelmatchModulePath: string;
|
|
31
|
+
initBuild(opts: d.ScreenshotConnectorOptions): Promise<void>;
|
|
32
|
+
pullMasterBuild(): Promise<void>;
|
|
33
|
+
getMasterBuild(): Promise<d.ScreenshotBuild>;
|
|
34
|
+
completeBuild(masterBuild: d.ScreenshotBuild): Promise<d.ScreenshotBuildResults>;
|
|
35
|
+
publishBuild(results: d.ScreenshotBuildResults): Promise<d.ScreenshotBuildResults>;
|
|
36
|
+
generateJsonpDataUris(build: d.ScreenshotBuild): Promise<void>;
|
|
37
|
+
getScreenshotCache(): Promise<d.ScreenshotCache>;
|
|
38
|
+
updateScreenshotCache(screenshotCache: d.ScreenshotCache, buildResults: d.ScreenshotBuildResults): Promise<d.ScreenshotCache>;
|
|
39
|
+
toJson(masterBuild: d.ScreenshotBuild, screenshotCache: d.ScreenshotCache): string;
|
|
40
|
+
sortScreenshots(screenshots: d.Screenshot[]): d.Screenshot[];
|
|
41
|
+
sortCompares(compares: d.ScreenshotDiff[]): d.ScreenshotDiff[];
|
|
42
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type * as d from '@rindo/core/internal';
|
|
2
|
-
import { ScreenshotConnector } from './connector-base';
|
|
3
|
-
export declare class ScreenshotLocalConnector extends ScreenshotConnector {
|
|
4
|
-
publishBuild(results: d.ScreenshotBuildResults): Promise<d.ScreenshotBuildResults>;
|
|
5
|
-
getScreenshotCache(): Promise<d.ScreenshotCache>;
|
|
6
|
-
updateScreenshotCache(cache: d.ScreenshotCache, buildResults: d.ScreenshotBuildResults): Promise<d.ScreenshotCache>;
|
|
7
|
-
}
|
|
1
|
+
import type * as d from '@rindo/core/internal';
|
|
2
|
+
import { ScreenshotConnector } from './connector-base';
|
|
3
|
+
export declare class ScreenshotLocalConnector extends ScreenshotConnector {
|
|
4
|
+
publishBuild(results: d.ScreenshotBuildResults): Promise<d.ScreenshotBuildResults>;
|
|
5
|
+
getScreenshotCache(): Promise<d.ScreenshotCache>;
|
|
6
|
+
updateScreenshotCache(cache: d.ScreenshotCache, buildResults: d.ScreenshotBuildResults): Promise<d.ScreenshotCache>;
|
|
7
|
+
}
|
package/screenshot/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ScreenshotConnector } from './connector-base';
|
|
2
|
-
export { ScreenshotLocalConnector } from './connector-local';
|
|
3
|
-
export { Screenshot, ScreenshotBuild, ScreenshotCompareResults, ScreenshotDiff } from '@rindo/core/internal';
|
|
1
|
+
export { ScreenshotConnector } from './connector-base';
|
|
2
|
+
export { ScreenshotLocalConnector } from './connector-local';
|
|
3
|
+
export { Screenshot, ScreenshotBuild, ScreenshotCompareResults, ScreenshotDiff } from '@rindo/core/internal';
|