sst-http 2.0.0-beta.1 → 2.0.0-beta.4

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/README.md CHANGED
@@ -171,7 +171,7 @@ export default $config({
171
171
  loadRoutesManifest,
172
172
  wireApiFromManifest,
173
173
  httpApiAdapter,
174
- createBus,
174
+ getBus,
175
175
  } = await import("sst-http/infra");
176
176
 
177
177
  const manifest = loadRoutesManifest("routes.manifest.json");
@@ -184,7 +184,7 @@ export default $config({
184
184
  memory: "512 MB",
185
185
  });
186
186
 
187
- const bus = createBus();
187
+ const bus = getBus();
188
188
 
189
189
  wireApiFromManifest(manifest, {
190
190
  handler,
package/dist/infra.cjs CHANGED
@@ -20,7 +20,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/infra.ts
21
21
  var infra_exports = {};
22
22
  __export(infra_exports, {
23
- createBus: () => createBus,
24
23
  getBus: () => getBus,
25
24
  httpApiAdapter: () => httpApiAdapter,
26
25
  loadRoutesManifest: () => loadRoutesManifest,
@@ -85,10 +84,6 @@ function resolveHandlerInput(handler) {
85
84
 
86
85
  // src/bus/infra.ts
87
86
  var MAX_SUBSCRIBER_NAME_LENGTH = 60;
88
- function createBus() {
89
- const aws = ensureSstAws();
90
- return new aws.Bus("default");
91
- }
92
87
  function getBus() {
93
88
  const aws = ensureSstAws();
94
89
  return aws.Bus.get("default", "default");
@@ -394,7 +389,6 @@ function loadRoutesManifest(filePath) {
394
389
  }
395
390
  // Annotate the CommonJS export names for ESM import in node:
396
391
  0 && (module.exports = {
397
- createBus,
398
392
  getBus,
399
393
  httpApiAdapter,
400
394
  loadRoutesManifest,
package/dist/infra.d.cts CHANGED
@@ -19,7 +19,6 @@ type AwsSource = {
19
19
  };
20
20
 
21
21
  type BusInput = BusLike | BusLike[] | Record<string, BusLike>;
22
- declare function createBus(): BusLike;
23
22
  declare function getBus(): BusLike;
24
23
  declare function wireEventsFromManifest(events: RoutesManifestEvent[] | undefined, opts: {
25
24
  handler: unknown;
@@ -67,4 +66,4 @@ declare function wireApiFromManifest(manifest: RoutesManifest, opts: {
67
66
  }): void;
68
67
  declare function loadRoutesManifest(filePath: string): RoutesManifest;
69
68
 
70
- export { type EnsureJwtAuthorizer, type RegisterRoute, type RegisterRouteConfig, RoutesManifest, RoutesManifestEvent, createBus, getBus, httpApiAdapter, loadRoutesManifest, restApiAdapter, wireApiFromManifest };
69
+ export { type EnsureJwtAuthorizer, type RegisterRoute, type RegisterRouteConfig, RoutesManifest, RoutesManifestEvent, getBus, httpApiAdapter, loadRoutesManifest, restApiAdapter, wireApiFromManifest };
package/dist/infra.d.ts CHANGED
@@ -19,7 +19,6 @@ type AwsSource = {
19
19
  };
20
20
 
21
21
  type BusInput = BusLike | BusLike[] | Record<string, BusLike>;
22
- declare function createBus(): BusLike;
23
22
  declare function getBus(): BusLike;
24
23
  declare function wireEventsFromManifest(events: RoutesManifestEvent[] | undefined, opts: {
25
24
  handler: unknown;
@@ -67,4 +66,4 @@ declare function wireApiFromManifest(manifest: RoutesManifest, opts: {
67
66
  }): void;
68
67
  declare function loadRoutesManifest(filePath: string): RoutesManifest;
69
68
 
70
- export { type EnsureJwtAuthorizer, type RegisterRoute, type RegisterRouteConfig, RoutesManifest, RoutesManifestEvent, createBus, getBus, httpApiAdapter, loadRoutesManifest, restApiAdapter, wireApiFromManifest };
69
+ export { type EnsureJwtAuthorizer, type RegisterRoute, type RegisterRouteConfig, RoutesManifest, RoutesManifestEvent, getBus, httpApiAdapter, loadRoutesManifest, restApiAdapter, wireApiFromManifest };
package/dist/infra.js CHANGED
@@ -60,10 +60,6 @@ function resolveHandlerInput(handler) {
60
60
 
61
61
  // src/bus/infra.ts
62
62
  var MAX_SUBSCRIBER_NAME_LENGTH = 60;
63
- function createBus() {
64
- const aws = ensureSstAws();
65
- return new aws.Bus("default");
66
- }
67
63
  function getBus() {
68
64
  const aws = ensureSstAws();
69
65
  return aws.Bus.get("default", "default");
@@ -362,7 +358,6 @@ function loadRoutesManifest(filePath) {
362
358
  return manifest;
363
359
  }
364
360
  export {
365
- createBus,
366
361
  getBus,
367
362
  httpApiAdapter,
368
363
  loadRoutesManifest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst-http",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Decorator-based routing for SST v3 with a single Lambda and Firebase JWT authorizer.",
5
5
  "license": "MIT",
6
6
  "author": "",