Upgrading hashie 5 to 6
Breaking5.2.0 → 6.0.0Breaking6Other5
BreakingUpgrade verdict
6 breaking changes.
In plain terms
- 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.
Must act Top 3 of 6 that need code or config changes
What you must change
Breaking6
Default Mash.load to YAML without ERB.
Mash.loadPreserve incoming DeepMerge hash subclasses by default.
DeepMergeUse consistent container copying in DeepMerge.
DeepMergePreserve custom Hash values in Mash.
MashStandardize internal helpers and prevent property collisions.
Return empty arrays for missing DeepFind matches.
DeepFindAPI changes
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!(_)