Skip to content

Releases: frandiox/vitedge

0.19.1

05 Oct 11:13
Compare
Choose a tag to compare

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

Full Changelog: v0.19.0...v0.19.1

0.19.0

10 Apr 17:44
Compare
Choose a tag to compare

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

22 Mar 10:59
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.18.1...v0.18.2

0.18.1

31 Dec 18:48
Compare
Choose a tag to compare
  • Fix: workaround for regression in Vite >= 2.6 related to import.meta.hot vitejs/vite#5270

0.18.0

31 Dec 17:47
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 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 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.

Full Changelog: v0.17.5...v0.18.0

0.17.5

28 Dec 18:00
Compare
Choose a tag to compare
  • Support Vite >= 2.7. Related #71

0.17.4

28 Dec 12:16
Compare
Choose a tag to compare
  • Support Node >= 16.2. Related #74

0.17.3

06 Nov 12:06
Compare
Choose a tag to compare

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. access window or document) and to reduce the bundle size.
  • Feat: Add skipSSR option to handleEvent. With this, the HTML response will only include the minimum index.html with the corresponding dependencies (SPA behavior).

New Contributors

Full Changelog: v0.17.2...v0.17.3

0.17.2

16 Oct 16:09
Compare
Choose a tag to compare
  • Expose Vite SSR plugin options in Vitedge plugin.

Full Changelog: v0.17.1...v0.17.2

0.17.1

16 Oct 15:15
Compare
Choose a tag to compare
  • 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