Skip to content

Commit

Permalink
Revert "feat(workers): allow namespaced scripts to be used as Worker …
Browse files Browse the repository at this point in the history
…tail consumers (#3845)" (#4447)

This reverts commit 4b07385.
  • Loading branch information
penalosa authored Nov 15, 2023
1 parent f212fbd commit 3753eaf
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions .changeset/thin-pears-repeat.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/wrangler/src/__tests__/configuration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,6 @@ describe("normalizeAndValidateConfig()", () => {
// these are valid
{ service: "tail_listener" },
{ service: "listener_two", environment: "production" },
{ service: "listener_three", namespace: "a-dispatch-namespace" },
],
} as unknown as RawConfig,
undefined,
Expand Down
2 changes: 0 additions & 2 deletions packages/wrangler/src/__tests__/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5135,7 +5135,6 @@ addEventListener('fetch', event => {});`
tail_consumers: [
{ service: "listener " },
{ service: "test-listener", environment: "production" },
{ service: "namespaced-listener", namespace: "a-dispatch-namespace" },
],
});
await fs.promises.writeFile("index.js", `export default {};`);
Expand All @@ -5144,7 +5143,6 @@ addEventListener('fetch', event => {});`
expectedTailConsumers: [
{ service: "listener " },
{ service: "test-listener", environment: "production" },
{ service: "namespaced-listener", namespace: "a-dispatch-namespace" },
],
});

Expand Down
4 changes: 1 addition & 3 deletions packages/wrangler/src/config/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,10 +734,8 @@ export type ConfigModuleRuleType =
export type TailConsumer = {
/** The name of the service tail events will be forwarded to. */
service: string;
/** (Optional) The environment of the service. */
/** (Optional) The environt of the service. */
environment?: string;
/** (Optional) The dispatch namespace the Tail Worker script belongs to (if any). */
namespace?: string;
};

export interface DispatchNamespaceOutbound {
Expand Down
1 change: 0 additions & 1 deletion packages/wrangler/src/deployment-bundle/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ export interface CfPlacement {
export interface CfTailConsumer {
service: string;
environment?: string;
namespace?: string;
}

export interface CfUserLimits {
Expand Down

0 comments on commit 3753eaf

Please sign in to comment.