@absolutejs/absolute 0.20.0-beta.61 → 0.20.0-beta.63

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.
@@ -263,6 +263,8 @@ var createAbsoluteMobileUpdateClient = (options) => {
263
263
  // src/mobile/shellUpdate.ts
264
264
  var STATE_KEY = "absolute.mobile.update.state.v1";
265
265
  var INSTALLATION_KEY = "absolute.mobile.update.installation.v1";
266
+ var RESULT_KEY = Symbol.for("absolutejs.mobile.update.result");
267
+ var RESULTS_KEY = Symbol.for("absolutejs.mobile.update.results");
266
268
  var ROOT = "NoCloud/ionic_built_snapshots";
267
269
  var watchdog = registerPlugin("AbsoluteMobileUpdateWatchdog");
268
270
  var base64Bytes = (value) => Uint8Array.from(atob(value), (character) => character.charCodeAt(0));
@@ -448,7 +450,16 @@ var createVerifier = (publicKeys) => ({
448
450
  }
449
451
  }
450
452
  });
451
- var emitUpdateResult = (detail) => dispatchEvent(new CustomEvent("absolute:mobile-update", { detail }));
453
+ var emitUpdateResult = (detail) => {
454
+ Reflect.set(globalThis, RESULT_KEY, detail);
455
+ const existing = Reflect.get(globalThis, RESULTS_KEY);
456
+ const results = Array.isArray(existing) ? existing : [];
457
+ results.push(detail);
458
+ if (results.length > 8)
459
+ results.splice(0, results.length - 8);
460
+ Reflect.set(globalThis, RESULTS_KEY, results);
461
+ dispatchEvent(new CustomEvent("absolute:mobile-update", { detail }));
462
+ };
452
463
  var removePriorRelease = async (prior, active) => {
453
464
  if (prior && prior !== active)
454
465
  await removeRelease(prior);
package/package.json CHANGED
@@ -293,12 +293,12 @@
293
293
  "main": "./dist/index.js",
294
294
  "name": "@absolutejs/absolute",
295
295
  "optionalDependencies": {
296
- "@absolutejs/native-darwin-arm64": "0.20.0-beta.61",
297
- "@absolutejs/native-darwin-x64": "0.20.0-beta.61",
298
- "@absolutejs/native-linux-arm64": "0.20.0-beta.61",
299
- "@absolutejs/native-linux-x64": "0.20.0-beta.61",
300
- "@absolutejs/native-windows-arm64": "0.20.0-beta.61",
301
- "@absolutejs/native-windows-x64": "0.20.0-beta.61"
296
+ "@absolutejs/native-darwin-arm64": "0.20.0-beta.63",
297
+ "@absolutejs/native-darwin-x64": "0.20.0-beta.63",
298
+ "@absolutejs/native-linux-arm64": "0.20.0-beta.63",
299
+ "@absolutejs/native-linux-x64": "0.20.0-beta.63",
300
+ "@absolutejs/native-windows-arm64": "0.20.0-beta.63",
301
+ "@absolutejs/native-windows-x64": "0.20.0-beta.63"
302
302
  },
303
303
  "overrides": {
304
304
  "@sinclair/typebox": "0.34.52",
@@ -460,10 +460,12 @@
460
460
  "test:native:android:bundle": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-embedded-bundle-conformance.test.ts",
461
461
  "test:native:android:hmr": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-hmr-conformance.test.ts",
462
462
  "test:native:android:lifecycle": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-lifecycle-conformance.test.ts",
463
+ "test:native:android:updates": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-embedded-bundle-conformance.test.ts -t 'signed web updates'",
463
464
  "test:native:android:upgrade": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-embedded-bundle-conformance.test.ts -t 'installed APK upgrade'",
464
465
  "test:native:ios": "bun run test:native:ios:lifecycle && bun run test:native:ios:bundle",
465
466
  "test:native:ios:bundle": "ABSOLUTE_TEST_NATIVE_IOS=1 bun test tests/native/ios-embedded-bundle-conformance.test.ts",
466
467
  "test:native:ios:lifecycle": "ABSOLUTE_TEST_NATIVE_IOS=1 bun test tests/native/ios-lifecycle-conformance.test.ts",
468
+ "test:native:ios:updates": "ABSOLUTE_TEST_NATIVE_IOS=1 bun test tests/native/ios-embedded-bundle-conformance.test.ts -t 'signed web updates'",
467
469
  "test:packed-compile": "bun run scripts/testPackedCompile.ts",
468
470
  "test:unit": "bun test --max-concurrency 1 tests/unit",
469
471
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts",
@@ -514,7 +516,7 @@
514
516
  ]
515
517
  }
516
518
  },
517
- "version": "0.20.0-beta.61",
519
+ "version": "0.20.0-beta.63",
518
520
  "workspaces": [
519
521
  "tests/fixtures/*",
520
522
  "tests/fixtures/_packages/*"