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: Remove flat util fn #136

Merged
merged 2 commits into from
Aug 5, 2021
Merged

Conversation

jimmywarting
Copy link
Contributor

[ ] 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

@jimmywarting jimmywarting changed the title Rm flat fix: Remove flat util fn Jul 19, 2021
@alxhotel
Copy link
Member

LGTM, but I think we haven't yet dropped support for Node 10, right? @jimmywarting

@jimmywarting
Copy link
Contributor Author

Seems like you only test 14...

fail-fast: false
matrix:
os:
- ubuntu-latest
node:
- '14'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

@alxhotel
Copy link
Member

True. If that's what we are supporting as minimum then we should update the package.json file. @DiegoRBaquero ?

@jimmywarting
Copy link
Contributor Author

There is talks about switching to ESM, meaning: v12.20+

but the blocker is the testing framework that we use

@DiegoRBaquero
Copy link
Member

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) {
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DiegoRBaquero DiegoRBaquero merged commit de7e8a9 into webtorrent:master Aug 5, 2021
webtorrent-bot pushed a commit that referenced this pull request Aug 5, 2021
# [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
@webtorrent-bot
Copy link

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants