Skip to main content

AppVersionStatus

Version status of a version-hosted app as seen from one document: the version this document loaded compared with the version currently published as the current version.

Index

Properties

application

The application whose versions are reported. Always a root application: a child application shares its root application's versions and pin, so the root is reported for it too.

current

current: null | string

Version currently published as the current version, or null while it is unknown: the host's current link is broken (typically mid-deploy) and only a pinned browser is still served.

isCurrent

isCurrent: null | boolean

Whether the document runs the current version: true when loaded equals current, false when it differs, and null while current is unknown, when neither a new version nor a pin can be claimed.

loaded

loaded: string

Version of this app that this document loaded, stamped into the document by its build.

served

served: string

Version this browser is served right now, which is what a plain reload would load. Differs from current while the browser is pinned to another version; switchToCurrentVersionUrl then builds the URL back to the current version.