alchemy 0.9.0 → 0.9.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.
@@ -125,6 +125,14 @@ export interface WranglerJsonSpec {
125
125
  * Plain text bindings (vars)
126
126
  */
127
127
  vars?: Record<string, string>;
128
+ /**
129
+ * D1 database bindings
130
+ */
131
+ d1_databases?: {
132
+ binding: string;
133
+ database_id: string;
134
+ database_name: string;
135
+ }[];
128
136
  /**
129
137
  * Assets bindings
130
138
  */
@@ -143,6 +143,9 @@ function processBindings(spec, bindings) {
143
143
  if (services.length > 0) {
144
144
  spec.services = services;
145
145
  }
146
+ if (d1Databases.length > 0) {
147
+ spec.d1_databases = d1Databases;
148
+ }
146
149
  if (queues.length > 0) {
147
150
  spec.queues = queues;
148
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "module": "./lib/index.js",
6
6
  "scripts": {
@@ -200,6 +200,15 @@ export interface WranglerJsonSpec {
200
200
  */
201
201
  vars?: Record<string, string>;
202
202
 
203
+ /**
204
+ * D1 database bindings
205
+ */
206
+ d1_databases?: {
207
+ binding: string;
208
+ database_id: string;
209
+ database_name: string;
210
+ }[];
211
+
203
212
  /**
204
213
  * Assets bindings
205
214
  */
@@ -338,6 +347,10 @@ function processBindings(spec: WranglerJsonSpec, bindings: Bindings): void {
338
347
  spec.services = services;
339
348
  }
340
349
 
350
+ if (d1Databases.length > 0) {
351
+ spec.d1_databases = d1Databases;
352
+ }
353
+
341
354
  if (queues.length > 0) {
342
355
  spec.queues = queues;
343
356
  }