alchemy 2.0.0-beta.31 → 2.0.0-beta.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "2.0.0-beta.31",
3
+ "version": "2.0.0-beta.32",
4
4
  "homepage": "https://alchemy.run",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sam Goodwin <sam@alchemy.run>",
@@ -657,9 +657,11 @@ const redeployIfStale = ({
657
657
  isCI: boolean;
658
658
  }) =>
659
659
  Effect.gen(function* () {
660
- if (yield* checkStateStoreVersion(url)) return undefined;
660
+ const { matches, expected, observed } = yield* checkStateStoreVersion(url);
661
+ if (matches) return undefined;
661
662
  yield* Clank.info(
662
- `Cloudflare State Store '${scriptName}' is out of date; redeploying...`,
663
+ `Cloudflare State Store '${scriptName}' is out of date ` +
664
+ `(expected v${expected}, observed v${observed ?? "unknown"}); redeploying...`,
663
665
  );
664
666
  return yield* finishBootstrap({
665
667
  scriptName,
@@ -704,7 +706,7 @@ const checkStateStoreVersion = (url: string) =>
704
706
  "alchemy.state_store.observed_version": result?.version ?? -1,
705
707
  "alchemy.state_store.version_match": matches,
706
708
  });
707
- return matches;
709
+ return { matches, expected: STATE_STORE_VERSION, observed: result?.version };
708
710
  }).pipe(
709
711
  Effect.withSpan("state_store.check_version", {
710
712
  attributes: { "alchemy.state_store.op": "check_version" },
@@ -164,8 +164,6 @@ const stack = Layer.succeed(
164
164
  );
165
165
 
166
166
  const exportsEffect = tag.asEffect().pipe(
167
- Effect.tap(() => Console.log("BARR")),
168
- Effect.tapError(() => Console.log("BARR")),
169
167
  Effect.flatMap(func => func.RuntimeContext.exports),
170
168
  Effect.provide(
171
169
  layer.pipe(