Skip to content

Releases: cap-js-community/websocket

v1.7.1

03 Jul 06:14
Compare
Choose a tag to compare

Fixed:

  • Adapter loading for Socket.IO

v1.7.0

03 Jun 08:05
Compare
Choose a tag to compare

Fixed:

  • CDS 9 compatibility
  • Fix typing definition file

v1.6.4

05 May 12:37
Compare
Choose a tag to compare

Fixed:

  • Security: Dynamic method call

v1.6.3

10 Apr 06:00
Compare
Choose a tag to compare

Added:

  • Adopt common module

v1.6.2

02 Apr 06:07
Compare
Choose a tag to compare

Fixed:

  • Compatibility for wsContext to map array value of context to contexts
  • Housekeeping

v1.6.1

04 Mar 16:55
Compare
Choose a tag to compare

Fixed:

  • Split variadic parameter context of wsContext into context for single and contexts for multiple contexts
  • Register ws protocols in CDS env instead of cds-plugin.js
  • Fix wsDisconnect operation without reason parameter
  • Document wsDisconnect with reason parameter
  • Improve Redis connection check logging

v1.6.0

03 Feb 07:37
Compare
Choose a tag to compare

Fixed:

  • Check authorization and service path before websocket upgrade
  • Reject connection to non-websocket protocol paths
  • Support unauthenticated requests via option cds.requires.auth.restrict_all_services: false
  • Support privileged user, e.g. via dummy auth strategy
  • Fix call to wsDisconnect operation without reason parameter
  • Cast reason parameter for wsDisconnect operation to string
  • Fill baseUrl for websocket requests (necessary for request context specific model in toggle/extensibility scenario)
  • Clean websocket context from internal read-only attributes
  • Normalize client identifier on upgrade request request.id
  • Return 404 when url cannot be associated with a service in upgrade request
  • Parse string values according to operation parameter type in custom formats (e.g. pcp)

Added:

  • reset all contexts via wsContext flag reset: true
  • Support multiple contexts in wsContext with array value for context
  • Document usage of srv.tx(req).emit for tenant and user propagation in WS broadcasting
  • Document usage of wsContext for format pcp and cloudevents

v1.5.2

10 Jan 16:40
Compare
Choose a tag to compare

Fixed:

  • Fix fallback to redis configuration cds.requires.redis
  • Check for authenticated user during websocket connection (no anonymous)
  • Improve start log using websocket including adapter information
  • Improve server shutdown redis client handling

v1.5.1

09 Jan 15:33
Compare
Choose a tag to compare

Fixed:

  • Improve redis connection check
  • Improve connection error handling (e.g. unauthorized)
  • Consolidate dependencies

v1.5.0

08 Jan 16:01
Compare
Choose a tag to compare

Fixed:

  • Redis lookup for websocket via CDS env cds.requires.redis-websocket
  • Reworked redis client connection logic
  • Document options