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
Implement Pro license structure and feature gating (#1791)
* Separate core MIT and Pro-licensed functionality into distinct directories
* Add runtime Pro license validation with graceful fallback to core features
* Enhance security with CSS.escape() for DOM selectors and XSS protection
* Centralize Pro feature utilities and clean architectural separation
* Add comprehensive license documentation with NOTICE files in Pro directories
This major refactoring establishes clear boundaries between open source and
proprietary code while maintaining full backward compatibility. Pro features
now require valid licensing and display warning badges when unavailable.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,21 @@ After a release, please make sure to run `bundle exec rake update_changelog`. Th
23
23
24
24
Changes since the last non-beta release.
25
25
26
+
#### Pro License Structure Implementation
27
+
28
+
**🔐 License Architecture**
29
+
30
+
-**Core/Pro separation**: Moved Pro features into dedicated `lib/react_on_rails/pro/` and `node_package/src/pro/` directories with clear licensing boundaries [PR 1791](https://github.com/shakacode/react_on_rails/pull/1791) by [abanoubghadban](https://github.com/AbanoubGhadban)
31
+
-**Runtime license validation**: Implemented Pro license gating with graceful fallback to core functionality when Pro license unavailable
32
+
-**License documentation**: Added NOTICE files in Pro directories referencing canonical `REACT-ON-RAILS-PRO-LICENSE.md`
33
+
-**Updated LICENSE.md**: Clearly distinguishes core MIT license from Pro-licensed directories
34
+
35
+
**⚡ Pro Feature Enhancements**
36
+
37
+
-**Immediate hydration**: Enhanced immediate hydration functionality with Pro license validation and warning badges
38
+
-**Security improvements**: Hardened DOM selectors using `CSS.escape()` and proper JavaScript escaping for XSS protection
39
+
-**Architecture refactoring**: Centralized Pro utilities and clean separation between core and Pro helper functionality
Copy file name to clipboardExpand all lines: LICENSE.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,12 @@
5
5
6
6
---
7
7
8
-
# MIT License
8
+
## MIT License for Core React on Rails
9
+
10
+
This license applies to all files within this repository, with the exception of the code located in the following directories, which are licensed separately under the React on Rails Pro License:
11
+
12
+
-`lib/react_on_rails/pro/`
13
+
-`node_package/src/pro/`
9
14
10
15
Copyright (c) 2017, 2018 Justin Gordon and ShakaCode
11
16
Copyright (c) 2015–2025 ShakaCode, LLC
@@ -31,3 +36,12 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
36
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
37
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
38
SOFTWARE.
39
+
40
+
---
41
+
42
+
## React on Rails Pro License
43
+
44
+
The code in the directories listed above is part of the React on Rails Pro framework and is licensed under the React on Rails Pro License.
45
+
46
+
You can find the full text of the license agreement here:
The files in this directory and its subdirectories are licensed under the **React on Rails Pro** license, which is separate from the MIT license that covers the core React on Rails functionality.
4
+
5
+
## License Terms
6
+
7
+
These files are proprietary software and are **NOT** covered by the MIT license found in the root LICENSE.md file. Usage requires a valid React on Rails Pro license.
8
+
9
+
## Distribution
10
+
11
+
Files in this directory will be **omitted** from future distributions of the open source React on Rails Ruby gem. They are exclusively available to React on Rails Pro licensees.
12
+
13
+
## License Reference
14
+
15
+
For the complete React on Rails Pro license terms, see: `REACT-ON-RAILS-PRO-LICENSE.md` in the root directory of this repository.
16
+
17
+
## More Information
18
+
19
+
For React on Rails Pro licensing information and to obtain a license, please visit:
20
+
- [React on Rails Pro](https://www.shakacode.com/react-on-rails-pro/)
0 commit comments