Skip to content

Conversation

@jonaslagoni
Copy link
Contributor

@jonaslagoni jonaslagoni commented Dec 20, 2025

Note

Refactors the TypeScript channels generator to emit one file per protocol with namespace re-exports, updates templates/clients accordingly, and documents the breaking change.

  • Channels Generator (TypeScript):
    • Output changed from single Protocols object to multi-file: one file per protocol (nats.ts, kafka.ts, mqtt.ts, amqp.ts, event_source.ts, http_client.ts, websocket.ts) plus index.ts re-exporting protocol namespaces.
    • Functions now emitted as standalone function exports (no object property syntax); per-protocol dependency imports collected via collectProtocolDependencies.
    • Finalization writes individual protocol files and an index; updated NATS client to import from ./nats.
    • Protocol templates (NATS/Kafka/MQTT/AMQP/EventSource/HTTP/WebSocket) updated to match new function export style and include headers/parameters handling.
  • Docs:
    • Update docs/generators/channels.md to show new import patterns and file structure.
    • Add migration note docs/migrations/v0.md for breaking change 0.61.0.
  • Tests:
    • Replace snapshots; add protocol-specific snapshots and fixtures (asyncapi-channels.yaml); adjust channel tests.
  • Tooling:
    • Scripts: add runtime:typescript:clean; prepare:pr now runs runtime TS generate; use cross-env in runtime tests.
  • Misc:
    • Minor runtime/types changes (e.g., TopicsMap), .gitignore tweaks.

Written by Cursor Bugbot for commit dabb211. This will update automatically on new commits. Configure here.

@netlify
Copy link

netlify bot commented Dec 20, 2025

Deploy Preview for the-codegen-project canceled.

Name Link
🔨 Latest commit dabb211
🔍 Latest deploy log https://app.netlify.com/projects/the-codegen-project/deploys/69470223a286460008df81b1

@jonaslagoni jonaslagoni merged commit a2f226f into main Dec 20, 2025
20 checks passed
@jonaslagoni jonaslagoni deleted the improve_channels branch December 20, 2025 20:15
@jonaslagoni
Copy link
Contributor Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants