1
0
mirror of synced 2025-12-26 05:00:15 -05:00
Commit Graph

269 Commits

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