Changelog
TIP
This page mirrors the CHANGELOG.md of @appzgatenz/label-print-topbridge-js and is synced manually on each SDK release.
0.6.2
Patch Changes
- Tolerate flattened dotted schema field names for structured widgets. Some TopBridge App builds emit
price.currency/price.valueentries in thetemplateschema instead of a single parentpricefield;planFieldsnow registers the dotted prefix (price) as the structured field so nested-object and dot-path product inputs validate correctly. An explicitly declared parent field always takes precedence.
All notable changes to this package are documented in this file. Entries through 0.6.1 were reconstructed from tagged Git history when Changesets was adopted; later entries are generated from changeset fragments. See the authoring and release workflow in the SDK repository.
0.6.1
Patch Changes
- 3c4cf12: Added
printerSetup.reset()to clear a printer's protocol configuration without changing the Windows default printer.printerSetup.list()andprinterSetup.getOptions()now also returnprotocolandprotocolLabelfields describing each printer's configuration.
0.6.1-beta.0
Patch Changes
- c866d5f: Aligned the public push-event contracts with WebSocket API v2.
TemplateEventandUserEventare now discriminated unions keyed byaction;BenefitsData.expiresAtmay now benull;RefreshTemplatesFullResponsenow distinguishesok(sync counts) fromwarning(a full sync is already running).
0.6.0
Minor Changes
- aad57ba: Added the
sessionmodule withclient.session.kickSession()to unblock SessionBlocked logins by kicking existing Keycloak sessions. Session-limit breaches are now surfaced as the newTopBridgeSessionError(server codeSESSION_LIMIT_EXCEEDED). - aad57ba: Added forced-refresh APIs:
client.benefits.refreshBenefit()to re-validate printing rights on demand, andclient.templates.refreshTemplates()supporting both full-sync and by-ID modes.
0.5.3
Minor Changes
- 90c7246: Added
templates.json()to batch-fetch full JSON data for specified templates; missing templates are reported as warnings instead of failing the whole request.
0.5.2-beta.1
Minor Changes
- f8bf178: Breaking — aligned BPAC install failure reasons with WebSocket API v2:
INSTALL_NOT_COMPLETEDwas removed in favor ofINSTALL_FAILED/INSTALL_TIMEOUT, andInstallResult.detailwas renamed tomessage. - fdd1078: Breaking — dropped BPAC font management.
addFont/deleteFontno longer accept protocol'BPAC'; such requests are now rejected client-side because the server reports them as unsupported.
0.5.2-beta.0
Minor Changes
- a9d94e5: Added charset and font management to
printerSetup(addCharset/deleteCharset/addFont/deleteFont) with client-side input validation. - 1c1b138: Added asynchronous BPAC install handling —
printerSetup.configure()now bridgespendinginstall states and resolves when the BPAC wizard finishes. - 1c1b138: Improved connection resilience: the shared connection now closes automatically after an idle grace period, and reconnection uses exponential backoff with jitter and a capped attempt count.
0.5.0
Minor Changes
- 168f2ad: Added the
printerSetupmodule for configuring installed printers (loading options, listing printers, updating settings). - 0525054: Introduced the hybrid connection model: lightweight requests and server push events (
printer/template/user) share one persistent connection managed byConnectionManager, whileprintkeeps an independent short connection to avoid head-of-line blocking. - 0525054: Added typed push-event subscriptions via
client.events, explicit connection control (client.connect()/client.close()/client.getConnectionState()), and the newTopBridgePrinterSetupError.
Versions before 0.5.0 (0.3.x–0.4.0) predate changelog tracking and are not covered here.