Skip to content

Releases: frandiox/vite-ssr

0.17.1

15 Feb 12:59
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.17.0...v0.17.1

0.17.0

14 Feb 11:29
Compare
Choose a tag to compare

What's Changed

We've skipped Vite 3 so please check migration guides from v2 to v3 and then to v4.

New Contributors

Full Changelog: v0.16.0...v0.17.0

0.16.0

10 Apr 14:34
Compare
Choose a tag to compare

What's Changed

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

Full Changelog: v0.15.0...v0.16.0

0.15.0

31 Dec 17:06
Compare
Choose a tag to compare

What's Changed

  • Breaking: the url object passed in context is always type URL (before it was type Location).
  • 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 of localhost 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 in index.html.
  • Require latest Vite and Vue versions as peer dependencies.

New Contributors

Full Changelog: v0.14.3...v0.15.0

0.14.3

06 Nov 10:42
Compare
Choose a tag to compare

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

16 Oct 13:39
Compare
Choose a tag to compare
  • Fix state serialization containing already escaped characters (\n, etc).

Full Changelog: v0.14.1...v0.14.2

0.14.1

11 Oct 13:19
Compare
Choose a tag to compare
  • Support Vite 2.6.x

Full Changelog: v0.14.0...v0.14.1

0.14.0

10 Oct 10:01
Compare
Choose a tag to compare

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

0.13.2

17 Sep 04:57
Compare
Choose a tag to compare
  • fix: Wrong dependencies #102

0.13.1

02 Sep 16:36
Compare
Choose a tag to compare
  • feat: Show Vite error overlay in development on SSR errors.