Skip to content

Update effect to v4 - #295

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-effect
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-effect

Conversation

@renovate

@renovate renovate Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@effect/platform-node (source) 0.108.4 → 4.1.4 age confidence
effect (source) 3.22.4 → 4.1.4 age confidence

Release Notes

Effect-TS/effect (@​effect/platform-node)

v4.1.4

Compare Source

Patch Changes

v4.1.3

Compare Source

Patch Changes

v4.1.2

Compare Source

Patch Changes

v4.1.1

Compare Source

Patch Changes

v4.1.0

Compare Source

Minor Changes
  • #​8829 8f23668 Thanks @​fubhy! - Replace effect/Crypto with family-specific effect/crypto/* services, opaque keys, CryptoError, a configurable WebCrypto reference and key schemas in effect/Schema. Encoding secret or private keys through byte/format schemas requires { allowEncode: true }.
Breaking changes
  • Use SecureRandom for randomness and UUIDs, and Digest with algorithm values such as Digest.sha256 for hashing. Replace effect/testing/TestCrypto with Layer.mock for the required services.
  • Provide crypto explicitly; it is no longer included in the runtime *Services bundles. NodeCrypto, BunCrypto, DenoCrypto and BrowserCrypto offer individual family layers and a combined layer, supplying SecureRandom where needed. Core modules offer layerWebCrypto.
  • Provide Digest.Digest instead of Crypto.Crypto to SqlMessageStorage and SingleRunner, and instead of EventLogEncryption to SqlEventLogServerEncrypted.makeStorage and layerStorage. Replace EventLogEncryption.sha256String with digest.digestHex(Digest.sha256, bytes).

Existing workflow ID, activity idempotency key and event log table-name encodings are unchanged.

Event log encryption, identity key derivation and session authentication now run on Aead, Digest, Signature and SecureRandom. EventLogEncryption.make and EventLogEncryption.layer take those services from context, so Node apps can use the NodeCrypto layers. EventLogEncryption.layerSubtle and the session auth functions use the Web Crypto layers on the WebCrypto reference instead of globalThis.crypto. Existing identities, derived signing keys and encrypted batches are unchanged.

UUIDv7 and ULID generation is now monotonic below the maximum 48-bit timestamp, including within a millisecond and across clock rollback. Ordering is per SecureRandom instance; the unsafe helpers and model UUIDv7 defaults share per-realm ordering.

  • #​10087 472c469 Thanks @​effect-bot! - Node.js 22.19.0 (required by undici 8) is now the minimum for @effect/platform-node, @effect/platform-node-shared, @effect/opentelemetry and @effect/docgen, up from 18.

    NodeSocket WebSocket clients now use Node's global WebSocket instead of ws, so client-only usage no longer bundles ws.

    Breaking: ws moved to a new NodeWS module.

    • NodeSocket.NodeWS and BunSocket.NodeWS are removed. Import NodeWS from @effect/platform-node or @effect/platform-node-shared (on Bun, import ws directly). Use NodeWS.WebSocket in place of NodeSocket.NodeWS.default.
    • NodeSocket.layerWebSocketConstructorWS is removed. Use NodeWS.layerWebSocketConstructor.

    Behaviour changes for clients that pass handshake headers, which previously used ws. Use NodeWS.layerWebSocketConstructor to keep the old behaviour:

    • Reads cannot be paused. Incoming frames are buffered without limit, and a configured highWaterMark fails the socket with a SocketReadError.
    • Connection errors are a generic ErrorEvent, so SocketOpenError causes lack the underlying error code.
    • The Socket.WebSocket service is a global WebSocket, so ws instanceof checks and ws-only methods such as terminate() and ping() no longer apply.
    • A custom Host header is ignored.
    • Outgoing messages are not compressed. Incoming permessage-deflate messages are still decompressed.
    • Connections use undici's global dispatcher instead of http.globalAgent / https.globalAgent.
Patch Changes

v4.0.7

Compare Source

Patch Changes

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-effect branch 6 times, most recently from 5c2b43b to 601c4c6 Compare October 14, 2026 23:21
@renovate
renovate Bot force-pushed the renovate/major-effect branch from 601c4c6 to 19b335e Compare October 17, 2026 12:31
@GraemeF

GraemeF commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Held: this is a migration, not a bump.

Effect 4 merges @effect/platform into effect and rewrites Schema, so taking it touches most of the codebase. The maintainer decided to stay on Effect 3 for now and to plan the move to Effect 4 as its own piece of work once Effect 4 has had a few patch releases.

This PR stays open for Renovate to keep rebasing. It wakes when that migration lands. At that point it is either closed as superseded or reviewed afresh against what remains.

@renovate
renovate Bot force-pushed the renovate/major-effect branch 6 times, most recently from 1e587bd to 4c97b79 Compare October 23, 2026 06:48
@renovate
renovate Bot force-pushed the renovate/major-effect branch 5 times, most recently from a569913 to 9884cc1 Compare October 31, 2026 01:32
@renovate
renovate Bot force-pushed the renovate/major-effect branch 5 times, most recently from 0645196 to 2fb17eb Compare November 6, 2026 22:34
@renovate
renovate Bot force-pushed the renovate/major-effect branch from 2fb17eb to e565c5d Compare November 9, 2026 05:55
@renovate
renovate Bot force-pushed the renovate/major-effect branch 2 times, most recently from 0f3c1a2 to 856a6c9 Compare November 18, 2026 05:30
@renovate
renovate Bot force-pushed the renovate/major-effect branch from 856a6c9 to d20c369 Compare November 23, 2026 05:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant