@pryv/socket.io: cap reconnection (reconnectionAttempts: 10,reconnectionDelayMax: 60000,randomizationFactor: 0.5) so a server-side outage no longer drives an unbounded reconnect loop. Listens forreconnect_failedand surfaces a terminalerrorevent so consumers can clean up instead of leaving a zombie socket reference.@pryv/monitor: when the underlying socket.io transport dies (terminalreconnect_failed), drop the cached socket reference so a futureChanges.READYcycle rebuilds from scratch instead of short-circuiting on the dead handle.
- Socket.IO: use WebSocket transport directly instead of polling-first. Fixes connection failures against service-core v2 cluster mode (which disables HTTP long-polling).
- Removing superagent dependency (breaking change)
- Enhancing test suite
- Changing linter & typescript coverage
- Enhanced typescripts definition
- Adding
Connextion.apiOne()andConnextion.apiOne() - Some untracked changes
global.Pryv, renamed toglobal.pryv(when loaded with<script>)utils.extractTokenAndApiEndpoint(), renamed toutils.extractTokenAndAPIEndpoint()utils.buildPryvApiEndpoint(), renamed toutils.buildAPIEndpoint()
- Dev: Grouped library and add-ons (Socket.IO & Monitor) in monorepo
- Dev: run tasks with
just, lint withsemistandard, license withsource-licenser
- JSDoc generated docs (to avoid confusion with docs in READMEs)
2.2.0 – 2022-01-10
- TypeScript typings from @ovesco
2.1.7 – 2021-05-10
- Dev: Removed
jsdocdependency for security reason
2.1.0 – 2020-10-22
- Extendable UI feature
- UI separated from the Authentication logic
2.0.3 – 2020-06-22
Connection.username()
Originheader in browser distribution
- Various dependencies upgrades