export-runtime 0.0.15 → 0.0.17

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.
@@ -393,6 +393,7 @@ const wranglerLines = [
393
393
  `name = "${workerName}"`,
394
394
  `main = "node_modules/export-runtime/entry.js"`,
395
395
  `compatibility_date = "2024-11-01"`,
396
+ `compatibility_flags = ["nodejs_compat"]`,
396
397
  ``,
397
398
  ];
398
399
 
package/handler.js CHANGED
@@ -96,9 +96,8 @@ export const createHandler = (moduleMap, generatedTypes, minifiedCore, coreId, m
96
96
  const namedExports = keys
97
97
  .map((key) => `export const ${key} = createProxy([${JSON.stringify(route)}, ${JSON.stringify(key)}]);`)
98
98
  .join("\n");
99
- // Include default export (client) if configured
100
- const defaultExport = hasClient ? `\nexport { default } from ".${cpath}";` : "";
101
- return `import { createProxy } from ".${cpath}";\n${namedExports}${defaultExport}`;
99
+ // Always include default export (client) - it will be null if no bindings configured
100
+ return `import { createProxy } from ".${cpath}";\nexport { default } from ".${cpath}";\n${namedExports}`;
102
101
  };
103
102
 
104
103
  const buildExportModule = (cpath, route, name) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-runtime",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Cloudflare Workers ESM Export Framework Runtime",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -36,7 +36,6 @@
36
36
  "bin/auth.mjs"
37
37
  ],
38
38
  "dependencies": {
39
- "better-auth": "^1.2.0",
40
39
  "devalue": "^5.1.1",
41
40
  "oxc-minify": "^0.121.0",
42
41
  "oxc-parser": "^0.121.0"