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

feat: esm #131

Merged
merged 1 commit into from
Nov 28, 2022
Merged

feat: esm #131

merged 1 commit into from
Nov 28, 2022

Conversation

ThaUnknown
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

  • Documentation update
  • Bug fix
  • New feature
  • Other, please explain:

What changes did you make? (Give an overview)

  • chore: update docs and package description
  • refactor: switch to esm imports and exports

Which issue (if any) does this pull request address?

Is there anything you'd like reviewers to focus on?

@welcome
Copy link

welcome bot commented Nov 14, 2022

🙌 Thanks for opening this pull request! You're awesome.

@ThaUnknown ThaUnknown mentioned this pull request Nov 14, 2022
27 tasks
@ckcr4lyf
Copy link
Contributor

ckcr4lyf commented Nov 15, 2022

Nice one, I had ended up making my own fork because I needed ESM support.

Would you consider adding a types file for Typescript? I think one of the biggest problems is the current types never worked for me in Typescript.

This is my types file: https://github.com/ckcr4lyf/bencode-esm/blob/6b9256a519753252bce44ac568b5adbc255c919c/lib/index.d.ts , to import as a named default https://github.com/ckcr4lyf/qbit-race/blob/2e56bda3372ed022effcb1114fab24f74304c926/src/helpers/torrent.ts#L1

@ThaUnknown
Copy link
Member Author

no, this is ESM, make you own PR

@ThaUnknown ThaUnknown enabled auto-merge (squash) November 25, 2022 02:01
@ThaUnknown
Copy link
Member Author

force pushed because Semantic Pull Request is trolling

@ThaUnknown ThaUnknown merged commit b111818 into webtorrent:master Nov 28, 2022
@welcome
Copy link

welcome bot commented Nov 28, 2022

🎉 Congrats on getting your first pull request landed!

webtorrent-bot pushed a commit that referenced this pull request Nov 28, 2022
# [3.0.0](v2.0.3...v3.0.0) (2022-11-28)

### Features

* esm ([#131](#131)) ([b111818](b111818))

### BREAKING CHANGES

* ESM only
@webtorrent-bot
Copy link

🎉 This PR is included in version 3.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.

4 participants