From 17f74e7b3dbe956446dda6b3a0cbe73c9f8f7b70 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Tue, 11 Nov 2025 09:02:34 -1000 Subject: [PATCH] Update CHANGELOG for PRs #1976 and #1972 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added entries for: - PR #1976: Polished error messages in configuration validation - PR #1972: Fixed component registration race condition with defer loading 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c6d318fd4..f0401f8ee5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ Changes since the last non-beta release. - **Improved RSC Payload Error Handling**: Errors that happen during generation of RSC payload are transferred properly to rails side and logs the error message and stack. [PR #1888](https://github.com/shakacode/react_on_rails/pull/1888) by [AbanoubGhadban](https://github.com/AbanoubGhadban). +- **Polished Error Messages**: Improved configuration error message wording for loading strategy validation. Error messages now show the preferred `:defer` option first, followed by `:sync`. [PR 1976](https://github.com/shakacode/react_on_rails/pull/1976) by [justin808](https://github.com/justin808). + #### Changed - **Shakapacker 9.0.0 Upgrade**: Upgraded Shakapacker from 8.2.0 to 9.0.0 with Babel transpiler configuration for compatibility. Key changes include: @@ -51,6 +53,8 @@ Changes since the last non-beta release. #### Bug Fixes +- **Component Registration Race Condition**: Fixed intermittent component registration errors caused by a race condition with defer script loading. Changed default loading strategy from `:sync` to `:defer` to ensure deterministic script execution order. This ensures component registrations complete before React hydration starts, preventing "Component not registered" errors in CI and production. [PR 1972](https://github.com/shakacode/react_on_rails/pull/1972) by [justin808](https://github.com/justin808). + - **Use as Git dependency**: All packages can now be installed as Git dependencies. This is useful for development and testing purposes. See [CONTRIBUTING.md](./CONTRIBUTING.md#git-dependencies) for documentation. [PR #1873](https://github.com/shakacode/react_on_rails/pull/1873) by [alexeyr-ci2](https://github.com/alexeyr-ci2). #### Breaking Changes