@bubblydoo/cloudflare-workers-postgres-client
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@bubblydoo/cloudflare-workers-postgres-client", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./build/postgres.js", |
@@ -37,2 +37,19 @@ # Cloudflare Workers Postgres Driver | ||
You also have to make sure the `worker-overrides.ts` file is imported, which sets the `Deno` and `FinalizationRegistry` values on `globalThis`. This is needed to make the Deno code work. | ||
For example, in esbuild: | ||
```ts | ||
await build({ | ||
..., | ||
inject: ["./node_modules/@bubblydoo/cloudflare-workers-postgres-client/workers-override.ts"], | ||
}) | ||
``` | ||
Or, you can just import it at the top of your main file: | ||
```ts | ||
import '@bubblydoo/cloudflare-workers-postgres-client/workers-override'; | ||
``` | ||
## How it works | ||
@@ -39,0 +56,0 @@ |
531583
65