Skip to content

Version Packages#96

Merged
jbmusso merged 1 commit into
mainfrom
changeset-release/main
Jun 13, 2026
Merged

Version Packages#96
jbmusso merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@evryg/effect-cypher-codegen@0.4.3

Patch Changes

  • #95 2c84a48 Thanks @jbmusso! - Improve numeric type inference in the Cypher type checker.
    • Recognize Neo4j scalar math functions. log, log10, exp, sqrt, the trigonometric
      functions, ceil, floor, round, e(), pi(), rand() and friends now infer Double;
      sign infers Long; and abs preserves its argument's numeric type. Previously any of these
      threw Unrecognized function, failing codegen for queries that projected a bare math call such as
      RETURN log(x) AS weight.
    • Unify numeric operand types in arithmetic. Expressions previously took only the first operand's
      type, so Long * Double (or priceLong * 1.5) inferred Long — emitting Neo4jInt and risking
      a runtime decode failure on floats. Numeric arithmetic now unifies operands by the numeric join
      (Long ⊔ Double = Double), a Double anywhere widens the result, and exponentiation (^) yields
      Double. Numeric literals also carry their int/float distinction (1.5/1e3Double). String
      and list concatenation are unaffected.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from c238081 to 989e5a8 Compare June 12, 2026 23:15
@jbmusso
jbmusso merged commit 37bd1c5 into main Jun 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant