Releases: Rabbit-Company/Web-JS
Releases · Rabbit-Company/Web-JS
v0.18.2
Update:
- @rabbit-company/logger dependency to fix
batchSizeconfiguration in Grafana Loki transporter
v0.18.1
Update:
- @rabbit-company/rate-limiter dependency to fix calculation of reset time for Token Bucket algorithm
v0.18.0
WebSocket connections now receive real client IP from middleware
Previously, the ipExtract middleware only worked for HTTP requests. WebSocket connections would only see ws.remoteAddress, which shows the direct connection IP (often a proxy or load balancer).
Now, when using ipExtract middleware, the real client IP extracted from headers (e.g., x-forwarded-for, cf-connecting-ip) is automatically passed to WebSocket handlers via ws.data.clientIp.
New WebSocketData Interface
WebSocket handlers now receive typed data with the following properties:
clientIp- The real client IP extracted by middleware (likeipExtract)url- The original request URL pathnameparams- URL parameters extracted from the route (e.g.,:roomId)query- Query parameters from the upgrade request
v0.17.0
CORS Middleware
- Fixed invalid
Access-Control-Allow-Origin: *whencredentials: true - Added
Vary: Originwhen responses reflect the request origin - Avoided unnecessary
Varyheaders when using wildcard (*) origins - CORS headers are now only set when an
Originrequest header is present - Improved preflight (
OPTIONS) cache correctness - Updated tests to match spec-compliant CORS behavior
v0.16.0
Added:
- Websocket support for Bun
- Expose
publish,pendingRequests,pendingWebSocketsandsubscriberCounton Buns web server
v0.14.0
Added:
hashAlgorithm,generateETags,shouldGenerateETag,maxETagBodySizeandskipETagContentTypesoptions incache middleware
v0.13.0
Added:
- Support for Cloudflare Workers
v0.2.0
Added:
- Dynamic route and middleware removal
v0.1.0
First pre-release