Blitz - 像️Rails一样的框架,用于单体,全栈React应用程序-建立在Next.js之上
⚡️Rails-like framework for monolithic, full-stack React apps — built on Next.js
🐞
Patches
- Fix logout not triggering re-renders for all queries: #1717
- Fix blitz compiler to ignore sqlite files: #1716
- Fix:
blitz db seed
should not run prisma migrations: #1718
⚡️
Changes to the New App Template
- Fix studio package.json script to use new blitz prisma command: #1709
Credits
Huge thanks to @malkomalko for helping!
Assets
2
🚀
New Features
-
🎉 Add custom server support!: #1492 - Add
SecurePassword
utilities to core so you can remove them fromapp/auth/auth-utils.ts
: #1667 - Add config option for cookie
domain
to sessionMiddleware: #1673 - Add
blitz prisma
CLI command for Prisma 2.13+ support: #1685
🐞
Patches
- Upgrade next: 10.0.4 → 10.0.5
- NOTE: You will need to add
isReady: true
tomockRouter
intest/utils.ts
: #1681
- NOTE: You will need to add
- Fix bug preventing a semicolon in session publicData: #1676
- Update tslog to version 3.0.5: #1680
Internal Meta Changes
- Docs: add kyken as a contributor: #1678
- Docs: add rembrandtreyes as a contributor: #1679
- Add @creimers as a contributor: 396f7e5
Credits
Huge thanks to @rembrandtreyes, @KATT, and @kyken for helping!
Assets
2
💥
Breaking Changes
- Remove implicit auto-build with
blitz start --production
. #1623- New usage:
blitz build && blitz start --production
- Probably you are already doing this by running
blitz build
in the build step andblitz start --production
in the run step of deployment.
- New usage:
- Removed
unstable_
prefix from session middleware: #1607
// blitz.config.js
-const { sessionMiddleware, unstable_simpleRolesIsAuthorized } = require("@blitzjs/server")
+const { sessionMiddleware, simpleRolesIsAuthorized } = require("@blitzjs/server")
module.exports = {
middleware: [
sessionMiddleware({
- unstable_isAuthorized: unstable_simpleRolesIsAuthorized,
+ isAuthorized: simpleRolesIsAuthorized,
}),
],
}
🚀
Minor Changes
- Add
blitz routes
command to see all routes: #1478
🐞
Patches
- Upgrade next: 10.0.3 → 10.0.4: #1644
- Fix broken css module imports: #1645
- Fix bug preventing imports from files/libraries ending in "pages" or "api": #1649
- Fix a false duplicate error with
.coverage
directory in your project: #1654 - Fix bug where "db" in a path name will break client side imports: #1594
- Fix bug where cancelling
blitz install
still outputs success message: #1616 - Fix
blitz db
commands showing incorrect error: #1648 - Fix: allow numbers and underscore in names for
blitz generate model
: #1618 - Add missing exports for
LinkProps
,ImageProps
, andErrorProps
: #1613 - Improve error message from
useQuery
for case of incorrect resolver location: #1653 - Remove unused packages from
core
: #1630 - Remove
pretty-ms
dependency (move code into core): #1628 - Remove unused packages from
@blitzjs/server
: #1634 - Upgrade all dependencies: #1657
- Remove unnecessary log message about git core.excludesFiles: #1663
- Change log message from "alpha software" to "beta software": c700ee4
- Change a number of dependencies to use ranges to help reduce size of installed node_modules: #1665
- Remove unused packages from
@blitzjs/installer
: #1633 - Remove
hasha
dependency: #1627 - Remove unused packages from
file-pipeline
: #1631 - Remove unused dep
node-fetch
: #1632 - Clean up fetch dependencies: #1642
⚡️
Changes to the New App Template
- Change Final Form
<LabeledTextField/>
to properly parse numbers: #1658 - Update a few dependencies including React to
0.0.0-experimental-3310209d0
: #1662 - Change prisma version to be pinned to a minor version: #1595
👩🍳
Recipes
- Fix and improve Theme UI recipe: #1583
- Add Reflexjs recipe: #1585
- Minor typo fix in chakra recipe explanation: #1597
Internal Meta Changes
- Add @phillipkregg as a contributor: 4e79196
- Add @timReynolds as a contributor: b31e1ac
- Upgrade Node.js to version 12.20.0: #1655
- Skip flaky windows packages test: #1635
- Added Reo as L1 Maintainer to the README: #1637
- Improve release script patch: d48161d
- Timeout example testing after 20mins: #1640
- Change all agnosticSource tests to not run on windows: #1643
- Fix CI windows example test and other CI maintenance: #1639
- Add G2i as sponsor: a749325
- Remove error stack from console output on testing: #1540
- Docs: add AkifumiSato as a contributor: #1591
- Docs: add rayandrews as a contributor: #1592
- Docs: add beeplin as a contributor: #1593
- Add Andreas Asprou as a seedling sponsor: 34ee44e
- Bump ini from 1.3.5 to 1.3.8: #1599
- Docs: add mattfwood as a contributor: #1601
- Add Render.com as a Bronze Sponsor!: b62dce3
- Docs: add jackbravo as a contributor: #1614
- Dylan Brookes retires from core team: 2ad5b68
- Docs: add Kosai106 as a contributor: #1619
- Docs: add arjundubey-cr as a contributor: #1620
- Docs: add chanand as a contributor: #1621
- Update release patch auto categorize allcontributors: bc829d6
Credits
Huge thanks to @KATT, @arjundubey-cr, @Skn0tt, @scisteffan, and @Kosai106, @reo777, @scisteffan, @rayandrews, @Kosai106, @arjundubey-cr, @chanand, @tundera, @mattfwood, and @AkifumiSato for helping!
Assets
2
🐞
Patches
- Fix broken css module imports: #1645
- Upgrade next: 10.0.3 → 10.0.4: #1644
- Remove unused packages from
@blitzjs/installer
: #1633 - Remove
hasha
dependency: #1627 - Remove unused packages from
file-pipeline
: #1631 - Remove unused dep
node-fetch
: #1632 - Clean up fetch dependencies: #1642
Internal Meta Changes
- Skip flaky windows packages test: #1635
- Added Reo as L1 Maintainer to the README: #1637
- Improve release script patch: d48161d
- Timeout example testing after 20mins: #1640
- Change all agnosticSource tests to not run on windows: #1643
- Fix CI windows example test and other CI maintenance: #1639
Credits
Assets
2
💥
Breaking Changes
- Removed
unstable_
prefix from session middleware: #1607
// blitz.config.js
-const { sessionMiddleware, unstable_simpleRolesIsAuthorized } = require("@blitzjs/server")
+const { sessionMiddleware, simpleRolesIsAuthorized } = require("@blitzjs/server")
module.exports = {
middleware: [
sessionMiddleware({
- unstable_isAuthorized: unstable_simpleRolesIsAuthorized,
+ isAuthorized: simpleRolesIsAuthorized,
}),
],
}
🚀
Minor Changes
- Add
blitz routes
command to see all routes: #1478
🐞
Patches
- Fix bug where "db" in a path name will break client side imports: #1594
- Add missing exports for
LinkProps
,ImageProps
, andErrorProps
: #1613 - Fix bug where cancelling
blitz install
still outputs success message: #1616 - Fix: allow numbers and underscore in names for
blitz generate model
: #1618
⚡️
Changes to the New App Template
- Change prisma version to be pinned to a minor version: #1595
👩🍳
Recipes
- Fix and improve Theme UI recipe: #1583
- Add Reflexjs recipe: #1585
- Minor typo fix in chakra recipe explanation: #1597
Internal Meta Changes
- Add G2i as sponsor: a749325
- Remove error stack from console output on testing: #1540
- Docs: add AkifumiSato as a contributor: #1591
- Docs: add rayandrews as a contributor: #1592
- Docs: add beeplin as a contributor: #1593
- Add Andreas Asprou as a seedling sponsor: 34ee44e
- Bump ini from 1.3.5 to 1.3.8: #1599
- Docs: add mattfwood as a contributor: #1601
- Add Render.com as a Bronze Sponsor!: b62dce3
- Docs: add jackbravo as a contributor: #1614
- Dylan Brookes retires from core team: 2ad5b68
- Docs: add Kosai106 as a contributor: #1619
- Docs: add arjundubey-cr as a contributor: #1620
- Docs: add chanand as a contributor: #1621
- Update release patch auto categorize allcontributors: bc829d6
Credits
Huge thanks to @scisteffan, @rayandrews, @Kosai106, @arjundubey-cr, @chanand, @tundera, @mattfwood, and @AkifumiSato for helping!
Assets
2
🚀
Minor Changes
- Add new
Image
component from Next.js 10: #1423import {Image} from 'blitz'
- Change
useParam()
to always returnundefined
if param doesn’t exist (instead of""
orNaN
: #1474 & #1491 - Update
blitz generate
templates for Prisma 2.12.0 compatibility: #1518 - Change
prisma.findOne
toprisma.findFirst
for Prisma 2.12 compatibility: #1525
🐞
Patches
- Upgrade next: 10.0.1 → 10.0.2: #1481
- Only run Lambda warm-up HEAD requests when target is serverless: #159
- Automatically clear
.blitz
cache when you change blitz versions: #1446 - Remove undocumented
hasOne
andhasMany
options fromblitz generate model
: #1476 - Fix initial migration for new apps is not included in the initial git commit: #1464
- Fix issue where
blitz start --production
rebuilds during deployment: #1477 - Fix an import edgecase by only rewriting relative paths imports for files in special folders: #1496
- Fix File not found with singular glob: #1493
- Fix bug where
blitz db seed
will error silently: #1510 - Fix image component external domains not working in production: #1463
- Fix ability to import from pages, API routes, and queries/mutations: #1456
⚡️
Changes to the New App Template
- Add
.next
and.blitz
to.prettierignore
: #1498
👩🍳
Recipes
👀
Changes to Example Apps
- Add Fauna Example: #1458
- Upgrade @prisma/cli: 2.10.0 → 2.12.0: #1523
- Upgrade @prisma/sdk: 2.10.0 → 2.12.0: #1524
- Upgrade @prisma/client: 2.12.0-dev.53 → 2.12.0: #1522
Internal Meta Changes
- Docs: add piotrski as a contributor: #1467
- Rudi Yardley retired as core member: f70d8d9
- Set up Kodiak for PR automerging: 555ea5b
- Cleanup unused args in server: #1494
- Docs: add KATT as a contributor: #1500
- Docs: add dmzza as a contributor: #1501
- Docs: add rayandrews as a contributor: #1502
- Fix lint warnings: #1515
- Docs: add rap2hpoutre as a contributor: #1520
- Docs: add Mzaien as a contributor: #1526
- Add @cwray-tech as a contributor: 1126b13
- Added Flavio as L1 Maintainer to the README: #1469
- Add @rap2hpoutre as a contributor: 8f20b07
Credits
Huge thanks to @KATT, @Zeko369, @dmzza, @rayandrews, @rap2hpoutre, @Skn0tt, @piotrski, @Mzaien, and @Flavyoo for helping!
Assets
2
💥
Breaking Changes
- Rename the useQuery
mutate
helper tosetQueryData
: #1291
-const [product, {mutate}] = useQuery(getProduct, {where: {id: props.query.id}})
+const [product, {setQueryData}] = useQuery(getProduct, {where: {id: props.query.id}})
🔥
Major Changes
🚀
Minor Changes
- Revert react-query to 2.5.12 because of concurrent mode bugs: #1430
🐞
Patches
- Fix infinite loop with multiple tabs open: #1453
- Fix error stack trace regression by upgrading tslog: 2.9.0 → 2.9.1: #1348
- Fix db.connect error when using without prisma: #1342
- Fix blitz CLI not using proper exit codes: #1316
- Fix your jest tests failing because of useQuery error message: #1357
- Fix
blitz db seed
not working: #1363 - Fix inconsistencies with the CLI
-h
flag: #1257 - Fix
useInfiniteQuery
broken cache: #1391 - Fix useQuery queries running on first render with empty parameters: #1444
- Fix TS type for useRouter(): #1422
- Improve error message about git and git config: #1432
- Improve error message for invalid RPC requests: #1450
- Added useMemo call for response from useRouter: #1352
- Remove
as
prop from blitz generate page templates: #1411 - Upon
blitz new
, prompt user for upgrade if blitz version is outdated: #1397 - Switch to superjson for error serialization (enables using
instanceof
): #1414 - Remove React imports from page templates: #1418
- Upgrade superjson: 1.2.3 → 1.3.0: #1347
⚡️
Changes to the New App Template
- Add
incremental:true
to tsconfig.json: #1350 - Move
tsc
from pre-commit to pre-push hook: #1362 - Fix tests not found if app has blitz in the name: #1355
- Move typescript to production dependencies (so
blitz db seed
works on prod deploy): #1377 - Upgrade react version to
0.0.0-experimental-4ead6b530
: #1451
👀
Changes to Example Apps
- Remove tailwind example app: #1384
- Upgrade @prisma/client: 2.8.0 → 2.10.0: #1395
- Upgrade @prisma/cli: 2.4.1 → 2.10.0: #1394
Internal Meta Changes
- Adds test to assert useMutation validation: #1351
- Docs: add nksaraf as a contributor: #1358
- Docs: add dulcehc as a contributor: #1359
- Docs: add markhaehnel as a contributor: #1360
- Docs: add sirmyron as a contributor: #1361
- Docs: add nemesv as a contributor: #1373
- Docs: add machadolucasvp as a contributor: #1380
- Added eslint import sorting: #1345
- Docs: add maciekgrzybek as a contributor: #1381
- Docs: add mweibel as a contributor: #1382
- Add sirmyron l1 maintainer: #1389
- Upgrade @prisma/sdk: 2.6.0 → 2.10.0: #1393
- Docs: add isoppp as a contributor: #1412
- Docs: add wobsoriano as a contributor: #1420
- Cypress test fix: #1369
- Docs: add benediktms as a contributor: #1429
- Bump next from 9.5.1 to 10.0.1 in /examples/plain-js: #1431
- Docs: add akirabaruah as a contributor: #1441
- Add @zanedb as a contributor: cbcbeef
- Add @goleary as a contributor: dbef6f9
- Update @nksaraf as a contributor: 6df771c
- Add @matamatanot as a contributor: 1ccfc7e
- Add @ericsakmar as a contributor: 4181738
- Add @leggsimon as a contributor: 6907e92
- Add @Talor-A as a contributor: c4d7593
- Add Bytes Newsletter signup banner: 56b18e4
Credits
Huge thanks to @aericson, @nksaraf, @markhaehnel, @sirmyron, @nemesv, @maciekgrzybek, @isoppp, @abuuzayr, @wobsoriano, @akirabaruah, @dulcehc, @machadolucasvp, @mweibel, @peaonunes, @svobik7, and @benediktms for helping!
Assets
2
🐞
Patches
- Truly fix the corrupted build this time: 158b668
Assets
2
🐞
Patches
- Upgrade next: 10.0.0 → 10.0.1: #1409
- Fix useInfiniteQuery bug on canary where page params are empty: #1416
- Remove
as
prop from blitz generate page templates: #1411 - Upon
blitz new
, prompt user for upgrade if blitz version is outdated: #1397 - Switch to superjson for error serialization (enables using
instanceof
): #1414
Internal Meta Changes
- Upgrade @prisma/sdk: 2.6.0 → 2.10.0: #1393
- Docs: add isoppp as a contributor: #1412
- Add @matamatanot as a contributor: 1ccfc7e
- Add @ericsakmar as a contributor: 4181738
- Add @leggsimon as a contributor: 6907e92
Examples
Credits
Assets
2
🔥
Major Changes
- Upgrade next: 9.5.5 → 10.0.0: #1385
🐞
Patches
⚡️
Changes to the New App Template
- Move
tsc
from pre-commit to pre-push hook: #1362 - Move typescript to production dependencies (so
blitz db seed
works on prod deploy): #1377
👀
Changes to Example Apps
- Remove tailwind example app: #1384
Internal Meta Changes
- Docs: add machadolucasvp as a contributor: #1380
- Added eslint import sorting: #1345
- Docs: add maciekgrzybek as a contributor: #1381
- Docs: add mweibel as a contributor: #1382
- Add sirmyron l1 maintainer: #1389
- Add @goleary as a contributor: dbef6f9
- Update @nksaraf as a contributor: 6df771c
Credits
Huge thanks to @maciekgrzybek, @machadolucasvp, @mweibel, @svobik7, and @sirmyron for helping!
Assets
2
💥
Breaking Changes
- Rename
mutate
tosetQueryData
: #1291
-const [product, {mutate}] = useQuery(getProduct, {where: {id: props.query.id}})
+const [product, {setQueryData}] = useQuery(getProduct, {where: {id: props.query.id}})
🚀
Minor Changes
- Add
setQueryData()
utility: #1291
🐞
Patches
- Fix
blitz db seed
not working: #1363 - Upgrade superjson: 1.2.3 → 1.3.0: #1347
- Fix error stack trace regression by upgrading tslog: 2.9.0 → 2.9.1: #1348
- Fix db.connect error when using without prisma: #1342
- Fix blitz CLI not using proper exit codes: #1316
- Fix your jest tests failing because of useQuery error message: #1357
- Added useMemo call for response from useRouter: #1352
⚡️
Changes to the New App Template
- Fix tests not found if app has blitz in the name: #1355
- Add incremental:true to tsconfig.json: #1350
Internal Meta Changes
- Adds test to assert useMutation validation: #1351
- Docs: add nksaraf as a contributor: #1358
- Docs: add dulcehc as a contributor: #1359
- Docs: add markhaehnel as a contributor: #1360
- Docs: add sirmyron as a contributor: #1361
- Docs: add nemesv as a contributor: #1373
- Add @zanedb as a contributor: cbcbeef
Credits
Huge thanks to @aericson, @nksaraf, @markhaehnel, @sirmyron, @nemesv, @dulcehc, and @peaonunes for helping!
Assets
2
🐞
Patches
- Fix types for useQuery that were broken with useMutation addition: #1181
Assets
2
🚀
Minor Changes
- Add
blitz db seed
for seeding data in your database: #678
🐞
Patches
- Speed up
blitz start
by 40% by adding incremental dev cache: #1137 - Upgrade react-query to 2.23.0: #945
- Fix
blitz console
not closing on first Ctrl+D: #1142 - Fix ES5 compatibility: upgrade superjson to 1.2.2: #1147
⚡️
Changes to the New App Template
- Improve Form typing: remove need to pass schema type: #1144
Internal Meta Changes
- Docs: add drmas as a contributor: #1146
- Add @kitze as a contributor: 7fac013
- Redirect MAINTAINERS.md to the new page in the docs: f83ce0b
Credits
Assets
2
🔥
Major Changes
- Remove prisma client generation from blitz in favor of new package.json schema config (Requires Prisma 2.7.0+ & new field in package.json)): #1121
🚀
Minor Changes
- Add --force flag for
blitz db reset
command: #1107 - Enable automatic network request cancelation for queries/mutations: #1092
🐞
Patches
- Change the new app schema provider to be just
sqlite
instead of an array: #1091 - Improve rendering of errors in generated Final Form <LabeledTextField>: #1095
- Fix
blitz generate pages
to use kebab-case for all url paths: #1089 - Add
test
,tests
,spec
,specs
to build hash ignore list: #1102 - Fix inability to have a
/test
page: #1111 - Fix cli cache file to be in temp directory instead of project directory: #1087
- Fix
blitz new
spewing out all the database migration logs: #1116 - Fix ES5 compatibility: #1124
⚡️
Changes to the New App Template
- Add tsc to pre-commit and lint to pre-push: #1104
- Add dotenv-flow to jest config for new apps: #1112
👩🍳
Recipes
- Improve Recipe for Render.com: #1108
Internal Meta Changes
- Docs: add taylorcjohnson as a contributor: #1093
- Add "recipe" and "newapp" type to release patch: 63c9375
- Docs: add doeixd as a contributor: #1109
- Docs: add hardfire as a contributor: #1113
-
🎉 Add Satoshi Nitawaki as L1 Maintainer: #1119 - Fix slack channel name in MAINTAINERS.md: #1117
- Add @tsriram as a contributor: 40a93ee
- Add @sergiodxa as a contributor: ab3fc26
- Update @cardotrejos as a contributor: 9ac856c
Credits
Huge thanks to @pbteja1998, @hardfire, @taylorcjohnson, @engelkes-finstreet, @doeixd, and @nitaking for helping!
Assets
2
🚀
Minor Changes
- Add
--inspect
flag to enable Node.js inspector: #1063
🐞
Patches
- Significantly improve CLI performance: reduce execute time from 1700ms -> 900ms: #1057
- Fix type error for useQuery/usePaginatedQuery options object: #1059
- Fix
blitz generate query
does not preserve plurality: #1083 - Fix an incorrect error message in
blitz start
: #1064
Internal Meta Changes
- Add React Bricks as Seedling Sponsor!: 530ce85
- Docs: add yuta0801 as a contributor: #1086
- Docs: add xiaoyu-tamu as a contributor: #1085
- Add @Obii-bit as a contributor: 1b974a0
- Add @JoseRFelix as a contributor: 3e2b5dd
- Add @johncantrell97 as a contributor: e6dbbab
- Add @cktang88 as a contributor: fd1856b
- Add @johnletey as a contributor: 89b5597
- Add @ditorojuan as a contributor: d84c73d
Credits
Huge thanks to @yuta0801, @xiaoyu-tamu, and @engelkes-finstreet for helping!
Assets
2
🐞
Patches
- Fix bug in default
_app.tsx
where Links inside ErrorBoundary don't work: #1054
Assets
2
Assets
2
🐞
Patches
Internal Meta Changes
- Fix CI by removing browser setting for cypress: #996
- Update readme to list auth & recipes as current features: #990
Credits
Huge thanks to @LoriKarikari and @peaonunes for helping!
Assets
2
💥
Breaking Changes
0.18.0
or greater.
🔥
Major Changes
-
😱 Add user signup/login/logout to new apps by default❗️ : #834 - Add Jest and React Testing Library to new apps: #810
- Enable full JS object serialization/deserialization for queries/mutations by integrating superjson: #827
🚀
Minor Changes
- Add Persistent layout to new app template with
<Layout>
andgetLayout()
: #897 - Add
SessionContext
andsession.authorize()
to query/mutation generators: #869 - Update eslint to v7 in new app template and the blitz repo: #853
- Change new app template to set database through .env: #876
- Add
--no-git
flag toblitz new
#889 (WIP): #905 - Migrate Recipes to jscodeshift and Support conditional JSX expressions: #898
- Change
db/index.ts
in new app template to useglobalThis
instead ofglobal
: #813 - Rename
.babelrc.js
tobabel.config.js
in new app template: #849 - Upgrade Next.js to 9.5.2: #872
🎂
Recipes
- Add Blitz Recipe for Chakra-UI:
blitz install chakra
#830 - Add Blitz Recipe for Render.com:
blitz install render
#835 - Add Blitz Recipe for Emotion:
blitz install emotion
#805 - Add Blitz Recipe for Material-UI:
blitz install material-ui
: #840
🐞
Patches
- Fix
prisma.connect
warning with prisma 2.4.0: #839 - Add extra debugging info to
blitz -v
: #816 - Fix
blitz db reset
for Prisma >= 2.2.0: #870 - Fix session middleware when deployed to Vercel: #871
- Fix render recipe by adding NODE_ENV=production: 1a7274e
- Fix to not use secure cookies on localhost: #895
- Fix return types of
useParam
anduseParams
: #902 - Show
blitz install
command inblitz help
output: #903 - Change
useQuery
to only retry on network errors by default: #908 - Change
ctx.session.userId
type to beany
: #912 - Fix: Refetch all queries if session changes: #914
- Fix to allow usage without
db/index.(ts|js)
file: #906 - Allow having
pageName.test.tsx
insidepages
: #850 - Capitalize help command description: #899
👀
Changes to Example Apps
- Add e2e tests to auth example: #817
- Update all examples to use latest eslint: #852
- Bump Prisma Version to Latest in Examples (#893): #866
Internal Meta Changes
- Bump lodash from 4.17.15 to 4.17.19 in /examples/plain-js: #829
- Docs: add rubenmoya as a contributor: #831
- Docs: add agoxlea as a contributor: #845
- Docs: add chris-tse as a contributor: #846
- Docs: add nettofarah as a contributor: #860
- Docs: add rohanjulka19 as a contributor: #867
- Docs: add pragmaticivan as a contributor: #873
- Docs: add drenther as a contributor: #883
- Docs: add scisteffan as a contributor: #884
- Docs: add kripod as a contributor: #892
- Docs: add toddgeist as a contributor: #896
- Docs: add Weilbyte as a contributor: #907
- Docs: add cardotrejos as a contributor: #911
- Update @dwightwatson as a contributor: ade63c5
- Add @SebastianKurp as a contributor: 984a10a
Credits
Huge thanks to @Zeko369, @peaonunes, @pragmaticivan, @dwightwatson, @drenther, @wKovacs64, @aem, @Weilbyte, @kripod, @agoxlea, @chris-tse, @toddgeist, @simonedelmann, @rubenmoya, and @nettofarah for helping!
Assets
2
🚀
Minor Changes
- Add
SessionContext
andsession.authorize()
to query/mutation generators: #869 - Update eslint to v7 in new app template and the blitz repo: #853
🐞
Patches
- Upgrade Next.js to 9.5.2: #872
- Rename
.babelrc.js
tobabel.config.js
in new app template: #849 - Fix
blitz db reset
for Prisma >= 2.2.0: #870 - Fix session middleware when deployed to Vercel: #871
- Improve default
useQuery
retry behavior in production: #874 - Fix superjson serialization for useQuery hook: #875
- Allow having
pageName.test.tsx
insidepages
: #850 - Fix render recipe: b6b877e
👀
Changes to Example Apps
- Update all examples to use latest eslint: #852
Internal Meta Changes
- Docs: add nettofarah as a contributor: #860
- Docs: add rohanjulka19 as a contributor: #867
- Docs: add pragmaticivan as a contributor: #873
- Update @dwightwatson as a contributor: ade63c5
Credits
Huge thanks to @pragmaticivan and @nettofarah for helping!
Assets
2
🚀
Minor Changes
- Add Jest and React Testing Library to new apps: #810
🐞
Patches
- Add superjson to mutations: #848
- Fix
prisma.connect
warning with prisma 2.4.0: #839 - Add extra debugging info to
blitz -v
: #816 - Typo on tailwind recipe: #844
Internal Meta Changes
Credits
Huge thanks to @peaonunes, @osirvent, @agoxlea, and @chris-tse for helping!
Assets
2
💥
Breaking Changes
- Enable full JS object serialization/deserialization for queries/mutations by integrating superjson: #827
- If you were previously relying on the faulty behavior of
useQuery
returning strings for dates, this will break your app. Now if your resolver returns aDate
object, so willuseQuery
.
- If you were previously relying on the faulty behavior of
🔥
Major Changes
- Add user signup/login/logout to new app template: #834
👀
Changes to Example Apps
- Add e2e tests to auth example: #817
Internal Meta Changes
- Bump lodash from 4.17.15 to 4.17.19 in /examples/plain-js: #829
- Docs: add rubenmoya as a contributor: #831
Credits
Huge thanks to @rubenmoya for helping!
Assets
2
💥
Breaking Changes
- Rename
<Error>
to<ErrorComponent>
: #808
- import {Error} from 'blitz'
+ import {ErrorComponent} from 'blitz'
🚀
Major Changes
-
🎉 Add Blitz Authentication and Session Management!- Includes a Passport.js adapter, so you can easily use any Passport strategy with Blitz
- Read the docs!
-
🎉 Add Blitz Recipes!- One command to install any available recipe, like
blitz install tailwind
- Read the docs on using recipes
- Read the docs on writing recipes
- One command to install any available recipe, like
🚀
Minor Changes
- Add
NotFoundError
to Blitz and add default 404 page to new app template: #811 - Change new app template to use react-error-boundary instead of custom
ErrorBoundary
component: #807 - Add optional returnType parameter to
useParams
: #759 - Improved API for defining Blitz Recipes: #770
- Allow custom DB connection logic and add example for using DB clients other than Prisma: #739
- Add Blitz Recipe for Tailwind CSS: #776
- Upgrade Next.js to 9.5.1: #812
- Upgrade react-query to 2.5.11: #820
🐞
Patches
- Fix a couple useParam() bugs + add full tests: #762
- Fix small README typo in new app template: #764
- Fix error during static pre-rendering in development: #761
- Fix
blitz db migrate
stuck on first production deploy: #786 - Fix global middleware not working in serverless builds: #787
- Fully fix errors from useQuery during pre-rendering: #791
- Add Node version check and warning to CLI startup routine: #804
- Remove
delete data.id
from Generated update mutations: #789 - Fix bug when users use
next-compose-plugins
and with framework code being transpiled in dev: #823
👀
Changes to Example Apps
- Change auth example to use a shared
<Form>
component that abstracts the actual form library: #778 - Add bundle analyzer to auth example: #795
- Add example usage of superjson with
getServerSideProps
in store example: #819 - Add to store example superjson for getStaticProps: #822
Internal Meta Changes
- Bump lodash from 4.17.15 to 4.17.19: #769
- Docs: add rubenmoya as a contributor: #783
- Remove GUI code - rework in progress: #781
- Enable CI cache for windows: #785
- Docs: add robertgrzonka as a contributor: #802
- Add github orkflow for bundle size reporting: #799
- Bump elliptic from 6.5.2 to 6.5.3 in /examples/plain-js: #818
- Update sponsorship section: 7f8609b
- Update README.md: 852fdc6
Credits
Huge thanks to @aem, @Skn0tt, @cktang88, @rubenmoya, @simonedelmann, @merelinguist, and @robertgrzonka for helping!
Assets
2
🚀
Minor Changes
-
🎉 Add Passport.js authentication adapter!: #796 - Allow custom DB connection logic and add example for using DB clients other than Prisma: #739
🐞
Patches
- Fully fix errors from useQuery during pre-rendering: #791
- Fix cannot read property 'getSession' of undefined: #790
👀
Changes to Example Apps
- Add bundle analyzer to auth example: #795
Internal Meta Changes
- Docs: add robertgrzonka as a contributor: #802
- Add github orkflow for bundle size reporting: #799
- Update README.md: 852fdc6
Credits
Huge thanks to @Skn0tt and @robertgrzonka for helping!
Assets
2
🐞
Patches
- Switch to url safe CSRF tokens: #777
Assets
2
🐞
Patches
- Update blitz db cli command to default to --help if no command specified: #730
- Fix buggy global/local CLI resolution code: #731
Internal Meta Changes
- Docs: add tylangesmith as a contributor: #732
Credits
Huge thanks to @tylangesmith for helping!
Assets
2
🔥
Breaking Changes
- Upgrade React Query to v2: #720
- Dependent queries are now accomplished with the
enabled
flag instead of a function that 'throws':--useQuery(getProjects, () => ({where: {id: projectId}}) ++useQuery(getProjects, {where: {id: projectId}}, { enabled: !!projectId })
- There are some other breaking changes for less commonly used features. You can see the full list of breaking changes here: react-query v2 release notes
- Dependent queries are now accomplished with the
🚀
Minor Changes
- Add support for Optimistic UI Updates by adding refetch option to useQuery mutate(): #715
🐞
Patches
- Fix
blitz db reset
for Prisma >= 2.0.0-beta.8: #716 - Fix middleware error handling when using
next(error)
: #719 - Fix
Router
export fromblitz
: #722 - Fix experimental flags in blitz.config.js not being used: #721
Internal Meta Changes
- Docs: add SigurdMW as a contributor: #718
- Add auth example app (currently empty, PRs coming soon): 35b5f12
- Add @styfle as a contributor: 8d699f5
- Docs: add shaunchurch as a contributor: #717
- Add @sbardian as a contributor: d4cb652
- Add @garrisons as a contributor: 06859d6
Credits
Huge thanks to @shaunchurch, @toshi1127, @SigurdMW, and @ganeshmani for helping!
Assets
2
🐞
Patches
- Fix
blitz start -p 1234
not throwing an error if port 1234 is already in use: #631 - Fix
blitz new
dependency install issue (missing dependency in @blitzjs/generator): #711 - Fix field names being modified during model generation: #708
Internal Meta Changes
- Update @osirvent as a contributor: c6f4772
- Update @LoriKarikari as a contributor: 9c04a9d
- Update MEETING_NOTES.md: 48250d0
Credits
Huge thanks to @ganeshmani, @wKovacs64, and @toshi1127 for helping!
Assets
2
🐞
Patches
- Fix the stuck at _manifest bug on
blitz start
#697 - Update react-query to 1.5.8: #692
- [Page template] Forward submit event from form to parent event handler: #695
Internal Meta Changes
Credits
Huge thanks to @simonedelmann, @wKovacs64, and @ryardley for helping!
Assets
2
💥
Breaking Changes
- Change
query
inuseRouter
andwithRouter
to only have query string items and then addparams
which contains only the dynamic route parameters (see the new docs): #677- This brings
useRouter
andwithRouter
into harmony with ouruseParams()
anduseRouterQuery()
hooks
- This brings
🚀
Minor Changes
- Add HTTP Middleware!!
🎉 (see the new docs): #652
🐞
Patches
- Fix top level await in
blitz console
🎉 : #659 - Prevent
blitz db migrate
from attempting to create new migration files in production: #683 - Ignore all
.git
sub files and folders: #687 - Fix typo in model generation output: #688
Internal Meta Changes
Credits
Huge thanks to @toshi1127, @ryardley, and @wKovacs64 for helping!
Assets
2
🐞
Patches
- Add spinner for Prettier formatting during 'blitz new': #680
- Fix missing
useParam
import inedit.tsx
page template: #684 - Possible fix for stuck at _manifest: Debounce manifest writing: #685
Internal Meta Changes
- Syncify getConfig method in @blitzjs/config package: #676
- Fix eslint warnings in GUI: #679
- Docs: add fnoah as a contributor: #681
- Docs: add donni106 as a contributor: #686
Credits
Huge thanks to @fnoah, @donni106, @ryardley, and @Zeko369 for helping!
Assets
2
🚀
Minor Changes
- Add
useInfiniteQuery
hook (read the docs): #590 - Add
useQuery
mutate function for updating query cache (read the docs): #596 - Add
useParams
anduseRouterQuery
hooks (read the docs): #574 - Add ability to prefetch query data (read the docs): #546
🐞
Patches
- Fix queries when Prisma isn't being used: #593
- Fix
blitz console
loading freeze: #592 - Fix
blitz help
not working from global cli: #613 - Ensure Prisma client is generated on blitz build & blitz start: #567
- Allow function config in blitz.config.js: #599
- Do not warn on nested route errors: #601
- Fix ready event bug: #616
- Tiny improvement to
blitz console
help text: 3215b32
Internal Meta Changes
- Update release script: 4181efb
- Fix
examples/store
code style issues: #580 - Docs: add anteprimorac as a contributor: #581
- Docs: add MykalMachon as a contributor: #594
- Docs: add ganeshmani as a contributor: #625
- Remove alpha docs and redirect to blitzjs.com: #628
- [RFC] Blitz File Structure & Routing: #74
- [RFC] Blitz App Architecture: #73
- Add rules summary to stages README.md: #629
- Add new unit tests for file-pipeline: #617
- Tidy up tests in server: #584
- Extract out display package: #589
- Extract out file transformer: #591
- Add base infrastructure for
blitz gui
: #603 - Add universal stream abstraction: #615
- Docs: add jamiedavenport as a contributor: #622
- [GUI] Fallback to NPM when Yarn isn't installed: #621
- Fix Glob in GUI for Windows: #609
Credits
Huge thanks to @eliasjohansson, @anteprimorac, @ivandevp, @MykalMachon, @jportela, @wKovacs64, @ganeshmani, @ryardley, @MrLeebo, @merelinguist, and @jamiedavenport for helping!
Assets
2
⚠️
Breaking Changes
- Change useQuery() to require second argument: #526
Previous code generators generated a page with an empty query. If still using that, you will need to make a change like this:
--const [projects] = useQuery(getProjects)
++const [projects] = useQuery(getProjects, {})
🚀
Minor Changes
- Add support for Dependent Queries to useQuery and usePaginatedQuery: #487
- Add studio pkg.json script to new app template: #568
- Use previous built files for
blitz start --production
if they are up to date. This improves DX for deployment to Render.com: #565
🐞
Patches
- Upgrade next to 9.4.4 version: #576
- Update Render deployment instructions in USER_GUIDE: #532
- Improved error messages for
blitz db
commands: #544 - Fix some dependency install warnings: #547
- Remove the unused jobs folder from the new app template: #561
- Tiny refactor to new app template's index page: #563
- Fix error in types for generated queries: #537
- Improve JSON readability on generated show page: #548
- Update user guide with pgbouncer instructions for Prisma: 0f27908
Internal Meta Changes
- Fix bug in installer package with log imports: #535
- Docs: add nabi009 as a contributor: #536
- Docs: add lachlanjc as a contributor: #550
- Add codebase walkthrough video to CONTRIBUTING.md: b1c8cf6
- Create MEETING_NOTES.md: a7195f4
- Docs: add enzoferey as a contributor: #555
- Docs: add pgrimaud as a contributor: #556
- Docs: add jletey as a contributor: #564
- Extract CLI repl into its own package: #520
- Add architecture diagram to readme: cde418f
- Add husky git hooks for yarn install when changing branches: #571
- Docs: add pixelmord as a contributor: #575
- Docs: add kevotovar as a contributor: #578
- Update README.md: a8e352c
- Add meta and assets packages: #521
- Fix typos: #551
- Disable video for cypress test. Not needed and causing ci problems: f3ad5fd
Credits
Huge thanks to @jclancy93, @Zeko369, @johncantrell97, @MrLeebo, @enzoferey, @jletey, @ryardley, @kevotovar, @lachlanjc, @aem, @peaonunes, @pixelmord, @merelinguist, and @pgrimaud for helping!
Assets
2
⚠️
Breaking Changes
- Extract
usePaginatedQuery
out ofuseQuery
into a separate hook: #523useQuery(myQuery, {}, {paginated: true})
is nowusePaginatedQuery(myQuery, {})
Minor Changes
-
🎉 Add--parent
toblitz generate
for generating "child" pages: #494 - Update all templates for
blitz generate
to be a bit better for real usage: #494 - Change the
[id]
route parameter to[modelId]
for generated pages: #494- Instead of
/project/[id].tsx
, generated route will be/project/[projectId].tsx
- This is because of a limitation with Next that prevents
[id]
and[projectId]
at the same level. This happens when you have "child" pages of a parent model.
- Instead of
Patches
- Upgrade Next.js to 9.4.1: #527
- Add instructions to deploy to Render.com to the USER_GUIDE: #518
- Fix oclif hook id bug: #522
- Ensure same prisma client is being used on hot reload: #514
Internal Meta Changes
- Increase jest timeout for cli: 4f5c09f
- Update fork sync script to add upstream remote: #512
- Docs: add abuuzayr as a contributor: #513
- Increase cypress test timeout: 3f265c8
- Adds a failure message if the cli compilation isn't complete: #524
Credits
Huge thanks to @eliasjohansson, @aem, @Zeko369, and @abuuzayr for helping!
Assets
2
⚠️
Required for Upgrade
- Update
blitz
to0.10.0
- Update
react
andreact-dom
to0.0.0-experimental-33c3af284
Minor Changes
- Update Next.js to 9.4! #498
-
🚀 Add context path option toblitz generate
: #493- Ex:
blitz generate all admin/categories
will generate files insideapp/admin/categories/
- Ex:
Patches
- Run prettier on output of
blitz generate
commands: #453 - Fix git commit error during
blitz new
: #501 - Fix some node v10 compatibility issues: #454
- Fix
blitz db reset
command: #497
Internal Meta Changes
- Add Fauna as a bronze sponsor
🎉 : #484 - Add CI step to monitor install time: #420
- Fix jest typo: #486
- Docs: add lednhatkhanh as a contributor: #489
- Add github discussions: 3a407b7
- Support remote packages in the installer: #491
- Fix blitz generate error about prettier parser: #499
- Change all dependency versions to be pinned: #500
- Fix blitz new failing because of prettier babel-ts error: #502
- Add Jack Clancy (@jclancy93) and Ivan Medina (@ivandevp) as L1 mainta…: #504
- Make a few cleanups to guides and templates: #506
Credits
Huge thanks to @Zeko369, @aem, @lednhatkhanh, @Skn0tt, @wKovacs64, and @dwightwatson for helping!
Assets
2
Patches
- Update react-query to 1.3.3: #450
- Allow blitz in both dependencies and dev dependencies: #474
- New app template: Pin react experimental version & fix graceful fallback for prisma version: #479
- Remove blitz db migrate from new app template build script: #480
- Remove JS instructions and flag until we get bugs fixed #407
- Fix RPC routes on Windows: #451
Internal Meta Changes
- Update maintainers on allcontributors: #456
- Docs: add MrLeebo as a contributor: #457
- Test: Add RPC tests: #449
- Add base infrastructure for
blitz install
: #434 - Ci: run tests on both Windows and Ubuntu: #368
- Fix blitz new --js not working in monorepo: #481
- Fix failing cypress test: 944ec45
Credits
Huge thanks to @ivandevp, @ryardley, @tmns, @wKovacs64, @0ww, @MrLeebo, and @aem for helping!
Assets
2
Minor Changes
Patches
- Fix CLI crash when prisma is not installed: #438
- Fix
blitz console
by adding missing tsconfig-paths dependency: #439 - Change
blitz new
--no-yarn flag to --npm, for better UX: #442 - Fix Node 10 error for Object.fromEntries: #441
- Fix file path in TUTORIAL: #429
- Add helpful error messages to CLI when trying to use commands outside an app: #319
- Fix bug with absolute imports in JS projects: #433
Internal Meta Changes
- Docs: add harris1717 as a contributor: #436
- Fix
blitz new
not working when linked from monorepo: c5008e2 - Docs: add ivandevp as a contributor: #443
- Docs: add dwightwatson as a contributor: #444
- Docs: add is2ei as a contributor: #445
- Test(generator): ignore dist directory: #427
Credits
Huge thanks to @ivandevp, @dwightwatson, @wKovacs64, @harris1717, @Zeko369, and @is2ei for helping!
Assets
2
Patches
- Fix
blitz generate
generating wrong paths for queries/mutations!: #424 - Add null-loader for @prisma/client to fix child_process crashes: #423
- Improve error message for api routes in wrong folder: #342
- Add instructions on how to generate a plain JS project: #407
- Fix husky hooks not being set up for new apps: #399
- Fix lint error for generated code about
confirm
: 4ac7800
Changes to Example Apps
- Fix postcss purge routes on Tailwind example: #381
Internal Meta Changes
- Fix fetchRemote dev script to be sh compatible: #406
- Remove extraneous console.log: #411
- Docs: add tmns as a contributor: #418
- Contributing.md: Add node-pty troubleshooting for WSL: #419
- Docs: add simonpeterdebbarma as a contributor: #421
- Docs: add tmns as a contributor: #422
- Fix additional lint rules: #366
- Fix(server): force forward slashes in absolute imports: #393
- Make tutorial link more prominent: 2c9e8e1
- Refactor(cli): split out generator package: #346
Credits
Huge thanks to @kandros, @tmns, @aem, @peaonunes, @osirvent, @simonpeterdebbarma, @jportela, and @wKovacs64 for helping!
Assets
2
Minor Changes
- Add plain JavaScript support with
blitz new myapp --js
: #305 - Add lint rule 'no-anonymous default export' for new apps: #337
- Add
blitz db reset
command: #339
Patches
- Move typescript to devDependencies in new app template: #293
- Print helpful error if try to use CLI commands outside of blitz app: #203
- Update new app instructions in template for SQLite: #320
- Docs(tutorial): fix a couple typos and change some copy: #344
- Tutorial: Fix database query syntax in example code: #354
- Update some tutorial issues: #359
- Remove unnecessary runtime file process logging: #369
- Fix prettier failure on
blitz new
with npm: #370 - Change
@blitzjs/core
toblitz
in new app template _document: #379 - Major cleanup to
blitz new
dependency update + graceful failure (Closes #202, #284): b08de10 - Fix git ignored files being processed when they shouldn't: #365
- Hide all the scary warning messages during
blitz new
: #302 - Remove next dependency from new app template package.json: #387
- Fix broken
blitz start
in canary: #389 - Feature/update server nextjs version: #313
- Log any errors that happen during blitz start/build: b249ce0
Changes to Example Apps
- Update next in examples: #351
- Add beginner tutorial: #336
- Fix errors in Tutorial.md for the console usage: 79d9619
- Native tailwindcss purgecss integration: #362
Internal Meta Changes
- Announcing Official Core Team and Maintainers + Maintainers.md and Governance.md: #307
- Add Simon Knott (@Skn0tt) as level 1 maintainer: #308
- Docs: add kandros as a contributor: #297
- Add Elias Johansson (@eliasjohansson) as L1 maintainer: #310
- Add Lori Karikari (@LoriKarikari) as L1 maintainer: #311
- Add Corey Brown (@coreybrown89) as L1 maintainer: #315
- Test(server): normalize CWD in relative paths synchronizer rule test: #300
- Docs: add kandros as a contributor: #317
- Update contributing.md with weekly call info: #321
- Add cypress E2E test for store example + CI (+ switch store to SQLite): #335
- Docs: add dajinchu as a contributor: #327
- Docs: add kandros as a contributor: #329
- Docs: add jportela as a contributor: #328
- Docs: add Shinyaigeek as a contributor: #340
- Add Jeremey Liberman (@MrLeebo) as L1 Maintainer: #355
- Docs: add fullmetalengineer as a contributor: #356
- Update MAINTAINERS.md: #357
- Docs: add wKovacs64 as a contributor: #358
- Enables linting rules for kebabCase and no-default-export: #298
- Update MAINTAINERS.md Fundamentals section: fb298bb
- Add Jaga Santagostino (@kandros) as L1 maintainer: #363
- Update MAINTAINERS.md with Slack info: ae15456
- Docs: add developerfred as a contributor: #380
- Style: fix editor integration with ESLint: #373
- Docs: add peaonunes as a contributor: #382
- Add Simon Debbarma (@simonpeterdebbarma) as L1 maintainer: #390
- Feat(cli): use custom template format instead of EJS: #281
- In-memory FS for server tests: #323
- Remove parallel tests so they don't have false failure: 75816d1
- Script add force publish: 86ace11
- Fix Typo: #341
- Docs: add merelinguist as a contributor: #364
- Update publish script: 7ec6244
- Fix publish script: bec4a65
- Revert "fix publish script": 2b79c3f
- Add back --parallel and double jest call in cli tests, because still failing on 1st run again: 21f29d2
Credits
Huge thanks to @aem, @Shinyaigeek, @LoriKarikari, @kandros, @Zeko369, @wKovacs64, @fullmetalengineer, @DevanB, @ryardley, @Skn0tt, @developerfred, @eliasjohansson, @karankiri, @merelinguist, @Jfelix61, @jportela, and @dajinchu for helping!
Assets
2
Minor Changes
- Add plain JavaScript support with
blitz new myapp --js
: #305
Patches
- Move typescript to devDependencies in new app template: #293
- Print helpful error if try to use CLI commands outside of blitz app: #203
Changes to Example Apps
- Add beginner tutorial: #336
Internal Meta Changes
- Announcing Official Core Team and Maintainers + Maintainers.md and Governance.md: #307
- Add Simon Knott (@Skn0tt) as level 1 maintainer: #308
- Docs: add kandros as a contributor: #297
- Add Elias Johansson (@eliasjohansson) as L1 maintainer: #310
- Add Lori Karikari (@LoriKarikari) as L1 maintainer: #311
- Add Corey Brown (@coreybrown89) as L1 maintainer: #315
- Test(server): normalize CWD in relative paths synchronizer rule test: #300
- Docs: add kandros as a contributor: #317
- Update contributing.md with weekly call info: #321
- Add cypress E2E test for store example + CI (+ switch store to SQLite): #335
- Update CONTRIBUTING.md: f519f15
- Fix code owners: a36d943
- Feat(cli): use custom template format instead of EJS: #281
- In-memory FS for server tests: #323
- Remove parallel tests so they don't have false failure: 75816d1
Credits
Huge thanks to @aem, @kandros, @Zeko369, @merelinguist, @wKovacs64, and @dajinchu for helping!
Assets
2
Assets
2
Patches
Assets
2
Watchers:114 |
Star:6251 |
Fork:334 |
创建时间: 2020-02-18 05:54:15 |
最后Commits: 今天 |
a0e6eeb
Compare