feat(lazy-loading): add Faker::Config.lazy_loading?#3226
Merged
stefannibrasil merged 1 commit intolazy-loading-betafrom Mar 10, 2026
Merged
feat(lazy-loading): add Faker::Config.lazy_loading?#3226stefannibrasil merged 1 commit intolazy-loading-betafrom
Faker::Config.lazy_loading?#3226stefannibrasil merged 1 commit intolazy-loading-betafrom
Conversation
Adds configuration option to enable/disable lazy loading so it can be explicitly enabled during beta testing.
stefannibrasil
pushed a commit
that referenced
this pull request
Apr 14, 2026
Adds configuration option to enable/disable lazy loading so it can be explicitly enabled during beta testing.
stefannibrasil
pushed a commit
that referenced
this pull request
Apr 15, 2026
Adds configuration option to enable/disable lazy loading so it can be explicitly enabled during beta testing.
stefannibrasil
added a commit
that referenced
this pull request
Apr 16, 2026
* feat(lazy-loading): add `Faker::Config.lazy_loading?` (#3226) Adds configuration option to enable/disable lazy loading so it can be explicitly enabled during beta testing. * Introduce lazy loading as an optional config (#3228) * Lazy load generators To keep this change backwards compatible, we introduce lazy loading as a config option. We need to load main classes first for nested generators such as 'music' and when lazy loading is not enabled. 'internet/http'. This will avoid the need for renaming these generators. Co-authored-by: Thiago Araujo <thd.araujo@gmail.com> * Clean up skipped generators from determinism test * Rename test file following conventions * Run lazy loading smoke test in CI * Check for true values when setting ENV['FAKER_LAZY_LOAD'] Covers the case of users setting the env using truthy values. * Better code for checking for ENV values --------- Co-authored-by: Thiago Araujo <thd.araujo@gmail.com> --------- Co-authored-by: Thiago Araujo <707418+thdaraujo@users.noreply.github.com> Co-authored-by: Thiago Araujo <thd.araujo@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(Fixes #3225)
Adds configuration option to enable/disable lazy loading so it can be explicitly enabled during beta testing.
This flag will be used to enable lazy loading generators.