@absolutejs/absolute 0.20.0-beta.2 → 0.20.0-beta.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/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +6 -1
- package/dist/build.js.map +4 -4
- package/dist/cli/index.js +2192 -949
- package/dist/index.js +15 -1
- package/dist/index.js.map +5 -5
- package/dist/mobile/index.js +1254 -168
- package/dist/mobile/index.js.map +6 -3
- package/dist/src/core/prepare.d.ts +6 -0
- package/dist/src/dev/clientManager.d.ts +2 -0
- package/dist/src/mobile/index.d.ts +3 -0
- package/dist/src/mobile/iosConformance.d.ts +15 -0
- package/dist/src/mobile/iosNativeWatcher.d.ts +19 -0
- package/dist/src/mobile/iosRelease.d.ts +2 -2
- package/dist/src/mobile/iosSimulatorController.d.ts +89 -0
- package/dist/src/plugins/hmr.d.ts +3 -0
- package/package.json +8 -7
|
@@ -135,6 +135,9 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
135
135
|
response: {
|
|
136
136
|
200: {
|
|
137
137
|
connectedClients: number;
|
|
138
|
+
connectedTargets: {
|
|
139
|
+
[k: string]: number;
|
|
140
|
+
};
|
|
138
141
|
entryWatcherReady: boolean;
|
|
139
142
|
isRebuilding: boolean;
|
|
140
143
|
manifestKeys: string[];
|
|
@@ -268,6 +271,9 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
268
271
|
response: {
|
|
269
272
|
200: {
|
|
270
273
|
connectedClients: number;
|
|
274
|
+
connectedTargets: {
|
|
275
|
+
[k: string]: number;
|
|
276
|
+
};
|
|
271
277
|
entryWatcherReady: boolean;
|
|
272
278
|
isRebuilding: boolean;
|
|
273
279
|
manifestKeys: string[];
|
|
@@ -2,6 +2,7 @@ import type { FSWatcher } from 'fs';
|
|
|
2
2
|
import { type DependencyGraph } from './dependencyGraph';
|
|
3
3
|
import { type ModuleVersions } from './moduleVersionTracker';
|
|
4
4
|
import type { HMRWebSocket } from '../../types/websocket';
|
|
5
|
+
import type { HMRClientTarget } from '../../types/messages';
|
|
5
6
|
import type { BuildConfig, BuildPassError } from '../../types/build';
|
|
6
7
|
import { type ResolvedBuildPaths } from './configResolver';
|
|
7
8
|
type HMRUpdateMetadata = {
|
|
@@ -10,6 +11,7 @@ type HMRUpdateMetadata = {
|
|
|
10
11
|
};
|
|
11
12
|
export type HMRState = {
|
|
12
13
|
connectedClients: Set<HMRWebSocket>;
|
|
14
|
+
clientTargets: Map<HMRWebSocket, HMRClientTarget>;
|
|
13
15
|
activeFrameworks: Set<string>;
|
|
14
16
|
dependencyGraph: DependencyGraph;
|
|
15
17
|
isRebuilding: boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './artifactStore';
|
|
2
2
|
export * from './androidRelease';
|
|
3
3
|
export * from './iosRelease';
|
|
4
|
+
export * from './iosConformance';
|
|
5
|
+
export * from './iosSimulatorController';
|
|
6
|
+
export * from './iosNativeWatcher';
|
|
4
7
|
export * from './associationFiles';
|
|
5
8
|
export * from './buildMetadata';
|
|
6
9
|
export * from './buildPipeline';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type AbsoluteIosHmrApply = {
|
|
2
|
+
clientMs?: number;
|
|
3
|
+
duration: number;
|
|
4
|
+
line: string;
|
|
5
|
+
outcome: 'applied' | 'failed' | 'reloaded';
|
|
6
|
+
serverMs?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const parseAbsoluteIosHmrLog: (line: string) => AbsoluteIosHmrApply | null;
|
|
9
|
+
export declare const waitForAbsoluteIosHmrLog: (options: {
|
|
10
|
+
logPath: string;
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
sleep?: (milliseconds: number) => Promise<void>;
|
|
13
|
+
startOffset?: number;
|
|
14
|
+
timeoutMs?: number;
|
|
15
|
+
}) => Promise<AbsoluteIosHmrApply>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type AbsoluteIosDevProject } from './iosSimulatorController';
|
|
2
|
+
export type AbsoluteIosNativeChange = {
|
|
3
|
+
afterFingerprint: string;
|
|
4
|
+
beforeFingerprint: string;
|
|
5
|
+
paths: string[];
|
|
6
|
+
rootInputChanged: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type AbsoluteIosNativeWatcher = {
|
|
9
|
+
close: () => void;
|
|
10
|
+
};
|
|
11
|
+
export type AbsoluteIosNativeWatcherOptions = {
|
|
12
|
+
debounceMs?: number;
|
|
13
|
+
onChange: (change: AbsoluteIosNativeChange) => Promise<void>;
|
|
14
|
+
onError?: (error: unknown) => void;
|
|
15
|
+
project: AbsoluteIosDevProject;
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
};
|
|
18
|
+
export declare const createAbsoluteIosNativeWatcher: (options: AbsoluteIosNativeWatcherOptions) => Promise<AbsoluteIosNativeWatcher>;
|
|
19
|
+
export declare const isAbsoluteIosNativeRootInput: (path: string) => boolean;
|
|
@@ -51,10 +51,10 @@ export declare const buildAbsoluteIosRelease: (options: BuildAbsoluteIosReleaseO
|
|
|
51
51
|
appBuild: string;
|
|
52
52
|
appId: string;
|
|
53
53
|
platform: "ios";
|
|
54
|
-
engine: "capacitor";
|
|
55
|
-
signed: boolean;
|
|
56
54
|
buildNumber?: number | undefined;
|
|
55
|
+
engine: "capacitor";
|
|
57
56
|
marketingVersion: string;
|
|
57
|
+
signed: boolean;
|
|
58
58
|
};
|
|
59
59
|
releaseRoot: string;
|
|
60
60
|
}>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { NormalizedAbsoluteMobileConfig } from './config';
|
|
2
|
+
export declare const ABSOLUTE_IOS_SIMULATOR_NAME = "AbsoluteJS iPhone";
|
|
3
|
+
export type AbsoluteIosCommandOptions = {
|
|
4
|
+
cwd?: string;
|
|
5
|
+
env?: Record<string, string | undefined>;
|
|
6
|
+
signal?: AbortSignal;
|
|
7
|
+
};
|
|
8
|
+
export type AbsoluteIosCommandResult = {
|
|
9
|
+
exitCode: number;
|
|
10
|
+
stderr: string;
|
|
11
|
+
stdout: string;
|
|
12
|
+
};
|
|
13
|
+
export type AbsoluteIosDevState = 'booting' | 'building' | 'checking-native' | 'closed' | 'closing' | 'configuring' | 'connecting' | 'failed' | 'installing' | 'launching' | 'ready' | 'streaming-logs' | 'syncing';
|
|
14
|
+
export type AbsoluteIosNativeLogEntry = {
|
|
15
|
+
level: 'debug' | 'error' | 'fault' | 'info' | 'notice';
|
|
16
|
+
message: string;
|
|
17
|
+
tag: string;
|
|
18
|
+
};
|
|
19
|
+
type AbsoluteIosLogStream = {
|
|
20
|
+
close: () => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export type AbsoluteIosDevProject = {
|
|
23
|
+
cap: string;
|
|
24
|
+
config: NormalizedAbsoluteMobileConfig;
|
|
25
|
+
nativeDirectory: string;
|
|
26
|
+
projectRoot: string;
|
|
27
|
+
xcodebuild: string;
|
|
28
|
+
xcrun: string;
|
|
29
|
+
};
|
|
30
|
+
export type AbsoluteIosDevSession = {
|
|
31
|
+
close: () => Promise<void>;
|
|
32
|
+
nativeCacheHit: boolean;
|
|
33
|
+
rebuild: () => Promise<AbsoluteIosDevSession>;
|
|
34
|
+
relaunch: () => Promise<void>;
|
|
35
|
+
screenshot: (destination: string) => Promise<string>;
|
|
36
|
+
startedSimulator: boolean;
|
|
37
|
+
state: AbsoluteIosDevState;
|
|
38
|
+
timings: Record<string, number>;
|
|
39
|
+
udid: string;
|
|
40
|
+
};
|
|
41
|
+
export type AbsoluteIosDevPhaseTiming = {
|
|
42
|
+
durationMs: number;
|
|
43
|
+
phase: AbsoluteIosDevState;
|
|
44
|
+
totalMs: number;
|
|
45
|
+
};
|
|
46
|
+
export type PrepareAbsoluteIosDevOptions = {
|
|
47
|
+
createNativeProject: boolean;
|
|
48
|
+
projectRoot: string;
|
|
49
|
+
run?: (command: string[], options?: AbsoluteIosCommandOptions) => Promise<number>;
|
|
50
|
+
};
|
|
51
|
+
export type StartAbsoluteIosDevOptions = {
|
|
52
|
+
capture?: (command: string[], options?: AbsoluteIosCommandOptions) => AbsoluteIosCommandResult;
|
|
53
|
+
https?: boolean;
|
|
54
|
+
log?: (message: string) => void;
|
|
55
|
+
nativeLog?: (entry: AbsoluteIosNativeLogEntry) => void;
|
|
56
|
+
onPhaseTiming?: (timing: AbsoluteIosDevPhaseTiming) => void;
|
|
57
|
+
onStateChange?: (state: AbsoluteIosDevState) => void;
|
|
58
|
+
port: number;
|
|
59
|
+
project: AbsoluteIosDevProject;
|
|
60
|
+
run?: (command: string[], options?: AbsoluteIosCommandOptions) => Promise<number>;
|
|
61
|
+
signal?: AbortSignal;
|
|
62
|
+
sleep?: (milliseconds: number) => Promise<void>;
|
|
63
|
+
spawn?: (command: string[], options?: AbsoluteIosCommandOptions) => void;
|
|
64
|
+
startNativeLogs?: (command: string[], options: AbsoluteIosCommandOptions, onLine: (line: string) => void) => AbsoluteIosLogStream;
|
|
65
|
+
};
|
|
66
|
+
export declare const parseIosDeviceTypes: (source: string) => {
|
|
67
|
+
identifier: string;
|
|
68
|
+
name: string;
|
|
69
|
+
}[];
|
|
70
|
+
export declare const parseIosRuntimes: (source: string) => {
|
|
71
|
+
identifier: string;
|
|
72
|
+
isAvailable: boolean;
|
|
73
|
+
name: string;
|
|
74
|
+
version: string;
|
|
75
|
+
}[];
|
|
76
|
+
export declare const parseIosSimulators: (source: string) => {
|
|
77
|
+
isAvailable: boolean;
|
|
78
|
+
name: string;
|
|
79
|
+
runtime: string;
|
|
80
|
+
state: string;
|
|
81
|
+
udid: string;
|
|
82
|
+
}[];
|
|
83
|
+
export declare const repairAbsoluteIosDevSession: (projectRoot: string) => Promise<boolean>;
|
|
84
|
+
export declare const fingerprintAbsoluteIosDevProject: (project: Pick<AbsoluteIosDevProject, "nativeDirectory">) => Promise<string>;
|
|
85
|
+
export declare const parseAbsoluteIosLogLine: (line: string) => AbsoluteIosNativeLogEntry | null;
|
|
86
|
+
export declare const redactAbsoluteIosLog: (value: string) => string;
|
|
87
|
+
export declare const prepareAbsoluteIosDevProject: (config: NormalizedAbsoluteMobileConfig, options: PrepareAbsoluteIosDevOptions) => Promise<AbsoluteIosDevProject>;
|
|
88
|
+
export declare const startAbsoluteIosDevSession: (options: StartAbsoluteIosDevOptions) => Promise<AbsoluteIosDevSession>;
|
|
89
|
+
export {};
|
|
@@ -80,6 +80,9 @@ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>,
|
|
|
80
80
|
error: [];
|
|
81
81
|
}, "get", "/hmr-status", import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/hmr-status">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, () => {
|
|
82
82
|
connectedClients: number;
|
|
83
|
+
connectedTargets: {
|
|
84
|
+
[k: string]: number;
|
|
85
|
+
};
|
|
83
86
|
entryWatcherReady: boolean;
|
|
84
87
|
isRebuilding: boolean;
|
|
85
88
|
manifestKeys: string[];
|
package/package.json
CHANGED
|
@@ -265,12 +265,12 @@
|
|
|
265
265
|
"main": "./dist/index.js",
|
|
266
266
|
"name": "@absolutejs/absolute",
|
|
267
267
|
"optionalDependencies": {
|
|
268
|
-
"@absolutejs/native-darwin-arm64": "0.20.0-beta.
|
|
269
|
-
"@absolutejs/native-darwin-x64": "0.20.0-beta.
|
|
270
|
-
"@absolutejs/native-linux-arm64": "0.20.0-beta.
|
|
271
|
-
"@absolutejs/native-linux-x64": "0.20.0-beta.
|
|
272
|
-
"@absolutejs/native-windows-arm64": "0.20.0-beta.
|
|
273
|
-
"@absolutejs/native-windows-x64": "0.20.0-beta.
|
|
268
|
+
"@absolutejs/native-darwin-arm64": "0.20.0-beta.3",
|
|
269
|
+
"@absolutejs/native-darwin-x64": "0.20.0-beta.3",
|
|
270
|
+
"@absolutejs/native-linux-arm64": "0.20.0-beta.3",
|
|
271
|
+
"@absolutejs/native-linux-x64": "0.20.0-beta.3",
|
|
272
|
+
"@absolutejs/native-windows-arm64": "0.20.0-beta.3",
|
|
273
|
+
"@absolutejs/native-windows-x64": "0.20.0-beta.3"
|
|
274
274
|
},
|
|
275
275
|
"overrides": {
|
|
276
276
|
"@sinclair/typebox": "0.34.52",
|
|
@@ -427,6 +427,7 @@
|
|
|
427
427
|
"test:native:android": "bun run test:native:android:lifecycle && bun run test:native:android:hmr",
|
|
428
428
|
"test:native:android:hmr": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-hmr-conformance.test.ts",
|
|
429
429
|
"test:native:android:lifecycle": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-lifecycle-conformance.test.ts",
|
|
430
|
+
"test:native:ios": "ABSOLUTE_TEST_NATIVE_IOS=1 bun test tests/native/ios-lifecycle-conformance.test.ts",
|
|
430
431
|
"test:unit": "bun test tests/unit",
|
|
431
432
|
"typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts",
|
|
432
433
|
"verify:release-versions": "bun run scripts/verifyReleaseVersions.ts"
|
|
@@ -475,7 +476,7 @@
|
|
|
475
476
|
]
|
|
476
477
|
}
|
|
477
478
|
},
|
|
478
|
-
"version": "0.20.0-beta.
|
|
479
|
+
"version": "0.20.0-beta.3",
|
|
479
480
|
"workspaces": [
|
|
480
481
|
"tests/fixtures/*",
|
|
481
482
|
"tests/fixtures/_packages/*"
|