alchemy 2.0.0-beta.4 → 2.0.0-beta.6

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/bin/alchemy.sh CHANGED
@@ -7,7 +7,7 @@ else
7
7
  dir="$(cd "$(dirname "$0")" && pwd)"
8
8
  fi
9
9
  if command -v bun >/dev/null 2>&1; then
10
- exec bun "$dir/alchemy.ts" "$@"
10
+ exec bun "$dir/alchemy.js" "$@"
11
11
  else
12
12
  exec node "$dir/alchemy.js" "$@"
13
13
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.6",
4
4
  "homepage": "https://alchemy.run",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sam Goodwin <sam@alchemy.run>",
@@ -1165,7 +1165,16 @@ export const WorkerProvider = () =>
1165
1165
  cloudflareRolldown({
1166
1166
  compatibilityDate:
1167
1167
  props.compatibility?.date ?? defaultCompatibilityDate,
1168
- compatibilityFlags: props.compatibility?.flags,
1168
+ compatibilityFlags: props.compatibility?.flags
1169
+ ? [
1170
+ ...props.compatibility.flags,
1171
+ ...(props.isExternal ? [] : ["nodejs_compat"]),
1172
+ ].filter(
1173
+ (value, index, self) => self.indexOf(value) === index,
1174
+ )
1175
+ : props.isExternal
1176
+ ? []
1177
+ : ["nodejs_compat"],
1169
1178
  }),
1170
1179
  plugins,
1171
1180
  ...(props.build?.metafile ? [Sonda({ open: false })] : []),
package/src/Platform.ts CHANGED
@@ -159,7 +159,7 @@ export interface Platform<
159
159
  ): Effect.Effect<
160
160
  Resource & Rpc<Shape>,
161
161
  never,
162
- | Provider<Resource>
162
+ | Resource["Providers"]
163
163
  | PropsReq
164
164
  | Exclude<InitReq, Services | PlatformServices>
165
165
  >;