Skip to content

0.9.1: bump upstream to @novasamatech/*@^0.8.6 - #35

Merged
mordamax merged 1 commit into
mainfrom
mak/0.9.1
Jun 8, 2026
Merged

0.9.1: bump upstream to @novasamatech/*@^0.8.6#35
mordamax merged 1 commit into
mainfrom
mak/0.9.1

Conversation

@mordamax

@mordamax mordamax commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps @novasamatech/host-api, host-container, host-api-wrapper from ^0.8.0^0.8.6. Pulls in RFC-0021 coin top-ups (triangle-js-sdks#194), the PaymentTopUpSource codec fix (#198PrivateKey/Coins keys are now 64-byte sr25519 secrets), the deriveProductEntropyFromSource export (#205), and host-chat / host-papp internals. All existing handlers behave identically.
  • New setPaymentTopUpBehavior(behavior) test control plumbs PaymentTopUpErr.PartialPayment({ credited }) through handlePaymentTopUp. { type: 'partial', credited } credits the balance by credited and rejects with the matching error — mirroring how a real host reports a partially-fulfilled Coins top-up. Also supports { type: 'reject', reason: 'InvalidSource' | 'InsufficientFunds' }. paymentLog always records the attempted amount and source regardless of outcome.
  • PaymentTopUpSource.Coins(Vector<Sr25519SecretKey>) flows through to paymentLog.source as { tag: 'Coins', value: Uint8Array[] } (each key is 64 bytes).
  • Two new integration tests: coins round-trip into paymentLog, and the partial-payment path asserting both the rejected promise's payload.credited and the resulting balance increment.
  • Release artifacts updated: CHANGELOG.md, forum-post.md (new section + 0.9.x blocks moved to the bottom to match the ascending-order convention), README.md (new "Payment control" subsection).

0.8.7-0 is a prerelease (host-papp SSO V2 storage migration); not pulled.

Pulls in RFC-0021 coin top-ups, the PaymentTopUpSource codec fix
(PrivateKey/Coins keys are now 64-byte sr25519 secrets), the
deriveProductEntropyFromSource export, and host-chat / host-papp
internals. All existing handlers behave identically.

Adds setPaymentTopUpBehavior test control so tests can drive products
through the PartialPayment error path — `{ type: 'partial', credited }`
credits the balance by `credited` and rejects with
PaymentTopUpErr.PartialPayment({ credited }), mirroring how a real host
reports a partially-fulfilled Coins top-up. Coins-source top-ups flow
through to paymentLog.source as { tag: 'Coins', value: Uint8Array[] }.

Integration tests cover the coins round-trip and the partial-payment
balance/error semantics.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​novasamatech/​host-api-wrapper@​0.8.67610010097100
Added@​novasamatech/​host-container@​0.8.67710010099100
Added@​novasamatech/​host-api@​0.8.6791009999100

View full report

@mordamax
mordamax requested review from BigTava and johnthecat June 7, 2026 22:18
@mordamax
mordamax merged commit f88d92a into main Jun 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant