@dunx/create-app 3.1.1 → 3.1.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dunx/create-app",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Scaffold a new dunx application - bunx @dunx/create-app my-api",
5
5
  "keywords": [
6
6
  "bun",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HttpOptionsProvider,
3
- RedisRelay,
3
+ WsRelay,
4
4
  type CorsOptions,
5
5
  type PubSubRelay,
6
6
  type RequestLoggingOptions,
@@ -23,7 +23,8 @@ import { AppConfigService, RELAY_CHANNEL } from '../config.js';
23
23
  export class AppHttpOptions extends HttpOptionsProvider {
24
24
  constructor(
25
25
  private readonly config: AppConfigService,
26
- private readonly bus: RedisRelay,
26
+ // The contract, not `RedisRelay`, so the backend changes without this moving.
27
+ private readonly bus: WsRelay,
27
28
  ) {
28
29
  super();
29
30
  this.trustProxy = this.config.get('trustProxy');
@@ -30,6 +30,9 @@ import { RequestTrail, RequestTrailMiddleware } from './request-trail.js';
30
30
  * consumes it. `main.ts` used to build `new RedisRelay(...)` and thread it
31
31
  * into `HttpFactory.create`, which was the last hand-built object in the
32
32
  * options. The container closes it at shutdown.
33
+ *
34
+ * `forPostgresAsync` here runs the same fan-out over Postgres, with a
35
+ * factory returning `{ url }` for the database instead of these.
33
36
  */
34
37
  WsRelayModule.forRootAsync({
35
38
  useFactory: (config: AppConfigService) => {