You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next we import the desired protocol and then we have access to all the support functions. These support functions are an easy way to interact with channels defined in your AsyncAPI document. Take notice it does not care which operations you have defined.
85
+
Each protocol file contains standalone exported functions for interacting with channels defined in your AsyncAPI document.
We upgraded the AsyncAPI Modelina dependency to the `next` version so for the next few versions it will contain breaking changes as we continue to improve the tool.
65
67
68
+
## Breaking Changes 0.61.0
69
+
70
+
### Channels Multi-File Output
71
+
72
+
The `channels` generator now outputs one file per protocol instead of a single file with a `Protocols` object. This change improves tree-shaking, reduces bundle size, and provides better code organization.
73
+
74
+
**Before (v0.60.x and earlier):**
75
+
```typescript
76
+
// Single file with Protocols object containing all protocols
"runtime:typescript:setup": "npm run runtime:typescript:clean && npm run runtime:prepare && npm run runtime:services:start && npm run runtime:typescript:generate",
123
124
"runtime:typescript:generate": "cd test/runtime/typescript && npm ci && npm run generate",
124
125
"runtime:typescript:test": "cd test/runtime/typescript && npm run test",
125
126
"runtime:services:start": "npm run runtime:nats:start && npm run runtime:kafka:start && npm run runtime:mqtt:start && npm run runtime:amqp:start",
0 commit comments