react-on-rails
Advanced tools
Comparing version 11.0.8 to 11.0.9
@@ -12,9 +12,10 @@ # Change Log | ||
*Please add entries here for your pull requests that are not yet released.* | ||
### [11.0.9] - 2018-05-22 | ||
### [11.0.9] - 2018-06-24 | ||
- Handle <script async> for Webpack bundle transparently. Closes [issue #290](https://github.com/shakacode/react_on_rails/issues/290) [PR 1099](https://github.com/shakacode/react_on_rails/pull/1099) by [squadette](https://github.com/squadette). | ||
### [11.0.8] - 2018-06-15 | ||
#### Fixed | ||
- HashWithIndifferent access for props threw if used for props. [PR 1100](https://github.com/shakacode/react_on_rails/pull/1100) by [justin808](https://github.com/justin808). | ||
- Test helper for detecting stale bundles did not properly handle the case of a server-bundle.js without a hash.[PR 1102](https://github.com/shakacode/react_on_rails/pull/1102) by [justin808](https://github.com/justin808). | ||
### [11.0.8] - 2018-05-22 | ||
#### Fixed | ||
- Fix test helper determination of stale assets. [PR 1093](https://github.com/shakacode/react_on_rails/pull/1093) by [justin808](https://github.com/justin808). | ||
@@ -25,7 +26,7 @@ | ||
### [11.0.7] - 2018-05-11 | ||
### [11.0.7] - 2018-05-16 | ||
#### Fixed | ||
- Fix npm publshing. [PR 1090](https://github.com/shakacode/react_on_rails/pull/1090) by [justin808](https://github.com/justin808). | ||
### [11.0.6] - 2018-05-11 | ||
### [11.0.6] - 2018-05-15 | ||
#### Changed | ||
@@ -782,3 +783,3 @@ - Even more detailed errors for Honeybadger and Sentry when there's a JSON parse error on server rendering. [PR 1086](https://github.com/shakacode/react_on_rails/pull/1086) by [justin808](https://github.com/justin808). | ||
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/11.0.9...master | ||
[11.0.8]: https://github.com/shakacode/react_on_rails/compare/11.0.8...11.0.9 | ||
[11.0.9]: https://github.com/shakacode/react_on_rails/compare/11.0.8...11.0.9 | ||
[11.0.8]: https://github.com/shakacode/react_on_rails/compare/11.0.7...11.0.8 | ||
@@ -785,0 +786,0 @@ [11.0.7]: https://github.com/shakacode/react_on_rails/compare/11.0.6...11.0.7 |
@@ -220,2 +220,17 @@ 'use strict'; | ||
window.setTimeout(function () { | ||
if (!turbolinksInstalled() || !turbolinksSupported()) { | ||
if (document.readyState === 'complete' || document.readyState !== 'loading' && !document.documentElement.doScroll) { | ||
debugTurbolinks('NOT USING TURBOLINKS: DOM is already loaded, calling reactOnRailsPageLoaded'); | ||
reactOnRailsPageLoaded(); | ||
} else { | ||
document.addEventListener('DOMContentLoaded', function () { | ||
debugTurbolinks('NOT USING TURBOLINKS: DOMContentLoaded event, calling reactOnRailsPageLoaded'); | ||
reactOnRailsPageLoaded(); | ||
}); | ||
} | ||
} | ||
}); | ||
document.addEventListener('DOMContentLoaded', function () { | ||
@@ -237,7 +252,4 @@ // Install listeners when running on the client (browser). | ||
} | ||
} else { | ||
debugTurbolinks('NOT USING TURBOLINKS: DOMContentLoaded event, calling reactOnRailsPageLoaded'); | ||
reactOnRailsPageLoaded(); | ||
} | ||
}); | ||
} |
{ | ||
"name": "react-on-rails", | ||
"version": "11.0.8", | ||
"version": "11.0.9", | ||
"description": "react-on-rails JavaScript for react_on_rails Ruby gem", | ||
@@ -5,0 +5,0 @@ "main": "node_package/lib/ReactOnRails.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158402
911