Releases: blitz-js/blitz
v0.15.3
🐞 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!
v0.15.2
🐞 Patches
- Fix page generator with custom context: #669
- Fix broken CLI from error: @blitzjs/cli: Cannot find module 'react': #704
- Fix broken cli when using npm where global blitz version used instead of local: #705
- Various DX improvements: #706
Internal Meta Changes
- Standardize prettier options across all Blitz code bases: #703
- Add @shaunchurch as a contributor: 8ae42c5
- GUI design polish: #702
- Remove post-checkout git hook - too annoying: 25f96d0
Credits
Huge thanks to @peaonunes, @wKovacs64, and @merelinguist for helping!
v0.15.1
🐞 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!
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!