Skip to content

Releases: frandiox/vitedge

0.17.0

10 Oct 14:13
Compare
Choose a tag to compare

What's Changed

  • Leaner state serialization to JSON.
  • Pass cookie headers automatically to props handlers.
  • Expose core library. This enables SSR with Vanilla JS or bring-your-own-framework easily.
  • Support the new @vite/plugin-react.
  • Vite 2.5.x is now required (2.6.x will be supported in following releases).

Full Changelog: v0.16.4...v0.17.0

0.16.4

19 Sep 11:38
Compare
Choose a tag to compare
  • fix: Pass headers and status from props handlers back to the SSR response (closes #60)
  • fix: Forward headers to props handlers in SSR requests (related #61 (reply in thread))
  • fix: Errors during SSR should show Vite's overlay in browser

0.16.3

13 Sep 05:07
Compare
Choose a tag to compare
  • fix: Bump peer dependency to avoid issues with npm@7
  • fix: Do not use static imports in CLI to support yarn berry

0.16.2

02 Sep 17:28
Compare
Choose a tag to compare
  • feat: Fetch page props and page components in parallel [Vue]
  • fix: Allow running vue-router beforeEach guards before awaiting page props request. #57
  • fix: Correctly pass query parameter to Page Props handlers in Node/prod environments. #58
  • fix: query parameter in API handlers should be a plain object instead of URLSearchParams.

0.16.1

27 Aug 17:32
Compare
Choose a tag to compare
  • fix: Allow props files to be called props/index.js
  • fix: Allow props files to contain brackets: props/[name].js

0.16.0

22 Aug 20:23
Compare
Choose a tag to compare

Features

  • Cloudflare Workers APIs (cache, KV, WS, etc) are now polyfilled during development when miniflare is installed in the project. Note that DO is still not available due to a bug in kv-asset-handler package.
  • [BREAKING] React Style Collectors: New option to extract CSS-in-JS during SSR for React. Vitedge's experimental auto-detection of styled-components and @material-ui/core is now deprecated. Use one of the provided style collectors or make a custom one: docs.
  • Expose createSsrServer to run Vitedge as middleware in custom servers such as Express or Fastify.

Fixes

  • Wrap process.env matches in parenthesis to avoid code such as process.env.hasOwnProperty crash (looking at you Fauna).
  • Functions build options were not correctly passed to Rollup.

0.15.1

28 Jul 18:32
Compare
Choose a tag to compare
  • feat: Accept ESBuild options in plugin

0.15.0

27 Jul 22:23
Compare
Choose a tag to compare

Features

  • πŸ”₯ New preview mode: vitedge preview or vitedge preview --build-watch. This mode runs the app in Miniflare to create a local environment more similar to workers (faster than wrangler dev). Thanks to @mrbbot for all the help!
  • πŸŽ‰ Vitedge can now generate the final worker script using ESBuild optionally, which replaces Wrangler's Webpack build.
  • Add support for import.meta.env object in functions directory (similar to process.env, but more consistent with Vite's behavior).
  • Support build watch: vitedge build --watch.

Fixes

  • Undefined waitUntil in API calls during SSR run.

0.14.0

17 Jul 17:39
Compare
Choose a tag to compare

Features

  • API can now be consumed from Page Props handlers using fetch. #37
  • New utility useContext to access SSR Context from any component.

Fixes

  • Wrong default NODE_ENV value in staging.
  • Export ClientOnly component in Vue.
  • Default order of Webpack's mainFields for React.
  • General issues with typings.

0.13.3

30 Jun 18:37
Compare
Choose a tag to compare