All Versions
18
Latest Version
Avg Release Cycle
58 days
Latest Release
473 days ago

Changelog History
Page 1

  • v6.1.0 Changes

    July 08, 2020
    • โž• Added: public reader for the evaluation instance, helpful for building interrelated associations
    • ๐Ÿ”„ Changed: raise a more helpful error when passing an invalid argument to an association
    • ๐Ÿ›  Fixed: Ruby 2.7 kwarg deprecation warnings
  • v6.0.2 Changes

    June 20, 2020

    ๐Ÿ›  Fixed: bug causing traits to consume more memory each time they were used

  • v6.0.1 Changes

    June 19, 2020

    ๐Ÿ›  Fixed: bug with constant resolution causing unexpected uninitialized constant errors

  • v6.0.0 Changes

    June 19, 2020
    • โž• Added: automatic definition of traits for Active Record enum attributes, enabled by default
    • Added: traits_for_enum method to define traits for non-Active Record enums
    • Added: build_stubbed_starting_id= option to define the starting id for build_stubbed
    • โœ‚ Removed: deprecated methods on the top-level FactoryBot module meant only for internal use
    • โœ‚ Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)
  • v5.2.0 Changes

    April 24, 2020
    • โž• Added: Pass index to block for *_list methods
    • Deprecated: top-level methods meant only for internal use: callbacks, configuration, constructor, initialize_with, register_sequence, resent_configuration, skip_create, to_create
  • v5.1.2 Changes

    March 25, 2020
    • ๐Ÿ›  Fixed: Ruby 2.7 keyword deprecation warning in FactoryBot.lint
  • v5.1.1 Changes

    October 02, 2019
    • ๐Ÿ‘Œ Improved: performance of traits
    • ๐Ÿ›  Fixed: registering strategies on JRuby
  • v5.1.0 Changes

    September 21, 2019
    • โž• Added: "Did you mean?" style error message to help with typos in association declarations
    • ๐Ÿ’… Changed: NoMethodError for static attributes now offers a "Did you mean?" style message
    • ๐Ÿ›  Fixed: avoid undefining inherited evaluator methods
    • ๐Ÿ›  Fixed: avoid stubbing id for records without a primary key
    • ๐Ÿ›  Fixed: raise a helpful error for self-referencing traits to avoid a SystemStackError
    • Deprecated: top-level methods meant only for internal use: allow_class_lookup, allow_class_lookup=, register_trait, trait_by_name, traits, sequence_by_name, sequences, factory_by_name, register_factory, callback_names, register_callback, register_default_callbacks, register_default_strategies, strategies
  • v5.0.2 Changes

    February 22, 2019

    ๐Ÿ›  Bugfix: raise "Trait not registered" error when passing invalid trait arguments

  • v5.0.1 Changes

    February 15, 2019
    • ๐Ÿ›  Bugfix: Do not raise error when two sequences have the same name
      in two traits that have the same name