Ruby 3.1 adds Enumerable#compact and Enumerator::Lazy#compactRuby 3.1 adds Enumerable#compact and Enumerator::Lazy#compact to return a copy of `self` with all `nil` elements removed.
React 17 runs useEffect cleanup functions asynchronouslyReact 17 executes useEffect cleanup functions asynchronously, improving the performance of large applications.
Rails 7 adds encryption to ActiveRecordRails 7 supports application-level encryption. We can declare which attributes should be encrypted and, ActiveRecord will encrypt and decrypt when necessary.
Rails 7 ensures has_one autosave association callbacks get called onceIn Rails 7, the autosave association callbacks for the has_one are non-cyclic.
Redux 4.1.0 converts error messages from strings to error code indexesRedux 4.1.0 extracts error messages from production build, converts them into error code indexes, thereby shrinking the bundle size.
Rails 7 allows access to nested encrypted secrets by method callsWe can now access nested secrets stored in credentials.yml.enc using the dot (.) syntax instead of using [ ]
Rails 7 adds disable_joins: true option to has_one :through associationIn multiple database applications, associations can't join across databases. When set, Rails makes 2 or more queries rather than using join for associations.
Rails 7 adds `Enumerable#sole` to return a sole item in the enumerableEnumerable#sole returns the sole item in the enumerable and raises an exception if no items or more than one item is found.
Rails 7 adds range serializer for ActiveJobActiveJob in Rails 7 allows a range to be passed as an argument to perform method.
Ruby 3.1 Enumerable#tally now accepts an optional hash to count occurrencesRuby 3.1 extends the functionality of the Enumerable#tally method introduced in Ruby 2.7. We can now pass another hash whose counts would be added to the resulting tally hash.