From 59473962d2207ee9045b0660b4124bef6b942e65 Mon Sep 17 00:00:00 2001 From: Pratap Vardhan Date: Sat, 14 Dec 2024 11:10:03 +0530 Subject: [PATCH] upgrade to htmx@2.0.4, fasthtml-js@1.0.12, few htmx_exts to latest version --- fasthtml/core.py | 18 +++++++++--------- nbs/api/00_core.ipynb | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/fasthtml/core.py b/fasthtml/core.py index d265917e..841fbdd9 100644 --- a/fasthtml/core.py +++ b/fasthtml/core.py @@ -434,20 +434,20 @@ async def _wrap_call(f, req, params): # %% ../nbs/api/00_core.ipynb htmx_exts = { - "head-support": "https://unpkg.com/htmx-ext-head-support@2.0.1/head-support.js", - "preload": "https://unpkg.com/htmx-ext-preload@2.0.1/preload.js", - "class-tools": "https://unpkg.com/htmx-ext-class-tools@2.0.1/class-tools.js", - "loading-states": "https://unpkg.com/htmx-ext-loading-states@2.0.0/loading-states.js", - "multi-swap": "https://unpkg.com/htmx-ext-multi-swap@2.0.0/multi-swap.js", - "path-deps": "https://unpkg.com/htmx-ext-path-deps@2.0.0/path-deps.js", + "head-support": "https://unpkg.com/htmx-ext-head-support@2.0.3/head-support.js", + "preload": "https://unpkg.com/htmx-ext-preload@2.1.0/preload.js", + "class-tools": "https://unpkg.com/htmx-ext-class-tools@2.0.1/class-tools.js", + "loading-states": "https://unpkg.com/htmx-ext-loading-states@2.0.0/loading-states.js", + "multi-swap": "https://unpkg.com/htmx-ext-multi-swap@2.0.0/multi-swap.js", + "path-deps": "https://unpkg.com/htmx-ext-path-deps@2.0.0/path-deps.js", "remove-me": "https://unpkg.com/htmx-ext-remove-me@2.0.0/remove-me.js", - "ws": "https://unpkg.com/htmx-ext-ws@2.0.1/ws.js", + "ws": "https://unpkg.com/htmx-ext-ws@2.0.2/ws.js", "chunked-transfer": "https://unpkg.com/htmx-ext-transfer-encoding-chunked@0.4.0/transfer-encoding-chunked.js" } # %% ../nbs/api/00_core.ipynb -htmxsrc = Script(src="https://unpkg.com/htmx.org@2.0.3/dist/htmx.min.js") -fhjsscr = Script(src="https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.4/fasthtml.js") +htmxsrc = Script(src="https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js") +fhjsscr = Script(src="https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.12/fasthtml.js") surrsrc = Script(src="https://cdn.jsdelivr.net/gh/answerdotai/surreal@main/surreal.js") scopesrc = Script(src="https://cdn.jsdelivr.net/gh/gnat/css-scope-inline@main/script.js") viewport = Meta(name="viewport", content="width=device-width, initial-scale=1, viewport-fit=cover") diff --git a/nbs/api/00_core.ipynb b/nbs/api/00_core.ipynb index e53b47ad..32a58998 100644 --- a/nbs/api/00_core.ipynb +++ b/nbs/api/00_core.ipynb @@ -1175,14 +1175,14 @@ "source": [ "#| export\n", "htmx_exts = {\n", - " \"head-support\": \"https://unpkg.com/htmx-ext-head-support@2.0.1/head-support.js\", \n", - " \"preload\": \"https://unpkg.com/htmx-ext-preload@2.0.1/preload.js\", \n", - " \"class-tools\": \"https://unpkg.com/htmx-ext-class-tools@2.0.1/class-tools.js\", \n", - " \"loading-states\": \"https://unpkg.com/htmx-ext-loading-states@2.0.0/loading-states.js\", \n", - " \"multi-swap\": \"https://unpkg.com/htmx-ext-multi-swap@2.0.0/multi-swap.js\", \n", - " \"path-deps\": \"https://unpkg.com/htmx-ext-path-deps@2.0.0/path-deps.js\", \n", + " \"head-support\": \"https://unpkg.com/htmx-ext-head-support@2.0.3/head-support.js\",\n", + " \"preload\": \"https://unpkg.com/htmx-ext-preload@2.1.0/preload.js\",\n", + " \"class-tools\": \"https://unpkg.com/htmx-ext-class-tools@2.0.1/class-tools.js\",\n", + " \"loading-states\": \"https://unpkg.com/htmx-ext-loading-states@2.0.0/loading-states.js\",\n", + " \"multi-swap\": \"https://unpkg.com/htmx-ext-multi-swap@2.0.0/multi-swap.js\",\n", + " \"path-deps\": \"https://unpkg.com/htmx-ext-path-deps@2.0.0/path-deps.js\",\n", " \"remove-me\": \"https://unpkg.com/htmx-ext-remove-me@2.0.0/remove-me.js\",\n", - " \"ws\": \"https://unpkg.com/htmx-ext-ws@2.0.1/ws.js\",\n", + " \"ws\": \"https://unpkg.com/htmx-ext-ws@2.0.2/ws.js\",\n", " \"chunked-transfer\": \"https://unpkg.com/htmx-ext-transfer-encoding-chunked@0.4.0/transfer-encoding-chunked.js\"\n", "}" ] @@ -1195,8 +1195,8 @@ "outputs": [], "source": [ "#| export\n", - "htmxsrc = Script(src=\"https://unpkg.com/htmx.org@2.0.3/dist/htmx.min.js\")\n", - "fhjsscr = Script(src=\"https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.4/fasthtml.js\")\n", + "htmxsrc = Script(src=\"https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js\")\n", + "fhjsscr = Script(src=\"https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.12/fasthtml.js\")\n", "surrsrc = Script(src=\"https://cdn.jsdelivr.net/gh/answerdotai/surreal@main/surreal.js\")\n", "scopesrc = Script(src=\"https://cdn.jsdelivr.net/gh/gnat/css-scope-inline@main/script.js\")\n", "viewport = Meta(name=\"viewport\", content=\"width=device-width, initial-scale=1, viewport-fit=cover\")\n",