vestjs-runtime 1.6.0 → 1.7.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/IsolateSerializer/package.json +8 -12
- package/README.md +1 -3
- package/dist/cjs/IsolateSerializer.development.js +135 -0
- package/dist/cjs/IsolateSerializer.development.js.map +1 -0
- package/dist/cjs/IsolateSerializer.js +6 -0
- package/dist/cjs/IsolateSerializer.production.js +2 -0
- package/dist/cjs/IsolateSerializer.production.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/test-utils.development.js +61 -0
- package/dist/cjs/test-utils.development.js.map +1 -0
- package/dist/cjs/test-utils.js +6 -0
- package/dist/cjs/test-utils.production.js +2 -0
- package/dist/cjs/test-utils.production.js.map +1 -0
- package/dist/cjs/vestjs-runtime.development.js +686 -0
- package/dist/cjs/vestjs-runtime.development.js.map +1 -0
- package/dist/cjs/vestjs-runtime.js +6 -0
- package/dist/cjs/vestjs-runtime.production.js +2 -0
- package/dist/cjs/vestjs-runtime.production.js.map +1 -0
- package/dist/es/IsolateSerializer.development.js +133 -0
- package/dist/es/IsolateSerializer.development.js.map +1 -0
- package/dist/es/IsolateSerializer.production.js +2 -0
- package/dist/es/IsolateSerializer.production.js.map +1 -0
- package/dist/es/package.json +1 -0
- package/dist/es/test-utils.development.js +59 -0
- package/dist/es/test-utils.development.js.map +1 -0
- package/dist/es/test-utils.production.js +2 -0
- package/dist/es/test-utils.production.js.map +1 -0
- package/dist/es/vestjs-runtime.development.js +675 -0
- package/dist/es/vestjs-runtime.development.js.map +1 -0
- package/dist/es/vestjs-runtime.production.js +2 -0
- package/dist/es/vestjs-runtime.production.js.map +1 -0
- package/dist/umd/IsolateSerializer.development.js +138 -0
- package/dist/umd/IsolateSerializer.development.js.map +1 -0
- package/dist/umd/IsolateSerializer.production.js +2 -0
- package/dist/umd/IsolateSerializer.production.js.map +1 -0
- package/dist/umd/test-utils.development.js +67 -0
- package/dist/umd/test-utils.development.js.map +1 -0
- package/dist/umd/test-utils.production.js +2 -0
- package/dist/umd/test-utils.production.js.map +1 -0
- package/dist/umd/vestjs-runtime.development.js +688 -0
- package/dist/umd/vestjs-runtime.development.js.map +1 -0
- package/dist/umd/vestjs-runtime.production.js +2 -0
- package/dist/umd/vestjs-runtime.production.js.map +1 -0
- package/package.json +87 -42
- package/test-utils/package.json +8 -12
- package/types/IsolateSerializer.d.ts +42 -0
- package/types/IsolateSerializer.d.ts.map +1 -0
- package/types/test-utils.d.ts +37 -0
- package/types/test-utils.d.ts.map +1 -0
- package/types/vestjs-runtime.d.ts +257 -351
- package/types/vestjs-runtime.d.ts.map +1 -0
- package/vitest.config.ts +17 -9
- package/dist/IsolateKeys-B21aPuBk.mjs +0 -23
- package/dist/IsolateKeys-B21aPuBk.mjs.map +0 -1
- package/dist/IsolateKeys-CCvALpZC.cjs +0 -35
- package/dist/IsolateKeys-CCvALpZC.cjs.map +0 -1
- package/dist/IsolateSerializer-B1hE3gmT.mjs +0 -1004
- package/dist/IsolateSerializer-B1hE3gmT.mjs.map +0 -1
- package/dist/IsolateSerializer-pbEf5gB2.cjs +0 -1121
- package/dist/IsolateSerializer-pbEf5gB2.cjs.map +0 -1
- package/dist/chunk-CLMFDpHK.mjs +0 -18
- package/dist/exports/IsolateSerializer.cjs +0 -4
- package/dist/exports/IsolateSerializer.mjs +0 -4
- package/dist/exports/test-utils.cjs +0 -21
- package/dist/exports/test-utils.cjs.map +0 -1
- package/dist/exports/test-utils.mjs +0 -21
- package/dist/exports/test-utils.mjs.map +0 -1
- package/dist/vestjs-runtime.cjs +0 -153
- package/dist/vestjs-runtime.cjs.map +0 -1
- package/dist/vestjs-runtime.mjs +0 -117
- package/dist/vestjs-runtime.mjs.map +0 -1
- package/docs/IsolateRegistry.docs.md +0 -146
- package/docs/Isolates.md +0 -97
- package/src/Bus.ts +0 -46
- package/src/Isolate/Isolate.ts +0 -163
- package/src/Isolate/IsolateFocused.ts +0 -93
- package/src/Isolate/IsolateIndexer.ts +0 -42
- package/src/Isolate/IsolateInspector.ts +0 -93
- package/src/Isolate/IsolateKeys.ts +0 -18
- package/src/Isolate/IsolateMutator.ts +0 -165
- package/src/Isolate/IsolateRegistry.ts +0 -176
- package/src/Isolate/IsolateReorderable.ts +0 -11
- package/src/Isolate/IsolateSelectors.ts +0 -25
- package/src/Isolate/IsolateStateMachine.ts +0 -30
- package/src/Isolate/IsolateStatus.ts +0 -8
- package/src/Isolate/IsolateTransient.ts +0 -27
- package/src/Isolate/IsolateTypes.ts +0 -33
- package/src/Isolate/__tests__/Isolate.test.ts +0 -123
- package/src/Isolate/__tests__/IsolateFocused.test.ts +0 -199
- package/src/Isolate/__tests__/IsolateInspector.test.ts +0 -136
- package/src/Isolate/__tests__/IsolateMutator.test.ts +0 -164
- package/src/Isolate/__tests__/IsolatePropagation.test.ts +0 -170
- package/src/Isolate/__tests__/IsolateReorderable.test.ts +0 -111
- package/src/Isolate/__tests__/IsolateSelectors.test.ts +0 -72
- package/src/Isolate/__tests__/IsolateStatus.test.ts +0 -44
- package/src/Isolate/__tests__/IsolateTransient.test.ts +0 -58
- package/src/Isolate/__tests__/__snapshots__/asyncIsolate.test.ts.snap +0 -71
- package/src/Isolate/__tests__/asyncIsolate.test.ts +0 -85
- package/src/IsolateWalker.ts +0 -359
- package/src/Orchestrator/RuntimeStates.ts +0 -4
- package/src/Reconciler.ts +0 -178
- package/src/RuntimeEvents.ts +0 -9
- package/src/VestRuntime.ts +0 -421
- package/src/__tests__/Bus.test.ts +0 -57
- package/src/__tests__/IsolateWalker.iterative.test.ts +0 -77
- package/src/__tests__/IsolateWalker.test.ts +0 -418
- package/src/__tests__/Reconciler.test.ts +0 -193
- package/src/__tests__/Reconciler.transient.test.ts +0 -166
- package/src/__tests__/VestRuntime.test.ts +0 -212
- package/src/__tests__/VestRuntimeStateMachine.test.ts +0 -36
- package/src/__tests__/vestjs-runtime.test.ts +0 -19
- package/src/errors/ErrorStrings.ts +0 -6
- package/src/exports/IsolateSerializer.ts +0 -131
- package/src/exports/__tests__/IsolateSerializer.test.ts +0 -334
- package/src/exports/__tests__/IsolateSerializer.transient.test.ts +0 -101
- package/src/exports/__tests__/__snapshots__/IsolateSerializer.test.ts.snap +0 -5
- package/src/exports/test-utils.ts +0 -17
- package/src/vestjs-runtime.ts +0 -28
- package/types/Isolate-DChR7h5K.d.mts +0 -58
- package/types/Isolate-DChR7h5K.d.mts.map +0 -1
- package/types/Isolate-HYIh82M8.d.cts +0 -58
- package/types/Isolate-HYIh82M8.d.cts.map +0 -1
- package/types/IsolateSerializer-BCg01Px5.d.mts +0 -13
- package/types/IsolateSerializer-BCg01Px5.d.mts.map +0 -1
- package/types/IsolateSerializer-CQpP6A4m.d.cts +0 -13
- package/types/IsolateSerializer-CQpP6A4m.d.cts.map +0 -1
- package/types/exports/IsolateSerializer.d.cts +0 -3
- package/types/exports/IsolateSerializer.d.mts +0 -3
- package/types/exports/test-utils.d.cts +0 -7
- package/types/exports/test-utils.d.cts.map +0 -1
- package/types/exports/test-utils.d.mts +0 -7
- package/types/exports/test-utils.d.mts.map +0 -1
- package/types/vestjs-runtime.d.cts +0 -372
- package/types/vestjs-runtime.d.cts.map +0 -1
- package/types/vestjs-runtime.d.mts +0 -370
- package/types/vestjs-runtime.d.mts.map +0 -1
package/vitest.config.ts
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import path, { resolve } from 'path';
|
|
2
|
-
import { fileURLToPath } from 'url';
|
|
3
|
-
|
|
4
1
|
import { defineConfig } from 'vitest/config';
|
|
5
|
-
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
-
const __dirname = path.dirname(__filename);
|
|
2
|
+
import { resolve } from 'path';
|
|
8
3
|
|
|
9
4
|
export default defineConfig({
|
|
10
5
|
test: {
|
|
11
6
|
globals: true,
|
|
12
7
|
include: ['./**/__tests__/*.test.ts'],
|
|
13
|
-
setupFiles: [resolve(__dirname, '../../', 'vx/config/vitest')],
|
|
8
|
+
setupFiles: [resolve(__dirname, '../../', 'vx/config/vitest/customMatchers.ts')],
|
|
14
9
|
},
|
|
15
10
|
root: __dirname,
|
|
16
11
|
resolve: {
|
|
17
12
|
alias: {
|
|
18
13
|
'vestjs-runtime': resolve(__dirname, 'src/vestjs-runtime.ts'),
|
|
19
|
-
|
|
14
|
+
VestRuntime: resolve(__dirname, 'src/VestRuntime.ts'),
|
|
15
|
+
RuntimeEvents: resolve(__dirname, 'src/RuntimeEvents.ts'),
|
|
16
|
+
Reconciler: resolve(__dirname, 'src/Reconciler.ts'),
|
|
17
|
+
IsolateWalker: resolve(__dirname, 'src/IsolateWalker.ts'),
|
|
18
|
+
Bus: resolve(__dirname, 'src/Bus.ts'),
|
|
19
|
+
'test-utils': resolve(__dirname, 'src/exports/test-utils.ts'),
|
|
20
|
+
IsolateSerializer: resolve(__dirname, 'src/exports/IsolateSerializer.ts'),
|
|
21
|
+
ErrorStrings: resolve(__dirname, 'src/errors/ErrorStrings.ts'),
|
|
22
|
+
IsolateSelectors: resolve(__dirname, 'src/Isolate/IsolateSelectors.ts'),
|
|
23
|
+
IsolateMutator: resolve(__dirname, 'src/Isolate/IsolateMutator.ts'),
|
|
24
|
+
IsolateKeys: resolve(__dirname, 'src/Isolate/IsolateKeys.ts'),
|
|
25
|
+
IsolateInspector: resolve(__dirname, 'src/Isolate/IsolateInspector.ts'),
|
|
26
|
+
Isolate: resolve(__dirname, 'src/Isolate/Isolate.ts')
|
|
27
|
+
}
|
|
20
28
|
},
|
|
21
|
-
});
|
|
29
|
+
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region src/Isolate/IsolateKeys.ts
|
|
2
|
-
let IsolateKeys = /* @__PURE__ */ function(IsolateKeys$1) {
|
|
3
|
-
IsolateKeys$1["Type"] = "$type";
|
|
4
|
-
IsolateKeys$1["Keys"] = "keys";
|
|
5
|
-
IsolateKeys$1["Key"] = "key";
|
|
6
|
-
IsolateKeys$1["Parent"] = "parent";
|
|
7
|
-
IsolateKeys$1["Data"] = "data";
|
|
8
|
-
IsolateKeys$1["AllowReorder"] = "allowReorder";
|
|
9
|
-
IsolateKeys$1["Transient"] = "transient";
|
|
10
|
-
IsolateKeys$1["Status"] = "status";
|
|
11
|
-
IsolateKeys$1["AbortController"] = "abortController";
|
|
12
|
-
IsolateKeys$1["Children"] = "children";
|
|
13
|
-
return IsolateKeys$1;
|
|
14
|
-
}({});
|
|
15
|
-
const ExcludedFromDump = new Set([
|
|
16
|
-
IsolateKeys.AbortController,
|
|
17
|
-
IsolateKeys.Parent,
|
|
18
|
-
IsolateKeys.Keys
|
|
19
|
-
]);
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { IsolateKeys as n, ExcludedFromDump as t };
|
|
23
|
-
//# sourceMappingURL=IsolateKeys-B21aPuBk.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsolateKeys-B21aPuBk.mjs","names":[],"sources":["../src/Isolate/IsolateKeys.ts"],"sourcesContent":["export enum IsolateKeys {\n Type = '$type',\n Keys = 'keys',\n Key = 'key',\n Parent = 'parent',\n Data = 'data',\n AllowReorder = 'allowReorder',\n Transient = 'transient',\n Status = 'status',\n AbortController = 'abortController',\n Children = 'children',\n}\n\nexport const ExcludedFromDump = new Set([\n IsolateKeys.AbortController,\n IsolateKeys.Parent,\n IsolateKeys.Keys,\n]);\n"],"mappings":";AAAA,IAAY,sDAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,MAAa,mBAAmB,IAAI,IAAI;CACtC,YAAY;CACZ,YAAY;CACZ,YAAY;CACb,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/Isolate/IsolateKeys.ts
|
|
3
|
-
let IsolateKeys = /* @__PURE__ */ function(IsolateKeys$1) {
|
|
4
|
-
IsolateKeys$1["Type"] = "$type";
|
|
5
|
-
IsolateKeys$1["Keys"] = "keys";
|
|
6
|
-
IsolateKeys$1["Key"] = "key";
|
|
7
|
-
IsolateKeys$1["Parent"] = "parent";
|
|
8
|
-
IsolateKeys$1["Data"] = "data";
|
|
9
|
-
IsolateKeys$1["AllowReorder"] = "allowReorder";
|
|
10
|
-
IsolateKeys$1["Transient"] = "transient";
|
|
11
|
-
IsolateKeys$1["Status"] = "status";
|
|
12
|
-
IsolateKeys$1["AbortController"] = "abortController";
|
|
13
|
-
IsolateKeys$1["Children"] = "children";
|
|
14
|
-
return IsolateKeys$1;
|
|
15
|
-
}({});
|
|
16
|
-
const ExcludedFromDump = new Set([
|
|
17
|
-
IsolateKeys.AbortController,
|
|
18
|
-
IsolateKeys.Parent,
|
|
19
|
-
IsolateKeys.Keys
|
|
20
|
-
]);
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
Object.defineProperty(exports, 'ExcludedFromDump', {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return ExcludedFromDump;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, 'IsolateKeys', {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () {
|
|
32
|
-
return IsolateKeys;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=IsolateKeys-CCvALpZC.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsolateKeys-CCvALpZC.cjs","names":[],"sources":["../src/Isolate/IsolateKeys.ts"],"sourcesContent":["export enum IsolateKeys {\n Type = '$type',\n Keys = 'keys',\n Key = 'key',\n Parent = 'parent',\n Data = 'data',\n AllowReorder = 'allowReorder',\n Transient = 'transient',\n Status = 'status',\n AbortController = 'abortController',\n Children = 'children',\n}\n\nexport const ExcludedFromDump = new Set([\n IsolateKeys.AbortController,\n IsolateKeys.Parent,\n IsolateKeys.Keys,\n]);\n"],"mappings":";;AAAA,IAAY,sDAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,MAAa,mBAAmB,IAAI,IAAI;CACtC,YAAY;CACZ,YAAY;CACZ,YAAY;CACb,CAAC"}
|