Skip to content

Upgrading hashie 5 to 6

Breaking5.2.0 → 6.0.0Breaking6Other5

BreakingUpgrade verdict

6 breaking changes.

  • Loading a Mash from YAML no longer evaluates embedded ERB templates by default.
  • DeepMerge now keeps the subclass of hashes passed in instead of converting them to plain hashes.
  • DeepMerge now copies containers the same way in all cases, which can change the identity of merged results.
  • Mash now keeps custom Hash subclasses as values instead of converting them.
Top 3 of 6 that need code or config changes
Breaking6
Default Mash.load to YAML without ERB.
Mash.load
Preserve incoming DeepMerge hash subclasses by default.
DeepMerge
Use consistent container copying in DeepMerge.
DeepMerge
Preserve custom Hash values in Mash.
Mash
Standardize internal helpers and prevent property collisions.
Return empty arrays for missing DeepFind matches.
DeepFind

Generated by DepDelta from published Ruby source. Not mixed with prose notes.

  • removed: method Clash.merge_store(_, *)
  • removed: protected method Mash.method_name_and_suffix(_)
  • removed: protected method Mash.method_suffix(_)
  • removed: static method Utils.integer_classes()
  • removed: protected method MethodOverridingWriter.already_overridden?(_)
  • removed: protected method RedefineMethod.method?(_)
  • removed: protected method RedefineMethod.redefine_method(_)
  • removed: method ClassMethods.stringify_keys_recursively!(_)
  • removed: method ClassMethods.symbolize_keys_recursively!(_)