Releases: hotwired/turbo
Releases · hotwired/turbo
v8.0.0-rc.2
What's Changed
Full Changelog: v8.0.0-rc.1...v8.0.0-rc.2
v8.0.0-rc.1
What's Changed
- Introduce
turbo:{before-,}morph-{element,attribute}
events by @seanpdoyle in #1097 - Preloader: Rename header to
x-purpose
to avoid it being stripped by @pfeiffer in #1108 - Morph with
ignoreActiveValue: true
by @seanpdoyle in #1141 - Do not invalidate pages in visits that don't render by @afcapel in #1144
- Ensure page refreshes cause a reload when assets change by @afcapel in #1146
LinkPrefetchObserver
: replacedataset
withgetAttribute
by @seanpdoyle in #1148- Page refreshes: Don't render previews by @brunoprietog in #1098
- Drive
turbo-frame
withTurbo.visit(url, { frame:, action: })
by @seanpdoyle in #1135
Full Changelog: v8.0.0-beta.4...v8.0.0-rc.1
v8.0.0-beta.4
What's Changed
- Ensure that the turbo-frame header is not sent when the turbo-frame has a target of _top by @afcapel in #1138
- Introduce data-turbo-track="dynamic" by @afcapel in #1140
Full Changelog: v8.0.0-beta.3...v8.0.0-beta.4
v8.0.0-beta.3
What's Changed
- Update copyright year to 2024 by @devcamke in #1118
- Debounce page refreshes triggered via Turbo streams by @brunoprietog in #1099
- Upgrade idiomorph to 0.3.0 by @afcapel in #1122
- Remove unused stylesheets when navigating by @kevinmcconnell in #1128
- Keep Trix dynamic styles in the head by @afcapel in #1133
- Revert: Proposal: pass isPreview value into the event detail in render events (#926) by @domchristie in #1126
- Add InstantClick behavior by @davidalejandroaguilar in #1101
- Fix attribute name by @afcapel in #1134
New Contributors
- @devcamke made their first contribution in #1118
- @davidalejandroaguilar made their first contribution in #1101
Full Changelog: v8.0.0-beta.2...v8.0.0-beta.3
v8.0.0-beta.2
What's Changed
- Avoid infinite recursion from
window.fetch
name collision by @seanpdoyle in #1077 - Export StreamActions as property of window.Turbo by @afcapel in #1073
- Restructure to avoid internal
window.Turbo
access by @seanpdoyle in #1078 - Include idiomorph as a dev dependency by @afcapel in #1086
- Import
session
instead of readingwindow.Turbo.session
by @seanpdoyle in #1094 - Communicate Visit direction with
html[data-turbo-visit-direction]
by @domchristie in #1007 - Don't preserve scroll position unless it's a page refresh by @jorgemanrubia in #1096
- Page refreshes: Use pathname instead of href to detect if locations are equal by @brunoprietog in #1079
- Page refreshes: Replace remaining calls to nextAnimationFrame by nextRepaint by @brunoprietog in #1102
- Guard
[data-turbo-preload]
with conditionals by @seanpdoyle in #1033 - Dispatch
turbo:before-fetch-{request,response}
during preloading by @seanpdoyle in #1034 - Set aria-busy on the form element during a form submission by @afcapel in #1110
New Contributors
- @brunoprietog made their first contribution in #1079
Full Changelog: v8.0.0-beta1...v8.0.0-beta.2
v8.0.0-beta1
What's Changed
- Fix for SubmitEvent polyfill breaking requestSubmit() for newer Safari versions by @mrtnin in #933
- Support View Transition API for navigations by @kevinmcconnell in #935
- Bump semver from 6.3.0 to 6.3.1 by @dependabot in #942
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #947
- Fix typos by @szepeviktor in #950
- Add ! to the copyright banner comment by @afcapel in #948
- Perform view transitions on cached snapshots by @kevinmcconnell in #953
- Add test coverage toggling
[aria-busy]
forGET
Form Submissions by @seanpdoyle in #955 - Proposal: pass isPreview value into the event detail in render events by @Matt-Yorkley in #926
- Rename header for preload requests by @pfeiffer in #925
- Dispatch turbo:load after loading 404 response by @domchristie in #960
- Remove TypeScript by @afcapel in #971
- fix: Resolve issues with timeouts and target closures in test framework by @AfolabiOlaoluwa in #981
- Update README year by @alabhyajindal in #979
- fix(vscode): delete unneeded
problemMatcher
by @iiAbady in #980 - docs: Update CONTRIBUTING.md to reflect removal of TypeScript by @AfolabiOlaoluwa in #989
- Close
StreamSource
when<turbo-stream-source>
disconnects by @seanpdoyle in #970 - Create Frame Snapshot from Fetch Response HTML by @seanpdoyle in #887
- fix: Improve test stability in navigation test cases by @AfolabiOlaoluwa in #998
- Override
FetchOptions
from event listeners by @seanpdoyle in #691 - FIX: Turbo stream link setting the src of a turbo frame container by @BakiVernes in #968
- Turbo Streams: Manage element focus by @seanpdoyle in #686
- fix: Enhance test stability in drive_tests.js by @AfolabiOlaoluwa in #993
- Remove types key from package json by @shiftyp in #1002
- Upload dist artifacts to GitHub Actions by @afcapel in #1003
- Removed Typescript references and dependencies from package.json by @shiftyp in #1010
- Add disk cache store by @afcapel in #949
- Added frozen lockfile option on ci and dev workflows by @shiftyp in #1012
- Bump get-func-name from 2.0.0 to 2.0.2 by @dependabot in #1015
- Fix back navigation after POST form submission by @afcapel in #1014
- Set
html[lang]
during navigation by @seanpdoyle in #1035 - Move
Cache
instantiation toSession
by @seanpdoyle in #1024 - Add test coverage for submitting
form[data-turbo-frame="_top"]
by @seanpdoyle in #1038 - Add test coverage for
StreamActions
export by @seanpdoyle in #1023 - Always go through the adapter to decide how to propose visits by @jayohms in #1054
- Tests: remove
"test"
docstring prefix by @seanpdoyle in #1052 - replace nextAnimationFrame by nextMicroTask by @michelson in #1042
- Move cache snapshot loading to Visit#start() by @afcapel in #1056
- Revert disk cache store by @afcapel in #1062
- Pass session instance to cache constructor by @afcapel in #1063
- Page refreshes by @afcapel, @jorgemanrubia & @seanpdoyle in #1019
- Add coverage for focus and value preservation during morph by @seanpdoyle in #1064
- Restore attribute "refresh=morph" to flag turbo frames to reload during a page refresh by @jorgemanrubia in #1068
- Hide Progress bar on
turbo:load
by @seanpdoyle in #1036 - Change default action for form submissions that redirect to the current location by @afcapel in #1072
Full Changelog: v7.3.0...v8.0.0-beta1
v7.3.0
What's Changed
- Don't break out of frames when frame missing by @kevinmcconnell in #863
- Respect
turbo-visit-control
for frame requests by @kevinmcconnell in #867 - Allow changing the submitter text during form submission by @afcapel in #869
- Form submissions from frames should clear cache by @kevinmcconnell in #882
- Deprecate
[data-turbo-cache=false]
in favor of[data-turbo-temporary]
by @packagethief in #871 resume()
does not requirevalue
by @dahlbyk in #854- Rename
isIdempotent
toisSafe
by @kevinmcconnell in #883
Full Changelog: v7.2.5...v7.3.0
v7.2.5
What's Changed
- Only snapshot frame visits that have actions by @kevinmcconnell in #827
- Skip Snapshot Caching for redirect visits by @seanpdoyle in #804
- Fix: Promoting lazy-loaded Frames by @seanpdoyle in #790
- Merge in remaining header elements (eg: link icons, manifest, meta and title) by @scuml in #752
- Allow users to define an async custom render function by @manuelpuyol in #782
- Allow for listening to turbo events raised from within the Shadow DOM by @yuki24 in #802
- Ensure turbo no longer uses replaceChildren by @MaxHatfull in #808
- Add better support for shadow DOM by @yuki24 in #758
- Fix: When applications embed Google Adsense-powered <iframe> elements, the snippets they provide render them with a [name] attribute that's set to the empty string "" by @seanpdoyle in #835
Full Changelog: v7.2.4...v7.2.5
v7.2.4
What's Changed
- Update history during same-page Visits by @seanpdoyle in #763
- Check last rendered location for same-page visits by @kevinmcconnell in #772
Full Changelog: v7.2.2...v7.2.4
v7.2.2
What's Changed
- Fix double
before-fetch-request
dispatch during reload by @seanpdoyle in #740 - Ignore UJS
<a>
clicks and<form>
submissions by @seanpdoyle in #744 - Cache PageSnapshot with original HTML from the frame's page by @manuelpuyol in #746
- Fix data-turbo-action was not respected on requestSubmit() event from javascript by @seanpdoyle in #749
- Reload page if failed form changes tracked content by @kevinmcconnell in #759
(Note: 7.2.1 got pushed to npm as a copy of 7.2.0 as a mistake, hence the extra jump in the tiny version).
Full Changelog: v7.2.0...v7.2.2