Releases: frandiox/vitedge
Releases Β· frandiox/vitedge
0.19.1
What's Changed
- fix(plugin): pass containerId opt to viteSsr by @artisin in #86
- fix(vue): Update entry-server.js by @oleghalin in #92
- fix(plugin): add transformState declaration by @odai-alali in #89
- fix: update typings for useContext to be callable by @thyb in #90
- fix: preview server url for vite 3.x by @m3hari in #94
New Contributors
- @artisin made their first contribution in #86
- @oleghalin made their first contribution in #92
- @odai-alali made their first contribution in #89
- @thyb made their first contribution in #90
Full Changelog: v0.19.0...v0.19.1
0.19.0
What's Changed
- Support Vite 2.8+
- Fix illegal invocation in CFW
- Update to React Router v6
Upgrade guide for React Router v6
package.json
-"react-router-config": "^5.0.2",
-"react-router-dom": "^5.2.0"
+"react-router-dom": "^6.2.2"
App.jsx
-import { Link, Route, Switch } from 'react-router-dom'
+import { Link, Route, Routes } from 'react-router-dom'
- <Switch>
+ <Routes>
{router.routes.map((route) => {
return (
- <Route key={route.path} path={route.path}>
- <route.component route={route} baseUrl={baseUrl} />
- </Route>
+ <Route
+ key={route.path}
+ path={route.path}
+ element={<route.component route={route} baseUrl={baseUrl} />}
+ />
)
})}
- </Switch>
+ </Routes>
Full Changelog: v0.18.2...v0.19.0
0.18.2
0.18.1
- Fix: workaround for regression in Vite >= 2.6 related to
import.meta.hot
vitejs/vite#5270
0.18.0
What's Changed
- Breaking: the
url
object passed in context is always typeURL
(before it was typeLocation
). - Fix React props routing when using
base
parameter. - Fix hydration in Vue apps in frandiox/vite-ssr#129
- Fix backslash escaping in serialized state in frandiox/vite-ssr#130
- Fix routing when
base
is provided under some conditions. - Dev server defaults to
127.0.0.1
instead oflocalhost
in macOS to prevent Vite issues. - Fix rendered HTML when state or body contains
$1
. Related #123 - Add
pluginOptions.containerId
to customize the container element ID inindex.html
. - Require latest Vite and Vue versions as peer dependencies.
Full Changelog: v0.17.5...v0.18.0
0.17.5
0.17.4
0.17.3
What's Changed
- Fix: Avoid 404 for pages without props handler (fix #66) by @m3hari in #67
- Feat: Add
excludeSsrComponents
option in plugin that removes components from the SSR bundle. Components are mocked during SSR and will be hydrated in browser. This is useful for components that are not isomorphic (e.g. accesswindow
ordocument
) and to reduce the bundle size. - Feat: Add
skipSSR
option tohandleEvent
. With this, the HTML response will only include the minimumindex.html
with the corresponding dependencies (SPA behavior).
New Contributors
Full Changelog: v0.17.2...v0.17.3
0.17.2
- Expose Vite SSR plugin options in Vitedge plugin.
Full Changelog: v0.17.1...v0.17.2
0.17.1
- Added
usePageProps
hook to access the current page props returned by the props handler. - Fix first page state when running SPA-only mode.
- Fix minor state serialization with already escaped characters (e.g.
\n
). - Support Vite 2.6.x. For better DX in development, add the following to your entry point (main.js):
if (import.meta.hot) {
globalThis.__hot = import.meta.hot
}
Full Changelog: v0.17.0...v0.17.1