Use wrapped functions instead of classes for modules #1250
Labels
breaking change
Cannot be merged when next version is not a major release
c: refactor
PR that affects the runtime behavior, but doesn't add new features or fixes bugs
Milestone
Clear and concise description of the problem
Currently we need to bind
this
in the constructor of each module to support stuff likeSuggested solution
Instead of using js classes we could instead use wrapped functions like e.g. composables are working in Vue / VueUse
Alternative
No response
Additional context
This might be a breaking change as with that you would not create a new class via
new Faker(...)
anymoreAlso we need to benchmark if there would be performance regressions or benefits 🤔
I would like to setup a PR if this proposal gets accepted by the team
The text was updated successfully, but these errors were encountered: