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 returnedpreviewstring and every other behavior is unchanged.
0.3.3
- A missing/unreachable Runtime now throws a clear
RuntimeUnreachableError(message includes theportix.one/downloadlink) instead of a rawTypeError: fetch failed. In a browser,connect()also best-effort opens the download page.RuntimeUnreachableErroris 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, usingappId/tenantfrom the constructor — no separate.pair()call needed for the common case. Instant fromlocalhost(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 explicitapiKey.- A successful pairing is persisted (browser
localStorage) so it's asked for once perappId/tenant, not on everyconnect().
npm install @portixone/sdk@0.3.4