Repository navigation
Releases
Releases · escalated-dev/escalated-plugin-sdk
v0.2.1 — Dependency refresh
v0.2.0 — Plugin HTTP contract and marketplace publish
Added
- Versioned plugin HTTP contract (version 1). Endpoint and webhook handlers can read the exact request bytes as
req.rawBody(Uint8Array), the host-resolvedreq.clientIp, andreq.httpContract. ReturnhttpResponse(status, body, { headers, format })to send a real HTTP status; the helper rejects invalid statuses, header injection, duplicate headers, transport headers andSet-Cookie. Ordinary returned objects keep their meaning as JSON data (#25). Seedocs/http-contract.md. esc-plugin publishCLI for marketplace artifacts: SHA-256 tarball digest, optional RSA-SHA256 signature, S3-compatible upload or--artifact-uri, then registration with Escalated Cloud (#9).
Security
- Patched vulnerable transitive dependencies (#28).
Upgrading
- No existing plugin code needs to change: the new request fields are optional and ordinary return values behave as before.
- Signature verification must use
req.rawBody. Never re-serializereq.bodyto check a signature. Handlers that verify signatures should reject requests withoutrawBody(older hosts do not send it). rawBody,clientIpandhttpResponseenvelopes only work when the host bridge and@escalated-dev/plugin-runtimeboth support HTTP contract version 1 (runtime v0.2.0 advertiseshttp_contract_versions: [1]).- The package version moves from 0.1.x to 0.2.0. Consumers pinning
^0.1.0must widen the range to pick it up; git-ref installs can use thev0.2.0tag.