Skip to content

sdk-v0.3.4

Latest

Choose a tag to compare

@PortixOne PortixOne released this 12 Jul 04:55

First npm release since 0.3.1 — this publish ships 0.3.2, 0.3.3, and 0.3.4 together (0.3.2 and 0.3.3 were committed but never published, so they reach npm now).

0.3.4

  • Mock-mode preview box now aligns: content rows were one column short of the frame, so the right edge never lined up with the corners. Purely cosmetic — print()'s returned preview string and every other behavior is unchanged.

0.3.3

  • A missing/unreachable Runtime now throws a clear RuntimeUnreachableError (message includes the portix.one/download link) instead of a raw TypeError: fetch failed. In a browser, connect() also best-effort opens the download page. RuntimeUnreachableError is exported for apps that want to handle it with their own UI.

0.3.2

  • connect() now pairs automatically when it isn't authorized yet, using appId/tenant from the constructor — no separate .pair() call needed for the common case. Instant from localhost (the runtime's auto-trust); otherwise it waits for a human to approve it from the PortixOne tray's "Pairing Requests" menu. Skipped entirely if you pass an explicit apiKey.
  • A successful pairing is persisted (browser localStorage) so it's asked for once per appId/tenant, not on every connect().

npm install @portixone/sdk@0.3.4