Key Features and Enhancements:
1. Active Support Improvements:
- The delegate and delegate_missing_to methods now properly handle subclasses of BasicObject, resolving previous issues that caused unexpected behaviors.
- Inflector functionality has been enhanced to ensure proper handling of locale fallbacks to English, addressing past character set-related problems.
- The as_json method now consistently returns UTF-8 strings, eliminating risks of reverting to US-ASCII encoding unexpectedly.
- Changes to TimeWithZone#xmlschema improve handling for local DateTime instances, and a new LocalCache strategy has been introduced for the MemoryStore implementation.
2. Active Record Updates:
- Significant fixes include updated management of cached query counts in the RuntimeRegistry and improved merging of relations with Arel equality predicates or nulls.
- Proper handling of SQLite3 schema dumps has been addressed for non-autoincrement integer primary keys, ensuring smoother database operations.
- For PostgreSQL users, the schema_search_path is now correctly reset and reapplied, along with restored support for using floats with enums. Enhancements to preloading associations, especially regarding subclass relationships, were also made.
3. Action View Enhancements:
- The file_field method now correctly joins MIME types with commas, even when passed as an array, resolving a potential issue.
- Improvements in strict local parsing better handle multi-line definitions.
4. Action Pack Configuration:
- New configuration options for live streaming through ActionController::Live allow users to manage state keys that shouldn't cross threads using config.action_controller.live_streaming_excluded_keys.
5. Other Updates:
- While Action Mailer did not receive new features, updates were made in Action Cable and Action Text.
- Fixes were applied to Active Storage concerning GCS signing URLs with IAM when using the ADC method, catering to specific user needs.
This release showcases the ongoing commitment of the Rails community to enhance functionality, fix bugs, and streamline user experience across its framework. Developers are encouraged to update to Rails 8.1.2 to take advantage of these improvements and ensure their applications run smoothly.
As Rails continues to evolve, we can anticipate further enhancements in future releases that will provide even richer features and improved performance for developers and users alike
Rails 8.1.2 released
Rails 8.1.2 has been officially released, featuring upgrades and bug fixes for various parts of the framework. Active Support received significant updates, including improved handling of delegate methods with BasicObject subclasses, locale inflector work, and enhanced UTF-8 string returns from as_json. Active Record also saw important fixes, such as updated query count management in the RuntimeRegistry and proper handling of SQLite3 schema dumps. The release also includes enhancements for PostgreSQL users, Action View, Action Pack, Action Cable, Action Text, and Active Storage, among other improvements.
