Releases: blitz-js/blitz
v0.15.0
💥 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!
v0.14.1
🐞 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!
v0.14.0
💥 Breaking Changes
- Rename
NextScript
toBlitzScript
: #638- You need to make the following change in your
_document.tsx
file:
- You need to make the following change in your
--import { Document, Html, DocumentHead, Main, NextScript, DocumentContext } from "@blitzjs/core"
++import { Document, Html, DocumentHead, Main, BlitzScript, DocumentContext } from "@blitzjs/core"
class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx)
return { ...initialProps }
}
render() {
return (
<Html lang="en">
<DocumentHead />
<body>
<Main />
-- <NextScript />
++ <BlitzScript />
</body>
</Html>
)
🚀 Minor Changes
- 🎉 Add
blitz generate model
See the docs — #545 - Add
useParam
hook See the docs — #637- This is super nice for getting route parameters as
number
instead ofstring
!!
- This is super nice for getting route parameters as
- Add missing re-export items from Next.js: #636
Error
,InferGetStaticPropsType
andInferGetServerSidePropsType
🐞 Patches
- Update query/mutation templates for Prisma 2.0.0: #655
- Add AppProps to _app.tsx in new app template (#674): #671
- Only parse typescript/js files: #645
- Add dot option to glob: #646
- Fix pipeline build error: #651
👀 Changes to Example Apps
- Update example apps to Prisma 2.0.0: #658
Internal Meta Changes
- Docs: add reymon359 as a contributor: #640
- Rewrite recipe installer framework with Ink: #608
- Docs: add anteprimorac as a contributor: #648
- Docs: add gvasquez11 as a contributor: #649
- Do some yarn workspace maintenance: #633
- Docs: add josemiguelo as a contributor: #657
- Docs: add osirvent as a contributor: #660
- Fix broken linting by centralizing it + run via lint-staged: #661
- Sync README parts with blitzjs.com/docs/getting-started: #664
- Docs: add donni106 as a contributor: #665
- Add three lint rules to catch async/await promise bugs: #662
- Docs: add exclipy as a contributor: #673
- Docs: add tehnuge as a contributor: #675
- Add @blitzjs/config package for internal use: #653
- GUI: Import Blitz Projects: #643
Credits
Huge thanks to @anteprimorac, @aem, @gvasquez11, @reymon359, @merelinguist, @ryardley, @osirvent, @donni106, @Zeko369, and @ditorojuan for helping!
v0.13.0
🚀 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!
v0.12.0
⚠️ 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!
v0.11.0
⚠️ 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
- Change DB index.ts template to 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!
v0.10.0
⚠️ 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 to
blitz 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!
v0.9.1
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!
v0.9.0
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!
v0.8.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!