Skip to content

Releases: cap-js-community/websocket

v1.0.1

03 Jun 16:14
Compare
Choose a tag to compare

Fixed

  • Fix access to undefined request user for unauthenticated requests
  • Redis lookup via custom vcap environment configuration

v1.0.0

03 May 05:45
Compare
Choose a tag to compare

Added

  • First major release
  • Exclude a client socket instance via a consumer-defined identifier

Fixed

  • Clear existing redis clients before shutdown
  • Call unknown adapter implementations for Socket.IO
  • Normalize logging layer

v0.9.0

02 Apr 06:57
Compare
Choose a tag to compare

Fixed

  • Add option to activate Redis adapter in other (non-local) environments (e.g. Kyma)
  • Fix Redis re-connect behavior to prevent Redis overload
  • Pass adapter configurations to Redis client creation

v0.8.1

04 Mar 07:23
Compare
Choose a tag to compare

Added

  • Allows to provide event emit headers to dynamically control websocket processing without annotations

Fixed

  • Describe the usage of CDS persistent outbox for websocket events

v0.8.0

15 Feb 08:10
Compare
Choose a tag to compare

Added

  • Introduce optional user concept to broadcast event, except to current context user via annotation @websocket.user or @ws.user
  • Allow to suppress CRUD event broadcast via @websocket.broadcast = 'none' or @ws.broadcast = 'none'
  • Match CRUD broadcast event with CDS service event to filter broadcast data

Fixed

  • Fix leakage of internal processing information to websocket clients

v0.7.0

09 Feb 07:48
Compare
Choose a tag to compare

Added

  • Allow custom server implementations via cds.websocket.impl
  • Allow custom adapter implementations via cds.websocket.adapter.impl (kind ws only)
  • Allow processing of multiple event contexts by annotating event type elements of many or array of type
  • Support for type date event contexts as ISO string representation
  • Support for type object event contexts as JSON stringified representation

v0.6.1

31 Jan 07:31
Compare
Choose a tag to compare

Fixed

  • Correct version confusion

v0.5.1

31 Jan 07:20
Compare
Choose a tag to compare

Fixed

  • Fix message wrapping for Redis distribution

v0.5.0

29 Jan 15:28
Compare
Choose a tag to compare

Added

  • Provide user context in examples and tests, to verify authorization flow
  • Introduce optional context concept to broadcast to a client subset via annotation @websocket.context or @websocket.ws

Fixed

  • Respect tenant isolation for event broadcasting
  • Fix maxListeners issue for ws implementation
  • Refactor middlewares and authorization check
  • Change cds.ws to point to CDS websocket server (not the native implementation, use cds.wss or cds.io for that)

v0.4.0

26 Jan 07:00
Compare
Choose a tag to compare

Added

  • Option to disable websockets via env configuration cds.websocket: false
  • Add configuration schema for websocket environment via cds.schema for CDS plugin

Fixed

  • Change cds websocket env from cds.requires.websocket to cds.websocket accessible via cds.env.websocket