Skip to content

deps: bump the dev-dependencies group with 3 updates - #12

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/dev-dependencies-2d8d1185c2
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/dev-dependencies-2d8d1185c2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown
Contributor

Bumps the dev-dependencies group with 3 updates: holywisp, typescript-eslint and werift.

Updates holywisp from 0.5.3 to 0.5.4

Release notes

Sourced from holywisp's releases.

v0.5.4

The biggest release since 0.1: Wisp over WebTransport, three new Wisp extensions, and the tools to run the relay in production (a per-worker /stats, crash reports, a watchdog, a drain on SIGTERM, a policy file read while it runs).

Check before upgrading

  • The config file is stricter. Each of these used to start, and now fails with the line it is on:

    • a dns-server that is not an address (it used to be skipped with a warning, and lookups went to the system resolver);
    • a line longer than the reader's buffer (the tail used to be applied as a line of its own);
    • a trusted-headers-reset value that is not a boolean (any value used to empty the list, off included).

    Run holywisp --config <file> --check-config against your config before you restart.

  • A second server cannot share a port. A holywisp started on a port another process of the same user holds now fails to start, instead of silently taking half of its connections.

  • v2 opens faster. With no password-user, a v2 server sends the stream-0 CONTINUE right behind its INFO, as v1 does after the 101. Clients in the wild already read it there.

  • Stream credit and upload credit are on by default (stream-credit, upload-credit). They take effect only for a client whose INFO asks for them, so other clients see no difference.

  • The budget follows the cgroup. Under a memory.max, a server-queue-max above half of it is lowered to half at start, and the log says so.

  • The packaged config changed (worker-watchdog-s = 60, drain-timeout-s = 0). If you edited /etc/holywisp/holywisp.conf, dpkg asks which to keep and rpm writes the new one beside it as .rpmnew.

  • The Node wrapper accepts a Unix-socket front. A socket with no peer address now counts as 127.0.0.1 (logged once) instead of being refused with 403.

WebTransport

  • webtransport = on opens a UDP listener beside the TCP one, where a browser's new WebTransport(url) gets the same Wisp over HTTP/3. Egress policy, limits, reputation and flow control are the WebSocket path's. TLS 1.3, QUIC and HTTP/3 are in-tree; nothing is linked. https://github.com/Fracital/holyWisp/tree/HEAD/node/blob/HEAD/docs/webtransport.md is the design.
  • UDP streams ride QUIC datagrams, so a lost UDP packet does not hold up the session.
  • Certificates:
    • with none configured, a self-signed one rotated for Chrome's serverCertificateHashes, its hashes published at GET /webtransport.json;
    • operator files (webtransport-cert, -key), re-read when they change;
    • one per host by SNI (webtransport-cert-dir).
  • webtransport-path rules admit sessions only on the paths and hosts they name. A page request sent to the UDP port by a cached alt-svc gets 421 and goes back to TCP.
  • Congestion control is BBR (webtransport-congestion-control, bbr by default). bbr2, BBR with version 3's answer to loss, is for shallow buffers, and newreno remains as a fallback.
  • The pacer releases a few datagrams at a time on microsecond timers. A browser's UDP receive buffer no longer overflows.
  • The path MTU is probed (DPLPMTUD) from 1200 bytes, and datagrams are never fragmented.

... (truncated)

Changelog

Sourced from holywisp's changelog.

0.5.4 (2026-11-23)

The biggest release since 0.1: Wisp over WebTransport, three new Wisp extensions, and the tools to run the relay in production (a per-worker /stats, crash reports, a watchdog, a drain on SIGTERM, a policy file read while it runs).

Check before upgrading

  • The config file is stricter. Each of these used to start, and now fails with the line it is on:

    • a dns-server that is not an address (it used to be skipped with a warning, and lookups went to the system resolver);
    • a line longer than the reader's buffer (the tail used to be applied as a line of its own);
    • a trusted-headers-reset value that is not a boolean (any value used to empty the list, off included).

    Run holywisp --config <file> --check-config against your config before you restart.

  • A second server cannot share a port. A holywisp started on a port another process of the same user holds now fails to start, instead of silently taking half of its connections.

  • v2 opens faster. With no password-user, a v2 server sends the stream-0 CONTINUE right behind its INFO, as v1 does after the 101. Clients in the wild already read it there.

  • Stream credit and upload credit are on by default (stream-credit, upload-credit). They take effect only for a client whose INFO asks for them, so other clients see no difference.

  • The budget follows the cgroup. Under a memory.max, a server-queue-max above half of it is lowered to half at start, and the log says so.

  • The packaged config changed (worker-watchdog-s = 60, drain-timeout-s = 0). If you edited /etc/holywisp/holywisp.conf, dpkg asks which to keep and rpm writes the new one beside it as .rpmnew.

  • The Node wrapper accepts a Unix-socket front. A socket with no peer address now counts as 127.0.0.1 (logged once) instead of being refused with 403.

WebTransport

  • webtransport = on opens a UDP listener beside the TCP one, where a browser's new WebTransport(url) gets the same Wisp over HTTP/3. Egress policy, limits, reputation and flow control are the WebSocket path's. TLS 1.3, QUIC and HTTP/3 are in-tree; nothing is linked. https://github.com/Fracital/holyWisp/blob/master/docs/webtransport.md is the design.
  • UDP streams ride QUIC datagrams, so a lost UDP packet does not hold up the session.
  • Certificates:
    • with none configured, a self-signed one rotated for Chrome's serverCertificateHashes, its hashes published at GET /webtransport.json;
    • operator files (webtransport-cert, -key), re-read when they change;
    • one per host by SNI (webtransport-cert-dir).
  • webtransport-path rules admit sessions only on the paths and hosts they name. A page request sent to the UDP port by a cached alt-svc gets 421 and goes back to TCP.
  • Congestion control is BBR (webtransport-congestion-control, bbr by default). bbr2, BBR with version 3's answer to loss, is for shallow buffers, and newreno remains as a fallback.
  • The pacer releases a few datagrams at a time on microsecond timers. A browser's UDP receive buffer no longer overflows.
  • The path MTU is probed (DPLPMTUD) from 1200 bytes, and datagrams are never fragmented.

... (truncated)

Commits
  • ad5decb docs: CHANGELOG.md, and a tag's release notes are its section
  • 0156c29 server: per-worker liveness, crash reports, a drain on SIGTERM
  • db9d9e8 node: idleTimeoutSeconds as the server has it, and the whole /stats type
  • 43b96a3 sys, server: what crypt can check, the receive buffer from the kernel
  • 0726574 config: a dns-server that is not an address is an error, not a warning
  • 41f64c7 docs, deploy: what the README and the shipped files said wrong
  • 6473c64 node: a port for a webTransport server is free for UDP as well
  • 17a0e1e node: routeRequest() serves /webtransport.json on the app's origin, and the V...
  • ee5de06 wisp: upload credit, a byte window per stream toward the server (extension 0xE4)
  • 305e8f1 server: policy-file, the host, port and origin lists read again while it runs
  • Additional commits viewable in compare view
Attestation changes

This version has no provenance attestation, while the previous version (0.5.3) was attested. Review the package versions before updating.


Updates typescript-eslint from 8.73.0 to 8.74.0

Release notes

Sourced from typescript-eslint's releases.

v8.74.0

8.74.0 (2026-11-23)

🚀 Features

  • ast-spec: tighten types of MethodDefinition (#13075)
  • ast-spec: tighten types of Property (#13074)
  • eslint-plugin: [adjacent-overload-signatures] add ignoreAccessors option (#13011)

🩹 Fixes

  • eslint-plugin: [no-implied-eval] handle calls in a switch discriminant (#13126)
  • eslint-plugin: [no-unsafe-enum-assignment] ignore non-enum computed keys (#12968)
  • eslint-plugin: [consistent-generic-constructors] place annotation after ? and keep line comments out of type arguments (#13160)
  • eslint-plugin: [no-deprecated] report deprecated properties in union types (#13069)
  • eslint-plugin: [array-type] invalid autofix in readonly arrays (#13105)
  • parser: detect jsxPragma as null for the automatic JSX runtime (#13129)

❤️ Thank You

See GitHub Releases for more information.

You can read about our versioning strategy and releases on our website.

Changelog

Sourced from typescript-eslint's changelog.

8.74.0 (2026-11-23)

This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.

See GitHub Releases for more information.

You can read about our versioning strategy and releases on our website.

Commits

Updates werift from 0.27.0 to 0.28.0

Release notes

Sourced from werift's releases.

v0.28.0

This release collects everything merged since v0.27.0.

⚠️ Breaking changes

  • The spec / browser value of the compatibility options is "standard" (certificateScope, mLineReuse, keyFrameRequestRouting; also transceiverPairing): each option takes "standard" for the behavior the specifications and browsers have, and a value naming werift's own behavior. The old names of the spec / browser side and of keyFrameRequestRouting's default are still accepted on input, so existing configurations keep their behavior, but getConfiguration() now returns the current name, the TypeScript types MLineReuse / KeyFrameRequestRouting / CertificateScope and KeyFrameRequestRoutingModes list the current names, and the TypeError message lists them. SDPManager (mLineReuse) and RtpRouter.keyFrameRequestRouting, set directly, accept only the current names. Defaults and behavior are unchanged.

    Option Up to v0.27.0 Now (default first) Old names still accepted
    certificateScope "process" (default) / "peerConnection" "process" / "standard" "peerConnection"
    mLineReuse "compatible" (default) / "aggressive" "standard" / "aggressive" "compatible"
    keyFrameRequestRouting "compatible" (default) / "strict" "fallback" / "standard" "compatible", "strict"
  • ICE nomination: semi-aggressive by default, and the controlled side follows later nominations (werift-ice, werift). A controlling full ICE agent used aggressive nomination for UDP / relay pairs and the controlled side kept the first pair nominated to it; now the controlling side nominates semi-aggressively (as libwebrtc / Chrome), the controlled side uses the pair with the largest nomination, and RTCIceTransport.getSelectedCandidatePair() returns null until a pair is nominated. Set PeerConfig.iceNomination: "regular" (IceOptions.nomination) for RFC 8445 regular nomination. See "ICE: semi-aggressive nomination by default" under Bug Fixes.

  • A malformed a=rtcp is a parse error (#355): SessionDescription.parse() / setRemoteDescription() reject an a=rtcp whose port is not a decimal 1–65535 or whose value is neither <port> nor <port> IN IP4|IP6 <address> (it used to be stored as NaN or throw "exception"). See the a=rtcp entry under Bug Fixes.

  • DtlsSocket.close() returns a promise, and only close_notify closes a DTLS connection (werift-dtls): a warning alert other than close_notify no longer closes it, and a fatal alert makes the transport failed instead of being swallowed. See "DTLS alerts are sent and received" and "A fatal DTLS alert is no longer swallowed".

🚀 Features

  • bundleCandidates peer configuration ("legacy" default / "compatible", Issue #269): decides which m-lines of a BUNDLE group carry the local ICE candidates. werift writes every candidate and a=end-of-candidates on each m-line ("legacy"), so in a long BUNDLE session each renegotiation that adds m-lines (addTrack, createDataChannel) grows the SDP by "m-lines × candidates" (12 candidates and 7 m-lines: 84 a=candidate lines). "compatible" writes them as Chrome does: a transport's candidates appear once, on the tag m-line of its BUNDLE group, in every offer, answer and pranswer (including the first answer and a first max-bundle offer; RFC 8843 §7.1.3 / §7.3.1, RFC 8859). Every other m-line on that transport keeps a=ice-ufrag / a=ice-pwd / a=ice-options / a=fingerprint / a=setup / a=mid, so the SDP keeps the transport's candidate count. m-lines on their own transports (a first max-compat / balanced offer, an m-line split out of BUNDLE, bundlePolicy: "disable") keep their candidates, a new BUNDLE tag gets them, an ICE restart writes the new generation on the tag, and trickle is unchanged. Unlike Chrome, werift keeps a=end-of-candidates on the tag. The default stays "legacy" (the previous SDP, byte for byte) because applications and SFUs may read the candidates of every m-line; werift and Chrome peers accept "compatible" descriptions (werift already ignores the candidates of non-tag m-lines). It cannot be changed after construction.
  • icecandidateerror reports STUN / TURN servers that failed while gathering (werift, werift-ice, Issue #812). RTCPeerConnection fires an RTCPeerConnectionIceErrorEvent (url, errorCode, errorText, address, port) through addEventListener("icecandidateerror"), onicecandidateerror (now typed RTCPeerConnectionIceErrorEvent) and pc.onIceCandidateError (Event), with the same event object on all three. Gathering is not changed: other servers and sockets go on, and the candidates, end-of-candidates and iceGatheringState come as before.
    • errorCode is the STUN error code the server answered with (for example 401 for a wrong TURN credential, 300 for a redirect that was not followed) or 701 when the server was not reached (DNS, timeout including iceStunGatherTimeout, TCP / TLS connect, socket error). A credential retry (401 / 438) that succeeds is not reported. A server that answered without a STUN error code (an error response without ERROR-CODE, a response failing MESSAGE-INTEGRITY, a success without XOR-MAPPED-ADDRESS) was reached: it is not reported and never counts as 701 (werift-ice: isServerAnswer(); classifyGatherError() returns undefined for it). errorText is the reason phrase the server returned, with the credential material werift knows replaced by *** (the configured TURN username and password, and the response's USERNAME / REALM / NONCE), control characters dropped and cut to 127 characters; the registered phrase of the code ("Unauthorized", "STUN error 499") when it is empty (werift-ice: gatherErrorReasonText(), MASKED_REASON_TEXT).
    • One event per failing URL and gathering generation: a TURN server's UDP allocation and its TCP fallback are one failure (a server's error code wins over 701), and several URLs naming one server each get their event. Nothing is fired for a generation an ICE restart replaced, for a transport a rollback discards, or after close().
    • url is the configured URL trimmed and with a lower-case scheme; a turns: URL without a transport query gets ?transport=tcp (turns:h:5349 → turns:h:5349?transport=tcp, as Chrome and WPT). The built-in default STUN server (used when no STUN server is configured and iceUseDefaultStunServer is not false) is in no configuration; it is reported with the synthesized URL stun:stun.l.google.com:19302 (werift-ice: DEFAULT_STUN_SERVER_URL in IceServerRef.urls).
    • address / port are the local host address that queried a STUN server; null / null for TURN and with iceTransportPolicy: "relay" (the W3C spec: a null address has a null port; Chrome gives port: 0 and the upstream WPT tests expect it, so only werift's WPT runner maps the null port to 0). A 701 means no host candidate reached the server (W3C): it is judged once per gathering, when iceGatheringState leaves "gathering" (just before that icegatheringstatechange), and fired once per URL that some ICE transport of the gathering (bundlePolicy: "disable" gives several) tried without reaching the server while no socket of any of them reached it. Transports closed or discarded meanwhile, transports that did not try the URL and generations an ICE restart replaced do not count; the event carries the local address of the first socket that failed. A new gathering (ICE restart, a new transport) reports the URL again; a handler that calls close() stops the remaining 701s and the icegatheringstatechange. While a 701 is dispatched, iceGatheringState still reads "gathering". stopImmediatePropagation() stops the handlers after the caller, also between pc.onIceCandidateError subscribers (order: pc.onIceCandidateError, onicecandidateerror, the listeners); a listener removed during the dispatch is not called and one added during it waits for the next event. The event is not cancelable and isTrusted is true. werift-common adds Event.executeUntil(shouldStop, onError, ...args). A server's error response (300-699) is fired at once, per local socket. werift-ice adds Connection.onIceServerReached (IceServerReachedInfo): a STUN / TURN server answered while gathering. An ICE transport stopped while gathering now ends its gathering as "complete" instead of staying "gathering".
    • The event is a standard Event. While handlers run, target and currentTarget are the RTCPeerConnection and eventPhase is 2 (AT_TARGET); afterwards currentTarget is null and eventPhase 0. A throwing handler or listener does not keep the event from the others.
    • RTCPeerConnectionIceErrorEvent is exported and installed as a global by werift/polyfill. canonicalIceServerUrl() is exported, and parseIceServers() also returns stunServerUrls and the urls of each TURN server.
    • werift-ice: Connection.onIceCandidateError (Event<[IceCandidateErrorInfo]>, with the IceServerRef of the server), IceCandidateErrorCode, classifyGatherError(), MissingMappedAddressError, the metadata TurnServerOptions.urls / IceOptions.stunServerUrls (passed through to IceServerRef.urls, never used to allocate), and queryServerReflexiveCandidate(), which rejects with the reason of a failure. serverReflexiveCandidate() is unchanged: it still resolves undefined on failure and never rejects.
    • The upstream WPT RTCPeerConnection-onicecandidateerror.https.html (both subtests) is allowlisted.
  • PeerConfig.compatibility: "standard" sets every compatibility option (certificateScope, mLineReuse, transceiverPairing, keyFrameRequestRouting) to "standard", the specification / browser behavior, at once: new RTCPeerConnection({ compatibility: "standard" }). An option given explicitly always takes precedence: a value given in the same configuration (an old name included) is kept, and setConfiguration() handles the options as without compatibility. It is validated on construction (TypeError) and cannot be changed by setConfiguration() (InvalidModificationError); CompatibilityPresets lists the values. The upstream WPT runner creates its connections with it.
  • CompatibilityOptionValues (the values of every compatibility option), CertificateScopeModes / MLineReuseModes and DeprecatedCompatibilityValues (the old names and the value each one is read as) are exported. packages/webrtc/README.md ("Compatibility options") lists the options and the configuration closest to a browser RTCPeerConnection, which the upstream WPT runner now uses for every connection (tools/wpt-runner/browserConfig.ts).
  • PeerConfig.transceiverPairing (#816): selects how a remote offer pairs its m-sections with local transceivers that have no MID yet. "byKind" (default) keeps the v0.27.0 pairing of any unassociated transceiver of the same kind. "standard" pairs as RFC 8829 (JSEP) section 5.10 and browsers do: an offered sendrecv / recvonly m-section whose MID no transceiver has is associated only with an unassociated, non-stopped transceiver of the same kind that addTrack() created (or a remote one addTrack() reused that a rollback kept). A transceiver addTransceiver() created (with or without a track, also after replaceTrack() or a later addTrack() reusing it) keeps its direction and mid === null, the offer gets a new transceiver, and negotiationneeded fires after the answer so your next offer adds it. In glare (perfect negotiation) a sendonly transceiver therefore stays sendonly under "standard", while "byKind" lets the peer's offer take it over (it becomes sendrecv). For the perfect negotiation pattern or code written for browsers, set transceiverPairing: "standard". The value is validated on construction (TypeError) and cannot be changed by setConfiguration() (InvalidModificationError). TransceiverPairingModes lists the values. See packages/webrtc/README.md.
  • RtpTimelineRewriter keeps one downstream RTP timeline while the upstream source is replaced (werift-rtp, werift; for example an RTP-to-SRTP gateway that recreates its upstream WebRTC connection every 30 minutes, dgreif/ring#1816). rewrite(packet, { source }) returns a rewritten clone (or the packet itself with inPlace: true): the first source is unchanged, within a source output = input + offset (reordering and loss are kept), and the first packet of a new source (new source key, new input SSRC with switchOnSsrcChange (default true), or after switchSource({ source, timestampStep })) continues from the highest output (seq + 1, timestamp + step, wrapping at 16 / 32 bits). timestampStep is a number, "lastDelta" (with defaultTimestampStep), "wallClock" (reconnect time × clockRate / 1000) or "auto" (default: "wallClock" with clockRate, otherwise "lastDelta"). Late packets of a replaced source and packets older than the first packet of the new source are dropped (undefined, onDrop with RtpTimelineDropReason), so the output sequence number never goes back or repeats across a switch and a downstream SRTP session keeps its rollover counter and replay window. Options ssrc / payloadType fix the output SSRC / payload type; onSourceSwitch, sequenceNumber, timestamp and mapTimestamp() (for rewriting Sender Reports) report the output. New exports: RtpTimelineRewriter, RtpTimelineRewriterOptions, RtpTimestampStepMode, RtpTimelineSwitch, RtpTimelineDropReason. RtpContinuity.schedule(timestampStep, from?) accepts an optional output to continue from; without it the behavior is unchanged. New examples: examples/mediachannel/rtp_forward/camera_switcher.ts (forward the active one of two live cameras as one RTP stream) and examples/mediachannel/rtp_forward/switch_source.ts (recreate the upstream connection). The README now also describes MediaStreamTrack.notifySourceChanged() / RTCRtpSender.replaceRTP() for forwarding through werift's own sender.
  • DTLS alerts are sent and received (werift-dtls, werift, #811, RFC 5246 §7.2).
    • werift-dtls: DtlsSocket.sendAlert(level, description, { timeoutMs }) sends an alert protected with the current epoch (encrypted after ChangeCipherSpec, plaintext before it); it never rejects, and nothing is sent after close_notify / a fatal alert (sending one also stops the handshake flights, so nothing is retransmitted after it). Sending a fatal alert ends the connection on this side as well: onError fires with a local DtlsAlertError and the transport is closed once the alert was sent, so an RTCDtlsTransport that sends one becomes failed. DtlsSocket.close({ notify: true, timeoutMs }) sends close_notify and closes the transport once it was sent (at most DtlsSocket.AlertSendTimeoutMs, 200 ms); close() without options keeps closing immediately without an alert, and now returns a promise. onAlert fires for every received alert. A received close_notify fires onClose, is answered with close_notify, and the transport is closed once the reply was sent (at most the alert send timeout), so close() is not needed afterwards; close() resolves only once the transport has closed, also when that close was already started (e.g. after a fatal alert), and a transport close() that throws or rejects is only logged; a fatal alert fires onError with the new DtlsAlertError (level, description, alertDescName, source: "remote" | "local") and closes the transport. Other warnings only fire onAlert. The connection is ended (close_notify answered, transport closed) before the listeners run, and an exception thrown by an onAlert / onClose / onError / onData / onConnect listener is logged instead of interrupting it. The new option verifyRemoteCertificate(certificate) checks the peer certificate during the handshake and aborts with a fatal bad_certificate before this side's Finished. New exports: AlertLevel, AlertDesc, alertDescName, ContentType, DtlsAlertError, DtlsAlert, DtlsSocketOptions, createAlertRecord, classifyAlert.
    • werift: RTCDtlsTransport.stop() (and so RTCPeerConnection.close()) sends close_notify before ICE stops, waiting at most DTLS_ALERT_SEND_TIMEOUT_MS (100 ms); the local state still becomes closed synchronously without statechange. ICE and the DTLS socket always stop and onStopped always fires, even if a state listener throws: an exception thrown by an RTCDtlsTransport listener (onStateChange, onstatechange, statechange, onerror, error, onStopped) is logged and no longer interrupts stop(), start() or the failure handling. The peer's DTLS transport becomes closed (with statechange), its SCTP transport closed and its data channels close right away instead of after ICE consent expiry. A fingerprint mismatch is detected during the handshake and sent to the peer as bad_certificate, so both DTLS transports and both connectionStates become failed. A close_notify from the peer makes the DTLS transport closed (never failed) also during the handshake; a DTLS transport in use that ends closed or failed before it was established makes connectionState failed instead of leaving it connecting (WPT protocol/dtls-close.html, protocol/dtls-fingerprint-validation.html and three subtests of RTCDtlsTransport-state.html are now allowlisted).
    • werift: RTCDtlsTransport fires error (onerror / addEventListener("error")) once with an RTCError when it becomes failed (W3C webrtc-pc RTCErrorDetailType): errorDetail: "fingerprint-failure" when the remote certificate matches none of the remote fingerprints (receivedAlert / sentAlert are null, which the spec defines only for "dtls-failure"; the peer still receives bad_certificate and reports "dtls-failure" with receivedAlert: 42), otherwise errorDetail: "dtls-failure" with the fatal alert received (receivedAlert) or sent (sentAlert). A close_notify does not fire it. RTCSctpTransport.state ("connecting" | "connected" | "closed"), onstatechange / addEventListener("statechange") and onStateChange are new.
    • werift: RTCPeerConnection.close() makes connectionState, every DTLS transport and the SCTP transport closed synchronously, before its first await and without statechange (W3C webrtc-pc close(); connectionState used to change only after the SCTP ABORT was sent and the DTLS transports stayed connected until then). The wire order is unchanged: SCTP ABORT, close_notify, then ICE stops. connectionState closed is final, and while an ICE / DTLS transport of a live m-line is failed, connectionState stays failed (W3C: failed takes precedence over every state but closed): another transport starting or connecting (several transports, a renegotiation adding one) reports neither connecting nor connected. It leaves failed once no live transport is failed (an ICE restart, the failed transport retired). An exception thrown by an RTCSctpTransport state listener (onStateChange, onstatechange, statechange) or a connectionState listener (connectionStateChange, onconnectionstatechange, connectionstatechange) is logged and no longer interrupts close(), the SCTP ABORT or the propagation of a DTLS failure to SCTP and the data channels. These events (and RTCDtlsTransport.onStateChange / onStopped, the DOM-style error / statechange / connectionstatechange events of addEventListener, the werift-dtls socket events) isolate each subscriber, so a throwing subscriber also no longer skips the subscribers registered after it, e.g. werift's own SCTP subscriber when the application subscribed to the DTLS transport first.
    • werift-common: Event.executeIsolated(onError, ...args) runs every synchronous subscriber even if one throws, passing each exception to onError; execute() is unchanged.
  • STUN MESSAGE-INTEGRITY-SHA256 for ICE short-term credentials (RFC 8489) (werift-ice-server, werift-ice, werift):
    • parseMessage(data, key) also verifies MESSAGE-INTEGRITY-SHA256 (16-32 byte truncations). With both integrity attributes present, only MESSAGE-INTEGRITY-SHA256 is verified, so ICE / consent responses signed with SHA-256 alone are now accepted over UDP, TCP and TURN (they used to be dropped).
    • Message.addMessageIntegritySha256(key, length = 32), Message.addIntegrity(key, "sha1" | "sha256" | "both") and Message.integrityAlgorithm.
    • Binding success / error responses are signed with the algorithm of the request (MESSAGE-INTEGRITY-SHA256 when the request carried it).
    • IceOptions.messageIntegrity / PeerConfig.iceMessageIntegrity ("sha1" default, "sha256", "both") and TransactionRequestOptions.integrityAlgorithm choose the attributes of outgoing checks and consent requests. The default stays SHA-1 for browser interoperability.
    • TURN long-term credentials stay MESSAGE-INTEGRITY only, and incoming checks are not verified yet (both are separate changes).
  • ice2 ice-option (RFC 8445 §10) (werift): PeerConfig.iceOptionIce2 (default false, fixed at construction) writes a=ice-options:trickle ice2. RTCPeerConnection.remoteIceOptionIce2, RTCIceTransport.remoteIce2 / remoteIceOptions and Connection.remoteIce2 report the remote declaration. It does not change ICE behavior. parseIceOptions() / descriptionIceOptions() parse a=ice-options, also for canTrickleIceCandidates.

🐛 Bug Fixes

... (truncated)

Changelog

Sourced from werift's changelog.

v0.28.0

This release collects everything merged since v0.27.0.

⚠️ Breaking changes

  • The spec / browser value of the compatibility options is "standard" (certificateScope, mLineReuse, keyFrameRequestRouting; also transceiverPairing): each option takes "standard" for the behavior the specifications and browsers have, and a value naming werift's own behavior. The old names of the spec / browser side and of keyFrameRequestRouting's default are still accepted on input, so existing configurations keep their behavior, but getConfiguration() now returns the current name, the TypeScript types MLineReuse / KeyFrameRequestRouting / CertificateScope and KeyFrameRequestRoutingModes list the current names, and the TypeError message lists them. SDPManager (mLineReuse) and RtpRouter.keyFrameRequestRouting, set directly, accept only the current names. Defaults and behavior are unchanged.

    Option Up to v0.27.0 Now (default first) Old names still accepted
    certificateScope "process" (default) / "peerConnection" "process" / "standard" "peerConnection"
    mLineReuse "compatible" (default) / "aggressive" "standard" / "aggressive" "compatible"
    keyFrameRequestRouting "compatible" (default) / "strict" "fallback" / "standard" "compatible", "strict"
  • ICE nomination: semi-aggressive by default, and the controlled side follows later nominations (werift-ice, werift). A controlling full ICE agent used aggressive nomination for UDP / relay pairs and the controlled side kept the first pair nominated to it; now the controlling side nominates semi-aggressively (as libwebrtc / Chrome), the controlled side uses the pair with the largest nomination, and RTCIceTransport.getSelectedCandidatePair() returns null until a pair is nominated. Set PeerConfig.iceNomination: "regular" (IceOptions.nomination) for RFC 8445 regular nomination. See "ICE: semi-aggressive nomination by default" under Bug Fixes.

  • A malformed a=rtcp is a parse error (#355): SessionDescription.parse() / setRemoteDescription() reject an a=rtcp whose port is not a decimal 1–65535 or whose value is neither <port> nor <port> IN IP4|IP6 <address> (it used to be stored as NaN or throw "exception"). See the a=rtcp entry under Bug Fixes.

  • DtlsSocket.close() returns a promise, and only close_notify closes a DTLS connection (werift-dtls): a warning alert other than close_notify no longer closes it, and a fatal alert makes the transport failed instead of being swallowed. See "DTLS alerts are sent and received" and "A fatal DTLS alert is no longer swallowed".

🚀 Features

  • bundleCandidates peer configuration ("legacy" default / "compatible", Issue #269): decides which m-lines of a BUNDLE group carry the local ICE candidates. werift writes every candidate and a=end-of-candidates on each m-line ("legacy"), so in a long BUNDLE session each renegotiation that adds m-lines (addTrack, createDataChannel) grows the SDP by "m-lines × candidates" (12 candidates and 7 m-lines: 84 a=candidate lines). "compatible" writes them as Chrome does: a transport's candidates appear once, on the tag m-line of its BUNDLE group, in every offer, answer and pranswer (including the first answer and a first max-bundle offer; RFC 8843 §7.1.3 / §7.3.1, RFC 8859). Every other m-line on that transport keeps a=ice-ufrag / a=ice-pwd / a=ice-options / a=fingerprint / a=setup / a=mid, so the SDP keeps the transport's candidate count. m-lines on their own transports (a first max-compat / balanced offer, an m-line split out of BUNDLE, bundlePolicy: "disable") keep their candidates, a new BUNDLE tag gets them, an ICE restart writes the new generation on the tag, and trickle is unchanged. Unlike Chrome, werift keeps a=end-of-candidates on the tag. The default stays "legacy" (the previous SDP, byte for byte) because applications and SFUs may read the candidates of every m-line; werift and Chrome peers accept "compatible" descriptions (werift already ignores the candidates of non-tag m-lines). It cannot be changed after construction.
  • icecandidateerror reports STUN / TURN servers that failed while gathering (werift, werift-ice, Issue #812). RTCPeerConnection fires an RTCPeerConnectionIceErrorEvent (url, errorCode, errorText, address, port) through addEventListener("icecandidateerror"), onicecandidateerror (now typed RTCPeerConnectionIceErrorEvent) and pc.onIceCandidateError (Event), with the same event object on all three. Gathering is not changed: other servers and sockets go on, and the candidates, end-of-candidates and iceGatheringState come as before.
    • errorCode is the STUN error code the server answered with (for example 401 for a wrong TURN credential, 300 for a redirect that was not followed) or 701 when the server was not reached (DNS, timeout including iceStunGatherTimeout, TCP / TLS connect, socket error). A credential retry (401 / 438) that succeeds is not reported. A server that answered without a STUN error code (an error response without ERROR-CODE, a response failing MESSAGE-INTEGRITY, a success without XOR-MAPPED-ADDRESS) was reached: it is not reported and never counts as 701 (werift-ice: isServerAnswer(); classifyGatherError() returns undefined for it). errorText is the reason phrase the server returned, with the credential material werift knows replaced by *** (the configured TURN username and password, and the response's USERNAME / REALM / NONCE), control characters dropped and cut to 127 characters; the registered phrase of the code ("Unauthorized", "STUN error 499") when it is empty (werift-ice: gatherErrorReasonText(), MASKED_REASON_TEXT).
    • One event per failing URL and gathering generation: a TURN server's UDP allocation and its TCP fallback are one failure (a server's error code wins over 701), and several URLs naming one server each get their event. Nothing is fired for a generation an ICE restart replaced, for a transport a rollback discards, or after close().
    • url is the configured URL trimmed and with a lower-case scheme; a turns: URL without a transport query gets ?transport=tcp (turns:h:5349 → turns:h:5349?transport=tcp, as Chrome and WPT). The built-in default STUN server (used when no STUN server is configured and iceUseDefaultStunServer is not false) is in no configuration; it is reported with the synthesized URL stun:stun.l.google.com:19302 (werift-ice: DEFAULT_STUN_SERVER_URL in IceServerRef.urls).
    • address / port are the local host address that queried a STUN server; null / null for TURN and with iceTransportPolicy: "relay" (the W3C spec: a null address has a null port; Chrome gives port: 0 and the upstream WPT tests expect it, so only werift's WPT runner maps the null port to 0). A 701 means no host candidate reached the server (W3C): it is judged once per gathering, when iceGatheringState leaves "gathering" (just before that icegatheringstatechange), and fired once per URL that some ICE transport of the gathering (bundlePolicy: "disable" gives several) tried without reaching the server while no socket of any of them reached it. Transports closed or discarded meanwhile, transports that did not try the URL and generations an ICE restart replaced do not count; the event carries the local address of the first socket that failed. A new gathering (ICE restart, a new transport) reports the URL again; a handler that calls close() stops the remaining 701s and the icegatheringstatechange. While a 701 is dispatched, iceGatheringState still reads "gathering". stopImmediatePropagation() stops the handlers after the caller, also between pc.onIceCandidateError subscribers (order: pc.onIceCandidateError, onicecandidateerror, the listeners); a listener removed during the dispatch is not called and one added during it waits for the next event. The event is not cancelable and isTrusted is true. werift-common adds Event.executeUntil(shouldStop, onError, ...args). A server's error response (300-699) is fired at once, per local socket. werift-ice adds Connection.onIceServerReached (IceServerReachedInfo): a STUN / TURN server answered while gathering. An ICE transport stopped while gathering now ends its gathering as "complete" instead of staying "gathering".
    • The event is a standard Event. While handlers run, target and currentTarget are the RTCPeerConnection and eventPhase is 2 (AT_TARGET); afterwards currentTarget is null and eventPhase 0. A throwing handler or listener does not keep the event from the others.
    • RTCPeerConnectionIceErrorEvent is exported and installed as a global by werift/polyfill. canonicalIceServerUrl() is exported, and parseIceServers() also returns stunServerUrls and the urls of each TURN server.
    • werift-ice: Connection.onIceCandidateError (Event<[IceCandidateErrorInfo]>, with the IceServerRef of the server), IceCandidateErrorCode, classifyGatherError(), MissingMappedAddressError, the metadata TurnServerOptions.urls / IceOptions.stunServerUrls (passed through to IceServerRef.urls, never used to allocate), and queryServerReflexiveCandidate(), which rejects with the reason of a failure. serverReflexiveCandidate() is unchanged: it still resolves undefined on failure and never rejects.
    • The upstream WPT RTCPeerConnection-onicecandidateerror.https.html (both subtests) is allowlisted.
  • PeerConfig.compatibility: "standard" sets every compatibility option (certificateScope, mLineReuse, transceiverPairing, keyFrameRequestRouting) to "standard", the specification / browser behavior, at once: new RTCPeerConnection({ compatibility: "standard" }). An option given explicitly always takes precedence: a value given in the same configuration (an old name included) is kept, and setConfiguration() handles the options as without compatibility. It is validated on construction (TypeError) and cannot be changed by setConfiguration() (InvalidModificationError); CompatibilityPresets lists the values. The upstream WPT runner creates its connections with it.
  • CompatibilityOptionValues (the values of every compatibility option), CertificateScopeModes / MLineReuseModes and DeprecatedCompatibilityValues (the old names and the value each one is read as) are exported. packages/webrtc/README.md ("Compatibility options") lists the options and the configuration closest to a browser RTCPeerConnection, which the upstream WPT runner now uses for every connection (tools/wpt-runner/browserConfig.ts).
  • PeerConfig.transceiverPairing (#816): selects how a remote offer pairs its m-sections with local transceivers that have no MID yet. "byKind" (default) keeps the v0.27.0 pairing of any unassociated transceiver of the same kind. "standard" pairs as RFC 8829 (JSEP) section 5.10 and browsers do: an offered sendrecv / recvonly m-section whose MID no transceiver has is associated only with an unassociated, non-stopped transceiver of the same kind that addTrack() created (or a remote one addTrack() reused that a rollback kept). A transceiver addTransceiver() created (with or without a track, also after replaceTrack() or a later addTrack() reusing it) keeps its direction and mid === null, the offer gets a new transceiver, and negotiationneeded fires after the answer so your next offer adds it. In glare (perfect negotiation) a sendonly transceiver therefore stays sendonly under "standard", while "byKind" lets the peer's offer take it over (it becomes sendrecv). For the perfect negotiation pattern or code written for browsers, set transceiverPairing: "standard". The value is validated on construction (TypeError) and cannot be changed by setConfiguration() (InvalidModificationError). TransceiverPairingModes lists the values. See packages/webrtc/README.md.
  • RtpTimelineRewriter keeps one downstream RTP timeline while the upstream source is replaced (werift-rtp, werift; for example an RTP-to-SRTP gateway that recreates its upstream WebRTC connection every 30 minutes, dgreif/ring#1816). rewrite(packet, { source }) returns a rewritten clone (or the packet itself with inPlace: true): the first source is unchanged, within a source output = input + offset (reordering and loss are kept), and the first packet of a new source (new source key, new input SSRC with switchOnSsrcChange (default true), or after switchSource({ source, timestampStep })) continues from the highest output (seq + 1, timestamp + step, wrapping at 16 / 32 bits). timestampStep is a number, "lastDelta" (with defaultTimestampStep), "wallClock" (reconnect time × clockRate / 1000) or "auto" (default: "wallClock" with clockRate, otherwise "lastDelta"). Late packets of a replaced source and packets older than the first packet of the new source are dropped (undefined, onDrop with RtpTimelineDropReason), so the output sequence number never goes back or repeats across a switch and a downstream SRTP session keeps its rollover counter and replay window. Options ssrc / payloadType fix the output SSRC / payload type; onSourceSwitch, sequenceNumber, timestamp and mapTimestamp() (for rewriting Sender Reports) report the output. New exports: RtpTimelineRewriter, RtpTimelineRewriterOptions, RtpTimestampStepMode, RtpTimelineSwitch, RtpTimelineDropReason. RtpContinuity.schedule(timestampStep, from?) accepts an optional output to continue from; without it the behavior is unchanged. New examples: examples/mediachannel/rtp_forward/camera_switcher.ts (forward the active one of two live cameras as one RTP stream) and examples/mediachannel/rtp_forward/switch_source.ts (recreate the upstream connection). The README now also describes MediaStreamTrack.notifySourceChanged() / RTCRtpSender.replaceRTP() for forwarding through werift's own sender.
  • DTLS alerts are sent and received (werift-dtls, werift, #811, RFC 5246 §7.2).
    • werift-dtls: DtlsSocket.sendAlert(level, description, { timeoutMs }) sends an alert protected with the current epoch (encrypted after ChangeCipherSpec, plaintext before it); it never rejects, and nothing is sent after close_notify / a fatal alert (sending one also stops the handshake flights, so nothing is retransmitted after it). Sending a fatal alert ends the connection on this side as well: onError fires with a local DtlsAlertError and the transport is closed once the alert was sent, so an RTCDtlsTransport that sends one becomes failed. DtlsSocket.close({ notify: true, timeoutMs }) sends close_notify and closes the transport once it was sent (at most DtlsSocket.AlertSendTimeoutMs, 200 ms); close() without options keeps closing immediately without an alert, and now returns a promise. onAlert fires for every received alert. A received close_notify fires onClose, is answered with close_notify, and the transport is closed once the reply was sent (at most the alert send timeout), so close() is not needed afterwards; close() resolves only once the transport has closed, also when that close was already started (e.g. after a fatal alert), and a transport close() that throws or rejects is only logged; a fatal alert fires onError with the new DtlsAlertError (level, description, alertDescName, source: "remote" | "local") and closes the transport. Other warnings only fire onAlert. The connection is ended (close_notify answered, transport closed) before the listeners run, and an exception thrown by an onAlert / onClose / onError / onData / onConnect listener is logged instead of interrupting it. The new option verifyRemoteCertificate(certificate) checks the peer certificate during the handshake and aborts with a fatal bad_certificate before this side's Finished. New exports: AlertLevel, AlertDesc, alertDescName, ContentType, DtlsAlertError, DtlsAlert, DtlsSocketOptions, createAlertRecord, classifyAlert.
    • werift: RTCDtlsTransport.stop() (and so RTCPeerConnection.close()) sends close_notify before ICE stops, waiting at most DTLS_ALERT_SEND_TIMEOUT_MS (100 ms); the local state still becomes closed synchronously without statechange. ICE and the DTLS socket always stop and onStopped always fires, even if a state listener throws: an exception thrown by an RTCDtlsTransport listener (Description has been truncated

Bumps the dev-dependencies group with 3 updates: [holywisp](https://github.com/Fracital/holyWisp/tree/HEAD/node), [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) and [werift](https://github.com/shinyoshiaki/werift-webrtc).


Updates `holywisp` from 0.5.3 to 0.5.4
- [Release notes](https://github.com/Fracital/holyWisp/releases)
- [Changelog](https://github.com/Fracital/holyWisp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Fracital/holyWisp/commits/v0.5.4/node)

Updates `typescript-eslint` from 8.73.0 to 8.74.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.74.0/packages/typescript-eslint)

Updates `werift` from 0.27.0 to 0.28.0
- [Release notes](https://github.com/shinyoshiaki/werift-webrtc/releases)
- [Changelog](https://github.com/shinyoshiaki/werift-webrtc/blob/develop/changelog.md)
- [Commits](shinyoshiaki/werift-webrtc@v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: holywisp
  dependency-version: 0.5.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: typescript-eslint
  dependency-version: 8.74.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: werift
  dependency-version: 0.28.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants