@nice-code/action 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/README.md +4 -4
  2. package/build/{ActionDevtoolsCore-CQ0vrvPD.d.cts → ActionDevtoolsCore-BjbhFqc0.d.mts} +2 -2
  3. package/build/{ActionDevtoolsCore-CiLBYC3K.d.mts → ActionDevtoolsCore-kk7oZBv9.d.cts} +2 -2
  4. package/build/{ActionPayload.types-Dx1JPyfs.d.mts → ActionPayload.types-B-OSg09t.d.mts} +15 -10
  5. package/build/{ActionPayload.types-L9k0LyBd.d.cts → ActionPayload.types-DIOeVapm.d.cts} +15 -10
  6. package/build/devtools/browser/index.d.cts +1 -1
  7. package/build/devtools/browser/index.d.mts +1 -1
  8. package/build/devtools/server/index.d.cts +1 -1
  9. package/build/devtools/server/index.d.mts +1 -1
  10. package/build/{httpAcceptorCarrier-DL8lf0xB.mjs → httpAcceptorCarrier-DJVxzDVd.mjs} +3 -3
  11. package/build/{httpAcceptorCarrier-DL8lf0xB.mjs.map → httpAcceptorCarrier-DJVxzDVd.mjs.map} +1 -1
  12. package/build/{httpAcceptorCarrier-OnJxzsAD.cjs → httpAcceptorCarrier-hYPuoNuP.cjs} +3 -3
  13. package/build/{httpAcceptorCarrier-OnJxzsAD.cjs.map → httpAcceptorCarrier-hYPuoNuP.cjs.map} +1 -1
  14. package/build/index.cjs +18 -12
  15. package/build/index.cjs.map +1 -1
  16. package/build/index.d.cts +1 -1
  17. package/build/index.d.mts +1 -1
  18. package/build/index.mjs +18 -12
  19. package/build/index.mjs.map +1 -1
  20. package/build/platform/cloudflare/index.cjs +1 -1
  21. package/build/platform/cloudflare/index.d.cts +1 -1
  22. package/build/platform/cloudflare/index.d.mts +1 -1
  23. package/build/platform/cloudflare/index.mjs +1 -1
  24. package/build/react-query/index.d.cts +1 -1
  25. package/build/react-query/index.d.mts +1 -1
  26. package/package.json +4 -4
@@ -2544,7 +2544,7 @@ function isExchangeCarrierSource(carrier) {
2544
2544
  //#endregion
2545
2545
  //#region src/ActionRuntime/Transport/Transport.ts
2546
2546
  /**
2547
- * Reusable transport definition. Devs construct these (`secureTransport({ carrier: wsCarrier(url) })`,
2547
+ * Reusable transport definition. Devs construct these (`secureTransport({ carrier: wsCarrier(() => ({ url })) })`,
2548
2548
  * `plainTransport({ carrier: httpCarrier(...) })`, …) and pass them to a
2549
2549
  * `ConnectorHandler`. A single
2550
2550
  * definition can be shared across multiple handlers — each handler builds its own live
@@ -3238,7 +3238,7 @@ function defineChannel(options) {
3238
3238
  * const handler = connectChannel(runtime, lobbyChannel, {
3239
3239
  * peer: runtime_coordinate_lobby_do,
3240
3240
  * storage,
3241
- * transports: [{ carrier: wsCarrier(url) }, { carrier: httpCarrier(...), secure: false }],
3241
+ * transports: [{ carrier: wsCarrier(() => ({ url })) }, { carrier: httpCarrier(...), secure: false }],
3242
3242
  * onPush: { player_joined: (p) => { … } },
3243
3243
  * });
3244
3244
  * ```
@@ -4288,4 +4288,4 @@ Object.defineProperty(exports, "wsAcceptorCarrier", {
4288
4288
  }
4289
4289
  });
4290
4290
 
4291
- //# sourceMappingURL=httpAcceptorCarrier-OnJxzsAD.cjs.map
4291
+ //# sourceMappingURL=httpAcceptorCarrier-hYPuoNuP.cjs.map