Commit Graph
12226 Commits
Author SHA1 Message Date
Giulio Canti 755b1a80a4 Avoid redundant reads when replacing traversal focuses
Skip the final EachNode getter during setter compilation. Its setter already finds the matching elements, so collecting the focused values first adds an unused traversal. Preserve reads needed by subsequent optic steps.
2026-11-01 18:46:47 +01:00
Giulio Canti ee298aee9f Finalize optic diagnostics documentation and release metadata
Clarify traversal index segments, update the consumer release note to getWithDiagnostics, and align the new API versions with the minor-release policy for public additions.
2026-11-01 18:13:08 +01:00
Giulio Canti 2794510f9d Share optic evaluation between ordinary and diagnostic reads
Use common sequencing, failure propagation, and traversal collection while skipping diagnostic allocation on ordinary reads. Cover nested replacements and ensure each traversal element is read once per evaluation.
2026-11-01 18:01:33 +01:00
Giulio Canti 079896461b Preserve recursive optic locations on success and failure
Expose a shared Location model so nested traversal indices remain available to reporters. Include the current element mappings when a later read fails, and cover both cases with regression tests.
2026-11-01 17:47:47 +01:00
Giulio Canti 9c68ef94a5 Use segments as the sole representation of optic key paths
Read, update, and merge PathNode key segments directly instead of retaining a duplicate PropertyKey path.
2026-11-01 17:44:15 +01:00
Giulio Canti 69c19b1550 Rename Optic.getFocus to getWithDiagnostics
Name the success and failure models Diagnostics and DiagnosticsFailure, and update examples and tests to use the diagnostic reader name.
2026-11-01 17:43:16 +01:00
Effect Bot b900437bf2 Simplify the getFocus walker and reword the changeset
Every non-traversal step now carries its own path segments, so the walker
runs one get branch and one segment loop instead of a switch per node kind.
The location tree stays: it is the uniform model that keeps nested
traversals sound.
2026-11-01 09:45:44 +00:00
Effect Bot 9ecc3efa95 Track nested traversal locations in Optic.getFocus
The walker now carries a tree of locations, so an element collected by a
nested traversal keeps its own element locations and a step into it is
reported as Opaque instead of an invented source index.

Segment.Tag.tag is SchemaAST.LiteralValue again, matching what .tag()
accepts.
2026-11-01 09:33:53 +00:00
Effect Bot 1c33113f3d Add Optic.getFocus regressions for nested traversals and literal tags 2026-11-01 09:30:20 +00:00
Effect Bot e2a0077eae Treat steps after a traversal as opaque in Optic.getFocus
Drop the rule that redirected keys of a traversal's collected array to the
element's source: any step into that array now adds an Opaque segment.
Built-in steps carry their segments explicitly, with [Opaque] for make*
optics and entries(), so the walker no longer special-cases undefined.
Segment.Tag.tag is now a string.
2026-11-01 09:19:39 +00:00
Effect Bot db12a064e7 Reduce Optic.getFocus tests to focused coverage 2026-11-01 09:14:49 +00:00
Sebastian Lorenz e101991ce0 Add Optic.getFocus to report where an optic focuses
getFocus returns the same value or issue as getResult, together with the
path from the root. A failure also carries the path to, and the input of,
the step that failed. Traversals report each element's source index.

key/optionalKey/at add a Key segment, tag adds a Tag segment, and the
some/none/success/failure prisms add Tag (+ Key) segments. Checks, refinements,
pick and omit keep the location. make* optics and entries() add an Opaque
segment. forEach is now a step of the optic instead of an opaque wrapper
around the chain before it, so the walker can see through it.
2026-11-01 08:22:48 +00:00
Tim 522ad7cd1f Revert "Fix distinct MutableRef and Ref instances comparing Equal" (#10247) 2026-10-31 23:13:17 +00:00
clean99andEffect Bot 69eaa29dfe Keep Iterable.filterMapWhile exhausted after completion (#10221)
Co-authored-by: Effect Bot <tech-ops@effectful.co>
2026-10-31 23:24:27 +13:00
effect-bot 79b8246eb3 fix(sql-libsql): allow concurrent statements on remote libSQL clients (#10227) 2026-10-31 22:43:34 +13:00
Tim d190d973a7 Fence ClusterWorkflowEngine activity resets against stale runners (#10226) 2026-10-31 22:42:06 +13:00
effect-bot 013fb34f88 fix(rpc): handle malformed request headers consistently (#10223) 2026-10-31 09:35:23 +00:00
effect-bot 6b70da9d05 Remove duplicate tests and speed up slow test files (#10214) 2026-10-31 19:45:17 +13:00
devangpratapandEffect Bot 5216684117 Fix ByteSize unit constructors rejecting exact decimal quantities (#10217)
Co-authored-by: Effect Bot <tech-ops@effectful.co>
2026-10-31 19:32:56 +13:00
effect-botandTim ef81e9dbd1 fix(persistence): isolate RateLimiter Redis keys (#10210)
Co-authored-by: Tim <hello@timsmart.co>
2026-10-31 01:10:41 +00:00
effect-bot a4787453be Keep EventLogServer session auth challenges on their connection (#10211) 2026-10-31 14:00:35 +13:00
effect-bot bc492f0965 Version Packages (#10144) @effect/platform-node-shared@4.1.1 @effect/ai-openrouter@4.1.1 @effect/ai-typesafe@4.1.1 @effect/sql-sqlite-react-native@4.1.1 @effect/atom-react@4.1.1 @effect/atom-solid@4.1.1 @effect/sql-sqlite-node@4.1.1 @effect/ai-openai@4.1.1 @effect/atom-vue@4.1.1 @effect/sql-sqlite-do@4.1.1 @effect/docgen@4.1.1 @effect/doctest@4.1.1 @effect/graphql-generator@4.1.1 @effect/ai-openai-compat@4.1.1 @effect/sql-sqlite-bun@4.1.1 @effect/openapi-generator@4.1.1 @effect/opentelemetry@4.1.1 effect@4.1.1 @effect/sql-pglite@4.1.1 @effect/ai-cloudflare@4.1.1 @effect/sql-d1@4.1.1 @effect/platform-browser@4.1.1 @effect/sql-pg@4.1.1 @effect/sql-libsql@4.1.1 @effect/sql-clickhouse@4.1.1 @effect/ai-anthropic@4.1.1 @effect/sql-sqlite-wasm@4.1.1 @effect/platform-bun@4.1.1 @effect/platform-deno@4.1.1 @effect/sql-mysql2@4.1.1 @effect/sql-mssql@4.1.1 @effect/platform-node@4.1.1 @effect/vitest@4.1.1 2026-10-30 21:25:49 +00:00
effect-bot 6a95d515ab Retry transient activity persistence failures in ClusterWorkflowEngine (#10206) 2026-10-31 10:10:23 +13:00
effect-bot 7d6ead4e01 Add HttpClient.timeout (#10207) 2026-10-31 10:09:24 +13:00
effect-bot 7ee402e63f Fix flaky graphql-generator watch test when the reconcile cycle lands early (#10209) 2026-10-31 10:08:40 +13:00
effect-bot d4272bd087 Fail GraphQL calls on non-2xx HTTP responses (#10208) 2026-10-30 20:54:36 +00:00
effect-bot 24d5acd8a1 Recover local persisted replies after lost commit acknowledgements (#10205) 2026-10-30 20:53:03 +00:00
Jon PowersandEffect Bot 20cca92e07 Fix Ndjson ignoreEmptyLines handling of space/tab-only lines (#10204)
Co-authored-by: Effect Bot <tech-ops@effectful.co>
2026-10-31 09:42:20 +13:00
effect-bot f2755e768d Fix Node-only type-checking of crypto key declarations (#10197) 2026-10-31 09:41:06 +13:00
effect-botandGiulio Canti 9394b6d53b Support object anyOf branches that redeclare enum properties (#10070)
Co-authored-by: Giulio Canti <giulio.canti@gmail.com>
2026-10-30 10:31:00 +01:00
effect-bot 0b4cfbcbea Bound BigDecimal scale parsing and alignment (#10188) 2026-10-30 20:05:55 +13:00
effect-bot 088510fc33 Enforce MaxBodySize on Bun, Deno and fromClientRequest buffered reads (#10192) 2026-10-30 20:04:56 +13:00
effect-bot 136ddf95cc Brand SQL fragments and segments with runtime symbols (#10190) 2026-10-30 07:03:32 +00:00
Jon PowersandEffect Bot 1f22f02bcd Fix OTLP JSON encoding of byte values (#10191)
Co-authored-by: Effect Bot <tech-ops@effectful.co>
2026-10-30 19:38:21 +13:00
Jon PowersandEffect Bot f5f96b27c2 Fix OTLP protobuf serialization of absent metric start timestamps (#10177)
Co-authored-by: Effect Bot <tech-ops@effectful.co>
2026-10-30 18:43:02 +13:00
effect-bot 8567117e08 Restore binary codec derivation for AI prompt and response parts (#10186) 2026-10-30 18:42:25 +13:00
Tim 29b89b6287 Decode Base64Url input with a URL-safe lookup table (#10189) 2026-10-30 18:34:43 +13:00
effect-bot a8f77d5ad3 Verify EventLog session auth before binding signing keys (#10185) 2026-10-30 17:14:29 +13:00
Tim 000cdbf374 Deflake the SqlRunnerStorage test for acquiring after the lock session ends (#10180) 2026-10-30 16:49:21 +13:00
effect-bot 197ce1dad9 fix(ai): reject Unicode-escaped prototype keys in Tool.unsafeSecureJsonParse (#10181) 2026-10-30 03:44:09 +00:00
effect-bot 73e6ea1592 Remove line breaks from Sse encoder id and event fields (#10182) 2026-10-30 03:43:45 +00:00
b49120e793 feat: add effect/jose APIs (#9883)
Co-authored-by: Effect Bot <tech-ops@effectful.co>
Co-authored-by: Tim <hello@timsmart.co>
2026-10-30 16:39:05 +13:00
5e56eba027 Run ClickHouse migrator ledger writes as commands (#10126)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Effect Bot <tech-ops@effectful.co>
2026-10-30 16:33:04 +13:00
effect-bot 7e21962d12 Update release action to restore automatic release branch rebasing (#10176) 2026-10-30 15:56:43 +13:00
Alexis WilliamsandEffect Bot 49d84d63fd Add MCP Skills extension support to McpServer and McpClient (#10082)
Co-authored-by: Effect Bot <tech-ops@effectful.co>
2026-10-30 15:10:29 +13:00
effect-bot bd6b9c2005 Create DateTime cache slots on first use (#10174) 2026-10-30 01:32:38 +00:00
effect-bot f4b6bdb024 Clarify the RPC client protocol reply contract for delivery-only transports (#10172) 2026-10-30 13:54:46 +13:00
Tim 6a5db1563d Refresh migration guidance for 4.1.0 store, HTTP, sql and process changes (#10154) 2026-10-30 13:03:55 +13:00
Tim 0226da5762 ci: run Types checks in parallel jobs (#10170) 2026-10-30 13:03:05 +13:00
effect-bot 2f50b91232 Document the RPC client protocol reply contract (#10171) 2026-10-29 23:57:02 +00:00