Summary
- ✅ Reduces app bundles sizes by 12%: #2039
- ✅ Unifies all imports to be from
blitz
instead of some also from@blitzjs/server
: #2039
How to upgrade:
yarn add blitz@latest
ornpm install blitz@latest
- Address the breaking changes below
💥 Breaking Changes
- The few imports from
@blitzjs/server
are now imported fromblitz
: #2039-import [stuff] from '@blitzjs/server' +import [stuff] from 'blitz'
getSessionContext
renamed togetSession
: #2039-getSessionContext(req, res) +getSession(req, res)
- Custom server import changed from
@blitzjs/server
toblitz/custom-server
: #2039-const blitz = require('@blitzjs/server') +const blitz = require('blitz/custom-server')
- Removed
blitz test
cli command because almost no-one uses it: #2057
👩🍳 Recipes
- Add
blitz install gh-action-yarn-mariadb
GH 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!