@todesktop/update-analytics
v1.1.0
Published
Wire contract for ToDesktop update analytics
Readme
@todesktop/update-analytics
Dependency-free wire contract shared by ToDesktop update clients and download services.
Import constants and helpers from the package root:
import {
UPDATE_ANALYTICS_V2_HEADERS,
UPDATE_ANALYTICS_V2_QUERY_PARAMS,
} from '@todesktop/update-analytics';The unversioned UPDATE_ANALYTICS_HEADERS, UPDATE_ANALYTICS_QUERY_PARAMS, and
UPDATE_ANALYTICS_SCHEMA_VERSION exports retain the schema v1 contract for
existing clients. New schema v2 consumers must use the explicit
UPDATE_ANALYTICS_V2_* exports.
osVersionBucket is normalized centrally:
- macOS:
major.minor - Windows:
major.minor.build - Linux:
distroId:majorordistroId:rolling, falling back tokernel:major.minor - Unknown or unparseable: an empty string
installIdentityCreatedAt is a Unix timestamp in seconds. Legacy identities
whose creation time is unavailable use -1; they must not be back-filled with
the current time.
