@rindo/core 2.18.0 → 2.22.3
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 +33 -21
- package/cli/index.cjs +670 -388
- package/cli/index.d.ts +3 -0
- package/cli/index.js +670 -388
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +434 -251
- package/compiler/lib.dom.iterable.d.ts +7 -13
- package/compiler/lib.es2015.collection.d.ts +62 -1
- package/compiler/lib.es2015.promise.d.ts +9 -4
- package/compiler/lib.es2015.proxy.d.ts +91 -2
- package/compiler/lib.es2015.reflect.d.ts +25 -2
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2017.intl.d.ts +16 -1
- package/compiler/lib.es2019.d.ts +1 -0
- package/compiler/lib.es2019.intl.d.ts +25 -0
- package/compiler/lib.es2020.intl.d.ts +31 -6
- package/compiler/lib.es2021.intl.d.ts +11 -3
- package/compiler/lib.es2022.d.ts +1 -0
- package/compiler/lib.es2022.error.d.ts +2 -2
- package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
- package/compiler/lib.es5.d.ts +39 -14
- package/compiler/lib.esnext.intl.d.ts +5 -1
- package/compiler/lib.webworker.d.ts +318 -55
- package/compiler/lib.webworker.iterable.d.ts +11 -3
- package/compiler/package.json +1 -1
- package/compiler/rindo.d.ts +3 -25
- package/compiler/rindo.js +53912 -51834
- package/compiler/rindo.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +3 -3
- package/compiler/transpile.d.ts +32 -0
- package/dependencies.json +3 -1
- package/dev-server/client/app-error.d.ts +1 -1
- package/dev-server/client/index.d.ts +2 -2
- package/dev-server/client/index.js +241 -241
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.d.ts +1 -1
- package/dev-server/index.js +2 -2
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +1182 -1148
- package/dev-server/ws.js +1 -1
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +2 -2
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +800 -673
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +19 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/polyfills/css-shim.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +154 -143
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/hydrate/runner.js +106 -106
- package/internal/package.json +1 -1
- package/internal/rindo-core/index.d.ts +9 -10
- package/internal/rindo-private.d.ts +149 -80
- package/internal/rindo-public-compiler.d.ts +68 -32
- package/internal/rindo-public-docs.d.ts +24 -0
- package/internal/rindo-public-runtime.d.ts +79 -7
- package/internal/testing/index.js +187 -175
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +905 -896
- package/mock-doc/index.d.ts +2 -2
- package/mock-doc/index.js +905 -896
- package/mock-doc/package.json +1 -1
- package/package.json +48 -57
- package/readme.md +44 -31
- package/screenshot/compare/build/p-f4745c2f.entry.js +1 -1
- package/screenshot/index.d.ts +1 -1
- package/screenshot/index.js +3 -3
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +983 -849
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/glob.js +1 -1
- package/sys/node/index.d.ts +4 -0
- package/sys/node/index.js +407 -418
- 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 +6 -6
- package/testing/index.js +1136 -1277
- package/testing/jest/jest-config.d.ts +1 -1
- package/testing/jest/jest-preprocessor.d.ts +3 -3
- package/testing/jest/jest-serializer.d.ts +1 -2
- package/testing/matchers/index.d.ts +3 -3
- package/testing/mock-fetch.d.ts +1 -1
- package/testing/mocks.d.ts +2 -2
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +5 -5
- package/testing/puppeteer/puppeteer-element.d.ts +2 -2
- package/testing/puppeteer/puppeteer-events.d.ts +1 -1
- package/testing/testing-logger.d.ts +1 -1
- package/testing/testing-utils.d.ts +1 -1
- package/testing/testing.d.ts +1 -1
|
@@ -31,7 +31,7 @@ import type * as d from '../../internal/index';
|
|
|
31
31
|
* `.remove`) are both queued in the in-memory proxy but not committed to
|
|
32
32
|
* disk until the `.commit` method is called.
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export type InMemoryFileSystem = ReturnType<typeof createInMemoryFs>;
|
|
35
35
|
/**
|
|
36
36
|
* A node in the in-memory file system. This may represent a file or
|
|
37
37
|
* a directory, and pending copy, write, and delete operations may be stored
|
|
@@ -55,7 +55,7 @@ export interface FsItem {
|
|
|
55
55
|
* Filesystem paths (of type `string`) are mapped to objects satisfying the
|
|
56
56
|
* `FsItem` interface.
|
|
57
57
|
*/
|
|
58
|
-
export
|
|
58
|
+
export type FsItems = Map<string, FsItem>;
|
|
59
59
|
/**
|
|
60
60
|
* Options supported by write methods on the in-memory filesystem.
|
|
61
61
|
*/
|
|
@@ -170,7 +170,7 @@ export declare const createInMemoryFs: (sys: d.CompilerSystem) => {
|
|
|
170
170
|
*
|
|
171
171
|
* `[ source, destination ]`
|
|
172
172
|
*/
|
|
173
|
-
|
|
173
|
+
type FileCopyTuple = [string, string];
|
|
174
174
|
/**
|
|
175
175
|
* Collected instructions for all pending filesystem operations saved
|
|
176
176
|
* to the in-memory filesystem.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { TranspileOptions, TranspileResults } from '../internal/index';
|
|
2
|
+
/**
|
|
3
|
+
* The `transpile()` function inputs source code as a string, with various options
|
|
4
|
+
* within the second argument. The function is stateless and returns a `Promise` of the
|
|
5
|
+
* results, including diagnostics and the transpiled code. The `transpile()` function
|
|
6
|
+
* does not handle any bundling, minifying, or precompiling any CSS preprocessing like
|
|
7
|
+
* Sass or Less. The `transpileSync()` equivalent is available so the same function
|
|
8
|
+
* it can be called synchronously. However, TypeScript must be already loaded within
|
|
9
|
+
* the global for it to work, where as the async `transpile()` function will load
|
|
10
|
+
* TypeScript automatically.
|
|
11
|
+
*
|
|
12
|
+
* Since TypeScript is used, the source code will transpile from TypeScript to JavaScript,
|
|
13
|
+
* and does not require Babel presets. Additionally, the results includes an `imports`
|
|
14
|
+
* array of all the import paths found in the source file. The transpile options can be
|
|
15
|
+
* used to set the `module` format, such as `cjs`, and JavaScript `target` version, such
|
|
16
|
+
* as `es2017`.
|
|
17
|
+
*
|
|
18
|
+
* @param code the code to transpile
|
|
19
|
+
* @param opts options for the transpilation process
|
|
20
|
+
* @returns a Promise wrapping the results of the transpilation
|
|
21
|
+
*/
|
|
22
|
+
export declare const transpile: (code: string, opts?: TranspileOptions) => Promise<TranspileResults>;
|
|
23
|
+
/**
|
|
24
|
+
* Synchronous equivalent of the `transpile()` function. When used in a browser
|
|
25
|
+
* environment, TypeScript must already be available globally, where as the async
|
|
26
|
+
* `transpile()` function will load TypeScript automatically.
|
|
27
|
+
*
|
|
28
|
+
* @param code the code to transpile
|
|
29
|
+
* @param opts options for the transpilation process
|
|
30
|
+
* @returns the results of the transpilation
|
|
31
|
+
*/
|
|
32
|
+
export declare const transpileSync: (code: string, opts?: TranspileOptions) => TranspileResults;
|
package/dependencies.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"dependencies": [
|
|
3
3
|
{
|
|
4
4
|
"name": "@rindo/core",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.22.3",
|
|
6
6
|
"main": "compiler/rindo.js",
|
|
7
7
|
"resources": [
|
|
8
8
|
"package.json",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"compiler/lib.es2019.array.d.ts",
|
|
40
40
|
"compiler/lib.es2019.d.ts",
|
|
41
41
|
"compiler/lib.es2019.full.d.ts",
|
|
42
|
+
"compiler/lib.es2019.intl.d.ts",
|
|
42
43
|
"compiler/lib.es2019.object.d.ts",
|
|
43
44
|
"compiler/lib.es2019.string.d.ts",
|
|
44
45
|
"compiler/lib.es2019.symbol.d.ts",
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"compiler/lib.es2022.full.d.ts",
|
|
65
66
|
"compiler/lib.es2022.intl.d.ts",
|
|
66
67
|
"compiler/lib.es2022.object.d.ts",
|
|
68
|
+
"compiler/lib.es2022.sharedmemory.d.ts",
|
|
67
69
|
"compiler/lib.es2022.string.d.ts",
|
|
68
70
|
"compiler/lib.es5.d.ts",
|
|
69
71
|
"compiler/lib.es6.d.ts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { appError, clearAppErrorModal } from './app-error';
|
|
2
2
|
export { emitBuildLog, emitBuildResults, emitBuildStatus, onBuildLog, onBuildResults, onBuildStatus } from './events';
|
|
3
|
+
export { hmrWindow } from './hmr-window';
|
|
4
|
+
export { logBuild, logDiagnostic, logDisabled, logReload, logWarn } from './logger';
|
|
3
5
|
export { initBuildProgress } from './progress';
|
|
4
6
|
export { initBuildStatus } from './status';
|
|
5
|
-
export { logBuild, logDiagnostic, logDisabled, logReload, logWarn } from './logger';
|
|
6
|
-
export { hmrWindow } from './hmr-window';
|