1
0
mirror of synced 2026-02-04 03:01:17 -05:00

Compare commits

...

186 Commits

Author SHA1 Message Date
github-actions[bot]
0959a11fc6 Version Packages (beta) (#3930)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-04 15:52:57 -04:00
Siddharth Suresh
4545912936 Include resolvers in src in blitz console (#3933)
* optimse only-db flag and add src directory to find resolvers in console

* default parameter
2022-11-04 12:32:45 -04:00
Brandon Bayer
55a43ce1f8 maybe fix anon session CSRF issue + add ability to customize anon session expiry time (#3945)
* maybe fix anon session CSRF issue + add ability to customize anon session expiry time
2022-11-04 12:12:15 -04:00
Aleksandra
1569bd53e0 Upgrade tslog to latest version (#3946)
* Upgrade tslog to latest version
2022-11-04 11:59:13 -04:00
Siddharth Suresh
8e5903c0fa Fix cannot find module db error in JavaScript template (#3940)
* use AST to parse the config and allow blitz server to be in `src`
2022-11-02 09:22:49 -04:00
Brandon Bayer
11b548edee make logger optional (will default to BlitzLogger) (#3939)
* make logger optional (will default to BlitzLogger)
2022-11-01 15:28:57 -04:00
Siddharth Suresh
ceb7db274f Add GET support to RPC specification (#3891) 2022-10-29 17:10:27 -04:00
github-actions[bot]
0ebdf3bc93 Version Packages (beta) (#3929)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-28 15:27:06 +08:00
Aleksandra
1b798d9a03 Export enhancePrisma from the server entry point (#3928)
* Export enhancePrisma from the server entry point

* Changeset

* Update pnpm lock
2022-10-27 10:04:31 -04:00
Blitz.js Bot
758ccbbbe5 (meta) added @joneskj55 as contributor 2022-10-25 06:38:44 -04:00
github-actions[bot]
d73b1d76ab Version Packages (beta) (#3916)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-25 18:32:26 +08:00
Dillon Raphael
78fd5c489b Fix Blitz Install (#3909) 2022-10-24 21:50:54 -04:00
Aleksandra
60de057477 Fix reset token being undefined when passed to the resetPassword mutation (#3922) 2022-10-22 11:23:51 +08:00
Siddharth Suresh
0a8b0cb350 Custom Server TS error (#3888) 2022-10-20 14:56:40 +08:00
Aleksandra
5476139375 Remove unnecessary as number assertions from new app templates (#3915) 2022-10-19 16:25:35 +08:00
github-actions[bot]
81dd346c85 Version Packages (beta) (#3907)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-19 14:56:44 +08:00
Aleksandra
6f4349896f Fix 'ambiguous class detected' errors (#3912) 2022-10-19 13:44:33 +08:00
Aleksandra
a6e81f156b Add BlitzLogger plugin and allow customizing logging (#3886) 2022-10-18 15:50:17 +08:00
Aleksandra
4e26ae21bc Upgrade eslint-config-next in new app templates to fix linting issues on blitz build (#3910) 2022-10-18 14:54:47 +08:00
Blitz.js Bot
70ca39e059 (meta) added @janvennemann as contributor 2022-10-17 04:06:03 -04:00
Jan Vennemann
7b63f0f1f2 fix(rpc): allow return undefined in setQueryData updater function (#3898)
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-10-17 16:05:57 +08:00
Siddharth Suresh
2e5d7ae40c Upgrade CI Syntax (#3906) 2022-10-17 15:33:36 +08:00
github-actions[bot]
67de028732 Version Packages (beta) (#3896)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-13 14:02:17 +08:00
Siddharth Suresh
f39ba1ff13 #3748 Add custom template option back to blitz generate command (#3866) 2022-10-12 11:46:24 -04:00
Blitz.js Bot
149b999f67 (meta) added @oloost as contributor 2022-10-12 06:13:22 -04:00
Aleksandra
3a602b613b Fix missing blitz/installer dependency in recipes (#3895) 2022-10-12 18:11:12 +08:00
github-actions[bot]
58bb38f809 Version Packages (beta) (#3893)
* Version Packages (beta)

* Fix version

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-10-11 17:48:40 +08:00
Aleksandra
1476a577bb Update PULL_REQUEST_TEMPLATE.md (#3878) 2022-10-11 17:32:21 +08:00
github-actions[bot]
4e3c25d9a0 Version Packages (beta) (#3839)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-11 16:24:43 +08:00
Estevan Jantsk
2ade7268e2 Add blitz export command (#3885)
Co-authored-by: Fran Zekan <zekan.fran369@gmail.com>
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-10-11 16:18:54 +08:00
Fran Zekan
aa34661fac Fix queryKeyGeneration when using invalidateQuery (#3728)
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-10-11 16:01:47 +08:00
Siddharth Suresh
d98e4bac4e Migrate blitz routes command (#3890) 2022-10-11 15:50:30 +08:00
Isuru Maldeniya
0473020555 update prisma-ast version in blitz generator package (#3882)
Co-authored-by: Isuru Maldeniya <isuru.m@synergentl.com>
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-10-04 18:30:33 +08:00
Jannik Schmidtke
8a88dec873 Add a .vscode/settings.json file to specify a TypeScript version (#3876) 2022-10-04 15:35:03 +08:00
Fran Zekan
d6717b9d3c Try to load prisma.schema path from pkg json (#3874)
* Try to load prisma.schema path from pkg json
2022-10-03 13:02:41 -04:00
Daniel Oltmanns
eb970f7bbc fix detecting blitz.config.(ts|js) config file (#3701)
* fix detecting blit.config.(ts|js) config file
2022-10-03 12:41:57 -04:00
Dillon Raphael
8e0c9d76b5 Migrate recipes (#3784) 2022-10-03 09:21:45 -04:00
portalninja
bd09db7533 remove views property from Session's publicData in types.ts file (#3872)
* fix: remove views from public Session data

* add changeset

* Update .changeset/strong-keys-lie.md

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-10-03 11:29:20 +08:00
João Jesus
83281a8469 remove {} from single values in the eslint config in package.json (#3877)
* refactor(js-templates): remove {} from single values inside package.json

* Add changeset

Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-10-03 11:05:13 +08:00
Siddharth Suresh
15d22af24a Migrate console (#3863)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-09-29 22:22:07 +02:00
Siddharth Suresh
1c3106eacf (meta) add @siddhsuresh as maintainer (#3868) 2022-09-29 16:47:09 +02:00
Fran Zekan
af58e2b239 CLI Version check fixes (#3675)
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-09-29 08:59:40 +02:00
Dillon Raphael
430f6ec782 Only generate the prisma client if it's not found (#3855) 2022-09-29 08:34:40 +02:00
Aleksandra
e2c18895da Add client testing utilities and index.test.tsx back to toolkit (#3857) 2022-09-28 16:38:58 -04:00
Aleksandra
3b3c245fb1 Update sponsors list (#3865) 2022-09-26 10:37:56 +02:00
Siddharth Suresh
7b00c17376 Add CI action that checks if changeset was added (#3850) 2022-09-23 14:22:12 +02:00
Dillon Raphael
b43c1a81cc Remove random user git config when generating a new project (#3852) 2022-09-22 12:49:48 +02:00
Aleksandra
1742eb45db Use prefetchInfiniteQuery from @tanstack/react-query for prefetching infinite Blitz queries (#3847)
* Use prefetchInfiniteQuery from @tanstack/react-query for prefetching infinite Blitz queries
2022-09-19 15:23:57 -04:00
Aleksandra
824a9b5e29 Update generator templates to stop breaking no-floating-promises rule (#3848)
* Update generator templates to stop breaking no-floating-promises rule
2022-09-19 15:07:42 -04:00
Aleksandra
9db6c88555 Fix help CLI command not working correctly (#3849)
* Fix help CLI command not working correctly
2022-09-19 14:57:53 -04:00
Jan Wilhelm
25f4526f7e Add API Route handler to the middleware stack (#3830)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-09-19 10:41:42 +02:00
Dillon Raphael
9fe0cc5468 Throw redirect errors when component has mounted in blitz-auth (#3842)
* Throw redirect errors when component has mounted

* Create heavy-cobras-own.md

* clean up useEffect

* Add mounted check for AuthenticationError

* remove clean up
2022-09-16 16:33:34 -04:00
Dillon Raphael
0edeaa37a3 Update regex for wildcard blitz route in webpack config (#3843)
* update regex for wildcard blitz route in webpack config

* Create itchy-spoons-tan.md

* fix regex

* Update itchy-spoons-tan.md
2022-09-16 14:05:31 -04:00
Estevan Jantsk
bf4aaf1de6 move useCurrentUser from core/hooks to users/hooks (#3831)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
2022-09-15 15:56:09 +02:00
Siddharth Suresh
b3b4c21501 convert invokeWithMiddleware to resolver call in codemod (#3764) 2022-09-14 14:38:04 -04:00
Dillon Raphael
757789c43b CI Fixes (#3834) 2022-09-14 09:42:27 -04:00
Dillon Raphael
870986b5ad rename test-get-initial-props 2022-09-13 15:22:44 -04:00
Dillon Raphael
30406891b1 rename toolkit-app-passport & fix version of blitz in toolkit-app 2022-09-13 15:19:07 -04:00
github-actions[bot]
f1ba20f690 Version Packages (beta) (#3779)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-13 15:01:11 -04:00
Siddharth Suresh
aba000a812 Update CI (#3824) 2022-09-13 11:30:52 -04:00
Aleksandra
0b94a45039 Upgrade superjson to the latest version (#3827) 2022-09-12 18:05:44 +02:00
Dillon Raphael
6b788b03be Fix CI & Tests (#3822)
* set bash as shell for github action
2022-09-08 11:04:43 -04:00
Siddharth Suresh
d3403cf860 #3804 Show file path on error (#3809)
* Show file path on error in codemod
2022-09-07 09:18:23 -04:00
Siddharth Suresh
39fd15d4b5 Fix remote caching in CI (#3810) 2022-09-06 12:31:31 -04:00
Dillon Raphael
e3523407b9 fix duplicates in frontmatter for changeset 2022-08-31 11:13:24 -04:00
Dillon Raphael
2f914a54d9 Remove toolkit-app from changeset since it's an ignored package 2022-08-31 11:03:44 -04:00
Siddharth Suresh
c213d521c6 Add Windows Testing to CI (#3799)
* add windows testing
2022-08-30 18:32:48 -04:00
Siddharth Suresh
da914c9294 Codemod should convert import statements to require when creating next.config.js (#3803) 2022-08-30 13:25:33 -04:00
Dillon Raphael
22344d058a Add getLayout to full & minimal app template in _app (#3802)
* Add getLayout to full & minimal app template in _app
2022-08-30 12:16:44 -04:00
Dillon Raphael
43e65cfecd Fix for codemod that removes types from the blitz config file (#3759)
* check if typeAnnotation when trying to remove types during creating the next config file with codemod
2022-08-26 16:25:46 -04:00
Dillon Raphael
a84b8de4e6 Remove -cookie-prefix appended to the cookiePrefix string (#3792)
* Remove  appended to the cookiePrefix string
2022-08-26 11:50:37 -04:00
Aleksandra
8fa9a56f63 Make minimal app template setup work (#3795) 2022-08-26 11:05:39 +02:00
Marcus Reinhardt
713aead933 Allow custom strategy name in passportAdapter (#3754)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-08-24 16:12:28 +02:00
Dillon Raphael
74a4ce8e85 Add AuthenticatedSessionContext to the codemod import map (#3771)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-08-24 11:09:14 +02:00
Siddharth Suresh
c53978d58e Update upgrade-legacy codemod imports (#3788) 2022-08-24 10:57:42 +02:00
Siddharth Suresh
161270e3b1 #3775 Only generate prisma client if it has not been generated (#3780) 2022-08-23 12:25:10 -04:00
Aleksandra
f6dac093d2 Improve RPC logging: print resolverName() insetad of /resolverName() (#3777)
* Remove  from RPC resolvers logging
2022-08-23 10:49:17 -04:00
Aleksandra
69fb280340 Copy App component properties inside withBlitz (#3778)
* Copy App component properties inside withBlitz
2022-08-23 10:24:28 -04:00
Kai Schlamp
7498aef4fc Replace blitz-env.d.ts with next-env.d.ts (#3773)
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-08-23 13:56:17 +02:00
github-actions[bot]
49aaaaefb0 Version Packages (beta) (#3756)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 18:08:41 -04:00
Dillon Raphael
638f2319b7 Prevent Minified react error #419 in production (#3755)
* add check for Minified React error #419 during codegen nextjs patch
2022-08-22 17:31:17 -04:00
Siddharth Suresh
3d950f7772 show file name when unexpected error occurs (#3763)
* show file name when unexpected error occurs
2022-08-22 14:26:29 -04:00
Aleksandra
2313fa61b0 Fix replaceIdentifiers codemod utility (#3766)
* Fix replaceIdentifiers utility
2022-08-22 14:11:14 -04:00
Siddharth Suresh
b72d1215c3 Add .vscode/launch.json to the generator templates (#3703)
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-08-22 14:02:35 +02:00
Siddharth Suresh
1bf185d618 Fix #3737 Fix eslint config using the codemod (#3753)
* Fix #3737 Fix eslint config using the codemod

* check if .eslintrc.js exists

* change log.error in .eslintrc.js check to collectedErrors
2022-08-19 09:33:10 -04:00
github-actions[bot]
000bc2334c Version Packages (beta) (#3751)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-18 14:22:30 +02:00
Dillon Raphael
0936cb38a6 Remove the NODE_ENV development check when patching nextjs (#3742) 2022-08-17 17:51:31 +02:00
Aleksandra
8ada2c26f7 Include ResetPasswordPage in new app template (#3743) 2022-08-17 17:25:57 +02:00
Aleksandra
eb9715688c Add BlitzPage type to auth pages in new app template (#3750) 2022-08-17 17:17:12 +02:00
Siddharth Suresh
ebfb562bfa Fix #3735 Add Script as a Default Import of Next.js (#3736)
* Fix #3735 Add Script as a Default Import of Next,js
2022-08-17 11:03:28 -04:00
Siddharth Suresh
a3b5fdd03e Fix #3745 Change ES6 import to require syntax (#3746)
* Fix #3745 Change ES6 import to require syntax

* fix error in syntax of callExpression
2022-08-17 10:44:52 -04:00
Aleksandra
3f9fe8f043 Exit process after finishing blitz new command (#3749) 2022-08-17 16:19:13 +02:00
Guillermo Antony Cava Nuñez
db7233db6a version bump to fix hydration mismatch react error (#3739)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-08-17 15:34:40 +02:00
Blitz.js Bot
1a6e953976 (meta) added @corydeppen as contributor 2022-08-16 04:27:27 -04:00
Dillon Raphael
58ae66fdb5 Remove console log from blitz util file (#3738)
* remove console log from blitz util file
2022-08-15 15:06:14 -04:00
github-actions[bot]
6eb5bc8987 Version Packages (beta) (#3732)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-15 11:38:08 +02:00
Aleksandra
0f4926fd1f Set latest tag in package json files (#3731) 2022-08-15 11:29:21 +02:00
github-actions[bot]
dff9fd042a Version Packages (beta) (#3730)
* Version Packages (beta)

* Update version number

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-08-15 10:38:03 +02:00
Aleksandra
2cc888eff8 Update changeset config (#3729) 2022-08-15 10:13:57 +02:00
github-actions[bot]
8a0a97bebb Version Packages (alpha) (#3724)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-14 15:57:22 +02:00
Aleksandra
176c7b8b57 Use correct path for log utilities import (#3721) 2022-08-14 15:49:43 +02:00
Aleksandra
b307931f2e Point to main branch instead of canary in README.md 2022-08-13 11:33:47 +02:00
Aleksandra
14375e25c4 Update sponsors list (#3720) 2022-08-13 11:30:30 +02:00
github-actions[bot]
8b755574b5 Version Packages (alpha) (#3717)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-12 20:05:18 +02:00
Aleksandra
4656e6ecd6 Print model added or updated in schema.prisma after running model generator (#3718) 2022-08-12 20:01:15 +02:00
Aleksandra
1e0ec7a972 Add missing BlitzPage type to Home page (#3716) 2022-08-12 19:43:40 +02:00
Dillon Raphael
f88702c1c1 Minimal codemod fixes (#3715)
* fix removing trailing comma when removing BlitzConfig from next.config.js during codemod

* fix codemod for consolidating pages
2022-08-12 13:21:25 -04:00
github-actions[bot]
8b9ad3f40c Version Packages (alpha) (#3705)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-12 13:37:07 +02:00
Daniel Bannert
37623a4f4c add missing g in next.config.js file name (#3713)
* feat: added missing g in confi.js

* Add Changeset

Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-08-12 13:28:47 +02:00
Aleksandra
6baab1907e Add type checking to next.config.js files in templates (#3710) 2022-08-12 11:37:06 +02:00
JH.Lee
b5de25c3d8 (meta) add @orionmiz as contributor (#3712) 2022-08-12 11:24:26 +02:00
Dillon Raphael
86af6dec5f Wrap middlewares with BlitzServerMiddleware function with codemod (#3711)
* wrap middlewares with BlitzServerMiddleware function & fix generating next config file
2022-08-11 14:39:59 -04:00
Blitz.js Bot
52a6338772 (meta) added @siddhsuresh as contributor 2022-08-11 11:11:28 -04:00
Siddharth Suresh
72a332e013 #3602 Fix the way next.config.js file is created by the codemod (#3709)
* #3602 fix the way next.config.js file is created by the codemod

* Update upgrade-legacy.ts

* remove middleware block
2022-08-11 11:11:23 -04:00
Dillon Raphael
fd31e56bc5 blitz generate changeset 2022-08-11 10:47:03 -04:00
Dillon Raphael
e2fac297fd Add back generate command (#3707)
* add back generate command

* use Routes object in generator templates

* update query & mutation templates to use resolver
2022-08-11 10:34:57 -04:00
Aleksandra
a3c92cb863 Allow using RouteUrlObject as redirect.destination in getStaticProps and getServerSideProps (#3699) 2022-08-11 13:20:57 +02:00
Dillon Raphael
2d1482fc8b Store error for cookiePrefix if undefined & show error at the end of codemod (#3704)
* store error for cookiePrefix if undefined & show error at the end

* rename to collectedErrors

* fix type & update error message
2022-08-10 15:40:17 -04:00
Blitz.js Bot
85b15a9cfb (meta) added @edrickleong as contributor 2022-08-10 05:17:42 -04:00
Edrick Leong
4902802402 Add getQueryData utility to get an existing query's cached data (#3648)
* feat: add getQueryData

* test: add integration test for getQueryData

* Add changeset

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-08-10 11:17:37 +02:00
github-actions[bot]
0bc107fd7f Version Packages (alpha) (#3684)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-10 10:36:04 +02:00
Dillon Raphael
cb55ed266d check if DocumentHead is self closing in the codemod step (#3702) 2022-08-09 13:21:26 -04:00
Aleksandra
271c58ac62 Fix Cannot find module 'generate' error (#3700) 2022-08-09 14:32:22 +02:00
Dillon Raphael
06427f67f2 Throw error if cookiePrefix is undefined during codemod (#3696)
* throws error if cookiePrefix is undefined

* create ExpectedError class
2022-08-08 16:35:17 -04:00
Dillon Raphael
f120f6723a Add DocumentProps to codemod import map (#3695)
* add DocumentProps & DocumentContext to import map & clean up post structuring of _document imports from next/document
2022-08-08 16:10:33 -04:00
Blitz.js Bot
bac5e740ba (meta) added @oltdaniel as contributor 2022-08-08 15:35:24 -04:00
Daniel Oltmanns
630c718129 Fixes #3614 - changed console logs to standard logger (#3693)
* Fixes #3614 - changed console logs to standard logger

I tried to keep the logging format close to what has been present before, by also including the chalk package for coloring.

* Create great-candles-stare.md

Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
2022-08-08 15:35:20 -04:00
Aleksandra
078fe47419 Add '@testing-library/jest-dom' to new app dependecies (#3694) 2022-08-08 19:23:33 +02:00
Aleksandra
8dfaad088d Set correct packages versions in package.json with upgrade-legacy codemod (#3678) 2022-08-08 18:54:21 +02:00
Aleksandra
dd299ae89f Add ts-jest dependency to the new app templates (#3688) 2022-08-08 18:10:22 +02:00
Aleksandra
41608c4c34 Run codegen tasks after installing dependecies in the new command (#3692) 2022-08-08 17:57:39 +02:00
Aleksandra
70b334a2f7 Remove trailing comma from tsconfig.json in new app template (#3687) 2022-08-08 12:12:18 +02:00
Dillon Raphael
f0ca738d56 Run the codegen tasks on blitz dev (#3683) 2022-08-05 19:13:45 +02:00
github-actions[bot]
1010858446 Version Packages (alpha) (#3680)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-05 15:44:22 +02:00
Dillon Raphael
ebd74b4e97 Fix template path for the generator (#3679) 2022-08-05 15:35:31 +02:00
Aleksandra
8870580710 Utilities cleanup (#3677) 2022-08-05 14:42:25 +02:00
github-actions[bot]
414d758fe8 Version Packages (alpha) (#3653)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-05 00:04:16 +02:00
Blitz.js Bot
fce0f3135a (meta) added @chaiwattsw as contributor 2022-08-04 17:57:34 -04:00
Chaiwat Trisuwan
9620ef6b1e chore: move zod to devDependencies (#3674) 2022-08-04 23:57:29 +02:00
Dillon Raphael
240f3f3471 exports BlitzServerMiddleware util function (#3671) 2022-08-04 18:54:40 +02:00
Dillon Raphael
91aa535632 Include .env.test to generator templates (#3672)
* adds env test file to generator templates
2022-08-04 18:43:13 +02:00
Aleksandra
ccb1af8d08 Avoid Next's invalid config detected warnings by deleting "blitz" key from the config object (#3670) 2022-08-04 13:21:50 +02:00
Dillon Raphael
807a2b5645 removes peer dependencies and adds to build externals (#3667) 2022-08-04 01:51:13 +02:00
Dillon Raphael
a3e6c49c4d Fixes the supports-color warning for pnpm (#3666)
* add supports-color to package.json
2022-08-04 01:13:33 +02:00
Aleksandra
4d7d126d9c Run prisma generate as a blitz codegen step (#3662) 2022-08-03 18:02:03 +02:00
Aleksandra
890b0c0c9d various blitz new fixes and improvements (#3661) 2022-08-03 12:46:00 +02:00
Dillon Raphael
928e840b59 Fixes loading production env variables by default for blitz build command (#3659) 2022-08-03 01:21:58 +02:00
Dillon Raphael
55b1cb2044 runs codegen on build & remove stopWatcher console log (#3658) 2022-08-03 01:07:44 +02:00
Blitz.js Bot
3a6677b307 (meta) updated @dillonraphael contributions 2022-08-02 16:19:49 -04:00
Dillon Raphael
f202aac183 fixes mock in forgotPassword mutation test & uses hardcoded blitz package versions instead of the alpha tag (#3655) 2022-08-02 22:19:43 +02:00
Aleksandra
065db256d7 Update generator templates to use resolver function (#3652) 2022-08-02 14:49:31 +02:00
github-actions[bot]
ada5cac7e3 Version Packages (alpha) (#3650)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-08-02 11:02:12 +02:00
Blitz.js Bot
e286bcb3ff (meta) added @datner as contributor 2022-08-02 04:57:42 -04:00
Datner
dd5f51744f Move enchancePrisma to a browser entrypoint (#3609)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-08-02 10:57:37 +02:00
github-actions[bot]
99b054a44a Version Packages (alpha) (#3645)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-01 13:11:24 +02:00
Aleksandra
54db8a46dd Comment out version check until it's fixed & fix missing value in pkg manager options (#3647) 2022-08-01 13:01:56 +02:00
Blitz.js Bot
6125eb7837 (meta) added @tommywong-dev as contributor 2022-08-01 05:08:00 -04:00
Dillon Raphael
62bf12b5c6 Update how cli checks if isInternalBlitzMonorepoDevelopment for codegen (#3644)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-08-01 11:03:19 +02:00
github-actions[bot]
8e4580a446 Version Packages (alpha) (#3642)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-30 21:03:36 +02:00
Fran Zekan
f52ca398ee Upgrade React-Query to V4 (#3557) 2022-07-30 20:59:38 +02:00
github-actions[bot]
922bc276d9 Version Packages (alpha) (#3638)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-29 19:58:38 +02:00
Dillon Raphael
365e67094c Fixes db seed command (#3639)
* require db.default in db runSeed cli command
2022-07-29 19:51:23 +02:00
Dillon Raphael
31d7a6f413 Adds rootDir prefix to tsconfig alias module name mapper (#3634)
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-07-29 11:36:43 +02:00
github-actions[bot]
8726b16bb9 Version Packages (alpha) (#3632) 2022-07-28 20:06:17 +02:00
Dillon Raphael
240f378b54 passes the correct arguments to runCommandFromBin in blitz cli index (#3631) 2022-07-28 19:57:08 +02:00
github-actions[bot]
d6655f0178 Version Packages (alpha) (#3630)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
2022-07-28 16:23:15 +02:00
Blitz.js Bot
001c174cbf (meta) updated @dillonraphael contributions 2022-07-28 10:18:55 -04:00
Dillon Raphael
1d863f352a Fix APP_ENV not being set before running loadEnvConfig (#3629)
* rearanges the order of setting --env before loading envConfig
2022-07-28 16:16:19 +02:00
Blitz.js Bot
a36110171a (meta) added @sherryxiao1988 as contributor 2022-07-27 13:29:50 -04:00
github-actions[bot]
37b5e35e22 Version Packages (alpha) (#3622)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-27 18:51:31 +02:00
beerose
3b213a35b0 Add missing changesets 2022-07-27 18:46:06 +02:00
Marcus Reinhardt
809f6019be Remove debug print (#3616)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-07-27 18:44:51 +02:00
Aleksandra
a51b1e85e1 Export router-context from blitz-next (#3621) 2022-07-27 18:23:28 +02:00
Blitz.js Bot
a948dbb7b8 (meta) added @ryanwashburne as contributor 2022-07-27 11:08:20 -04:00
github-actions[bot]
4b91c429ca Version Packages (alpha) (#3588)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-26 17:09:46 +02:00
Aleksandra
6ab9db7802 Infer result type in the api handler (#3610) 2022-07-26 17:04:39 +02:00
Blitz.js Bot
d3e6b02ad4 (meta) updated @iojcde contributions 2022-07-26 05:21:37 -04:00
Jeeho Ahn
813365da61 (meta) add @iojcde as contributor (#3606) 2022-07-26 11:21:32 +02:00
Blitz.js Bot
6559c25f71 (meta) added @saadaltabari as contributor 2022-07-25 09:08:44 -04:00
saadaltabari
83b355900b Truncate error messages in passportAuth redirectUri (#3596)
Co-authored-by: Fran Zekan <zekan.fran369@gmail.com>
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-07-25 15:08:40 +02:00
Fran Zekan
c721c104db Hook up react-query fetch cancellation (#3590)
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-07-25 14:57:42 +02:00
Fran Zekan
7e538ba451 Import ErrorComponent as DefaultErrorComponent (#3589)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-07-25 11:33:38 +02:00
Dillon Raphael
8e00605a86 Codemod: update the error messages based on if it's a babel parse error or an unexpected error (#3593) 2022-07-25 11:15:28 +02:00
Dillon Raphael
dcdcd04055 Various codemod fixes (#3576)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-07-22 20:55:33 +02:00
Fran Zekan
e339e2fd0a Hoist up react-query (#3585)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-07-22 20:35:37 +02:00
Brandon Bayer
37e1ec4abc Update README.md messaging (#3577)
* Update README.md

* Update pnpm lock

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-07-22 20:23:02 +02:00
619 changed files with 20793 additions and 2729 deletions

View File

@@ -970,7 +970,9 @@
"avatar_url": "https://avatars0.githubusercontent.com/u/3496193?v=4",
"profile": "https://twitter.com/dillonraphael",
"contributions": [
"code"
"code",
"doc",
"test"
]
},
{
@@ -3590,6 +3592,156 @@
"contributions": [
"doc"
]
},
{
"login": "saadaltabari",
"name": "saadaltabari",
"avatar_url": "https://avatars.githubusercontent.com/u/29986512?v=4",
"profile": "https://github.com/saadaltabari",
"contributions": [
"doc",
"code"
]
},
{
"login": "iojcde",
"name": "Jeeho Ahn",
"avatar_url": "https://avatars.githubusercontent.com/u/31413538?v=4",
"profile": "https://github.com/iojcde",
"contributions": [
"doc",
"tool",
"code"
]
},
{
"login": "ryanwashburne",
"name": "Ryan Washburne",
"avatar_url": "https://avatars.githubusercontent.com/u/12566087?v=4",
"profile": "https://linkedin.com/in/ryanwashburne",
"contributions": [
"doc"
]
},
{
"login": "sherryxiao1988",
"name": "Shundan Xiao",
"avatar_url": "https://avatars.githubusercontent.com/u/1202426?v=4",
"profile": "https://github.com/sherryxiao1988",
"contributions": [
"doc"
]
},
{
"login": "tommywong-dev",
"name": "tommywong-dev",
"avatar_url": "https://avatars.githubusercontent.com/u/79971095?v=4",
"profile": "https://github.com/tommywong-dev",
"contributions": [
"doc"
]
},
{
"login": "datner",
"name": "Datner",
"avatar_url": "https://avatars.githubusercontent.com/u/22598347?v=4",
"profile": "https://github.com/datner",
"contributions": [
"doc",
"code"
]
},
{
"login": "chaiwattsw",
"name": "Chaiwat Trisuwan",
"avatar_url": "https://avatars.githubusercontent.com/u/30198386?v=4",
"profile": "https://chaiwattsw.com/",
"contributions": [
"doc",
"code"
]
},
{
"login": "oltdaniel",
"name": "Daniel Oltmanns",
"avatar_url": "https://avatars.githubusercontent.com/u/53529846?v=4",
"profile": "oltdaniel.eu",
"contributions": [
"doc",
"code"
]
},
{
"login": "edrickleong",
"name": "Edrick Leong",
"avatar_url": "https://avatars.githubusercontent.com/u/10529706?v=4",
"profile": "https://github.com/edrickleong",
"contributions": [
"doc",
"code",
"test"
]
},
{
"login": "siddhsuresh",
"name": "Siddharth Suresh",
"avatar_url": "https://avatars.githubusercontent.com/u/83594610?v=4",
"profile": "https://github.com/siddhsuresh",
"contributions": [
"doc",
"code",
"test",
"maintenance"
]
},
{
"login": "orionmiz",
"name": "JH.Lee",
"avatar_url": "https://avatars.githubusercontent.com/u/39466936?v=4",
"profile": "http://jins.dev",
"contributions": [
"code",
"test",
"maintenance",
"doc"
]
},
{
"login": "corydeppen",
"name": "Cory Deppen",
"avatar_url": "https://avatars.githubusercontent.com/u/313264?v=4",
"profile": "https://github.com/corydeppen",
"contributions": [
"doc"
]
},
{
"login": "oloost",
"name": "oloost",
"avatar_url": "https://avatars.githubusercontent.com/u/72395941?v=4",
"profile": "https://github.com/oloost",
"contributions": [
"doc"
]
},
{
"login": "janvennemann",
"name": "Jan Vennemann",
"avatar_url": "https://avatars.githubusercontent.com/u/1406024?v=4",
"profile": "https://github.com/janvennemann",
"contributions": [
"doc",
"code"
]
},
{
"login": "joneskj55",
"name": "Kevin Jones",
"avatar_url": "https://avatars.githubusercontent.com/u/20748598?v=4",
"profile": "https://kevinjones.engineer",
"contributions": [
"doc"
]
}
],
"contributorsPerLine": 7,

View File

@@ -0,0 +1,13 @@
---
"blitz": patch
"@blitzjs/auth": patch
"@blitzjs/next": patch
"@blitzjs/rpc": patch
"@blitzjs/codemod": patch
"@blitzjs/config": patch
"@blitzjs/generator": patch
---
Bump react, react-dom, @types/react and next versions
This fixes a console warning: `Warning: Received `true` for a non-boolean attribute `global`.` when using `styled-jsx`. Versions bump also fixes React Hydration error that happens on and off when using `redirectAuthenticatedTo`.

View File

@@ -0,0 +1,6 @@
---
"blitz": patch
"@blitzjs/generator": patch
---
Upgrade `tslog` to the latest version

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Update prisma-ast dependency to prevent Blitz generator from failing when Prisma keywords are used as model names

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Throw error if cookiePrefix is undefined when running codemod

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix `blitz --help` CLI command not being found

View File

@@ -0,0 +1,6 @@
---
"blitz": minor
"@blitzjs/auth": patch
---
Truncate errors from `api/auth/<strategy>/callback` request to 100 characters before passing them to the `?authError=` query parameter

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Print model added or updated in schema.prisma after running model generator

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fixes the db seed command so that the database can disconnect after running the seed file.

View File

@@ -0,0 +1,6 @@
---
"blitz": patch
"@blitzjs/generator": patch
---
Add back blitz generate command

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
These are various changes to will make the codemod more dynamic and work with a larger variety of codebases. These fixes are implemented to make the codemod work with flightdeck.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Include `.env.test` file to the generator templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Add `BlitzPage` type to Home pages in app templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Remove unnecessary `as number` assertions from new app templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/next": patch
---
Allow using `RouteUrlObject` as `redirect.destination` in `getStaticProps` and `getServerSideProps`

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/rpc": patch
---
Pass `signal` from useQuery to Blitz internal rpc client to be able to cancel queries on unmount

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Add DocumentProps & DocumentContext to the codemod import map

View File

@@ -7,5 +7,5 @@
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["web", "test-*", "toolkit-app"]
"ignore": ["web", "test-*", "toolkit-*", "@blitzjs/recipe-*"]
}

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Wrap middlewares with BlitzServerMiddleware function with codemod

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Comment out generate command import until we add the full support back

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/next": patch
---
Allow setting static page properties (e.g. `getInitialProps`) on the App component

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Show file path on error when running the upgrade legacy codemod.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Add `AuthenticatedSessionContext` to the `upgrade-legacy` codemod import map

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix `no-floating-promises` lint errors after generating pages with Blitz generator by adding `await` to `router.push` calls in the templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Load schema.prisma path from `package.json` instead of assuming it's `db/schema.prisma`

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fixes loading production env variables by default for blitz build command

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Remove TypeScript type annotations from `next.config.js` (a JavaScript file) in the `upgrade-legacy` codemod.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix tsconfig.json referencing blitz-env.d.ts insetad of next-env.d.ts in new app templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Use correct path for log utilities import

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Add `blitz routes` CLI command back to toolkit

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Prevent `Minified react error #419` in production

View File

@@ -0,0 +1,6 @@
---
"@blitzjs/rpc": patch
"blitz": patch
---
Fix issue with the route name that's generated for nested routes in @blitzjs/rpc. This was causing issues for windows users.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Change ES6 import for `withBlitz` during the codemod to the require syntax.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/next": patch
---
Export router-context from browser entrypoint

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix APP_ENV not being set before loading env config

View File

@@ -0,0 +1,11 @@
---
"blitz": patch
"@blitzjs/auth": patch
"@blitzjs/next": patch
"@blitzjs/rpc": patch
"@blitzjs/codemod": patch
"@blitzjs/config": patch
"@blitzjs/generator": patch
---
Fix release

View File

@@ -0,0 +1,6 @@
---
"blitz": patch
"@blitzjs/next": patch
---
Add BlitzLogger plugin and allow customizing logging

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Add vscode debugging configuration to new app templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Add `BlitzPage` types to auth pages in new app template

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/next": patch
---
Avoid `invalid config detected` warnings by deleting `"blitz"` key from next config object

View File

@@ -0,0 +1,6 @@
---
"@blitzjs/rpc": patch
"blitz": patch
---
Use internal branded blitz logger for @blitzjs/rpc

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Add BlitzServerMiddleware utility function to wrap middleware in blitz server file

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Runs the codegen on the blitz build command

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/next": patch
---
Fix prefetching infinite Blitz queries.

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Add missing value to "skip" option when choosing a package manager during new app scaffolding

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Move `useCurrentUser` hook from `core/hooks` to `users/hooks` folder

View File

@@ -0,0 +1,7 @@
---
"@blitzjs/auth": patch
"@blitzjs/next": patch
"blitz": patch
---
Fix auth related React hydration errors by not redirecting until after component mount.

View File

@@ -0,0 +1,6 @@
---
"@blitzjs/auth": minor
"@blitzjs/rpc": minor
---
maybe fix anon session CSRF issue + add ability to customize anon session expiry time

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Remove the random user (noop@blitzjs.com) & use user's default git account when commiting a new generated blitz project.

View File

@@ -0,0 +1,7 @@
---
"blitz": patch
"@blitzjs/next": patch
"@blitzjs/rpc": patch
---
Upgrade superjson to the latest version

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Add a global Blitz version check when generating a new Blitz project to ensure users use the latest Blitz.

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix Blitz Install issue that gets stuck on "Generating file diff"

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix blitz codegen to work with monorepos

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix `blitz install` not working due to missing `blitz/installer` dependency

View File

@@ -0,0 +1,7 @@
---
"blitz": patch
"@blitzjs/rpc": patch
---
Add an opt-in GET request support to RPC specification by exporting a `config` object that has the `httpMethod` property.
from `query` files.

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Add `blitz export` CLI command to toolkit

View File

@@ -0,0 +1,6 @@
---
"@blitzjs/rpc": patch
"blitz": patch
---
Allow for custom page extensions for the wildcard blitz route. For example [...blitz].api.ts. For more information vist https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/rpc": patch
---
Allow the updater function in setQueryData to return undefined to match react-query typings

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Run codegen tasks on blitz dev command

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Patch Next.js Suspense issue in all node environments. Previously we only patched it in the `development` environment, but now we make sure it gets patched in the `production` env (with the `blitz build` command) as well.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix reset token being undefined when passed to the resetPassword mutation

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Run `prisma generate` as a `blitz codegen` step if "prisma" is found in project's dependencies

View File

@@ -0,0 +1,6 @@
---
"blitz": patch
"@blitzjs/generator": patch
---
Fix `cannot find module db error` in JavaScript template. Replace requiring the config using `esbuild` with parsing using `jscodeshift` to get the `cliConfig` values. Added logic to find the `blitz-server` file in `src` directory

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix "Ambiguous class detected" errors reported by SuperJson by removing duplicated export from errors.ts file

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Add type checking to next.config.js files in new app templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Convert import statements to require when creating the next.config.js file in the codemod

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Include ResetPasswordPage in new app template

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Remove trailing comma when removing BlitzConfig from next.config.js & Fix codemod so if route (eg. `app/auth/pages`) convert to (eg. `pages/`) instead of (eg. `pages/auth`)

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/rpc": patch
---
Improve RPC logging: print `resolverName()` insetad of `/resolverName()`

View File

@@ -0,0 +1,6 @@
---
"@blitzjs/config": patch
"@blitzjs/generator": patch
---
Upgrade eslint-config-next in new app templates to fix linting issues on blitz build

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Add hoist pattern entry for react-query in new app templates

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix Custom Server TS error - add `es6` target config to esbuild

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
New apps generated by the cli was missing the getLayout function in \_app, so when you used the getLayout property on your page, it didn't render. **You'll need to manually update your \_app if you generated an app with blitz v2**.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Unwrap `invokeWithMiddleware` so the query or mutation is called directly when running the codemod

View File

@@ -0,0 +1,6 @@
---
"blitz": patch
"@blitzjs/generator": patch
---
Improve `blitz new` messaging and fix minor issues

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/next": minor
---
Change setupBlitzServer logger config to be optional. Will default to BlitzLogger

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Only generate the prisma client if it's not found in node_modules when running a blitz cli command.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix eslint config in new JavaScript app templates

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Fix upgrade-legacy codemod replacing identifiers with an invalid value. Previously new values were hardcoded to `NextApiRequest`. Now we're using correct values provided as `replaceIdentifiers` function argument.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Wrap `blitz.config.ts` with the `withBlitz` function during the codemod step instead of creating a blank `next.config.js` file.

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Passes the correct arguments (without flags) to any bin command ran with the blitz cli

View File

@@ -0,0 +1,10 @@
---
"@blitzjs/codemod": patch
"@blitzjs/generator": patch
"@blitzjs/auth": patch
"@blitzjs/next": patch
"@blitzjs/rpc": patch
"@blitzjs/config": patch
---
Set current Blitz tag to latest

View File

@@ -1,121 +1,268 @@
{
"mode": "pre",
"tag": "alpha",
"tag": "beta",
"initialVersions": {
"web": "0.0.0",
"test-auth": "0.0.0",
"test-rpc": "0.0.0",
"test-utils": "0.0.0",
"blitz": "2.0.0-alpha.0",
"@blitzjs/auth": "2.0.0-alpha.0",
"@blitzjs/next": "2.0.0-alpha.0",
"@blitzjs/rpc": "2.0.0-alpha.0",
"blitz": "2.0.0-beta.0",
"@blitzjs/auth": "2.0.0-beta.0",
"@blitzjs/next": "2.0.0-beta.0",
"@blitzjs/rpc": "2.0.0-beta.0",
"@blitzjs/config": "0.0.0",
"@blitzjs/generator": "2.0.0-alpha.0",
"@blitzjs/codemod": "2.0.0-alpha.0",
"@blitzjs/generator": "2.0.0-beta.0",
"@blitzjs/codemod": "2.0.0-beta.0",
"template": "0.0.0",
"toolkit-app": "1.0.0",
"toolkit-app-passportjs": "1.0.0",
"test-qm": "0.0.0",
"test-no-suspense": "0.0.0",
"test-trailing-slash": "0.0.0",
"test-middleware": "0.0.0"
"test-middleware": "0.0.0",
"test-react-query-utils": "0.0.0",
"toolkit-app-passport": "1.0.1-alpha.16",
"test-get-initial-props": "0.0.0",
"@blitzjs/recipe-base-web": "0.34.0-canary.0",
"@blitzjs/recipe-bulma": "0.34.0-canary.0",
"@blitzjs/recipe-bumbag-ui": "0.34.0-canary.0",
"@blitzjs/recipe-chakra-ui": "0.34.0-canary.0",
"@blitzjs/recipe-emotion": "0.34.0-canary.0",
"@blitzjs/recipe-gh-action-yarn-mariadb": "0.34.0-canary.0",
"@blitzjs/recipe-gh-action-yarn-postgres": "0.34.0-canary.0",
"@blitzjs/recipe-ghost": "0.40.0-canary.9",
"@blitzjs/recipe-graphql": "0.34.0-canary.0",
"@blitzjs/recipe-logrocket": "0.34.0-canary.0",
"@blitzjs/recipe-material-ui": "0.34.0-canary.0",
"@blitzjs/recipe-next-ui": "0.34.0-canary.0",
"@blitzjs/recipe-passenger": "0.34.0-canary.0",
"@blitzjs/recipe-quirrel": "0.34.0-canary.0",
"@blitzjs/recipe-reflexjs": "0.34.0-canary.0",
"@blitzjs/recipe-render": "0.34.0-canary.0",
"@blitzjs/recipe-secureheaders": "0.34.0-canary.0",
"@blitzjs/recipe-stitches": "0.34.0-canary.0",
"@blitzjs/recipe-styled-components": "0.34.0-canary.0",
"@blitzjs/recipe-tailwind": "0.34.0-canary.0",
"@blitzjs/recipe-theme-ui": "0.34.0-canary.0",
"@blitzjs/recipe-vanilla-extract": "0.34.0-canary.0"
},
"changesets": [
"afraid-dancers-juggle",
"afraid-ears-repair",
"big-phones-bow",
"blue-flowers-peel",
"blue-pigs-tan",
"breezy-bees-beg",
"breezy-cameras-double",
"breezy-moose-behave",
"bright-mangos-run",
"brown-avocados-wink",
"calm-carpets-deny",
"calm-horses-tie",
"calm-nails-wait",
"calm-tomatoes-drive",
"chilled-carrots-own",
"chilly-nails-nail",
"clean-hats-pump",
"clean-walls-wink",
"clever-radios-lie",
"cool-doors-invent",
"cool-horses-check",
"cuddly-pugs-crash",
"curly-rules-speak",
"curly-seas-serve",
"cyan-bulldogs-heal",
"cyan-cars-greet",
"dirty-monkeys-greet",
"dirty-planets-chew",
"early-lamps-itch",
"eleven-humans-sort",
"eleven-lobsters-drop",
"empty-berries-rule",
"empty-pants-search",
"empty-turkeys-wave",
"fair-carrots-guess",
"fair-kangaroos-clean",
"fair-wombats-sneeze",
"famous-kings-explain",
"fast-clocks-push",
"fast-trainers-kneel",
"few-dogs-fetch",
"few-shrimps-leave",
"flat-bees-approve",
"fluffy-mangos-begin",
"fluffy-mice-wash",
"forty-timers-rhyme",
"four-brooms-juggle",
"four-meals-fry",
"four-sheep-judge",
"fuzzy-bees-warn",
"fuzzy-jars-admire",
"gentle-dogs-reply",
"gentle-lions-explode",
"giant-mails-tap",
"gold-horses-punch",
"good-apes-drum",
"good-insects-wink",
"gorgeous-birds-warn",
"gorgeous-buses-scream",
"gorgeous-games-obey",
"great-candles-stare",
"great-months-train",
"great-terms-rescue",
"green-papayas-do",
"green-pillows-hammer",
"happy-bees-lick",
"happy-hotels-visit",
"happy-paws-join",
"healthy-rice-shout",
"heavy-apes-judge",
"heavy-cobras-own",
"heavy-students-buy",
"hip-buttons-dance",
"honest-candles-yawn",
"honest-cherries-push",
"honest-comics-vanish",
"hot-cups-rhyme",
"hot-drinks-approve",
"hungry-baboons-swim",
"hungry-pens-collect",
"itchy-cups-double",
"itchy-houses-marry",
"itchy-spoons-tan",
"khaki-ducks-cheer",
"kind-walls-suffer",
"late-steaks-give",
"lazy-maps-sort",
"lemon-games-press",
"lemon-pillows-switch",
"lemon-seas-push",
"light-donkeys-double",
"light-squids-draw",
"little-pears-ring",
"long-bees-hope",
"long-dancers-jog",
"long-lobsters-drop",
"lovely-berries-sell",
"lovely-colts-share",
"lucky-cows-try",
"lucky-months-guess",
"lucky-years-turn",
"mean-gorillas-reply",
"modern-cameras-pull",
"modern-ligers-behave",
"moody-bags-walk",
"moody-spoons-rhyme",
"moody-squids-cheer",
"nasty-suns-wash",
"nervous-beds-travel",
"nervous-dolls-rule",
"new-coats-turn",
"new-olives-protect",
"nice-deers-dream",
"nice-starfishes-live",
"nine-birds-confess",
"nine-onions-admire",
"ninety-lies-press",
"ninety-pets-heal",
"ninety-rice-tickle",
"odd-bears-run",
"olive-bees-buy",
"olive-feet-rhyme",
"olive-kings-invent",
"olive-sheep-rhyme",
"orange-mirrors-tap",
"orange-zebras-reflect",
"perfect-eyes-repeat",
"perfect-trains-double",
"plenty-bottles-swim",
"polite-lizards-love",
"poor-peas-lick",
"poor-penguins-look",
"poor-shrimps-think",
"poor-walls-relax",
"popular-teachers-pay",
"pretty-games-march",
"purple-donkeys-smash",
"purple-singers-greet",
"quick-cycles-confess",
"quiet-feet-travel",
"quiet-pans-hunt",
"quiet-sloths-rule",
"rare-crews-sleep",
"red-badgers-retire",
"rich-chairs-invent",
"rich-queens-travel",
"rotten-rocks-remember",
"shaggy-carpets-brake",
"sharp-falcons-begin",
"sharp-olives-sip",
"shy-olives-hang",
"shy-pumpkins-try",
"silent-colts-reply",
"silent-lies-run",
"silly-apricots-share",
"silly-shoes-agree",
"six-apricots-kick",
"slimy-humans-impress",
"slimy-needles-taste",
"slow-impalas-tap",
"slow-walls-camp",
"slow-walls-poke",
"small-socks-confess",
"smooth-planets-admire",
"smooth-rice-clap",
"smooth-stingrays-drum",
"smooth-tools-train",
"soft-adults-smell",
"sour-lemons-hunt",
"sour-mails-lick",
"spicy-beds-float",
"spotty-dingos-stare",
"spotty-lies-visit",
"spotty-peas-hope",
"spotty-zoos-film",
"stale-jobs-drum",
"stale-parents-yawn",
"strong-apes-reply",
"strong-keys-lie",
"stupid-walls-sell",
"sweet-kiwis-cross",
"swift-drinks-dress",
"tall-meals-learn",
"tame-keys-reply",
"tame-pumpkins-nail",
"tasty-maps-fetch",
"tasty-news-collect",
"ten-hairs-listen",
"ten-rivers-burn",
"tender-pianos-check",
"thick-parrots-float",
"thirty-countries-build",
"thirty-spies-applaud",
"three-lies-pull",
"tidy-clouds-smoke",
"tough-toes-pull",
"twelve-hornets-sip",
"twelve-lemons-smile",
"twelve-needles-worry",
"twenty-beans-pump",
"two-carpets-rhyme",
"two-eyes-knock",
"two-kiwis-help",
"two-tigers-type",
"two-turtles-poke",
"unlucky-avocados-fix",
"unlucky-papayas-sleep",
"violet-bags-leave",
"violet-lions-help",
"weak-suns-shave",
"wicked-badgers-smoke",
"wicked-ghosts-cough",
"wise-frogs-give"
"wicked-rings-walk",
"wise-eels-visit",
"wise-frogs-give",
"wise-rabbits-complain",
"young-birds-talk"
]
}

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Import ErrorComponent as DefaultErrorComponent

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Exit CLI process after `blitz new` command is finished

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix eslint and types setup in minimal app template

View File

@@ -0,0 +1,8 @@
---
"blitz": patch
"@blitzjs/next": patch
"@blitzjs/rpc": patch
"@blitzjs/generator": patch
---
Fixes peer dependency warnings

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Run codegen tasks after creating a new app if user chose yarn as a package manager

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix template path for the generator

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix upgrade-legacy `Update imports` step — import `getAntiCSRFToken` and `AuthenticatedMiddlewareCtx` from correct locations

View File

@@ -0,0 +1,6 @@
---
"@blitzjs/next": patch
"@blitzjs/rpc": patch
---
Upgrade react-query to v4

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Fix `useSession` hook by exporting `enhancePrisma` from the server entry point instead of server

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Remove `-cookie-prefix` appended to the `cookiePrefix` config property in the new app template. It will also fix auth and CSRF issues for users upgrading from a legacy framework.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/next": patch
---
Infer result type in the `api` handler and allow customizing it

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Remove trailing comma from tsconfig.json file in the new app template"

View File

@@ -0,0 +1,6 @@
---
"blitz": patch
"@blitzjs/generator": patch
---
Allow passing custom templates to the `blitz generate` command. Extend the `generate` command with `custom-templates` to provide an easy starting point for users to customize the default templates: `blitz generate custom-templates`.

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
Only run the prisma generate command when the schema file changes.

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix typo in a next.config.js file name

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/codemod": patch
---
Updates the error messages based on if it's a babel parse error or an unexpected error

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Add ts-jest to dependencies in new app templates

Some files were not shown because too many files have changed in this diff Show More