You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update CHANGELOG for v16.2.0.beta.19 release (#2209)
### Summary
Consolidate all prior beta versions into a single v16.2.0.beta.19
changelog section. This reflects the packages published to npm and
RubyGems:
- react-on-rails 16.2.0-beta.19
- react-on-rails-pro 16.2.0-beta.19
- react_on_rails 16.2.0.beta.19
- react_on_rails_pro 16.2.0.beta.19
Added new changelog entries for recent fixes since beta.13:
- SWC compiler detection improvements (PR #2135)
- TypeScript processPromise return type fix (PR #2204)
- connection_pool 3.0+ compatibility fix (PR #2125, addressing issue
#2185)
Also updated the release script's "Next steps" message to mention the
`/update-changelog` Claude Code command as the preferred option for
updating changelogs after releases.
### Pull Request checklist
- [x] Update CHANGELOG file
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
* **New Features**
* Automatic SWC package detection and installation; SWC becomes default
for Shakapacker 9.3.0+ with automatic package installation.
* **Bug Fixes**
* Resolved TypeScript compilation issue.
* Fixed compatibility with connection_pool 3.0+.
* **Chores**
* Version updated to 16.2.0.beta.19.
* Changelog references updated.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ After a release, please make sure to run `bundle exec rake update_changelog`. Th
21
21
22
22
### [Unreleased]
23
23
24
-
### [v16.2.0.beta.13] - 2025-12-07
24
+
### [16.2.0.beta.19] - 2025-12-10
25
25
26
26
Changes since the last non-beta release (16.1.1).
27
27
@@ -62,6 +62,8 @@ Changes since the last non-beta release (16.1.1).
62
62
63
63
#### Improved
64
64
65
+
-**SWC Compiler Detection**: Added intelligent detection and automatic installation of SWC transpiler packages (`@swc/core` and `swc-loader`) when the generator detects SWC configuration. For Shakapacker 9.3.0+ (where SWC is the default transpiler), required packages are now installed automatically. Includes graceful error handling and YAML parsing security improvements. [PR 2135](https://github.com/shakacode/react_on_rails/pull/2135) by [justin808](https://github.com/justin808).
66
+
65
67
-**Enhanced bin/dev Error Messages**: Improved error messages when `bin/dev` fails by suggesting the `--verbose` flag for detailed debugging output. The verbose flag now properly cascades to child processes via the `REACT_ON_RAILS_VERBOSE` environment variable, making troubleshooting pack generation failures significantly easier. [PR 2083](https://github.com/shakacode/react_on_rails/pull/2083) by [justin808](https://github.com/justin808).
66
68
67
69
-**Automatic Precompile Hook Coordination in bin/dev**: The `bin/dev` command now automatically runs Shakapacker's `precompile_hook` once before starting development processes and sets `SHAKAPACKER_SKIP_PRECOMPILE_HOOK=true` to prevent duplicate execution in spawned webpack processes.
@@ -77,6 +79,10 @@ Changes since the last non-beta release (16.1.1).
77
79
78
80
#### Fixed
79
81
82
+
-**TypeScript processPromise Return Type**: Fixed TypeScript compilation error in `serverRenderReactComponent.ts` where the type checker couldn't properly narrow the union type after the `isValidElement` check. Added explicit type assertion to `FinalHtmlResult` to resolve the issue. [PR 2204](https://github.com/shakacode/react_on_rails/pull/2204) by [justin808](https://github.com/justin808).
83
+
84
+
-**connection_pool 3.0+ Compatibility**: Fixed `ArgumentError: wrong number of arguments` when using `connection_pool` gem version 3.0 or later. The gem's API changed from accepting a positional hash to requiring keyword arguments. This fix ensures compatibility with both older and newer versions of `connection_pool`. Addresses [issue 2185](https://github.com/shakacode/react_on_rails/issues/2185). [PR 2125](https://github.com/shakacode/react_on_rails/pull/2125) by [justin808](https://github.com/justin808).
85
+
80
86
-**RSpec Helper Optimization with Private SSR Directories**: Fixed RSpec helper optimization bug that caused tests to run with stale server-side code when server bundles are stored in private `ssr-generated/` directories. The helper now automatically monitors server bundles and other critical files, ensuring proper rebuild detection even when assets are in separate directories from the manifest. [PR 1838](https://github.com/shakacode/react_on_rails/pull/1838) by [justin808](https://github.com/justin808).
81
87
82
88
-**Pack Generation in bin/dev from Bundler Context**: Fixed pack generation failing with "Could not find command 'react_on_rails:generate_packs'" when running `bin/dev` from within a Bundler context. The fix wraps the bundle exec call with `Bundler.with_unbundled_env` to prevent interception. [PR 2085](https://github.com/shakacode/react_on_rails/pull/2085) by [justin808](https://github.com/justin808).
0 commit comments