Releases: evryg-org/effect-contrib
Release list
@evryg/effect-cypher-codegen@0.4.3
Patch Changes
- #95
2c84a48Thanks @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 inferDouble;
signinfersLong; andabspreserves its argument's numeric type. Previously any of these
threwUnrecognized 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, soLong * Double(orpriceLong * 1.5) inferredLong— emittingNeo4jIntand risking
a runtime decode failure on floats. Numeric arithmetic now unifies operands by the numeric join
(Long ⊔ Double = Double), aDoubleanywhere widens the result, and exponentiation (^) yields
Double. Numeric literals also carry their int/float distinction (1.5/1e3→Double). String
and list concatenation are unaffected.
- Recognize Neo4j scalar math functions.
@evryg/effect-cypher-codegen@0.4.2
Patch Changes
- #86
5c1c286Thanks @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.
@evryg/effect-vitest-neo4j@0.1.0
Minor Changes
-
953fa72Thanks @jbmusso! - Migrate to Effect v4All packages now target Effect v4 (
4.0.0-beta.78).effectand@effect/platform-nodepeer ranges are bumped to^4.0.0-beta.78, and the standalone@effect/platform,@effect/cli, and@effect/sqldependencies are dropped now that they are merged into coreeffect. Consumers must upgrade to Effect v4.
Patch Changes
- Updated dependencies [
953fa72]:- @evryg/effect-neo4j@0.1.0
- @evryg/effect-testcontainers-neo4j@0.1.0
@evryg/effect-testcontainers@0.1.0
Minor Changes
-
953fa72Thanks @jbmusso! - Migrate to Effect v4All packages now target Effect v4 (
4.0.0-beta.78).effectand@effect/platform-nodepeer ranges are bumped to^4.0.0-beta.78, and the standalone@effect/platform,@effect/cli, and@effect/sqldependencies are dropped now that they are merged into coreeffect. Consumers must upgrade to Effect v4.
@evryg/effect-testcontainers-neo4j@0.1.0
Minor Changes
-
953fa72Thanks @jbmusso! - Migrate to Effect v4All packages now target Effect v4 (
4.0.0-beta.78).effectand@effect/platform-nodepeer ranges are bumped to^4.0.0-beta.78, and the standalone@effect/platform,@effect/cli, and@effect/sqldependencies are dropped now that they are merged into coreeffect. Consumers must upgrade to Effect v4.
Patch Changes
- Updated dependencies [
953fa72]:- @evryg/effect-neo4j@0.1.0
- @evryg/effect-testcontainers@0.1.0
@evryg/effect-neo4j@0.1.0
Minor Changes
-
953fa72Thanks @jbmusso! - Migrate to Effect v4All packages now target Effect v4 (
4.0.0-beta.78).effectand@effect/platform-nodepeer ranges are bumped to^4.0.0-beta.78, and the standalone@effect/platform,@effect/cli, and@effect/sqldependencies are dropped now that they are merged into coreeffect. Consumers must upgrade to Effect v4.
@evryg/effect-neo4j-schema@0.1.0
Minor Changes
-
953fa72Thanks @jbmusso! - Migrate to Effect v4All packages now target Effect v4 (
4.0.0-beta.78).effectand@effect/platform-nodepeer ranges are bumped to^4.0.0-beta.78, and the standalone@effect/platform,@effect/cli, and@effect/sqldependencies are dropped now that they are merged into coreeffect. Consumers must upgrade to Effect v4.
Patch Changes
- Updated dependencies [
953fa72]:- @evryg/effect-neo4j@0.1.0
@evryg/effect-integresql@0.1.0
Minor Changes
-
953fa72Thanks @jbmusso! - Migrate to Effect v4All packages now target Effect v4 (
4.0.0-beta.78).effectand@effect/platform-nodepeer ranges are bumped to^4.0.0-beta.78, and the standalone@effect/platform,@effect/cli, and@effect/sqldependencies are dropped now that they are merged into coreeffect. Consumers must upgrade to Effect v4.
@evryg/effect-cypher-codegen@0.4.1
Patch Changes
- #83
6b43ff8Thanks @jbmusso! - Make generated query code type-check under Effect v4.- Row decoding no longer emits an untyped
Neo4jRecordToObjectschema transform.
record.toObject()is called in the Effect pipeline and each row is validated
directly withSchema.Array(Row), so the row struct fully type-checks the
decoded shape. - The generated
TemporalStringtransform now carries explicit
SchemaTransformation.transform<string, unknown>type parameters, matching its
Schema.Unknownsource so it satisfiesdecodeTo's getter signature. - Single-file modules now annotate query parameters with their types instead of
relying on an implicitany, the same way the barrel output already did.
- Row decoding no longer emits an untyped
@evryg/effect-cypher-codegen@0.4.0
Minor Changes
-
953fa72Thanks @jbmusso! - Migrate to Effect v4All packages now target Effect v4 (
4.0.0-beta.78).effectand@effect/platform-nodepeer ranges are bumped to^4.0.0-beta.78, and the standalone@effect/platform,@effect/cli, and@effect/sqldependencies are dropped now that they are merged into coreeffect. Consumers must upgrade to Effect v4.
Patch Changes
- Updated dependencies [
953fa72]:- @evryg/effect-neo4j@0.1.0
- @evryg/effect-neo4j-schema@0.1.0