-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: use weak references for stored threadsafe functions #5025
Conversation
🦋 Changeset detectedLatest commit: 6011166 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -0,0 +1,41 @@ | |||
const edr = require("@nomicfoundation/edr") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fvictorio should this file be kept? Feel free to modify this to be automatically testable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced this with an e2e fixture project. This will fail now because the EDR dependency is not published yet though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran some manual tests and it seems to work fine:
- Running a script with
hh run
- Running a script with
node --require hardhat/register
- Running a script with
node script.js
, where the script explicitly requires the HRE - Running
hh test
- Running
mocha --require hardhat/register
- Running scripts and tests in a typescript project
Fixes NomicFoundation/edr#339 & #4997.
In the process of making this fix, I also bumped
napi
to v2.16.0. As it doesn't affect the generatedindex.d.ts
ofedr_napi
, this can still be considered a patch version bump for EDR.