Skip to content

Delete legacy emitter files replaced by component architecture#78

Draft
FionaBronwen wants to merge 2 commits intofionabronwen/graphql-alloy-foundation-v2from
fionabronwen/graphql-delete-legacy-v2
Draft

Delete legacy emitter files replaced by component architecture#78
FionaBronwen wants to merge 2 commits intofionabronwen/graphql-alloy-foundation-v2from
fionabronwen/graphql-delete-legacy-v2

Conversation

@FionaBronwen
Copy link
Copy Markdown

@FionaBronwen FionaBronwen commented Apr 12, 2026

Summary

Removes the legacy (non-component) emitter implementation, clearing the way for the new Alloy component-based emitter in follow-up PRs.

  • Delete graphql-emitter.ts, schema-emitter.ts, registry.ts, type-maps.ts
  • Delete test/emitter.test.ts (tests for the legacy emitter)
  • Replace emitter.ts with a placeholder stub ($onEmit is a no-op until the new emitter lands)

Test plan

  • npm run build succeeds
  • npm test — all remaining tests pass (deleted tests were for removed code)

@FionaBronwen FionaBronwen force-pushed the fionabronwen/graphql-delete-legacy-v2 branch from c664ca3 to 9d65cbe Compare April 13, 2026 00:10
@FionaBronwen FionaBronwen force-pushed the fionabronwen/graphql-alloy-foundation-v2 branch 6 times, most recently from a225a7d to 8f1da87 Compare April 14, 2026 21:00
Introduce the foundation for the component-based GraphQL emitter:

- Build/config: Add @alloy-js/core, @alloy-js/graphql dependencies,
  configure JSX transpilation (tsconfig, vitest)
- Context system: GraphQLSchemaContext with ClassifiedTypes,
  ModelVariants, and ScalarVariant interfaces
- Field components: Field, OperationField, and GraphQLTypeExpression
  for rendering model properties and operations as GraphQL SDL
- Type resolution: GraphQLTypeExpression handles scalars, models,
  enums, unions, arrays, and nullability using an isInput prop to
  distinguish input vs output context
- Scalar mappings: Add getGraphQLBuiltinName() for built-in scalar
  identity checks
@FionaBronwen FionaBronwen force-pushed the fionabronwen/graphql-alloy-foundation-v2 branch from 8f1da87 to 8b51ca4 Compare April 14, 2026 21:04
@FionaBronwen FionaBronwen changed the base branch from fionabronwen/graphql-alloy-foundation-v2 to feature/graphql April 14, 2026 21:29
@FionaBronwen FionaBronwen force-pushed the fionabronwen/graphql-delete-legacy-v2 branch from 9d65cbe to 48403d0 Compare April 14, 2026 21:56
@FionaBronwen FionaBronwen changed the base branch from feature/graphql to fionabronwen/graphql-alloy-foundation-v2 April 14, 2026 21:57
Removes the old procedural emitter implementation now fully replaced
by the Alloy JSX component-based emitter:
- graphql-emitter.ts (old emitter implementation)
- schema-emitter.ts (old schema-specific emitter)
- registry.ts (old type registry)
- type-maps.ts (old type mapping logic)
- emitter.test.ts (old emitter tests)

Replaces emitter.ts with a no-op stub so the package still conforms
to the TypeSpec emitter interface. The real component-based emitter
is added in the next PR in the chain.
@FionaBronwen FionaBronwen force-pushed the fionabronwen/graphql-delete-legacy-v2 branch from 48403d0 to 806adc8 Compare April 14, 2026 22:06
@FionaBronwen FionaBronwen force-pushed the fionabronwen/graphql-alloy-foundation-v2 branch from 8b51ca4 to 8f411e1 Compare April 21, 2026 16:24
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