@cloudflare/config 0.2.0 → 0.2.1
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/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as StreamBinding, A as AnalyticsEngineDatasetBinding, B as ImagesBinding, C as ScheduledTrigger, D as AiBinding, E as AgentMemoryBinding, F as D1Binding, G as MtlsCertificateBinding, H as KvBinding, I as DispatchNamespaceBinding, J as R2Binding, K as PipelineBinding, L as DurableObjectBinding, M as AssetsBinding, N as Bindings, O as AiSearchBinding, P as BrowserBinding, Q as SendEmailBinding, R as FlagshipBinding, S as QueueConsumerTrigger, T as triggers, U as LogfwdrBinding, V as JsonBinding, W as MediaBinding, X as SecretBinding, Y as RateLimitBinding, Z as SecretsStoreSecretBinding, _ as WorkerEntrypointExport, _t as bindings, a as ConfigContext, at as TypedQueueBinding, b as EmailTrigger, c as defineWorker, ct as UnsafeBinding, d as DurableObjectCreatedExport, dt as VpcNetworkBinding, et as TextBinding, f as DurableObjectDeletedExport, ft as VpcServiceBinding, g as Exports, gt as WorkflowBinding, h as DurableObjectTransferredExport, ht as WorkerLoaderBinding, i as UnwrapConfig, it as TypedPipelineBinding, j as ArtifactsBinding, k as AiSearchNamespaceBinding, l as resolveWorkerDefinition, lt as VectorizeBinding, m as DurableObjectRenamedExport, mt as WorkerBinding, n as InferEnv, nt as TypedDurableObjectBinding, o as TypedWorkerDefinition, ot as TypedWorkerBinding, p as DurableObjectExpectingTransferExport, pt as WebSearchBinding, q as QueueBinding, r as InferMainModule, rt as TypedKvBinding, s as UserConfigExport, st as TypedWorkflowBinding, t as InferDurableNamespaces, tt as TypedAiBinding, u as UserConfig, ut as VersionMetadataBinding, v as WorkerEntrypointExportOptions, w as Triggers, x as FetchTrigger, y as exports, z as HyperdriveBinding } from "./public-m7PNfSwY.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import { RawConfig } from "@cloudflare/workers-utils";
|
|
4
4
|
|
|
@@ -179,6 +179,9 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
179
179
|
}, z.core.$strict>>;
|
|
180
180
|
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
181
|
triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
182
|
+
type: z.ZodLiteral<"email">;
|
|
183
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
184
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
182
185
|
type: z.ZodLiteral<"fetch">;
|
|
183
186
|
pattern: z.ZodString;
|
|
184
187
|
zone: z.ZodOptional<z.ZodString>;
|
|
@@ -339,6 +342,9 @@ declare const OutputWorkerSchema: z.ZodObject<{
|
|
|
339
342
|
}, z.core.$strict>>;
|
|
340
343
|
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
341
344
|
triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
345
|
+
type: z.ZodLiteral<"email">;
|
|
346
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
347
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
342
348
|
type: z.ZodLiteral<"fetch">;
|
|
343
349
|
pattern: z.ZodString;
|
|
344
350
|
zone: z.ZodOptional<z.ZodString>;
|
|
@@ -617,4 +623,4 @@ interface LoadConfigResult {
|
|
|
617
623
|
*/
|
|
618
624
|
declare function registerConfigHooks(): () => void;
|
|
619
625
|
//#endregion
|
|
620
|
-
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, BUILD_OUTPUT_ROOT, BUILD_OUTPUT_VERSION, Bindings, BrowserBinding, ConfigContext, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, InputWorkerSchema, JsonBinding, KvBinding, type LoadConfigResult, LogfwdrBinding, MediaBinding, type ModuleType, ModuleTypeSchema, MtlsCertificateBinding, OutputWorkerSchema, type ParsedInputWorkerConfig, type ParsedOutputWorkerConfig, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedDurableObjectBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, TypedWorkerBinding, TypedWorkerDefinition, TypedWorkflowBinding, UnsafeBinding, UnwrapConfig, UserConfig, UserConfigExport, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WORKER_CONFIG_FILENAME, WebSearchBinding, WorkerBinding, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkflowBinding, bindings, cleanBuildOutputDir, convertToWranglerConfig, defineWorker, exports, generateTypes, getWorkerAssetsDir, getWorkerBundleDir, getWorkerConfigPath, getWorkersDir, loadConfig, registerConfigHooks, resolveWorkerDefinition, triggers, writeOutputWorkerConfig };
|
|
626
|
+
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, BUILD_OUTPUT_ROOT, BUILD_OUTPUT_VERSION, Bindings, BrowserBinding, ConfigContext, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, EmailTrigger, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, InputWorkerSchema, JsonBinding, KvBinding, type LoadConfigResult, LogfwdrBinding, MediaBinding, type ModuleType, ModuleTypeSchema, MtlsCertificateBinding, OutputWorkerSchema, type ParsedInputWorkerConfig, type ParsedOutputWorkerConfig, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedDurableObjectBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, TypedWorkerBinding, TypedWorkerDefinition, TypedWorkflowBinding, UnsafeBinding, UnwrapConfig, UserConfig, UserConfigExport, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WORKER_CONFIG_FILENAME, WebSearchBinding, WorkerBinding, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkflowBinding, bindings, cleanBuildOutputDir, convertToWranglerConfig, defineWorker, exports, generateTypes, getWorkerAssetsDir, getWorkerBundleDir, getWorkerConfigPath, getWorkersDir, loadConfig, registerConfigHooks, resolveWorkerDefinition, triggers, writeOutputWorkerConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as bindings, i as triggers, n as resolveWorkerDefinition, r as exports$1, t as defineWorker } from "./public-
|
|
1
|
+
import { a as bindings, i as triggers, n as resolveWorkerDefinition, r as exports$1, t as defineWorker } from "./public-mmLmXmLK.mjs";
|
|
2
2
|
import * as nodeModule from "node:module";
|
|
3
3
|
import * as fsp from "node:fs/promises";
|
|
4
4
|
import * as path from "node:path";
|
|
@@ -15,7 +15,7 @@ var __commonJS = (cb, mod) => function() {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region ../workers-utils/dist/chunk-
|
|
18
|
+
//#region ../workers-utils/dist/chunk-Q72B4Q5Z.mjs
|
|
19
19
|
var __defProp = Object.defineProperty;
|
|
20
20
|
var __name = (target, value) => __defProp(target, "name", {
|
|
21
21
|
value,
|
|
@@ -23,7 +23,7 @@ var __name = (target, value) => __defProp(target, "name", {
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region ../workers-utils/dist/chunk-
|
|
26
|
+
//#region ../workers-utils/dist/chunk-53IMCORZ.mjs
|
|
27
27
|
function isDirectory(path$1) {
|
|
28
28
|
return fs2.statSync(path$1, { throwIfNoEntry: false })?.isDirectory() ?? false;
|
|
29
29
|
}
|
|
@@ -50,7 +50,7 @@ function removeDirSync(dirPath) {
|
|
|
50
50
|
__name(removeDirSync, "removeDirSync");
|
|
51
51
|
|
|
52
52
|
//#endregion
|
|
53
|
-
//#region ../workers-utils/dist/chunk-
|
|
53
|
+
//#region ../workers-utils/dist/chunk-Y3JVLYM6.mjs
|
|
54
54
|
function partitionExports(exports$2) {
|
|
55
55
|
const partitioned = {
|
|
56
56
|
"durable-object": {},
|
|
@@ -2894,6 +2894,10 @@ const TailConsumerSchema = z.strictObject({
|
|
|
2894
2894
|
streaming: z.boolean().optional()
|
|
2895
2895
|
});
|
|
2896
2896
|
const TriggerSchema = z.discriminatedUnion("type", [
|
|
2897
|
+
z.strictObject({
|
|
2898
|
+
type: z.literal("email"),
|
|
2899
|
+
addresses: z.array(z.string())
|
|
2900
|
+
}),
|
|
2897
2901
|
z.strictObject({
|
|
2898
2902
|
type: z.literal("fetch"),
|
|
2899
2903
|
pattern: z.string(),
|
|
@@ -3520,7 +3524,11 @@ function convertTriggers(config, result) {
|
|
|
3520
3524
|
const crons = [];
|
|
3521
3525
|
const routes = result.routes ? [...result.routes] : [];
|
|
3522
3526
|
const queueConsumers = result.queues?.consumers ? [...result.queues.consumers] : [];
|
|
3527
|
+
const addresses = result.addresses ? [...result.addresses] : [];
|
|
3523
3528
|
for (const trigger of triggers$1) switch (trigger.type) {
|
|
3529
|
+
case "email":
|
|
3530
|
+
addresses.push(...trigger.addresses);
|
|
3531
|
+
break;
|
|
3524
3532
|
case "scheduled":
|
|
3525
3533
|
crons.push(trigger.schedule);
|
|
3526
3534
|
break;
|
|
@@ -3554,6 +3562,7 @@ function convertTriggers(config, result) {
|
|
|
3554
3562
|
...result.queues ?? {},
|
|
3555
3563
|
consumers: queueConsumers
|
|
3556
3564
|
};
|
|
3565
|
+
if (addresses.length) result.addresses = addresses;
|
|
3557
3566
|
}
|
|
3558
3567
|
function convertDomains(config, result) {
|
|
3559
3568
|
if (!config.domains || config.domains.length === 0) return;
|
|
@@ -788,10 +788,27 @@ interface ScheduledTriggerOptions {
|
|
|
788
788
|
interface ScheduledTrigger extends ScheduledTriggerOptions {
|
|
789
789
|
type: "scheduled";
|
|
790
790
|
}
|
|
791
|
+
interface EmailTriggerOptions {
|
|
792
|
+
/**
|
|
793
|
+
* Inbound Email Routing addresses handled by this Worker.
|
|
794
|
+
*
|
|
795
|
+
* Each entry is a literal recipient address (e.g. `"support@example.com"`)
|
|
796
|
+
* or a `*@domain` catch-all (e.g. `"*@example.com"`).
|
|
797
|
+
*/
|
|
798
|
+
addresses: string[];
|
|
799
|
+
}
|
|
791
800
|
/**
|
|
792
|
-
*
|
|
793
|
-
*
|
|
794
|
-
|
|
801
|
+
* Email trigger — invokes this Worker for the configured Email Routing
|
|
802
|
+
* addresses.
|
|
803
|
+
*/
|
|
804
|
+
interface EmailTrigger extends EmailTriggerOptions {
|
|
805
|
+
type: "email";
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Event triggers — fetch routes, queue consumers, cron schedules, and Email
|
|
809
|
+
* Routing addresses — that invoke this Worker. Construct entries with
|
|
810
|
+
* `triggers.fetch(...)`, `triggers.queue(...)`, `triggers.scheduled(...)`, or
|
|
811
|
+
* `triggers.email(...)`.
|
|
795
812
|
*
|
|
796
813
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
|
|
797
814
|
*/
|
|
@@ -815,6 +832,11 @@ interface Triggers {
|
|
|
815
832
|
* More details here https://developers.cloudflare.com/workers/platform/cron-triggers
|
|
816
833
|
*/
|
|
817
834
|
scheduled(options: ScheduledTriggerOptions): ScheduledTrigger;
|
|
835
|
+
/**
|
|
836
|
+
* Email trigger — invokes this Worker for the configured Email Routing
|
|
837
|
+
* addresses.
|
|
838
|
+
*/
|
|
839
|
+
email(options: EmailTriggerOptions): EmailTrigger;
|
|
818
840
|
}
|
|
819
841
|
/**
|
|
820
842
|
* Triggers builder for configuring event triggers.
|
|
@@ -829,6 +851,7 @@ interface Triggers {
|
|
|
829
851
|
* triggers.queue({ name: "my-queue" }),
|
|
830
852
|
* triggers.scheduled({ schedule: "0 * * * *" }),
|
|
831
853
|
* triggers.scheduled({ schedule: "30 0 * * *" }),
|
|
854
|
+
* triggers.email({ addresses: ["support@example.com"] }),
|
|
832
855
|
* ],
|
|
833
856
|
* });
|
|
834
857
|
* ```
|
|
@@ -991,7 +1014,7 @@ type Binding = AgentMemoryBinding | AiBinding | AiSearchBinding | AiSearchNamesp
|
|
|
991
1014
|
/**
|
|
992
1015
|
* Union of all trigger definitions accepted in `triggers`.
|
|
993
1016
|
*/
|
|
994
|
-
type Trigger = FetchTrigger | QueueConsumerTrigger | ScheduledTrigger;
|
|
1017
|
+
type Trigger = EmailTrigger | FetchTrigger | QueueConsumerTrigger | ScheduledTrigger;
|
|
995
1018
|
/**
|
|
996
1019
|
* Union of all export definitions accepted in `exports`. Worker entries
|
|
997
1020
|
* configure WorkerEntrypoint exports. Durable Object entries configure live
|
|
@@ -1073,9 +1096,10 @@ interface UserConfig {
|
|
|
1073
1096
|
*/
|
|
1074
1097
|
domains?: string[];
|
|
1075
1098
|
/**
|
|
1076
|
-
* Event triggers — fetch routes, queue consumers,
|
|
1099
|
+
* Event triggers — fetch routes, queue consumers, cron schedules, and Email
|
|
1100
|
+
* Routing addresses
|
|
1077
1101
|
* — that invoke this Worker. Construct entries with `triggers.fetch(...)`,
|
|
1078
|
-
* `triggers.queue(...)`, or `triggers.
|
|
1102
|
+
* `triggers.queue(...)`, `triggers.scheduled(...)`, or `triggers.email(...)`.
|
|
1079
1103
|
*
|
|
1080
1104
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
|
|
1081
1105
|
*/
|
|
@@ -1521,4 +1545,4 @@ type InferMainModule<TUnwrappedConfig$1> = TUnwrappedConfig$1 extends {
|
|
|
1521
1545
|
entrypoint: infer TModule extends WorkerModule;
|
|
1522
1546
|
} ? TModule : DefaultModule;
|
|
1523
1547
|
//#endregion
|
|
1524
|
-
export {
|
|
1548
|
+
export { StreamBinding$1 as $, AnalyticsEngineDatasetBinding as A, ImagesBinding$1 as B, ScheduledTrigger as C, AiBinding as D, AgentMemoryBinding as E, D1Binding as F, MtlsCertificateBinding as G, KvBinding as H, DispatchNamespaceBinding as I, R2Binding as J, PipelineBinding as K, DurableObjectBinding as L, AssetsBinding as M, Bindings as N, AiSearchBinding as O, BrowserBinding as P, SendEmailBinding as Q, FlagshipBinding as R, QueueConsumerTrigger as S, triggers as T, LogfwdrBinding as U, JsonBinding as V, MediaBinding$1 as W, SecretBinding as X, RateLimitBinding as Y, SecretsStoreSecretBinding as Z, WorkerEntrypointExport as _, bindings as _t, ConfigContext as a, TypedQueueBinding as at, EmailTrigger as b, defineWorker as c, UnsafeBinding as ct, DurableObjectCreatedExport as d, VpcNetworkBinding as dt, TextBinding as et, DurableObjectDeletedExport as f, VpcServiceBinding as ft, Exports as g, WorkflowBinding as gt, DurableObjectTransferredExport as h, WorkerLoaderBinding as ht, UnwrapConfig as i, TypedPipelineBinding as it, ArtifactsBinding as j, AiSearchNamespaceBinding as k, resolveWorkerDefinition as l, VectorizeBinding as lt, DurableObjectRenamedExport as m, WorkerBinding as mt, InferEnv as n, TypedDurableObjectBinding as nt, TypedWorkerDefinition as o, TypedWorkerBinding as ot, DurableObjectExpectingTransferExport as p, WebSearchBinding as pt, QueueBinding as q, InferMainModule as r, TypedKvBinding as rt, UserConfigExport as s, TypedWorkflowBinding as st, InferDurableNamespaces as t, TypedAiBinding as tt, UserConfig as u, VersionMetadataBinding as ut, WorkerEntrypointExportOptions as v, Triggers as w, FetchTrigger as x, exports as y, HyperdriveBinding as z };
|
|
@@ -145,6 +145,7 @@ const bindings = {
|
|
|
145
145
|
* triggers.queue({ name: "my-queue" }),
|
|
146
146
|
* triggers.scheduled({ schedule: "0 * * * *" }),
|
|
147
147
|
* triggers.scheduled({ schedule: "30 0 * * *" }),
|
|
148
|
+
* triggers.email({ addresses: ["support@example.com"] }),
|
|
148
149
|
* ],
|
|
149
150
|
* });
|
|
150
151
|
* ```
|
|
@@ -161,6 +162,10 @@ const triggers = {
|
|
|
161
162
|
scheduled: (options) => ({
|
|
162
163
|
type: "scheduled",
|
|
163
164
|
...options
|
|
165
|
+
}),
|
|
166
|
+
email: (options) => ({
|
|
167
|
+
type: "email",
|
|
168
|
+
...options
|
|
164
169
|
})
|
|
165
170
|
};
|
|
166
171
|
|
package/dist/public.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, Bindings, BrowserBinding, ConfigContext, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, JsonBinding, KvBinding, LogfwdrBinding, MediaBinding, MtlsCertificateBinding, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedDurableObjectBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, TypedWorkerBinding, TypedWorkerDefinition, TypedWorkflowBinding, UnsafeBinding, UnwrapConfig, UserConfig, UserConfigExport, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WebSearchBinding, WorkerBinding, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkflowBinding, bindings, defineWorker, exports, triggers };
|
|
1
|
+
import { $ as StreamBinding, A as AnalyticsEngineDatasetBinding, B as ImagesBinding, C as ScheduledTrigger, D as AiBinding, E as AgentMemoryBinding, F as D1Binding, G as MtlsCertificateBinding, H as KvBinding, I as DispatchNamespaceBinding, J as R2Binding, K as PipelineBinding, L as DurableObjectBinding, M as AssetsBinding, N as Bindings, O as AiSearchBinding, P as BrowserBinding, Q as SendEmailBinding, R as FlagshipBinding, S as QueueConsumerTrigger, T as triggers, U as LogfwdrBinding, V as JsonBinding, W as MediaBinding, X as SecretBinding, Y as RateLimitBinding, Z as SecretsStoreSecretBinding, _ as WorkerEntrypointExport, _t as bindings, a as ConfigContext, at as TypedQueueBinding, b as EmailTrigger, c as defineWorker, ct as UnsafeBinding, d as DurableObjectCreatedExport, dt as VpcNetworkBinding, et as TextBinding, f as DurableObjectDeletedExport, ft as VpcServiceBinding, g as Exports, gt as WorkflowBinding, h as DurableObjectTransferredExport, ht as WorkerLoaderBinding, i as UnwrapConfig, it as TypedPipelineBinding, j as ArtifactsBinding, k as AiSearchNamespaceBinding, lt as VectorizeBinding, m as DurableObjectRenamedExport, mt as WorkerBinding, n as InferEnv, nt as TypedDurableObjectBinding, o as TypedWorkerDefinition, ot as TypedWorkerBinding, p as DurableObjectExpectingTransferExport, pt as WebSearchBinding, q as QueueBinding, r as InferMainModule, rt as TypedKvBinding, s as UserConfigExport, st as TypedWorkflowBinding, t as InferDurableNamespaces, tt as TypedAiBinding, u as UserConfig, ut as VersionMetadataBinding, v as WorkerEntrypointExportOptions, w as Triggers, x as FetchTrigger, y as exports, z as HyperdriveBinding } from "./public-m7PNfSwY.mjs";
|
|
2
|
+
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, Bindings, BrowserBinding, ConfigContext, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, EmailTrigger, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, JsonBinding, KvBinding, LogfwdrBinding, MediaBinding, MtlsCertificateBinding, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedDurableObjectBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, TypedWorkerBinding, TypedWorkerDefinition, TypedWorkflowBinding, UnsafeBinding, UnwrapConfig, UserConfig, UserConfigExport, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WebSearchBinding, WorkerBinding, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkflowBinding, bindings, defineWorker, exports, triggers };
|
package/dist/public.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Definitions and utilities for configuring Cloudflare Workers and related products. This is not yet stable enough for external use — APIs may change without notice.",
|
|
5
5
|
"homepage": "https://github.com/cloudflare/workers-sdk/tree/main/packages/config#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"zod": "4.4.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@cloudflare/workers-types": "^5.
|
|
34
|
+
"@cloudflare/workers-types": "^5.20260714.1",
|
|
35
35
|
"ts-dedent": "^2.2.0",
|
|
36
36
|
"tsdown": "0.16.3",
|
|
37
37
|
"typescript": "5.8.3",
|
|
38
38
|
"vitest": "4.1.0",
|
|
39
|
-
"@cloudflare/workers-
|
|
40
|
-
"@cloudflare/workers-
|
|
39
|
+
"@cloudflare/workers-utils": "0.27.0",
|
|
40
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
41
41
|
},
|
|
42
42
|
"workers-sdk": {
|
|
43
43
|
"prerelease": true
|