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
beforeEachguards before awaiting page props request. #57 - fix: Correctly pass
queryparameter to Page Props handlers in Node/prod environments. #58 - fix:
queryparameter 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
miniflareis installed in the project. Note that DO is still not available due to a bug inkv-asset-handlerpackage. - [BREAKING] React Style Collectors: New option to extract CSS-in-JS during SSR for React. Vitedge's experimental auto-detection of
styled-componentsand@material-ui/coreis now deprecated. Use one of the provided style collectors or make a custom one: docs. - Expose
createSsrServerto run Vitedge as middleware in custom servers such as Express or Fastify.
Fixes
- Wrap
process.envmatches in parenthesis to avoid code such asprocess.env.hasOwnPropertycrash (looking at you Fauna). - Functions build options were not correctly passed to Rollup.
0.15.1
0.15.0
Features
- π₯ New preview mode:
vitedge previeworvitedge 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.envobject infunctionsdirectory (similar toprocess.env, but more consistent with Vite's behavior). - Support build watch:
vitedge build --watch.
Fixes
- Undefined
waitUntilin API calls during SSR run.
0.14.0
Features
- API can now be consumed from Page Props handlers using
fetch. #37 - New utility
useContextto access SSR Context from any component.
Fixes
- Wrong default
NODE_ENVvalue in staging. - Export
ClientOnlycomponent in Vue. - Default order of Webpack's
mainFieldsfor React. - General issues with typings.
0.13.3
- Fix: Type issues.
- Feat: Update to
[email protected]