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 consumption from Next.js client components #464

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

wKovacs64
Copy link
Owner

@wKovacs64 wKovacs64 commented Apr 29, 2024

Apparently, process exists but .versions.node does not. Next.js may be doing something weird with process so we'll just be more cautious when testing for Node.js v18 in the fetch polyfill.

Fixes #463

Apparently, `process` exists but `.versions.node` does not. Next.js may
be doing something weird with `process` so we'll just be more cautious
when testing for Node.js v18 in the `fetch` polyfill.
Copy link

changeset-bot bot commented Apr 29, 2024

🦋 Changeset detected

Latest commit: eda2c27

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
hibp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b2901eb) to head (eda2c27).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #464   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines         1194      1195    +1     
  Branches        31        31           
=========================================
+ Hits          1194      1195    +1     
Files Coverage Δ
src/api/fetch-polyfill.ts 100.00% <100.00%> (ø)

@wKovacs64 wKovacs64 merged commit 1dd6547 into main Apr 29, 2024
16 checks passed
@wKovacs64 wKovacs64 deleted the nextjs-fetch branch April 29, 2024 15:15
@github-actions github-actions bot mentioned this pull request Apr 29, 2024
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.

TypeError: Cannot read properties of undefined (reading 'startsWith')
1 participant