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

Change to ES6 #2

Merged
merged 8 commits into from
Apr 4, 2022
Merged

Change to ES6 #2

merged 8 commits into from
Apr 4, 2022

Conversation

Arcath
Copy link
Owner

@Arcath Arcath commented Apr 1, 2022

This is a Breaking Change that finally addresses the issue that this library was not being tree-shaken like you would expect it too. This meant that in a lot of cases it would require modules that are not browser compatible even when you used a function that was.

To solve this I now target es6 and have disabled sideEffects. Initial testing shows that even when importing from @arcath/utils you now only get the functions required for your named imports. This is exactly what I was aiming for.

I'm going to look at other issues and updates at the same time to see if I can make one breaking change release and drop them all at once.

BREAKING CHANGE: Now targets es6 with the build to hopefully improve tree shaking.
@codecov-commenter
Copy link

codecov-commenter commented Apr 1, 2022

Codecov Report

Merging #2 (bddf704) into master (1cbc1f6) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           32        31    -1     
  Lines          476       381   -95     
  Branches        46        45    -1     
=========================================
- Hits           476       381   -95     
Impacted Files Coverage Δ
src/classes/logger.ts 100.00% <100.00%> (ø)
src/functions/indexed-by.ts 100.00% <100.00%> (ø)
src/functions/package.ts 100.00% <100.00%> (ø)
src/functions/pick.ts 100.00% <0.00%> (ø)
src/functions/if-fn.ts 100.00% <0.00%> (ø)
src/functions/times.ts 100.00% <0.00%> (ø)
src/classes/bit-mask.ts 100.00% <0.00%> (ø)
src/functions/reduce.ts 100.00% <0.00%> (ø)
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1cbc1f6...bddf704. Read the comment docs.

This commit wont pass tests, this commit was created to give a rollback point whilst fixing esm in jest.
BREAKING CHANGE: this moves package functions which require native node functions to work, which messes up remix etc...
@Arcath Arcath merged commit 453c388 into master Apr 4, 2022
@github-actions
Copy link

github-actions bot commented Apr 4, 2022

🎉 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.

2 participants