Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @shopify/oxygen-workers-types to v4.1.2 #2252

Merged
merged 22 commits into from
Jul 3, 2024

Conversation

michenly
Copy link
Contributor

@michenly michenly commented Jun 14, 2024

Closes #2126

Update: #2252 (comment)

@michenly michenly requested review from frandiox and vincentezw June 14, 2024 18:41
Copy link
Contributor

@frandiox frandiox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michenly Thanks! I've made a few changes:

  • Updated hydrogen-codegen, cli-hydrogen and hydrogen to avoid depending on workers types since these packages should be agnostic.
    • Sometimes we rely on workers types for things like doc examples. For this, we use a local dev.env.d.ts with worker type mocks.
  • Updated the changeset with the things that actually change (e.g. bumping a devDependency shouldn't need a changeset/release).
  • I found related type issues and also fixed them.

Copy link
Contributor

shopify bot commented Jun 17, 2024

Oxygen deployed a preview of your mc-update-oxygen-workers-types branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment July 3, 2024 6:51 AM
classic-remix ✅ Successful (Logs) Preview deployment Inspect deployment July 3, 2024 6:51 AM
optimistic-cart-ui ✅ Successful (Logs) Preview deployment Inspect deployment July 3, 2024 6:51 AM
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment July 3, 2024 6:51 AM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment July 3, 2024 6:51 AM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment July 3, 2024 6:51 AM

Learn more about Hydrogen's GitHub integration.

Copy link
Contributor

@frandiox frandiox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While working on fixing these issues I noticed there's a problem in oxygen-workers-types. I've opened a PR and we should probably wait for that before releasing this change: https://github.com/Shopify/oxygen-workers-types/pull/228

@frandiox frandiox changed the title Update @shopify/oxygen-workers-types to v4.1.1 Update @shopify/oxygen-workers-types to v4.1.2 Jun 21, 2024
Copy link
Contributor

@frandiox frandiox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated to 4.1.2 and it seems to be working now without the moduleResolution: Bundler workaround 👍

@frandiox
Copy link
Contributor

frandiox commented Jul 3, 2024

Changes in this PR:

  • Update @shopify/oxygen-workers-types to v4.1.2 to fix an issue on Windows related to requiring Git on install.
  • Update our usage of local dev types in Hydrogen and the CLI. Before, we were incorrectly relying on @shopify/oxygen-workers-types in non-worker environment packages.
  • Renamed and updated some local env.d.ts files to be more descriptive.

@frandiox frandiox merged commit a0e84d7 into main Jul 3, 2024
13 checks passed
@frandiox frandiox deleted the mc-update-oxygen-workers-types branch July 3, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

im having these issues while setting up local development on windows PC.
2 participants