pkg:clod/com.clodhub/store-update 0.13.0 Tells people when a newer version of the application they use has been published on the ourapps.app store. Tells people when a newer version of the application they are using has been published, so they are not left on an old one. An application listed on the ourapps.app store gets an invitation link, such as `https://ourapps.app/l/0123456789abcdef01234567`. From that link this component works out the store address that describes the newest release, asks the store for it, and compares the version the store reports with the version installed on the device. When the store has a newer one, the application gets the version number and the address to install it from, and decides itself how to tell the person (a banner, a button, a message at start). It works on the web, on Apple devices and on Android. It never installs anything, keeps no data and needs no account: if the store cannot be reached or answers with something unexpected, the answer is simply "no update". Examples A family uses version 1.4.2 of a game installed from ourapps.app. The developer publishes 1.5.0. Next time the game starts, it asks the store, sees 1.5.0, and shows "A new version is ready" with a link to install it. On a train with no signal the request fails and nothing is shown. A developer running a local build (version `0.0.0-dev`) is never told to update. Package URL: pkg:clod/com.clodhub/store-update@0.13.0 Class: Store update (pkg:clod/com.clodhub/store-update-class@1.1.0): Tells the application a newer version is available from its store. Any component of this class can fill a recipe slot that asks for it. Category delivery/updates; https://clodhub.com/classes/store-update-class.txt; 0 other components of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Fstore-update-class Provides (1) - updates (com.clodhub/updates 1.0.0): Store update checks for browser, Apple and Android clients. Methods tagged typescript are exported functions of server/store.ts and web/update.ts; swift and kotlin name the native functions isNewer(_:than:) in apple/Sources/Version.swift and com.clodhub.update.isNewer in Kotlin, which compare the same way. Version comparison: numeric components compare with absent components as zero, suffixes after - are discarded, malformed components count as zero, and a current version starting with 0.0.0 never updates. Empty or separator-only version strings are outside the native input contract. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Fupdates Requires (0) - none Settings (2) The installer collects two settings: - `enabled`: whether the application looks for updates at all, true or false (default true); `false` switches the check off everywhere. - `inviteAddress`: the application's ourapps.app invitation link, an http or https address (optional, no default), `https:///l/` with nothing after the identifier. Without it, or with any other form of address, there is no update check. Anything after a `?` or `#` in the link is ignored. The application also passes, in code, the version installed on the device and the function that makes web requests. No keys or private links are needed. - enabled: boolean; optional, default true - inviteAddress: string (address); optional, no default Depends on components: none How to use in a recipe A recipe uses it through a slot of class Store update (pkg:clod/com.clodhub/store-update-class 1.1.0), naming pkg:clod/com.clodhub/store-update as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (updates) to the slots that use it. The recipe sets enabled and inviteAddress; any it leaves out takes its default. - as a slot in recipe.json components: {"id":"store-update","class":{"name":"pkg:clod/com.clodhub/store-update-class","version":"1.1.0","digest":"febe4c58661a4bbc86d83fe5fd060bc6377e6c6ece5d7e54897d3abcce06bbb8"},"preferred":{"name":"pkg:clod/com.clodhub/store-update","version":"0.13.0"}} - in place of another component of the class: clod fetch store-update@0.13.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=store-update@0.13.0 --out definition.json Used by recipes: pkg:clod/com.clodhub/ourpoker-recipe 0.13.0 (slot store-update) For developers: how an application uses it On the server, `updateAddress(settings)` turns the two settings into the store address, or null when updates are off or the link is missing or malformed; a server route can relay the store's answer to clients. On the web: ```ts import { fetchUpdate, isNewer } from "./components/store-update/web/index"; const latest = address ? await fetchUpdate(address, fetch) : null; if (latest && isNewer(latest.version, installedVersion)) showUpdate(latest.version, latest.url); ``` On Apple, `currentVersion` reads the installed version from the application bundle and `isNewer(_:than:)` compares; on Android, import `com.clodhub.update.isNewer`. `examples/consumer.ts` combines the address, the request and the comparison. Accounts and services No service and no account. The only network use is the request to the store, made through the application's own request function, to the address the invitation link gives. How it is checked `node --test tests/web.test.ts` (required) checks the version comparison against a table of cases, the store address from invitation links, that an unreachable store, an error status or a malformed answer give no update, that the settings give the right address or none, and a small consumer that fetches and compares. `node --test tests/regression.test.ts` (required) checks that only exact invitation links are accepted: extra path parts, encoded slashes, user names and passwords, and malformed addresses all give no address. `python3 tests/native.py apple` compiles the Swift comparison and checks it against the same table; `python3 tests/native.py android` compiles the Kotlin comparison and checks a few of the same cases. Updates Updates replace the component's files; it stores nothing. Removing it removes the update check; nothing on the device or the store is deleted. Tags: delivery, store, update, updates Targets: client android, ios, macos, tvos, web, windows; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/store-update release v0.13.0; digest sha256:366598562e6e60207a4309318ceaaa3d8300d71a1343643b7264c0451d4bc168 Release: features Line 0.13: no security releases Quality: Integration-tested, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/store-update/0.13.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/store-update/0.13.0 Bundle download: GET https://clodhub.com/api/components/store-update/0.13.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/store-update-class@1.1.0 febe4c58661a4bbc86d83fe5fd060bc6377e6c6ece5d7e54897d3abcce06bbb8 com.clodhub/updates 1.0.0 entry modules: android android/src/main/java, ios apple/Sources, macos apple/Sources, server server/index.ts, tvos apple/Sources, web web/index.ts, windows web/index.ts shared behaviour suites: shared Platforms: android, ios, macos, server, tvos, web, windows Toolchains: android >=8.0.0, ios >=17.0.0, java >=17.0.0 <27.0.0, kotlin =2.4.21, macos >=14.0.0, node >=26.5.0 <27.0.0, swift =6.4.2, tvos >=17.0.0 Frameworks: none Styles: scope none; 0 namespaces; 0 conflicts Licence: Apache-2.0; 0 upstream sources, 0 exact dependencies, 32 files (listed on the details page) Suitable for jobs: store-update profile any: cost none; load none; regions any; compliance none Notes: Pure library; network access is through the caller's injected fetch function. No hosted service, account or measured load. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/store-update/issues; updates https://github.com/clodhub/store-update/releases (manual) What you download store-update-0.13.0.tar, from release v0.13.0 of clodhub/store-update: 32 files - Documents and manifests (8): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.md, ... - Source code (6): android/ (1), apple/ (1), server/ (2), web/ (2) - Tests (8): android/ (1), apple/ (1), fixtures/ (3), native.py, regression.test.ts, web.test.ts - Interface documents (1): updates.json - Class files: the class's interfaces and shared checks (3): store-update-class/ (3) - Examples (1): consumer.ts - Diagrams (5): definition.json, examples/ (1), output/ (3) Installing copies 6 of them into the application under components/store-update/: android 1, apple 1, server 2, web 2 Not included: the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.13.0 features (2026-11-26T11:32:44.125Z) sha256:366598562e6e60207a4309318ceaaa3d8300d71a1343643b7264c0451d4bc168 Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/store-update/details.txt?version=0.13.0 Page: https://clodhub.com/components/store-update; JSON: https://clodhub.com/api/components/store-update/0.13.0; connections diagram: https://clodhub.com/api/components/store-update/0.13.0/connections.svg Copyright Level N Ltd 2026