diff --git a/turbo/README.md b/turbo/README.md
index c7c6ded..4bc71cc 100644
--- a/turbo/README.md
+++ b/turbo/README.md
@@ -9,7 +9,7 @@ First, add the module import to your site or theme component's configuration's m
```toml
[module]
[[imports]]
-path = "github.com/gohugoio/hugo-mod-jslibs/turbo/v7"
+path = "github.com/gohugoio/hugo-mod-jslibs/turbo/v8"
```
Then add the script source in the head section of your template (typically in the `baseof.html`):
@@ -21,4 +21,4 @@ Then add the script source in the head section of your template (typically in th
```
-Note that the target `src` folder gets mounted to `assets/jslibs/turbo/v7`.
\ No newline at end of file
+Note that the target `src` folder gets mounted to `assets/jslibs/turbo/v8`.
\ No newline at end of file
diff --git a/turbo/config.toml b/turbo/config.toml
index ac8e4fe..be5bdd6 100644
--- a/turbo/config.toml
+++ b/turbo/config.toml
@@ -6,7 +6,13 @@ target = "layouts"
source = "assets"
target = "assets"
[[module.imports]]
-path = "github.com/bep/turbo/v7"
+path = "github.com/hotwired/turbo"
[[module.imports.mounts]]
source = "src"
-target = "assets/jslibs/turbo/v7"
+target = "assets/jslibs/turbo/v8"
+[[module.imports]]
+path = "github.com/bigskysoftware/idiomorph"
+[[module.imports.mounts]]
+source = "dist"
+target = "assets/idiomorph/dist"
+
diff --git a/turbo/go.mod b/turbo/go.mod
index dee518a..e4c2756 100644
--- a/turbo/go.mod
+++ b/turbo/go.mod
@@ -1,5 +1,8 @@
-module github.com/gohugoio/hugo-mod-jslibs/turbo/v7
+module github.com/gohugoio/hugo-mod-jslibs/turbo/v8
-go 1.17
+go 1.20
-require github.com/bep/turbo/v7 v7.20300.20000 // indirect
+require (
+ github.com/bigskysoftware/idiomorph v0.3.0 // indirect
+ github.com/hotwired/turbo v8.0.4+incompatible // indirect
+)
diff --git a/turbo/go.sum b/turbo/go.sum
index 1b819e2..21e81b8 100644
--- a/turbo/go.sum
+++ b/turbo/go.sum
@@ -1,16 +1,4 @@
-github.com/bep/turbo v0.0.0-20220913134225-9e6e0b9992f0 h1:eiYsjNInbhM9/TaqmIO9Yvz0q68zcQHblHz+IAlNyHA=
-github.com/bep/turbo v0.0.0-20220913134225-9e6e0b9992f0/go.mod h1:cP3jeD6JT0LTNRVRBdnX+az2AO54Ll4tAPENx79xJ4A=
-github.com/bep/turbo/v7 v7.0.0-20220913153645-98562c503dfe h1:PAu0ycvdlA4tfUdtfxQla1J/IrIykRFUvZRRidyukP0=
-github.com/bep/turbo/v7 v7.0.0-20220913153645-98562c503dfe/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
-github.com/bep/turbo/v7 v7.0.0-20220913155955-177360504ded h1:/TZH/L4QD4FOsm+uXMASOWiU7csZfEMpgf+TCeCpOec=
-github.com/bep/turbo/v7 v7.0.0-20220913155955-177360504ded/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
-github.com/bep/turbo/v7 v7.0.1-patch1 h1:2tMyUXhp/MGakNggqIfhc2cMEyMc2z9epZXzj9WdKwU=
-github.com/bep/turbo/v7 v7.0.1-patch1/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
-github.com/bep/turbo/v7 v7.20001.20100 h1:k/exSUTpju2RnS5A9fVGkw2ipYsS12kPi9xwmnhf+3Q=
-github.com/bep/turbo/v7 v7.20001.20100/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
-github.com/bep/turbo/v7 v7.20300.20000 h1:omrI4cPRwnLufr8S7jCo9JG95FVTM8hIEvJCtgbnhuc=
-github.com/bep/turbo/v7 v7.20300.20000/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
-github.com/hotwired/turbo v7.0.1+incompatible h1:DvY56vNgcvH0vkw4VqlAc/hfsTeMdcoOKTGgnoGH6ok=
-github.com/hotwired/turbo v7.0.1+incompatible/go.mod h1:6XcpYEC+j8xb7URpSYwhlq4iq98M5F5T/jaLWNHVbZs=
-github.com/turbolinks/turbolinks-source-gem v5.2.0+incompatible h1:UNx8t3fYB51UyUv3gOXpTPT7Q6u9LCdcXQd2iW1EClA=
-github.com/turbolinks/turbolinks-source-gem v5.2.0+incompatible/go.mod h1:Cl0Br9tUXkQvxumVNGTvyaa7dqpFC2kPMrsS0Ttc94U=
+github.com/bigskysoftware/idiomorph v0.3.0 h1:oBY+wmTfvMOFmzPhmutv2JQJGl/hO/wLABF3+Y9R9ZE=
+github.com/bigskysoftware/idiomorph v0.3.0/go.mod h1:rS0FeLewyCnz7kx5cj1r1oMY3FvN/nj6x8x6jW0Fmt8=
+github.com/hotwired/turbo v8.0.4+incompatible h1:5kl0vGFKE9TUidGu0kQjbCU8mTuEg/Jugf0rtSA6OEk=
+github.com/hotwired/turbo v8.0.4+incompatible/go.mod h1:6XcpYEC+j8xb7URpSYwhlq4iq98M5F5T/jaLWNHVbZs=
diff --git a/turbo/layouts/partials/jslibs/turbo/script-src.html b/turbo/layouts/partials/jslibs/turbo/script-src.html
index a4d0639..fe6f98f 100644
--- a/turbo/layouts/partials/jslibs/turbo/script-src.html
+++ b/turbo/layouts/partials/jslibs/turbo/script-src.html
@@ -1,7 +1,10 @@
{{ $sourceMap := cond hugo.IsProduction "" "inline" }}
{{ $opts := dict "sourceMap" $sourceMap "minify" hugo.IsProduction "target" "es2016" }}
-{{- $js := resources.Get "jslibs/turbo/v7/index.ts" | js.Build $opts -}}
+{{- $js := resources.Get "jslibs/turbo/v8/index.js" | js.Build $opts -}}
{{- if hugo.IsProduction }}
{{ $js = $js | fingerprint }}
{{ end -}}
-
\ No newline at end of file
+