Releases: frandiox/vitedge
Releases Β· frandiox/vitedge
0.17.0
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
0.16.3
0.16.2
- 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 ofURLSearchParams
.
0.16.1
0.16.0
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 inkv-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 asprocess.env.hasOwnProperty
crash (looking at you Fauna). - Functions build options were not correctly passed to Rollup.
0.15.1
0.15.0
Features
- π₯ New preview mode:
vitedge preview
orvitedge preview --build-watch
. This mode runs the app in Miniflare to create a local environment more similar to workers (faster thanwrangler 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 infunctions
directory (similar toprocess.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
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
- Fix: Type issues.
- Feat: Update to
[email protected]