# Changelog (/resources/changelog)

Generated by [Changesets](https://github.com/changesets/changesets) from the repository's
[`CHANGELOG.md`](https://github.com/updateswell/upwell/blob/main/CHANGELOG.md). Releases are published to
[npm](https://www.npmjs.com/package/upwell?activeTab=versions) and tagged on
[GitHub](https://github.com/updateswell/upwell/tags).

<div className="[&>h1:first-child]:hidden">

# upwell [#upwell]

## 0.3.0 [#030]

### Minor Changes [#minor-changes]

- 17432a7: New `onEvent` option (on `createUpwell()` and `UpwellProvider`): typed update events for your own analytics, emitted by the controller so they work with or without the UI kit. Events: `check`, `prompt_shown`, `prompt_action`, `store_flow`, `ota_downloaded`, `ota_applied`, `updated_seen` and `error`, each with the app version, build, runtime, running update, install source, SDK version, timestamp and the random per-install `installationId`; nothing personal. A throwing handler never breaks updating (the error goes to `onError` with context `onEvent`). `@upwell/core` exports the `UpwellEvent` types, and `StoreFlowResult` now lives there (still exported from `upwell`). An `OtaAdapter`'s `download()` may return `{ updateId }`; `expoUpdatesAdapter()` does.
- 1d45cc8: The `policy` option is now optional. Without a policy, Upwell still downloads and applies OTA updates and recommends store updates that Google Play or the App Store report; forced updates (`minimum`) and stranded-install detection still need a policy. A policy cached by an earlier setup is ignored when none is configured.

### Patch Changes [#patch-changes]

- Updated dependencies [17432a7]
  - @upwell/core@0.3.0

## 0.2.1 [#021]

### Patch Changes [#patch-changes-1]

- c1d56d3: The README banners load from upwell.run/brand instead of the GitHub repository.
- @upwell/core@0.2.1

## 0.2.0 [#020]

### Minor Changes [#minor-changes-1]

- adf55eb: New package: `@upwell/core`, the policy and releases types, validators, decision engine
  (`decide`, `explain`), version comparison and rollout bucketing, with no dependencies. It runs in
  React Native, Node, browsers and Cloudflare Workers, so servers, scripts and CI can validate a
  policy or explain a decision without installing React Native.
  
  `upwell` now depends on `@upwell/core` and re-exports everything from it, so nothing changes for
  apps: the same imports keep working, including `upwell/schemas/*`. The JSON Schemas also ship as
  `@upwell/core/schemas/*`. Both packages are released together with the same version.

### Patch Changes [#patch-changes-2]

- Updated dependencies [adf55eb]
  - @upwell/core@0.2.0

## 0.1.4 [#014]

### Patch Changes [#patch-changes-3]

- ff0328f: Move the package to `packages/upwell` in the repository; README links now point to absolute URLs.

## 0.1.3 [#013]

### Patch Changes [#patch-changes-4]

- 721fd98: Read the runtime version embedded in the binary (AndroidManifest / Expo.plist) when the OTA adapter reports none. Development builds using a `runtimeVersion` policy (`appVersion`, `fingerprint`, …) previously had no runtime, so stranded detection was skipped.
- 24f4753: Fix the floating prompt and restart bar losing taps on Android to views rendered after `<UpwellUI />` (toasts, tab bars, LogBox). They were drawn below the prompt but still received its touches.

## 0.1.2 [#012]

### Patch Changes [#patch-changes-5]

- af77664: The JSON Schemas' `$id` now points at `https://upwell.run/schemas/…` (the old unpkg URLs keep
  working), and the package homepage is https://upwell.run. Docs moved to https://docs.upwell.run.

## 0.1.1 [#011]

### Patch Changes [#patch-changes-6]

- 77f8fc0: The UI kit's default light and dark themes are now monochrome (black, white and greys), matching
  the Upwell design system. Set `colors.primary` with `UpwellThemeProvider` to use your brand color.

## 0.1.0 [#010]

### Minor Changes [#minor-changes-2]

- c7dbf4d: First release: a pure, table-tested decision engine (`decide()` / `explain()`), policy and
  `releases.json` schemas with runtime validation, Android Play in-app updates (flexible and
  immediate, progress, `completeUpdate`, resume of interrupted immediate updates, install source),
  iOS App Store sheet and lookup, an expo-updates adapter with stranded-runtime detection,
  `UpwellProvider` / `useAppUpdate` / `useUpdateHistory`, a themeable UI kit, simulation mode
  (Play `FakeAppUpdateManager` on Android) and a config plugin.

</div>
