Skip to content

New release 3.0.0 #21

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

Merged
merged 6 commits into from
Feb 10, 2022
Merged

New release 3.0.0 #21

merged 6 commits into from
Feb 10, 2022

Conversation

paulrutter
Copy link
Contributor

3.0.0

  • Added Node 16 support (by merging Fix recursion issue #20, Thanks Simon Abbott!).
    This fixes a recursion issue.
  • Removed "GC_MONITORING" at it relied on gc-stats, which is no longer maintained (and contained security issues)
  • Updated node-pre-gyp to @mapbox/node-pre-gyp so security issues are mitigated

This is a backwards incompatible release, as GC_MONITORING is no longer supported.

simon-abbott and others added 6 commits January 5, 2022 14:30
Creating a heapdump forces a garbage collection, which can then trigger
the OOM flow again, which then calls OnOOMError which then creates a
heapdump which forces GC which triggers OOM which... This recursive loop
is bad for several reasons, not the least of which being if addTimestamp
is true it will keep appending the timestamp to the filename, even past
the end of the allotted 256 chars. Rather than let this happen let's
instead treat it as an error condition and bail.
As noted in the last commit, capturing a heap snapshot forces a garbage
collection which can recursively trigger the OOM flow. To prevent this
we now raise the heap size limit while capturing this last dump. As far
as I can tell this is safe, even in memory-constrained environments,
because by the time we get to this section the JS execution has already
been halted, so the JS heap won't grow any further.
- Update lock file to NPM format 2
- Replace `node-pre-gyp` with replacement `@mapbox/node-pre-gyp`
- Add 15 and 16 to Travis
- Updated CHANGELOG.md and README.md
- Removed `GC_MONITORING` as option and `gc-stats` with it
@paulrutter paulrutter merged commit abee4b5 into master Feb 10, 2022
@paulrutter paulrutter deleted the feature/fix-recursion-beta branch February 10, 2022 12:24
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.

None yet

2 participants