Changelog
Notable changes to @liqo/sdk, by version
Mirrors CHANGELOG.md in the SDK
repository, which stays the source of truth. Format follows Keep a Changelog;
@liqo/sdk follows Semantic Versioning.
[2.0.0] — Unreleased
The 2.0 line aligns the SDK with Liqo's canonical contract layer and the hosted-checkout payment model.
Added
liqo.pay(params)— create a payment via hosted checkout in one call.liqo.checkout.sessions.create()/liqo.checkout.sessions.retrieve(token).liqo.webhooks.verify({ payload, headers })— signed webhook verification with timestamp/replay protection.liqo.transactions.retrieve(id),liqo.waitForCompletion(id, opts).- Request/response/error event listeners via
liqo.on(...). - Types re-exported from Liqo's canonical
@liqo/contracts. - Comprehensive documentation (
docs/) and runnable examples (examples/). - MIT
LICENSE,CONTRIBUTING.md,SECURITY.md,CODE_OF_CONDUCT.md, issue/PR templates.
Changed
- Positioning updated to Global Payments Infrastructure for Modern Businesses across package metadata and docs.
package.jsondescription/keywordsrefreshed;versionaligned to2.0.0(previously1.1.0while the client already advertised v2).
Packaging
- Removed the
@liqo/contractsfile:dependency. The SDK now ships self-contained type declarations — contract types are inlined intodist/index.d.tsat build time (viadts-bundle-generator), so the published package depends only onaxiosand installs standalone outside the monorepo. The platform contracts remain the single source of truth. - Added an
exportsmap,sideEffects: false, inline source maps, and a two-step build (tsc→build:types). - Build/test now resolve the canonical contracts from the sibling
../liqo-platformbuild viatsconfigpaths+ jestmoduleNameMapper(dev/CI only).
Fixed
normalizeStatusnow treats the canonical terminal statuscancelledas terminal, sowaitForCompletion/isTerminalStatusno longer hang on cancelled transactions.
Deprecated / Removed
verifyWebhook(signature, payload)— throws; useliqo.webhooks.verify({ payload, headers }).payAndWait()/payAndConfirm()— not supported for hosted checkout sessions; usecheckout.sessions.retrieve(token)to poll checkout status.
[1.1.0]
- Initial public SDK line (checkout, transactions, webhook verification).