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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

michenly
Copy link
Contributor

@michenly michenly commented Jun 14, 2024

Closes #2126

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 June 21, 2024 8:43 AM
classic-remix ✅ Successful (Logs) Preview deployment Inspect deployment June 21, 2024 8:43 AM
optimistic-cart-ui ✅ Successful (Logs) Preview deployment Inspect deployment June 21, 2024 8:43 AM
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment June 21, 2024 8:43 AM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment June 21, 2024 8:43 AM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment June 21, 2024 8:43 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 👍

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