@hotwired/turbo-rails 8.0.2 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/app/assets/javascripts/turbo.js +3 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -146,7 +146,7 @@ Turbo can coexist with Rails UJS, but you need to take a series of upgrade steps
|
|
|
146
146
|
|
|
147
147
|
## Testing
|
|
148
148
|
|
|
149
|
-
The [`Turbo::TestAssertions`](./lib/turbo/test_assertions.rb) concern provides Turbo Stream test helpers that assert the presence or absence ofs s `<turbo-stream>` elements in a rendered fragment of HTML. `Turbo::TestAssertions` are automatically included in [`
|
|
149
|
+
The [`Turbo::TestAssertions`](./lib/turbo/test_assertions.rb) concern provides Turbo Stream test helpers that assert the presence or absence ofs s `<turbo-stream>` elements in a rendered fragment of HTML. `Turbo::TestAssertions` are automatically included in [`ActiveSupport::TestCase`](https://edgeapi.rubyonrails.org/classes/ActiveSupport/TestCase.html) and depend on the presence of [`rails-dom-testing`](https://github.com/rails/rails-dom-testing/) assertions.
|
|
150
150
|
|
|
151
151
|
The [`Turbo::TestAssertions::IntegrationTestAssertions`](./lib/turbo/test_assertions/integration_test_assertions.rb) are built on top of `Turbo::TestAssertions`, and add support for passing a `status:` keyword. They are automatically included in [`ActionDispatch::IntegrationTest`](https://edgeguides.rubyonrails.org/testing.html#integration-testing).
|
|
152
152
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Turbo 8.0.
|
|
2
|
+
Turbo 8.0.3
|
|
3
3
|
Copyright © 2024 37signals LLC
|
|
4
4
|
*/
|
|
5
5
|
(function(prototype) {
|
|
@@ -3818,7 +3818,6 @@ class MorphRenderer extends PageRenderer {
|
|
|
3818
3818
|
#morphElements(currentElement, newElement, morphStyle = "outerHTML") {
|
|
3819
3819
|
this.isMorphingTurboFrame = this.#isFrameReloadedWithMorph(currentElement);
|
|
3820
3820
|
Idiomorph.morph(currentElement, newElement, {
|
|
3821
|
-
ignoreActiveValue: true,
|
|
3822
3821
|
morphStyle: morphStyle,
|
|
3823
3822
|
callbacks: {
|
|
3824
3823
|
beforeNodeAdded: this.#shouldAddElement,
|
|
@@ -4147,9 +4146,9 @@ class Session {
|
|
|
4147
4146
|
refresh(url, requestId) {
|
|
4148
4147
|
const isRecentRequest = requestId && this.recentRequests.has(requestId);
|
|
4149
4148
|
if (!isRecentRequest) {
|
|
4150
|
-
this.cache.exemptPageFromPreview();
|
|
4151
4149
|
this.visit(url, {
|
|
4152
|
-
action: "replace"
|
|
4150
|
+
action: "replace",
|
|
4151
|
+
shouldCacheSnapshot: false
|
|
4153
4152
|
});
|
|
4154
4153
|
}
|
|
4155
4154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hotwired/turbo-rails",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "The speed of a single-page web application without having to write any JavaScript",
|
|
5
5
|
"module": "app/javascript/turbo/index.js",
|
|
6
6
|
"main": "app/assets/javascripts/turbo.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"release": "npm publish && git commit -am \"$npm_package_name v$npm_package_version\" && git push"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@hotwired/turbo": "^8.0.
|
|
16
|
+
"@hotwired/turbo": "^8.0.3",
|
|
17
17
|
"@rails/actioncable": "^7.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|