The HotCodePush update-protocol client for JavaScript: the wire types, the evaluator, the signatures, the fingerprint recipe and the fixture suite behind every HotCodePush SDK.
The package is not on npm yet; every commit is published to pkg.pr.new by CI, and a consumer pins one commit and bumps it deliberately, never a branch:
npm install https://pkg.pr.new/hotcodepush-team/protocol/@hotcodepush/protocol@<sha>import {
ChannelIndexSchema,
evaluateChannelIndex,
} from '@hotcodepush/protocol';
const index = ChannelIndexSchema.parse(await response.json());
const { outcome, verdicts } = evaluateChannelIndex(index, deviceInfo);
// outcome: the release to take, or the reason not to; verdicts: every release explainedThe package is the foundation of the HotCodePush SDKs, not their supported API: an app uses the SDK for its framework.
See hotcodepush.com/docs.
nvm use
npm ci
npm run lint
npm run typecheck
npm test
npm run buildnpm run fmt formats the code with Prettier.
See LICENSE.