Tim Smart 099bc4dc5b test(graphql-generator): cross-file fragments, shared name namespace, self-overlap
Tests-only run for the stage-3 review of f2ea6726fd. All three findings
hold against the accepted specs.

- Fragments resolve across files (EFF-1831 point 3: a fragment used from
  another file is imported from it). The passing case spreads a fragment
  from a fragments-only file, and that fragment uses a variable the
  operation defines. The failing case has a cycle that spans two files and
  an undefined variable, each reported in the file that holds the node.
- Operations and fragments share one namespace (EFF-1831 point 3). A name
  used by both kinds, in one file or across files, gives every definition
  `There can be only one operation or fragment named "X".` The existing
  operation/operation and fragment/fragment messages are unchanged.
- A composite type overlaps itself, as graphql-js's doTypesOverlap does.
  The shared schema gains `interface Orphan` with no implementations.
  Spreading it inline and as a named fragment inside an Orphan field
  passes, and spreading it into User still fails.

The new invalid cases were checked against graphql-js 16.14.2 where it
has a matching rule, with multi-file cases concatenated into one
document.

4 of 246 generator tests fail, all against the current Validate.ts;
pnpm lint and check pass.
2026-10-12 16:00:47 +13:00
2026-09-30 05:36:51 +02:00
wip
2024-12-13 15:57:00 +13:00
2026-08-26 18:25:28 +00:00
2026-08-26 18:25:28 +00:00
2026-08-13 21:54:30 +02:00
2026-08-13 21:54:30 +02:00
2025-01-07 14:53:25 +13:00
2026-07-28 19:55:11 +02:00
2026-07-28 19:55:11 +02:00
2026-07-30 18:57:46 +00:00

pkg.pr.new

Effect

Effect is a library for building robust, maintainable, type-safe, and production grade applications in TypeScript. It helps you handle the hard problems at scale: typed errors, dependency injection, structured concurrency, scheduling, tracing, and unified schema validation.

Effect 4.x is a long-term support (LTS) release. If you are upgrading from Effect 3.x, follow the migration guide.

Installation

npm install effect

Requirements

  • TypeScript 5.9 or newer. TypeScript 7 is recommended for the best performance and compatibility with Effect's TypeScript tooling.
  • Node.js 18 or newer is the general minimum for running Effect on Node.js. Some integration packages require newer runtimes; for example, @effect/sql-sqlite-node requires Node.js 22.16 or newer.
  • Strict type-checking: the strict flag must be enabled in your tsconfig.json.
  • Website: documentation, guides, and news
  • Discord: ask questions, share what you're building, and talk to the core team
  • Community: meetups and events, or bring Effect to your own
  • Issues: bug reports and feature requests
  • Jobs: companies hiring Effect developers
  • Follow us on X, Bluesky, and LinkedIn

Let's talk

Whether your team is considering Effect, rolling it out, or already running it in production, we'd love to hear from you: what you're building, what works, and what you need from Effect next.

  • Talk to the maintainers. Introduce your team on Discord or email contact@effectful.co. We're happy to connect privately on Slack or Discord for feedback and help with adoption.
  • Production support. We're exploring how to better support teams running Effect in production. If your organization has specific support needs, let's discuss them.
  • Adoption help. Our adoption partners offer implementation, consulting, team extension, training, and commercial support.

Feedback from teams using and evaluating Effect directly shapes what we stabilize and build next.

Long-term support

Teams depend on Effect for systems they expect to run for years. Effect 4.x is a long-term support (LTS) release with the following guarantees:

  • At least three years of support, including bug and security fixes.
  • Bug fixes for one year after the next major version is released.
  • Security fixes for two years after the next major version is released.

Stable APIs reserve breaking changes for major releases. APIs marked unstable may change in minor releases, and experimental APIs may change in patch releases.

Effect v3

The Effect v3 source code is available on the v3 branch, which is also where issues and pull requests meant for Effect v3 should be targeted. To upgrade, see the migration guide.

Packages

This monorepo contains the core effect package alongside integration packages that extend it. All packages listed below are released together with synchronized versions.

Package Description API Reference
effect The core package docs
@effect/platform-browser Platform services for the browser docs
@effect/platform-bun Platform services for Bun docs
@effect/platform-deno Platform services for Deno docs
@effect/platform-node Platform services for Node.js docs
@effect/platform-node-shared Shared services for Node.js-compatible runtimes docs
@effect/sql-clickhouse SQL client for ClickHouse docs
@effect/sql-d1 SQL client for Cloudflare D1 docs
@effect/sql-libsql SQL client for libSQL docs
@effect/sql-mssql SQL client for Microsoft SQL Server docs
@effect/sql-mysql2 SQL client for MySQL docs
@effect/sql-pg SQL client for PostgreSQL docs
@effect/sql-pglite SQL client for PGlite docs
@effect/sql-sqlite-bun SQL client for SQLite via bun:sqlite docs
@effect/sql-sqlite-do SQL client for Cloudflare Durable Objects SQLite docs
@effect/sql-sqlite-node SQL client for SQLite via node:sqlite docs
@effect/sql-sqlite-react-native SQL client for SQLite in React Native docs
@effect/sql-sqlite-wasm SQL client for SQLite compiled to WebAssembly docs
@effect/ai-anthropic Anthropic provider for the Effect AI modules docs
@effect/ai-openai OpenAI provider for the Effect AI modules docs
@effect/ai-cloudflare Cloudflare decision provider for the Effect AI modules docs
@effect/ai-typesafe TypeSafe decision provider for the Effect AI modules docs
@effect/ai-openai-compat OpenAI-compatible API provider for the Effect AI modules docs
@effect/ai-openrouter OpenRouter provider for the Effect AI modules docs
@effect/atom-react React bindings for Effect Atom docs
@effect/atom-solid SolidJS bindings for Effect Atom docs
@effect/atom-vue Vue bindings for Effect Atom docs
@effect/opentelemetry OpenTelemetry integration docs
@effect/vitest Helpers for testing with Vitest docs
@effect/docgen Documentation generator for Effect projects docs
@effect/doctest Runs JSDoc examples as Vitest tests docs
@effect/openapi-generator Generate Effect code from OpenAPI specifications docs
@effect/graphql-generator Generate Effect code from GraphQL documents docs

License

MIT

Languages
TypeScript 99.2%
JavaScript 0.6%