Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/coalesce-fallback-inference.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/cypher-codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @evryg/effect-cypher-codegen

## 0.4.2

### Patch Changes

- [#86](https://github.com/evryg-org/effect-contrib/pull/86) [`5c1c286`](https://github.com/evryg-org/effect-contrib/commit/5c1c2864d01f6f4c975c4cd1b2cd917bd207adae) Thanks @jbmusso! - coalesce now accounts for fallback argument types when the leading argument is nullable. Previously the result type was the leading argument's type stripped of nullable, ignoring the fallbacks. When a nullable Double property is coalesced with an integer literal (`coalesce(n.score, 0)`), the runtime yields that integer literal as a database Integer when the property is null — which the Double decoder rejects. The result now widens to Long (the integer-tolerant numeric superset, which also passes floats through), so the emitted column decodes correctly. Same-type and non-nullable leading arguments are unaffected.

## 0.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cypher-codegen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evryg/effect-cypher-codegen",
"version": "0.4.1",
"version": "0.4.2",
"type": "module",
"license": "MIT",
"description": "Cypher type checker and code generator: parses .cypher files, infers types, and generates typed Effect modules",
Expand Down