Releases: frandiox/vite-ssr
Releases Β· frandiox/vite-ssr
0.17.2
What's Changed
- docs: update install instructions by @thomasowow in #195
- fix: DEV build conflict (fix #221) by @briangleeson in #222
New Contributors
- @thomasowow made their first contribution in #195
- @briangleeson made their first contribution in #222
Full Changelog: v0.17.1...v0.17.2
0.17.1
0.17.0
0.16.0
What's Changed
- fix: support vite 2.8+ by @frandiox in #153
- feat: pass viteConfig to build by @domsen123 in #148
- feat: upgrade to [email protected] by @MarkLyck in #147
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>
New Contributors
- @MarkLyck made their first contribution in #147
- @domsen123 made their first contribution in #148
Full Changelog: v0.15.0...v0.16.0
0.15.0
What's Changed
- Breaking: the
url
object passed in context is always typeURL
(before it was typeLocation
). - Fix hydration in Vue apps by @CyberAP in #129
- Fix backslash escaping in serialized state by @dchenk in #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.
New Contributors
- @techieoriname made their first contribution in #121
- @CyberAP made their first contribution in #129
Full Changelog: v0.14.3...v0.15.0
0.14.3
What's Changed
- fix: Split state logic in two files to avoid crashing in Safari during development. Closes #118 by @salqueng in #119
- feat: New
excludeSsrComponents
option in the plugin to remove components from the SSR build. Components are mocked and will render nothing in SSR but will be hydrated later in the browser. This allows having a smaller server build for constraint environments like Cloudflare Workers.
New Contributors
Full Changelog: v0.14.2...v0.14.3
0.14.2
- Fix state serialization containing already escaped characters (
\n
, etc).
Full Changelog: v0.14.1...v0.14.2
0.14.1
- Support Vite 2.6.x
Full Changelog: v0.14.0...v0.14.1
0.14.0
What's Changed
- Leaner state serialization to JSON by @dchenk in #108
- Extract core by @frandiox in #109 . This enables SSR with Vanilla JS or bring-your-own-framework easily, and reduces code repetition in code base.
- Support the new
@vite/plugin-react
- Add integration tests for React (Vue was already tested)
New Contributors
Full Changelog: v0.13.2...v0.14.0