Conversation
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #4081 +/- ##
==========================================
- Coverage 99.17% 99.17% -0.01%
==========================================
Files 1172 1172
Lines 3888 3884 -4
Branches 693 693
==========================================
- Hits 3856 3852 -4
Misses 28 28
Partials 4 4
🚀 New features to boost your workflow:
|
9f5be3d to
791933f
Compare
791933f to
578e7d6
Compare
Shinigami92
left a comment
There was a problem hiding this comment.
I talked to my AI and we agree: this is an acceptable breaking change and would not affect an end-user. The only affected users by this breaking change are meta-framework contributors which extends for one of the abstract classes, but even then these are not made public through dist/index.ts and therefore would require a (theoretically not officially supported) deep import.
It is a breaking change because the faker property has an access level of protected. Simply extending any module (or the module base) and accessing faker (which is normal to do prior to SMF) would now break. const AirlineModuleCtor = faker.airline.constructor.prototype as { new (): AirlineModule }
class MyCustomAirlineModule extends AirlineModuleCtor {
abc() {
return this.faker.string.sample(); // error: faker is not defined
}
} |
You don't even need to go that far, already |
|
Should we write a migration guide for this? |
If @matthewmayer says no to that, I think we are safe to merge without a migration guide here. |
578e7d6 to
2ce138a
Compare
2ce138a to
a718c18
Compare
matthewmayer
left a comment
There was a problem hiding this comment.
I'm ok with no migration guide for this change.
Continuation of #3748
FakerandSimpleFakerinside modules withFakerCore.HelpersModuleis the only module, that retains a reference toFakeras it needs it for the module tree.Fakerconstructor, as they require a reference to theFakerCoreinstance, that is passed as constructor parameter.Fakerinstances viafaker.airline.faker.