@absolutejs/absolute 0.20.0-beta.96 → 0.20.0-beta.98

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/CHANGELOG.md CHANGED
@@ -6,6 +6,20 @@ This file is generated by `absolute-changelog` from the entries in
6
6
  `changelog/`. Edit an entry, not this file — and add new ones under
7
7
  `changelog/unreleased/`.
8
8
 
9
+ ## 0.20.0-beta.98 — 2026-09-15
10
+
11
+ ### Added
12
+
13
+ - **Expo Android development now has a performance and accessibility quality gate** (`DEFAULT_ABSOLUTE_EXPO_ANDROID_QUALITY_BUDGETS`, `parseAbsoluteAndroidAccessibilityHierarchy`, `parseAbsoluteExpoAndroidLaunchTiming`, `parseAbsoluteExpoAndroidMemory`)
14
+ An installed API 36 gate measures cold and warm launch, bridge and all-framework HMR p95, memory growth, native rebuild/reconnect, and native plus embedded-web accessibility while emitting only sanitized timing artifacts.
15
+
16
+ ## 0.20.0-beta.97 — 2026-09-15
17
+
18
+ ### Fixed
19
+
20
+ - **Expo Android picker recovery distinguishes explicit cancellation from delayed successful results**
21
+ Generated Expo shells forward a trusted, request-correlated native cancellation signal to the provider-neutral device lifecycle, while the installed API 36 gate covers camera and multi-photo success, cancellation, stale-result suppression, exactly-once delivery, and native-path redaction.
22
+
9
23
  ## 0.20.0-beta.96 — 2026-09-15
10
24
 
11
25
  ### Added
package/changelog.json CHANGED
@@ -2,6 +2,34 @@
2
2
  "contract": 1,
3
3
  "name": "@absolutejs/absolute",
4
4
  "releases": [
5
+ {
6
+ "changes": [
7
+ {
8
+ "detail": "An installed API 36 gate measures cold and warm launch, bridge and all-framework HMR p95, memory growth, native rebuild/reconnect, and native plus embedded-web accessibility while emitting only sanitized timing artifacts.",
9
+ "kind": "added",
10
+ "summary": "Expo Android development now has a performance and accessibility quality gate",
11
+ "symbols": [
12
+ "DEFAULT_ABSOLUTE_EXPO_ANDROID_QUALITY_BUDGETS",
13
+ "parseAbsoluteAndroidAccessibilityHierarchy",
14
+ "parseAbsoluteExpoAndroidLaunchTiming",
15
+ "parseAbsoluteExpoAndroidMemory"
16
+ ]
17
+ }
18
+ ],
19
+ "date": "2026-09-15",
20
+ "version": "0.20.0-beta.98"
21
+ },
22
+ {
23
+ "changes": [
24
+ {
25
+ "detail": "Generated Expo shells forward a trusted, request-correlated native cancellation signal to the provider-neutral device lifecycle, while the installed API 36 gate covers camera and multi-photo success, cancellation, stale-result suppression, exactly-once delivery, and native-path redaction.",
26
+ "kind": "fixed",
27
+ "summary": "Expo Android picker recovery distinguishes explicit cancellation from delayed successful results"
28
+ }
29
+ ],
30
+ "date": "2026-09-15",
31
+ "version": "0.20.0-beta.97"
32
+ },
5
33
  {
6
34
  "changes": [
7
35
  {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-LcQpR5/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-QYKjNJ/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-LcQpR5/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-QYKjNJ/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-LcQpR5/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-QYKjNJ/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
@@ -15,7 +15,7 @@ import {
15
15
  createIslandRegistryDefinitionPlugin,
16
16
  finalizeAbsoluteMobileCompatibilityBuild,
17
17
  resolveServerBundleExternals
18
- } from "./index-d8va9b7v.js";
18
+ } from "./index-0bcf7pdw.js";
19
19
  import {
20
20
  loadIslandRegistryBuildInfo
21
21
  } from "./index-bzs19w3r.js";
@@ -36,7 +36,7 @@ import"./index-w5vswatm.js";
36
36
  import {
37
37
  normalizeAbsoluteMobileConfig
38
38
  } from "./index-rd2hbttb.js";
39
- import"./index-0t1cxstr.js";
39
+ import"./index-qd6mqgsc.js";
40
40
  import {
41
41
  ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV,
42
42
  installAbsoluteMobileAuthEnvironment
@@ -1286,7 +1286,7 @@ var loadAbsoluteMobileDevModules = async () => {
1286
1286
  expoNativeWatcher
1287
1287
  ] = await Promise.all([
1288
1288
  import("./config-vy04mqce.js"),
1289
- import("./expoProject-h38entbj.js"),
1289
+ import("./expoProject-ceey4cfg.js"),
1290
1290
  import("./expoDevController-a0jk8d43.js"),
1291
1291
  import("./nativeAuth-zx4tsb1f.js"),
1292
1292
  import("./androidEmulatorController-nybhzc6c.js"),
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  syncAbsoluteExpoWebAssets,
4
4
  writeAbsoluteExpoProject
5
- } from "./index-0t1cxstr.js";
5
+ } from "./index-qd6mqgsc.js";
6
6
  import"./index-ar4gz15x.js";
7
7
  import"./index-mywsk201.js";
8
8
  export {
@@ -10,7 +10,7 @@ import {
10
10
  resolveAbsoluteMobileUpdateRuntime,
11
11
  syncAbsoluteExpoWebAssets,
12
12
  writeAbsoluteExpoProject
13
- } from "./index-0t1cxstr.js";
13
+ } from "./index-qd6mqgsc.js";
14
14
 
15
15
  // src/build/islandRegistryTransform.ts
16
16
  import { basename } from "path";
@@ -6,7 +6,7 @@ import {
6
6
  createIslandRegistryDefinitionPlugin,
7
7
  finalizeAbsoluteMobileCompatibilityBuild,
8
8
  resolveServerBundleExternals
9
- } from "./index-d8va9b7v.js";
9
+ } from "./index-0bcf7pdw.js";
10
10
  import {
11
11
  loadIslandRegistryBuildInfo
12
12
  } from "./index-bzs19w3r.js";
@@ -1441,7 +1441,10 @@ var androidManifest2 = `${XML_HEADER2}<manifest xmlns:android="http://schemas.an
1441
1441
  `;
1442
1442
  var androidModule2 = `${HEADER2}package expo.modules.absoluteactivityresultrecovery
1443
1443
 
1444
+ import android.app.Activity
1445
+ import android.content.Context
1444
1446
  import android.content.Intent
1447
+ import android.provider.MediaStore
1445
1448
  import android.util.Log
1446
1449
  import expo.modules.kotlin.modules.Module
1447
1450
  import expo.modules.kotlin.modules.ModuleDefinition
@@ -1457,16 +1460,58 @@ object AbsoluteActivityResultRecoveryState {
1457
1460
  var applicationRuntimeReady = false
1458
1461
 
1459
1462
  private val pendingActivityResults = ArrayDeque<AbsolutePendingActivityResult>()
1463
+ private var pendingCancellations = 0
1464
+
1465
+ private const val preferencesName = "absolutejs.activity-result-recovery"
1466
+ private const val pickerRequestCodeKey = "picker-request-code"
1467
+
1468
+ @Synchronized
1469
+ fun registerPickerRequest(context: Context, requestCode: Int, intent: Intent) {
1470
+ val action = intent.action
1471
+ val isPicker = action == MediaStore.ACTION_IMAGE_CAPTURE ||
1472
+ action == MediaStore.ACTION_VIDEO_CAPTURE ||
1473
+ action == MediaStore.ACTION_PICK_IMAGES ||
1474
+ action == Intent.ACTION_PICK ||
1475
+ action == Intent.ACTION_GET_CONTENT ||
1476
+ action == Intent.ACTION_OPEN_DOCUMENT ||
1477
+ action?.endsWith(".PICK") == true ||
1478
+ intent.type?.startsWith("image/") == true ||
1479
+ intent.hasExtra(MediaStore.EXTRA_OUTPUT)
1480
+ if (!isPicker) return
1481
+ context.getSharedPreferences(preferencesName, Context.MODE_PRIVATE)
1482
+ .edit()
1483
+ .putInt(pickerRequestCodeKey, requestCode)
1484
+ .apply()
1485
+ }
1460
1486
 
1461
1487
  @Synchronized
1462
- fun enqueueActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
1488
+ fun consumePickerCancellation(context: Context, requestCode: Int, resultCode: Int): Boolean {
1489
+ val preferences = context.getSharedPreferences(preferencesName, Context.MODE_PRIVATE)
1490
+ val pickerRequestCode = preferences.getInt(pickerRequestCodeKey, Int.MIN_VALUE)
1491
+ if (pickerRequestCode != requestCode) return false
1492
+ preferences.edit().remove(pickerRequestCodeKey).apply()
1493
+ return resultCode == Activity.RESULT_CANCELED
1494
+ }
1495
+
1496
+ @Synchronized
1497
+ fun enqueueActivityResult(requestCode: Int, resultCode: Int, data: Intent?, pickerCancelled: Boolean) {
1463
1498
  if (pendingActivityResults.size == 8) pendingActivityResults.removeFirst()
1464
1499
  pendingActivityResults.addLast(
1465
1500
  AbsolutePendingActivityResult(requestCode, resultCode, data?.let(::Intent))
1466
1501
  )
1502
+ if (pickerCancelled && pendingCancellations < 8) {
1503
+ pendingCancellations += 1
1504
+ }
1467
1505
  Log.d("AbsoluteJS", "Queued early Android activity result; pending=" + pendingActivityResults.size)
1468
1506
  }
1469
1507
 
1508
+ @Synchronized
1509
+ fun takePendingCancellation(): Boolean {
1510
+ if (pendingCancellations == 0) return false
1511
+ pendingCancellations -= 1
1512
+ return true
1513
+ }
1514
+
1470
1515
  @Synchronized
1471
1516
  fun hasPendingActivityResults() = pendingActivityResults.isNotEmpty()
1472
1517
 
@@ -1487,6 +1532,10 @@ class AbsoluteActivityResultRecoveryModule : Module() {
1487
1532
  AbsoluteActivityResultRecoveryState.applicationRuntimeReady = true
1488
1533
  Log.d("AbsoluteJS", "Expo application runtime ready for Android activity results")
1489
1534
  }
1535
+
1536
+ Function("takePendingCancellation") {
1537
+ AbsoluteActivityResultRecoveryState.takePendingCancellation()
1538
+ }
1490
1539
  }
1491
1540
  }
1492
1541
  `;
@@ -1494,6 +1543,7 @@ var runtime = `${HEADER2}import { requireNativeModule } from 'expo-modules-core'
1494
1543
 
1495
1544
  type AbsoluteActivityResultRecoveryNative = {
1496
1545
  markApplicationRuntimeReady(): void;
1546
+ takePendingCancellation(): boolean;
1497
1547
  };
1498
1548
 
1499
1549
  const native = requireNativeModule<AbsoluteActivityResultRecoveryNative>(
@@ -1502,6 +1552,9 @@ const native = requireNativeModule<AbsoluteActivityResultRecoveryNative>(
1502
1552
 
1503
1553
  export const markAbsoluteApplicationRuntimeReady = () =>
1504
1554
  native.markApplicationRuntimeReady();
1555
+
1556
+ export const takeAbsoluteActivityResultCancellation = () =>
1557
+ native.takePendingCancellation();
1505
1558
  `;
1506
1559
  var absoluteExpoActivityResultRecoveryFiles = (project) => new Map([
1507
1560
  [
@@ -1614,7 +1667,7 @@ var packageDependencies = (plan) => Object.fromEntries(plan.requiredPackages.map
1614
1667
  var expoPackage = (auth, sync, devices, updates) => ({
1615
1668
  dependencies: {
1616
1669
  "@absolutejs/devices": "0.7.0",
1617
- "@absolutejs/devices-expo": "0.0.9",
1670
+ "@absolutejs/devices-expo": "0.0.11",
1618
1671
  ...auth ? {
1619
1672
  "@absolutejs/auth": ABSOLUTE_EXPO_AUTH_CORE_VERSION,
1620
1673
  [ABSOLUTE_EXPO_AUTH_PACKAGE]: ABSOLUTE_EXPO_AUTH_VERSION
@@ -1860,6 +1913,7 @@ const withAbsoluteActivityResultRecovery = config => withMainActivity(config, va
1860
1913
  'import android.os.Bundle',
1861
1914
  'import android.os.Handler',
1862
1915
  'import android.os.Looper',
1916
+ 'import android.util.Log',
1863
1917
  'import expo.modules.absoluteactivityresultrecovery.AbsoluteActivityResultRecoveryState'
1864
1918
  ].join('\\n'));
1865
1919
  source = source.replace(CLASS_ANCHOR, \`\${CLASS_ANCHOR}
@@ -1881,12 +1935,19 @@ const withAbsoluteActivityResultRecovery = config => withMainActivity(config, va
1881
1935
  }
1882
1936
  }
1883
1937
 
1938
+ @Suppress("DEPRECATION")
1939
+ override fun startActivityForResult(intent: Intent, requestCode: Int, options: Bundle?) {
1940
+ AbsoluteActivityResultRecoveryState.registerPickerRequest(applicationContext, requestCode, intent)
1941
+ super.startActivityForResult(intent, requestCode, options)
1942
+ }
1943
+
1884
1944
  override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
1945
+ val pickerCancelled = AbsoluteActivityResultRecoveryState.consumePickerCancellation(applicationContext, requestCode, resultCode)
1885
1946
  if (AbsoluteActivityResultRecoveryState.applicationRuntimeReady) {
1886
1947
  super.onActivityResult(requestCode, resultCode, data)
1887
1948
  return
1888
1949
  }
1889
- AbsoluteActivityResultRecoveryState.enqueueActivityResult(requestCode, resultCode, data)
1950
+ AbsoluteActivityResultRecoveryState.enqueueActivityResult(requestCode, resultCode, data, pickerCancelled)
1890
1951
  absoluteActivityResultHandler.removeCallbacks(absoluteReplayActivityResults)
1891
1952
  absoluteActivityResultHandler.postDelayed(absoluteReplayActivityResults, 250)
1892
1953
  }
@@ -1902,7 +1963,9 @@ const withAbsoluteActivityResultRecovery = config => withMainActivity(config, va
1902
1963
 
1903
1964
  override fun onDestroy() {
1904
1965
  absoluteActivityResultHandler.removeCallbacks(absoluteReplayActivityResults)
1966
+ AbsoluteActivityResultRecoveryState.applicationRuntimeReady = false
1905
1967
  super.onDestroy()
1968
+ Log.d("AbsoluteJS", "Expo activity-result recovery activity destroyed")
1906
1969
  }
1907
1970
  \`);
1908
1971
  value.modResults.contents = source;
@@ -2126,6 +2189,7 @@ const absoluteExpoPushOptions = {
2126
2189
  };` : "";
2127
2190
  return `${EXPO_GENERATED_HEADER}import { installDeviceAdapter } from '@absolutejs/devices/runtime';
2128
2191
  import { createExpoDeviceAdapter } from '@absolutejs/devices-expo';
2192
+ import { takeAbsoluteActivityResultCancellation } from './AbsoluteActivityResultRecovery';
2129
2193
  ${push ? "import { absoluteExpoAuth } from './AbsoluteAuth';" : ""}
2130
2194
  ${imports.join(`
2131
2195
  `)}
@@ -2135,6 +2199,7 @@ ${pushSource}
2135
2199
  export const absoluteExpoDeviceCapabilities = ${JSON.stringify(plan.capabilities)} as const;
2136
2200
  export const absoluteExpoDevices = createExpoDeviceAdapter({
2137
2201
  storagePrefix: ${JSON.stringify(`absolutejs.${config.appId}.`)},
2202
+ takeActivityResultCancellation: takeAbsoluteActivityResultCancellation,
2138
2203
  ${entries}
2139
2204
  });
2140
2205
  installDeviceAdapter(absoluteExpoDevices);
package/dist/cli/index.js CHANGED
@@ -58,7 +58,7 @@ if (command === "dev") {
58
58
  }
59
59
  const positionalArgs = stripNamedArgs("--config", "--android-device", "--ios-device").filter((arg) => arg !== "--no-mobile" && arg !== "--eager");
60
60
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
61
- const { dev } = await import("./dev-sm9px53g.js");
61
+ const { dev } = await import("./dev-r8dztrp8.js");
62
62
  await dev(serverEntry, configPath, {
63
63
  androidDevice,
64
64
  eager: args.includes("--eager"),
@@ -71,7 +71,7 @@ if (command === "dev") {
71
71
  const configPath = parseNamedArg("--config");
72
72
  const positionalArgs = stripNamedArgs("--outdir", "--config").filter((arg) => arg !== "--prebuilt");
73
73
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
74
- const { start } = await import("./start-0ddnh0y4.js");
74
+ const { start } = await import("./start-10dfrjvd.js");
75
75
  await start(serverEntry, outdir, configPath, {
76
76
  prebuilt: args.includes("--prebuilt")
77
77
  });
@@ -81,7 +81,7 @@ if (command === "dev") {
81
81
  const configPath = parseNamedArg("--config");
82
82
  const positionalArgs = stripNamedArgs("--outdir", "--config");
83
83
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
84
- const { start } = await import("./start-0ddnh0y4.js");
84
+ const { start } = await import("./start-10dfrjvd.js");
85
85
  await start(serverEntry, outdir, configPath, { prepareOnly: true });
86
86
  } else if (command === "build") {
87
87
  sendTelemetryEvent("cli:command", { command });
@@ -197,13 +197,13 @@ if (command === "dev") {
197
197
  const configPath = parseNamedArg("--config");
198
198
  const positionalArgs = stripNamedArgs("--outdir", "--outfile", "--config");
199
199
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
200
- const { compile } = await import("./compile-qg75ewma.js");
200
+ const { compile } = await import("./compile-9y36k8z1.js");
201
201
  await compile(serverEntry, outdir, outfile, configPath);
202
202
  } else if (command === "mobile") {
203
203
  sendTelemetryEvent("cli:command", {
204
204
  command: `mobile:${workspaceCommand ?? "unknown"}`
205
205
  });
206
- const { runMobile } = await import("./mobile-dev4mjsa.js");
206
+ const { runMobile } = await import("./mobile-31ypggwx.js");
207
207
  try {
208
208
  await runMobile(args);
209
209
  } catch (error) {
@@ -7,12 +7,12 @@ import {
7
7
  } from "./index-zh6hhrwy.js";
8
8
  import {
9
9
  start
10
- } from "./index-51yyq29s.js";
10
+ } from "./index-fdycyj4v.js";
11
11
  import {
12
12
  ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT,
13
13
  ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION,
14
14
  resolveAbsoluteMobileRoute
15
- } from "./index-d8va9b7v.js";
15
+ } from "./index-0bcf7pdw.js";
16
16
  import"./index-bzs19w3r.js";
17
17
  import"./index-s2tazax7.js";
18
18
  import {
@@ -67,7 +67,7 @@ import {
67
67
  syncAbsoluteExpoWebAssets,
68
68
  unsignedAbsoluteMobileUpdate,
69
69
  writeAbsoluteExpoProject
70
- } from "./index-0t1cxstr.js";
70
+ } from "./index-qd6mqgsc.js";
71
71
  import {
72
72
  normalizeAbsoluteIosDeviceIdentifier
73
73
  } from "./index-j66p8hn5.js";
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  start
4
- } from "./index-51yyq29s.js";
5
- import"./index-d8va9b7v.js";
4
+ } from "./index-fdycyj4v.js";
5
+ import"./index-0bcf7pdw.js";
6
6
  import"./index-bzs19w3r.js";
7
7
  import"./index-s2tazax7.js";
8
8
  import"./index-fc9vxw56.js";
@@ -11,7 +11,7 @@ import"./index-06cmrcdq.js";
11
11
  import"./index-9kwmb3c0.js";
12
12
  import"./index-w5vswatm.js";
13
13
  import"./index-rd2hbttb.js";
14
- import"./index-0t1cxstr.js";
14
+ import"./index-qd6mqgsc.js";
15
15
  import"./index-ar4gz15x.js";
16
16
  import"./index-t84wxk1p.js";
17
17
  import"./index-wtfnv3n2.js";