-
-
Notifications
You must be signed in to change notification settings - Fork 92
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: Remove flat util fn #136
Conversation
LGTM, but I think we haven't yet dropped support for Node 10, right? @jimmywarting |
Seems like you only test 14... create-torrent/.github/workflows/ci.yml Lines 10 to 20 in ffdce7d
|
True. If that's what we are supporting as minimum then we should update the |
There is talks about switching to ESM, meaning: v12.20+ but the blocker is the testing framework that we use |
12 is the minimum right now. |
announceList.push([[global.WEBTORRENT_ANNOUNCE]]) | ||
} else if (Array.isArray(global.WEBTORRENT_ANNOUNCE)) { | ||
announceList = announceList.concat(global.WEBTORRENT_ANNOUNCE.map(u => [u])) | ||
if (globalThis.WEBTORRENT_ANNOUNCE) { |
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.
Is this backwards compatible with global through browserify?
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.
# [5.0.0](v4.7.2...v5.0.0) (2021-08-05) ### Bug Fixes * Remove flat util fn ([#136](#136)) ([de7e8a9](de7e8a9)) ### BREAKING CHANGES * Node 12+ supported
🎉 This PR is included in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
[ ] Documentation update
[ ] Bug fix
[ ] New feature
[x] Other, please explain: Fixed a Todo about removing flat
...also used the globalThis namespace instead of node's only global variable