Skip to content

Commit 8ff09d2

Browse files
authored
Vite (#824)
* add use_connection hook * remove unused imports * switch to using vite * fix test * fix cov * fix unused imports * check backend route priorities * fix tests * fix warning * fix asyncio deprectation warning * fix type annotation * fix style * strip url prefix from location * remove unused imports * remove default for search
1 parent 64c9e82 commit 8ff09d2

File tree

20 files changed

+1409
-7386
lines changed

20 files changed

+1409
-7386
lines changed

Diff for: docs/source/about/changelog.rst

+12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ Unreleased
2929
implementation specific and are now available as top-level imports. Instead of each
3030
backend defining these hooks, backends establish a ``ConnectionContext`` with this
3131
information.
32+
- :pull:`824` - IDOM's built-in backend server now expose the following routes:
33+
34+
- ``/_idom/assets/<file-path>``
35+
- ``/_idom/stream/<path>``
36+
- ``/_idom/modules/<file-path>``
37+
- ``/<prefix>/<path>``
38+
39+
This should allow the browser to cache static resources. Even if your ``url_prefix``
40+
is ``/_idom``, your app should still work as expected. Though if you're using
41+
``idom-router``, IDOM's server routes will always take priority.
42+
- :pull:`824` - Backend implementations now strip any URL prefix in the pathname for
43+
``use_location``.
3244

3345
**Added**
3446

Diff for: src/client/public/index.html renamed to src/client/index.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="./idom-logo-square-small.svg" type="image/svg+xml" />
5+
<link
6+
rel="icon"
7+
href="public/idom-logo-square-small.svg"
8+
type="image/svg+xml"
9+
/>
610
<title>IDOM</title>
711
</head>
812
<body>
913
<div id="app"></div>
10-
<script type="module" src="../packages/idom-app-react/src/index.js">
14+
<script type="module">
1115
import { mount } from "idom-app-react";
1216
mount(document.getElementById("app"));
1317
</script>

0 commit comments

Comments
 (0)