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(build): transpile for commonjs, use wrapper for esm #170

Merged
merged 9 commits into from
Oct 17, 2022
Merged

Conversation

mirceanis
Copy link
Member

@mirceanis mirceanis commented Oct 14, 2022

BREAKING CHANGE: previous versions (<7.0.0) would be transpiled twice by microbundle, but this seems to be an anti-pattern

I suspect that for ESM projects, this might reduce the effectiveness of tree-shaking.

mirceanis and others added 9 commits October 13, 2022 14:53
## [6.2.4-alpha.1](6.2.3...6.2.4-alpha.1) (2022-10-13)

### Bug Fixes

* create alpha release ([1d5d5f2](1d5d5f2))
BREAKING CHANGE: ESM is only supported through a wrapper
# [7.0.0-alpha.1](6.2.4-alpha.1...7.0.0-alpha.1) (2022-10-13)

### Bug Fixes

* add esm wrapper instead of double transpile ([d2bbeaf](d2bbeaf))

### BREAKING CHANGES

* ESM is only supported through a wrapper
# [7.0.0-alpha.2](7.0.0-alpha.1...7.0.0-alpha.2) (2022-10-14)

### Bug Fixes

* **build:** build commonjs and also expose esm wrapper ([522c199](522c199))
# [7.0.0-alpha.3](7.0.0-alpha.2...7.0.0-alpha.3) (2022-10-14)

### Bug Fixes

* **build:** use commonjs module in tsconfig ([e66d054](e66d054))
* **ci:** run tests on a matrix of node versions ([3825ac0](3825ac0))
@mirceanis mirceanis merged commit 5eba679 into master Oct 17, 2022
uport-automation-bot pushed a commit that referenced this pull request Oct 17, 2022
# [7.0.0](6.2.3...7.0.0) (2022-10-17)

### Bug Fixes

* **build:** transpile for commonjs, use wrapper for esm ([#170](#170)) ([5eba679](5eba679))

### BREAKING CHANGES

* **build:** previous versions (<7.0.0) would be transpiled twice by microbundle, but this seems to be [anti-pattern](https://redfin.engineering/node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1)

Please raise an issue on https://github.com/decentralized-identity/ethr-did-resolver if this change is incompatible with your tech stack and there are no workarounds.
@uport-automation-bot
Copy link
Collaborator

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

3 participants