Skip to content

Feat/sep types#401

Merged
pyramation merged 3 commits intomainfrom
feat/sep-types
Dec 14, 2025
Merged

Feat/sep types#401
pyramation merged 3 commits intomainfrom
feat/sep-types

Conversation

@pyramation
Copy link
Copy Markdown
Contributor

No description provided.

- Create new @launchql/types package (v2.11.0) with GraphQL/Graphile types
- Remove postgraphile and graphile-build dependencies from @pgpmjs/types
- Move GraphileOptions, ApiOptions, FeatureOptions to @launchql/types
- Add EnvOptions and EnvGraphQLOptions types to @pgpmjs/env
- Update consumer packages to use @launchql/types for GraphQL types
- Ensures pgpm has zero GraphQL dependencies in its dependency chain

Packages updated:
- @pgpmjs/types: removed graphile deps, kept core PGPM types
- @pgpmjs/env: added EnvOptions type for full env var parsing
- @launchql/types: new package with LaunchQLOptions, GraphileOptions, etc.
- @launchql/server, @launchql/explorer: use LaunchQLOptions
- graphile-settings, graphile-test, launchql-test: use @launchql/types

Co-Authored-By: Dan Lynch <pyramation@gmail.com>
Co-Authored-By: Dan Lynch <pyramation@gmail.com>
- Create new @launchql/env package that handles GraphQL env parsing and defaults
- Strip GraphQL env vars from @pgpmjs/env (GRAPHILE_*, FEATURES_*, API_*)
- Update @pgpmjs/env to return only core PgpmOptions (no GraphQL fields)
- Update all LaunchQL consumers to use @launchql/env:
  - packages/server, explorer, cli
  - graphile/graphile-settings, graphile-test, graphile-upload-plugin
  - packages/launchql-test
- @launchql/env exports getEnvOptions() that merges core + GraphQL options
- Re-exports getNodeEnv and other utilities from @pgpmjs/env for convenience

This completes the architectural separation where:
- @pgpmjs/types + @pgpmjs/env = core PGPM (zero GraphQL deps)
- @launchql/types + @launchql/env = LaunchQL (GraphQL features)

Co-Authored-By: Dan Lynch <pyramation@gmail.com>
@pyramation pyramation merged commit 44f8eb7 into main Dec 14, 2025
30 checks passed
@pyramation pyramation deleted the feat/sep-types branch December 14, 2025 03:23
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