-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
refactor!: get rid of export = #849
Conversation
We need to decide if we want to introduce a breaking change and users need to use |
Codecov Report
@@ Coverage Diff @@
## main #849 +/- ##
==========================================
+ Coverage 99.13% 99.64% +0.51%
==========================================
Files 1958 1958
Lines 210793 210679 -114
Branches 906 907 +1
==========================================
+ Hits 208964 209931 +967
+ Misses 1753 729 -1024
+ Partials 76 19 -57
|
An alternative could be to switch totally to // js
const fakerEn = require('@faker-js/faker/locale/en').faker
const { faker: fakerEn } = require('@faker-js/faker/locale/en')
// ts
const { faker } from '@faker-js/faker/locale/en'
const { faker as fakerEn } from '@faker-js/faker/locale/en' This is more verbose but also has the benefit of just swapping out from |
I like that alternative proposal. |
@prisis I would like to hear your vote for that, if you also accept, I will refactor it to that |
Im voting for the alternative proposal too, @Shinigami92 |
cb28b85
to
dcbf3e9
Compare
d72331c
to
9ff03d7
Compare
Doesn't this contain the changes from? |
Not anymore 😉 |
This PR is an requirement for #848