Releases: andrewkoltsov/librus-sdk
Releases · andrewkoltsov/librus-sdk
v0.7.1
v0.7.0
Added
- Gateway API 2.0 login/password authentication through
LIBRUS_GATEWAY_LOGINandLIBRUS_GATEWAY_PASSWORD, including
LibrusSession.fromGatewayCredentials()and CLI child-scoped commands that
can run without--childingateway_api_20. - Public API backend selection through
LIBRUS_API_BACKEND,
LibrusSessionOptions.apiBackend, andLibrusSession.getApiBackend(). - Optional
LIBRUS_CHILDdefault child selection forapi_v3CLI commands.
Changed
LIBRUS_EMAILandLIBRUS_PASSWORDremain documented as deprecated
Portal-only compatibility fallbacks. UseLIBRUS_PORTAL_EMAILand
LIBRUS_PORTAL_PASSWORDforapi_v3, orLIBRUS_GATEWAY_LOGINand
LIBRUS_GATEWAY_PASSWORDforgateway_api_20.- Deprecated compatibility aliases now emit Node deprecation warnings when
used.
v0.6.2
Fixed
WiadomosciMessagesClient.getMessage()now decodes base64-encoded
wiadomosci.librus.plmessage bodies even when Librus returns plain HTML
instead of the legacy XML<Message><Content><![CDATA[...]]></Content>
envelope.
v0.6.1
Added
LibrusSession.forChildWiadomosci()and CLImessages wiadomosci-list,
messages wiadomosci-get, andmessages wiadomosci-unreadnow expose the
wiadomosci.librus.plmessage backend explicitly.- CLI
messages list,messages get, andmessages unreadnow support
--backend <api3|wiadomosci>.
Fixed
messages list,messages get,messages unread, and
LibrusSession.forChild()now use API 3.0 by default again after the
0.6.0regression.
v0.6.0
Added
- Session-created SDK clients and CLI message read commands now use the
portal-authenticatedwiadomosci.librus.plinbox API formessages list,
messages get, andmessages unread.
v0.5.0
Added
- The SDK now exposes an experimental
BffApiClientplus
LibrusSession.forChildBff()for reading
https://testbff.librus.pl/v1/Messageswith child-scoped access tokens. messages bff-listnow exposes the experimental BFF inbox message payload
through the CLI.
Changed
- The canonical CLI binary is now
librus-sdk; the previouslibrusbinary
remains as a deprecated compatibility alias and prints a warning before
delegating. - Synergia API requests now align message-related mobile headers with the
Librus mobile app, includingOrigin: app://librus. messages listnow sends the mobile-app query parity options
alternativeBody,changeNewLine,getAllTypes,page, andlimitby
default, with CLI/SDK options for overriding them.
v0.4.4
Added
- README now exposes CI, CodeQL, and Snyk Security status badges alongside the
public OpenSSF Scorecard badge. - Snyk Security now runs in GitHub Actions and fails on high or critical
dependency vulnerabilities.
Changed
- Vitest branch coverage enforcement now requires at least 84%.
Fixed
- Missing
LibrusSession.fromEnv()credential errors now name the primary and
fallback environment variables and distinguish unset values from empty ones.
v0.4.3
Fixed
- CLI text rendering now decodes escaped message-body sequences without
dropping mixed raw backslashes, closing the outstanding CodeQL sanitization
finding in the terminal formatter.
v0.4.2
Fixed
- Development and CI dependency refresh now removes the disclosed high-severity
Vite advisoriesGHSA-4w7w-66w2-5vf9,GHSA-v2wj-q39q-566r, and
GHSA-p9ff-h696-f583from maintainer workflows and repository validation
gates; the published SDK and CLI runtime surface is otherwise unchanged.
v0.4.1
Added
- README now exposes the public OpenSSF Scorecard badge and report link for the
repository security posture.
Changed
- Minimum supported Node.js is now 22.x, CI and CodeQL validation now run on
Node 22, and development type definitions now track the Node 22 line. - GitHub Actions workflows now pin third-party and GitHub-hosted actions by
commit hash, and write-scoped workflow token permissions are limited to the
jobs that need them. - Annotated-tag GitHub Action pins now use the underlying commit SHA so
Scorecard result publication keeps working withpublish_results: true. - Dependabot now tracks both npm dependencies and pinned GitHub Actions
updates. - Scorecard artifact uploads now use
actions/upload-artifact@v7.0.0so the
workflow no longer relies on a Node.js 20 action runtime on github.com. - Test coverage now includes property-based checks for CSRF parsing, endpoint
construction, and timeout environment parsing.