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

fix(runtime): use require in CJS build #289

Merged
merged 3 commits into from
Dec 6, 2024
Merged

fix(runtime): use require in CJS build #289

merged 3 commits into from
Dec 6, 2024

Conversation

ardatan
Copy link
Member

@ardatan ardatan commented Dec 6, 2024

Always use `require` in CJS builds to avoid confusion between `import` and `require`.
Environments like Jest etc do not support `import` on built CJS files in node_modules.

@theguild-bot
Copy link
Collaborator

theguild-bot commented Dec 6, 2024

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-mesh/fusion-runtime 0.10.17-alpha-a3a41b16b3318f0502de1434dd573fd7504d0965 npm ↗︎ unpkg ↗︎
@graphql-hive/gateway 1.6.4-alpha-a3a41b16b3318f0502de1434dd573fd7504d0965 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-opentelemetry 1.3.23-alpha-a3a41b16b3318f0502de1434dd573fd7504d0965 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-prometheus 1.3.11-alpha-a3a41b16b3318f0502de1434dd573fd7504d0965 npm ↗︎ unpkg ↗︎
@graphql-hive/gateway-runtime 1.3.11-alpha-a3a41b16b3318f0502de1434dd573fd7504d0965 npm ↗︎ unpkg ↗︎

@theguild-bot
Copy link
Collaborator

theguild-bot commented Dec 6, 2024

🚀 Snapshot Release (Binary for Linux-X64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@theguild-bot
Copy link
Collaborator

theguild-bot commented Dec 6, 2024

🚀 Snapshot Release (Binary for macOS-ARM64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@theguild-bot
Copy link
Collaborator

theguild-bot commented Dec 6, 2024

🚀 Snapshot Release (Binary for macOS-X64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@theguild-bot
Copy link
Collaborator

theguild-bot commented Dec 6, 2024

🚀 Snapshot Release (Node Docker Image)

The latest changes of this PR are available as image on GitHub Container Registry (based on the declared changesets):

ghcr.io/graphql-hive/gateway:1.6.4-alpha-a3a41b16b3318f0502de1434dd573fd7504d0965

@theguild-bot
Copy link
Collaborator

theguild-bot commented Dec 6, 2024

🚀 Snapshot Release (Bun Docker Image)

The latest changes of this PR are available as image on GitHub Container Registry (based on the declared changesets):

ghcr.io/graphql-hive/gateway:1.6.4-alpha-a3a41b16b3318f0502de1434dd573fd7504d0965-bun

@theguild-bot
Copy link
Collaborator

theguild-bot commented Dec 6, 2024

🚀 Snapshot Release (Binary for Windows-X64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@ardatan ardatan merged commit 3b901c6 into main Dec 6, 2024
36 checks passed
@ardatan ardatan deleted the cjs-mjs branch December 6, 2024 12:50
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.

2 participants