Skip to content

Commit be77af6

Browse files
adrians5jclaude
andauthored
chore: remove dead createServerWebsockets + dbTable config (#5404)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 394246b commit be77af6

8 files changed

Lines changed: 2 additions & 38 deletions

File tree

packages/api-event-handler-aws-ddb-os/src/createWebinyApiHandler.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ import { OpenSearchQueryBuilderOperatorFeature } from "@webiny/api-opensearch/fe
2424
import { OpenSearchFieldFeature } from "@webiny/api-opensearch/features/OpenSearchField/feature.js";
2525
import { OpenSearchIndexFeature } from "@webiny/api-opensearch/features/OpenSearchIndex/feature.js";
2626

27-
export type CreateAwsDdbOsApiHandlerConfig = Pick<
28-
BaseConfig,
29-
"extensions" | "documentClient" | "dbTable"
30-
> & {
27+
export type CreateAwsDdbOsApiHandlerConfig = Pick<BaseConfig, "extensions" | "documentClient"> & {
3128
/**
3229
* OpenSearch client. Defaults to one built from `OPENSEARCH_*` env vars. Injectable so
3330
* integration tests can point the handler at a local OpenSearch.
@@ -59,7 +56,6 @@ export function createAwsDdbOsApiHandler(config: CreateAwsDdbOsApiHandlerConfig)
5956
return createBaseHandler({
6057
extensions: config.extensions,
6158
documentClient: config.documentClient,
62-
dbTable: config.dbTable,
6359
registerRootStorage: (container, { documentClient }) => {
6460
// ── OpenSearch core (client + query-builder operators + fields + index registries) ──
6561
// The DDB+ES CMS storage factory resolves all of these.

packages/api-event-handler-aws-ddb/src/createWebinyApiHandler.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ import { AuditLogsDdbFeature } from "@webiny/api-audit-logs-ddb";
1414
import { AcoDdbFeature } from "@webiny/api-aco-ddb";
1515
import { WebsocketsDdbFeature } from "@webiny/api-websockets-ddb";
1616

17-
export type CreateAwsDdbApiHandlerConfig = Pick<
18-
BaseConfig,
19-
"extensions" | "documentClient" | "dbTable"
20-
>;
17+
export type CreateAwsDdbApiHandlerConfig = Pick<BaseConfig, "extensions" | "documentClient">;
2118

2219
export function createAwsDdbApiHandler(config: CreateAwsDdbApiHandlerConfig) {
2320
return createBaseHandler({

packages/api-event-handler-aws/src/createWebinyApiHandler.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ export interface CreateWebinyApiHandlerConfig {
4747
* Injectable so integration tests can point the handler at a local (dynalite) DynamoDB.
4848
*/
4949
documentClient?: ReturnType<typeof getDocumentClient>;
50-
/**
51-
* DynamoDB table name. Defaults to `process.env.DB_TABLE`. Injectable for tests.
52-
*/
53-
dbTable?: string;
5450
/**
5551
* Register the storage-variant features in the ROOT container: the CMS storage operations, the
5652
* DDB storage registries, and (for the OpenSearch variant) the OpenSearch core. Supplied by the

packages/api-websockets-server/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@webiny/api": "0.0.0",
2020
"@webiny/api-websockets": "0.0.0",
2121
"@webiny/feature": "0.0.0",
22-
"@webiny/handler": "0.0.0",
2322
"@webiny/plugins": "0.0.0",
2423
"@webiny/utils": "0.0.0",
2524
"ws": "^8.21.0",
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import { createRegisterExtensionPlugin } from "@webiny/handler";
2-
import { ServerWebsocketsTransport } from "~/transport/ServerWebsocketsTransport.js";
3-
import { NodeWsAdapter } from "~/adapter/NodeWsAdapter.js";
4-
import { DefaultUpgradeHandler } from "~/upgradeHandler/DefaultUpgradeHandler.js";
5-
import { ServerConnectionManager } from "~/connectionManager/ServerConnectionManager.js";
6-
71
export { createWebsocketsServer, attachWebsocketsServer } from "~/server/WebsocketsServer.js";
82
export type { IWebsocketsServer } from "~/server/types.js";
93
export * from "~/adapter/abstractions.js";
@@ -15,14 +9,3 @@ export * from "~/connectionManager/abstractions.js";
159
export { ServerConnectionManager } from "~/connectionManager/ServerConnectionManager.js";
1610
export { NodeWsAdapter } from "~/adapter/NodeWsAdapter.js";
1711
export { ServerWebsocketsTransport } from "~/transport/ServerWebsocketsTransport.js";
18-
19-
export const createServerWebsockets = () => {
20-
const plugin = createRegisterExtensionPlugin(context => {
21-
context.container.register(ServerWebsocketsTransport).inSingletonScope();
22-
context.container.register(NodeWsAdapter).inSingletonScope();
23-
context.container.register(DefaultUpgradeHandler).inSingletonScope();
24-
context.container.register(ServerConnectionManager).inSingletonScope();
25-
});
26-
plugin.name = "websockets.server.transport";
27-
return [plugin];
28-
};

packages/api-websockets-server/tsconfig.build.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
{ "path": "../api/tsconfig.build.json" },
66
{ "path": "../api-websockets/tsconfig.build.json" },
77
{ "path": "../feature/tsconfig.build.json" },
8-
{ "path": "../handler/tsconfig.build.json" },
98
{ "path": "../plugins/tsconfig.build.json" },
109
{ "path": "../utils/tsconfig.build.json" }
1110
],
@@ -22,8 +21,6 @@
2221
"@webiny/api-websockets": ["../api-websockets/src"],
2322
"@webiny/feature/*": ["../feature/src/*"],
2423
"@webiny/feature": ["../feature/src"],
25-
"@webiny/handler/*": ["../handler/src/*"],
26-
"@webiny/handler": ["../handler/src"],
2724
"@webiny/plugins/*": ["../plugins/src/*"],
2825
"@webiny/plugins": ["../plugins/src"],
2926
"@webiny/utils/*": ["../utils/src/*"],

packages/api-websockets-server/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
{ "path": "../api" },
66
{ "path": "../api-websockets" },
77
{ "path": "../feature" },
8-
{ "path": "../handler" },
98
{ "path": "../plugins" },
109
{ "path": "../utils" }
1110
],
@@ -22,8 +21,6 @@
2221
"@webiny/api-websockets": ["../api-websockets/src"],
2322
"@webiny/feature/*": ["../feature/src/*"],
2423
"@webiny/feature": ["../feature/src"],
25-
"@webiny/handler/*": ["../handler/src/*"],
26-
"@webiny/handler": ["../handler/src"],
2724
"@webiny/plugins/*": ["../plugins/src/*"],
2825
"@webiny/plugins": ["../plugins/src"],
2926
"@webiny/utils/*": ["../utils/src/*"],

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11629,7 +11629,6 @@ __metadata:
1162911629
"@webiny/api-websockets": "npm:0.0.0"
1163011630
"@webiny/build-tools": "npm:0.0.0"
1163111631
"@webiny/feature": "npm:0.0.0"
11632-
"@webiny/handler": "npm:0.0.0"
1163311632
"@webiny/plugins": "npm:0.0.0"
1163411633
"@webiny/project-utils": "npm:0.0.0"
1163511634
"@webiny/utils": "npm:0.0.0"

0 commit comments

Comments
 (0)