v0.31.0
Summary
- ✅ Reduces app bundles sizes by 12%: #2039
- ✅ Unifies all imports to be from
blitzinstead of some also from@blitzjs/server: #2039
How to upgrade:
yarn add blitz@latestornpm install blitz@latest- Address the breaking changes below
💥 Breaking Changes
- The few imports from
@blitzjs/serverare now imported fromblitz: #2039-import [stuff] from '@blitzjs/server' +import [stuff] from 'blitz'
getSessionContextrenamed togetSession: #2039-getSessionContext(req, res) +getSession(req, res)
- Custom server import changed from
@blitzjs/servertoblitz/custom-server: #2039-const blitz = require('@blitzjs/server') +const blitz = require('blitz/custom-server')
- Removed
blitz testcli command because almost no-one uses it: #2057
👩🍳 Recipes
- Add
blitz install gh-action-yarn-mariadbGH action config for testing a mariadb or mysql database: #2056
Internal Meta Changes
- Fix deps: efcd1da
- Refactor jest preset: #2049
- added husky initialization in
pre-commit: #2051 - Docs: add kevinlangleyjr as a contributor: #2059
Credits
Huge thanks to @kevinlangleyjr and @JuanM04 for helping!