@antelopejs/core 1.13.4 → 1.14.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/dist/core/build/build-artifact.d.ts +2 -1
- package/dist/core/build/build-artifact.js.map +1 -1
- package/dist/core/cli/command.d.ts +2 -1
- package/dist/core/cli/command.js +36 -22
- package/dist/core/cli/command.js.map +1 -1
- package/dist/core/cli/output/interface-conflicts.d.ts +3 -0
- package/dist/core/cli/output/interface-conflicts.js +61 -0
- package/dist/core/cli/output/interface-conflicts.js.map +1 -0
- package/dist/core/cli/output/translations.js +5 -0
- package/dist/core/cli/output/translations.js.map +1 -1
- package/dist/core/config/config-parser.d.ts +1 -0
- package/dist/core/config/config-parser.js +11 -0
- package/dist/core/config/config-parser.js.map +1 -1
- package/dist/core/config/config-paths.d.ts +1 -0
- package/dist/core/config/config-paths.js +3 -2
- package/dist/core/config/config-paths.js.map +1 -1
- package/dist/core/embedded/prepare-embedded.js +5 -4
- package/dist/core/embedded/prepare-embedded.js.map +1 -1
- package/dist/core/embedded/types.d.ts +1 -0
- package/dist/core/interface-registry.d.ts +2 -2
- package/dist/core/interface-registry.js +19 -12
- package/dist/core/interface-registry.js.map +1 -1
- package/dist/core/module-isolation.d.ts +18 -0
- package/dist/core/module-isolation.js +107 -0
- package/dist/core/module-isolation.js.map +1 -0
- package/dist/core/module-manager.d.ts +21 -3
- package/dist/core/module-manager.js +217 -39
- package/dist/core/module-manager.js.map +1 -1
- package/dist/core/module-manifest.d.ts +1 -0
- package/dist/core/module-manifest.js +34 -0
- package/dist/core/module-manifest.js.map +1 -1
- package/dist/core/module-registry.d.ts +1 -0
- package/dist/core/module-registry.js +3 -0
- package/dist/core/module-registry.js.map +1 -1
- package/dist/core/module.d.ts +1 -3
- package/dist/core/module.js +0 -18
- package/dist/core/module.js.map +1 -1
- package/dist/core/resolution/binding-diagnostics.d.ts +30 -0
- package/dist/core/resolution/binding-diagnostics.js +65 -0
- package/dist/core/resolution/binding-diagnostics.js.map +1 -0
- package/dist/core/resolution/binding-graph-order.d.ts +3 -0
- package/dist/core/resolution/binding-graph-order.js +49 -0
- package/dist/core/resolution/binding-graph-order.js.map +1 -0
- package/dist/core/resolution/binding-graph-types.d.ts +46 -0
- package/dist/core/resolution/binding-graph-types.js +3 -0
- package/dist/core/resolution/binding-graph-types.js.map +1 -0
- package/dist/core/resolution/binding-graph-warnings.d.ts +11 -0
- package/dist/core/resolution/binding-graph-warnings.js +73 -0
- package/dist/core/resolution/binding-graph-warnings.js.map +1 -0
- package/dist/core/resolution/binding-graph.d.ts +2 -0
- package/dist/core/resolution/binding-graph.js +375 -0
- package/dist/core/resolution/binding-graph.js.map +1 -0
- package/dist/core/resolution/binding-providers.d.ts +11 -0
- package/dist/core/resolution/binding-providers.js +47 -0
- package/dist/core/resolution/binding-providers.js.map +1 -0
- package/dist/core/resolution/instance-copies.d.ts +5 -0
- package/dist/core/resolution/instance-copies.js +109 -0
- package/dist/core/resolution/instance-copies.js.map +1 -0
- package/dist/core/resolution/interface-dependencies.d.ts +1 -0
- package/dist/core/resolution/interface-dependencies.js +27 -0
- package/dist/core/resolution/interface-dependencies.js.map +1 -0
- package/dist/core/resolution/interface-instances.d.ts +28 -0
- package/dist/core/resolution/interface-instances.js +188 -0
- package/dist/core/resolution/interface-instances.js.map +1 -0
- package/dist/core/resolution/interface-resolution-error.d.ts +24 -0
- package/dist/core/resolution/interface-resolution-error.js +30 -0
- package/dist/core/resolution/interface-resolution-error.js.map +1 -0
- package/dist/core/resolution/resolver-detour.js +14 -22
- package/dist/core/resolution/resolver-detour.js.map +1 -1
- package/dist/core/resolution/resolver.d.ts +30 -72
- package/dist/core/resolution/resolver.js +201 -659
- package/dist/core/resolution/resolver.js.map +1 -1
- package/dist/core/runtime/build-runtime.d.ts +1 -1
- package/dist/core/runtime/build-runtime.js +9 -1
- package/dist/core/runtime/build-runtime.js.map +1 -1
- package/dist/core/runtime/dev-server-registry.js +1 -1
- package/dist/core/runtime/dev-server-registry.js.map +1 -1
- package/dist/core/runtime/launch-sequence.js +68 -24
- package/dist/core/runtime/launch-sequence.js.map +1 -1
- package/dist/core/runtime/launch-steps.d.ts +5 -0
- package/dist/core/runtime/launch-steps.js +26 -0
- package/dist/core/runtime/launch-steps.js.map +1 -0
- package/dist/core/runtime/module-loading.d.ts +1 -0
- package/dist/core/runtime/module-loading.js +18 -5
- package/dist/core/runtime/module-loading.js.map +1 -1
- package/dist/core/runtime/project-launch.js +33 -12
- package/dist/core/runtime/project-launch.js.map +1 -1
- package/dist/core/runtime/runtime-bootstrap.js +0 -3
- package/dist/core/runtime/runtime-bootstrap.js.map +1 -1
- package/dist/core/runtime/runtime-policy.js.map +1 -1
- package/dist/core/runtime/runtime-types.d.ts +3 -2
- package/dist/core/shutdown/shutdown-manager.d.ts +2 -0
- package/dist/core/shutdown/shutdown-manager.js +11 -2
- package/dist/core/shutdown/shutdown-manager.js.map +1 -1
- package/dist/core/version-checker.d.ts +2 -2
- package/dist/core/version-checker.js +49 -31
- package/dist/core/version-checker.js.map +1 -1
- package/dist/core/watch/file-watcher.d.ts +7 -0
- package/dist/core/watch/file-watcher.js +70 -14
- package/dist/core/watch/file-watcher.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PathMapper } from "./path-mapper";
|
|
2
2
|
import type { ModuleManifest } from "../module-manifest";
|
|
3
|
+
import type { BindingGraph } from "./binding-graph-types";
|
|
4
|
+
import { InterfaceInstances } from "./interface-instances";
|
|
3
5
|
export interface ModuleRef {
|
|
4
6
|
id: string;
|
|
5
7
|
manifest: ModuleManifest;
|
|
@@ -10,11 +12,9 @@ interface ResolverParent {
|
|
|
10
12
|
export interface ResolveResult {
|
|
11
13
|
resolvedPath: string;
|
|
12
14
|
resolveFrom?: string;
|
|
13
|
-
|
|
14
|
-
sharedExports?: boolean;
|
|
15
|
-
interfaceName?: string;
|
|
16
|
-
provider?: string;
|
|
15
|
+
instance?: string;
|
|
17
16
|
}
|
|
17
|
+
export declare function connectionPath(index: number, packageName: string): string;
|
|
18
18
|
export declare class Resolver {
|
|
19
19
|
private pathMapper;
|
|
20
20
|
readonly moduleByFolder: Map<string, ModuleRef>;
|
|
@@ -25,79 +25,37 @@ export declare class Resolver {
|
|
|
25
25
|
readonly lifecycleInterfacePackages: Set<string>;
|
|
26
26
|
readonly stubbedInterfacePackages: Set<string>;
|
|
27
27
|
stubModulePath?: string;
|
|
28
|
-
|
|
29
|
-
private
|
|
30
|
-
private readonly
|
|
31
|
-
private readonly
|
|
32
|
-
private readonly interfaceDependencies;
|
|
33
|
-
private readonly boundValues;
|
|
34
|
-
private readonly routedEvents;
|
|
35
|
-
private readonly proxyOwners;
|
|
36
|
-
private readonly providerlessContexts;
|
|
37
|
-
private readonly sharedInterfaceContexts;
|
|
38
|
-
private readonly interfaceBodyContexts;
|
|
39
|
-
private readonly interfaceBodySharedContexts;
|
|
40
|
-
private readonly sharedContexts;
|
|
41
|
-
private readonly sharedStubInterfaces;
|
|
42
|
-
private readonly adoptedContexts;
|
|
43
|
-
private readonly stubbedContexts;
|
|
28
|
+
readonly instances: InterfaceInstances;
|
|
29
|
+
private bindings?;
|
|
30
|
+
private readonly instanceFiles;
|
|
31
|
+
private readonly owners;
|
|
44
32
|
constructor(pathMapper: PathMapper);
|
|
33
|
+
setBindings(graph: BindingGraph): void;
|
|
45
34
|
resolve(request: string, parent?: ResolverParent): ResolveResult | undefined;
|
|
35
|
+
locate(result: ResolveResult, resolvedPath: string): string;
|
|
46
36
|
ownsResolutionContext(_request: string, parent?: ResolverParent): boolean;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
instanceToLoad(request: string, parent?: ResolverParent): string | undefined;
|
|
38
|
+
recordInstanceFile(instance: string, filePath: string): void;
|
|
39
|
+
runInInstance<T>(instance: string, load: () => T): T;
|
|
40
|
+
loadInstance(instance: string): string | undefined;
|
|
41
|
+
entryToPrime(request: string, parent: ResolverParent | undefined, resolvedPath: string): string | undefined;
|
|
42
|
+
private instanceEntry;
|
|
53
43
|
getInterfaceGraphRoot(filePath: string): string | undefined;
|
|
54
|
-
|
|
44
|
+
releaseInstances(): void;
|
|
55
45
|
clearCache(): void;
|
|
56
|
-
private
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
private bindKnownRoutes;
|
|
60
|
-
private bindRoute;
|
|
46
|
+
private retireInstance;
|
|
47
|
+
private canonicalPackages;
|
|
48
|
+
private fixedRoots;
|
|
61
49
|
private resolveInterfaceCore;
|
|
62
|
-
private
|
|
63
|
-
private
|
|
64
|
-
private
|
|
65
|
-
private
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
private
|
|
69
|
-
private
|
|
70
|
-
private
|
|
71
|
-
private
|
|
72
|
-
private findRequestedInterface;
|
|
73
|
-
private findInterfacePackageRequest;
|
|
74
|
-
private findInterfacePackageByPath;
|
|
75
|
-
private listInterfacePackageRoots;
|
|
76
|
-
private bindInterfaceValue;
|
|
77
|
-
private bindPassedValue;
|
|
78
|
-
private needsFacade;
|
|
79
|
-
private holdsFacadeMember;
|
|
80
|
-
private bindStubbedInterfaceValue;
|
|
81
|
-
private getBindingContext;
|
|
82
|
-
private getSharedInterfaceContext;
|
|
83
|
-
private getInterfaceBodyContext;
|
|
84
|
-
private createInterfaceBodyContext;
|
|
85
|
-
private effectiveContext;
|
|
86
|
-
private getAdoptedContext;
|
|
87
|
-
private adoptedProvider;
|
|
88
|
-
private chainProviderRoutes;
|
|
89
|
-
private getProviderlessContext;
|
|
90
|
-
private filterStubbedProviderRoutes;
|
|
91
|
-
private isBindableValue;
|
|
92
|
-
private isClass;
|
|
93
|
-
private createObjectFacade;
|
|
94
|
-
private bindObjectFunction;
|
|
95
|
-
private createFunctionFacade;
|
|
96
|
-
private bindFunctionResult;
|
|
97
|
-
private getRoutedEvent;
|
|
98
|
-
private bindRoutedEvent;
|
|
99
|
-
private createEventFacade;
|
|
100
|
-
private resolveLocalModule;
|
|
101
|
-
private listModuleRoots;
|
|
50
|
+
private resolveInterfaceRequest;
|
|
51
|
+
private canonicalRequest;
|
|
52
|
+
private findInterfacePackage;
|
|
53
|
+
private contextOwner;
|
|
54
|
+
private scopeOf;
|
|
55
|
+
private instanceScope;
|
|
56
|
+
private describeOwner;
|
|
57
|
+
private instanceFor;
|
|
58
|
+
private connectionInstance;
|
|
59
|
+
private listOwnerRoots;
|
|
102
60
|
}
|
|
103
61
|
export {};
|