Skip to content

Commit ed7955d

Browse files
committed
Turbo v8.0.4
1 parent e8dd34a commit ed7955d

File tree

5 files changed

+19
-29
lines changed

5 files changed

+19
-29
lines changed

app/assets/javascripts/turbo.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Turbo 8.0.3
2+
Turbo 8.0.4
33
Copyright © 2024 37signals LLC
44
*/
55
(function(prototype) {
@@ -72,7 +72,7 @@ class FrameElement extends HTMLElement {
7272
static delegateConstructor=undefined;
7373
loaded=Promise.resolve();
7474
static get observedAttributes() {
75-
return [ "disabled", "complete", "loading", "src" ];
75+
return [ "disabled", "loading", "src" ];
7676
}
7777
constructor() {
7878
super();
@@ -90,11 +90,9 @@ class FrameElement extends HTMLElement {
9090
attributeChangedCallback(name) {
9191
if (name == "loading") {
9292
this.delegate.loadingStyleChanged();
93-
} else if (name == "complete") {
94-
this.delegate.completeChanged();
9593
} else if (name == "src") {
9694
this.delegate.sourceURLChanged();
97-
} else {
95+
} else if (name == "disabled") {
9896
this.delegate.disabledChanged();
9997
}
10098
}
@@ -4561,17 +4559,11 @@ class FrameController {
45614559
}
45624560
sourceURLReloaded() {
45634561
const {src: src} = this.element;
4564-
this.#ignoringChangesToAttribute("complete", (() => {
4565-
this.element.removeAttribute("complete");
4566-
}));
4562+
this.element.removeAttribute("complete");
45674563
this.element.src = null;
45684564
this.element.src = src;
45694565
return this.element.loaded;
45704566
}
4571-
completeChanged() {
4572-
if (this.#isIgnoringChangesTo("complete")) return;
4573-
this.#loadSourceURL();
4574-
}
45754567
loadingStyleChanged() {
45764568
if (this.loadingStyle == FrameLoadingStyle.lazy) {
45774569
this.appearanceObserver.start();
@@ -4903,13 +4895,11 @@ class FrameController {
49034895
return this.element.hasAttribute("complete");
49044896
}
49054897
set complete(value) {
4906-
this.#ignoringChangesToAttribute("complete", (() => {
4907-
if (value) {
4908-
this.element.setAttribute("complete", "");
4909-
} else {
4910-
this.element.removeAttribute("complete");
4911-
}
4912-
}));
4898+
if (value) {
4899+
this.element.setAttribute("complete", "");
4900+
} else {
4901+
this.element.removeAttribute("complete");
4902+
}
49134903
}
49144904
get isActive() {
49154905
return this.element.isActive && this.#connected;

app/assets/javascripts/turbo.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/javascripts/turbo.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hotwired/turbo-rails",
3-
"version": "8.0.3",
3+
"version": "8.0.4",
44
"description": "The speed of a single-page web application without having to write any JavaScript",
55
"module": "app/javascript/turbo/index.js",
66
"main": "app/assets/javascripts/turbo.js",
@@ -13,7 +13,7 @@
1313
"release": "npm publish && git commit -am \"$npm_package_name v$npm_package_version\" && git push"
1414
},
1515
"dependencies": {
16-
"@hotwired/turbo": "^8.0.3",
16+
"@hotwired/turbo": "^8.0.4",
1717
"@rails/actioncable": "^7.0"
1818
},
1919
"devDependencies": {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
chalk "^2.4.2"
2525
js-tokens "^4.0.0"
2626

27-
"@hotwired/turbo@^8.0.3":
28-
version "8.0.3"
29-
resolved "https://registry.yarnpkg.com/@hotwired/turbo/-/turbo-8.0.3.tgz#338e07278f4b3c76921328d3c92dbc4831c209d0"
30-
integrity sha512-qLgp7d6JaegKjMToTJahosrFxV3odfSbiekispQ3soOzE5jnU+iEMWlRvYRe/jvy5Q+JWoywtf9j3RD4ikVjIg==
27+
"@hotwired/turbo@^8.0.4":
28+
version "8.0.4"
29+
resolved "https://registry.yarnpkg.com/@hotwired/turbo/-/turbo-8.0.4.tgz#5c5361c06a37cdf10dcba4223f1afd0ca1c75091"
30+
integrity sha512-mlZEFUZrJnpfj+g/XeCWWuokvQyN68WvM78JM+0jfSFc98wegm259vCbC1zSllcspRwbgXK31ibehCy5PA78/Q==
3131

3232
"@jridgewell/gen-mapping@^0.3.0":
3333
version "0.3.3"

0 commit comments

Comments
 (0)