1
0
mirror of synced 2025-12-25 20:00:13 -05:00
Commit Graph

251 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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