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

161 Commits

Author SHA1 Message Date
Dillon Raphael
21ca3a9b02 pnpmlock @blitzjs/generator@2.0.0-alpha.40 blitz@2.0.0-alpha.40 @blitzjs/codemod@2.0.0-alpha.40 @blitzjs/auth@2.0.0-alpha.40 @blitzjs/next@2.0.0-alpha.40 @blitzjs/rpc@2.0.0-alpha.40 2022-06-21 10:27:09 -04:00
github-actions[bot]
32274803d9 Version Packages (alpha) (#3449)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-21 10:25:53 -04:00
Dillon Raphael
9ded8dacba Export useParam & useParams from @blitzjs/next (#3448) 2022-06-21 14:45:29 +02:00
beerose
80ffbeaa4c Update pnpm-lock.yaml @blitzjs/generator@2.0.0-alpha.39 @blitzjs/auth@2.0.0-alpha.39 @blitzjs/codemod@2.0.0-alpha.39 @blitzjs/next@2.0.0-alpha.39 @blitzjs/rpc@2.0.0-alpha.39 blitz@2.0.0-alpha.39 2022-06-19 18:20:49 +02:00
github-actions[bot]
6bde1b07da Version Packages (alpha) (#3445)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-19 18:18:57 +02:00
Datner
b918055bf3 Add aliases for Blitz CLI commands (#3410)
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-06-19 18:13:43 +02:00
Aleksandra
f9a2971f05 Improve typings in blitz cli package (#3444) 2022-06-19 15:48:27 +02:00
Dillon Raphael
72b08f2269 pnpmlock blitz@2.0.0-alpha.38 @blitzjs/auth@2.0.0-alpha.38 @blitzjs/codemod@2.0.0-alpha.38 @blitzjs/generator@2.0.0-alpha.38 @blitzjs/next@2.0.0-alpha.38 @blitzjs/rpc@2.0.0-alpha.38 2022-06-13 15:45:47 -04:00
github-actions[bot]
2124a4d0c5 Version Packages (alpha) (#3440)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-13 15:41:12 -04:00
Dillon Raphael
8aee25c58a changeset 2022-06-13 15:37:27 -04:00
Dillon Raphael
f1003faf94 update generator template (#3439) 2022-06-13 15:35:38 -04:00
Andreas Asprou
50468a3bb0 Fix duplicate react-query clients (#3431)
* Fix duplicate react-query clients

* fix tests

* add codemod & remove queryClient export from generator templates

Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
2022-06-13 11:07:41 -04:00
Dillon Raphael
891d91bf4d pnpmlock @blitzjs/rpc@2.0.0-alpha.37 blitz@2.0.0-alpha.37 @blitzjs/next@2.0.0-alpha.37 @blitzjs/generator@2.0.0-alpha.37 @blitzjs/codemod@2.0.0-alpha.37 @blitzjs/auth@2.0.0-alpha.37 2022-06-10 16:19:50 -04:00
github-actions[bot]
f96c953457 Version Packages (alpha) (#3430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 16:18:48 -04:00
Dillon Raphael
a80d2a8f77 Rename Blitz server plugin type from Middleware to RequestMiddleware (#3428)
* rename to requestMiddleware

* update plugins

* merge main

* changeset
2022-06-10 16:14:21 -04:00
beerose
b336ad05f4 Update pnpm-lock.yaml blitz@2.0.0-alpha.36 @blitzjs/generator@2.0.0-alpha.36 @blitzjs/codemod@2.0.0-alpha.36 @blitzjs/auth@2.0.0-alpha.36 @blitzjs/next@2.0.0-alpha.36 @blitzjs/rpc@2.0.0-alpha.36 2022-06-10 11:32:17 -07:00
github-actions[bot]
39ca0ef8bf Version Packages (alpha) (#3429)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 11:31:27 -07:00
Aleksandra
4cad9cca25 Add queryClient to RPC plugin exports (#3424) 2022-06-10 10:18:50 -07:00
Dillon Raphael
b6fc940bf2 pnpmlock blitz@2.0.0-alpha.35 @blitzjs/generator@2.0.0-alpha.35 @blitzjs/auth@2.0.0-alpha.35 @blitzjs/codemod@2.0.0-alpha.35 @blitzjs/rpc@2.0.0-alpha.35 @blitzjs/next@2.0.0-alpha.35 2022-06-10 11:21:33 -04:00
github-actions[bot]
a946dd5889 Version Packages (alpha) (#3427)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 11:20:25 -04:00
Dillon Raphael
e3750b049d Codemod fixes (#3420)
* change BlitzApiRequest to NextApiRequest & update import map & fail catch for custom server

* fix page consolidation when there are sub directories

* Update prisma db export/import

* Update db imports in templates

* update root types file

* update error messages + merge main + changeset

Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-06-10 11:16:18 -04:00
Dillon Raphael
fb01cc7788 pnpmlock @blitzjs/next@2.0.0-alpha.34 @blitzjs/codemod@2.0.0-alpha.34 @blitzjs/generator@2.0.0-alpha.34 @blitzjs/auth@2.0.0-alpha.34 @blitzjs/rpc@2.0.0-alpha.34 blitz@2.0.0-alpha.34 2022-06-10 10:34:59 -04:00
github-actions[bot]
ac8c412da2 Version Packages (alpha) (#3419)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 10:31:19 -04:00
David
dfd2408e95 Added resolverBasePath option to rpc loaders (#3380)
Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-06-08 14:50:00 -07:00
Dillon Raphael
9741287050 pnpmlock @blitzjs/auth@2.0.0-alpha.33 @blitzjs/codemod@2.0.0-alpha.33 @blitzjs/next@2.0.0-alpha.33 @blitzjs/rpc@2.0.0-alpha.33 blitz@2.0.0-alpha.33 @blitzjs/generator@2.0.0-alpha.33 2022-06-07 18:28:53 -04:00
github-actions[bot]
0e9c81abdc Version Packages (alpha) (#3409)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 18:28:29 -04:00
Dillon Raphael
9e05d6e155 Filter file extensions in codemod (#3408)
* add allowedExt to getAllFiles for codemod

* pnpmlock

* codemod
2022-06-07 18:24:10 -04:00
beerose
17f70e65ef Update pnpm-lock.yaml @blitzjs/codemod@2.0.0-alpha.32 @blitzjs/generator@2.0.0-alpha.32 @blitzjs/auth@2.0.0-alpha.32 @blitzjs/rpc@2.0.0-alpha.32 @blitzjs/next@2.0.0-alpha.32 blitz@2.0.0-alpha.32 2022-06-07 13:21:28 -07:00
github-actions[bot]
0ddc5a8169 Version Packages (alpha) (#3407)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 13:20:44 -07:00
Aleksandra
e6fb09d494 Use dist/templates for rpc template (#3406) 2022-06-07 13:02:13 -07:00
beerose
d846fc6be9 Update pnpm-lock.yaml blitz@2.0.0-alpha.31 @blitzjs/rpc@2.0.0-alpha.31 @blitzjs/next@2.0.0-alpha.31 @blitzjs/generator@2.0.0-alpha.31 @blitzjs/codemod@2.0.0-alpha.31 @blitzjs/auth@2.0.0-alpha.31 2022-06-07 11:47:05 -07:00
github-actions[bot]
f5e80e3835 Version Packages (alpha) (#3405)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 11:46:31 -07:00
Aleksandra
17ce29e5e4 Update rpc plugin setup in templates (#3404) 2022-06-07 11:33:06 -07:00
Aleksandra
46d9f81adf Update templates directory for codemod (#3402) 2022-06-07 11:04:34 -07:00
Dillon Raphael
994cfc6292 pnpmlock @blitzjs/generator@2.0.0-alpha.30 @blitzjs/codemod@2.0.0-alpha.30 @blitzjs/auth@2.0.0-alpha.30 @blitzjs/next@2.0.0-alpha.30 @blitzjs/rpc@2.0.0-alpha.30 blitz@2.0.0-alpha.30 2022-06-07 12:09:09 -04:00
github-actions[bot]
7811748526 Version Packages (alpha) (#3401)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 12:08:45 -04:00
Dillon Raphael
ce45368334 Add codemods to upgrade from framework to toolkit (#3353)
* init migrate cli command

* make sure migrate command can only be run in legacy blitz directory

* extract codemods into its own package/cli

* removed unused dependencies

* renamed codemods bin directory

* update next.config file to use withBlitz

* codemods update package.json step

* codemod for blitz server & client setup, as well as the blitz rpc route in pages dir

* fix ignore previous step if statement to check for less than instead of equal

* move files from app/pages to root pages directory

* remove blitz babel plugin & update imports inside app dir

* consolidate pages from app dir to root pages dir

* move all api directories to the root pages dir

* use generator templates for blitz rpc route & server/client setup files

* update custom server file

* make custom server step work with require statement & import statements

* useRouterQuery to useRouter().query

* pkg dependecy & import map updates

* Change import map

* Add BlitzLayout to import map

* import withBlitz and wrap App function in _app

* modify _document to use next.js imports

* fix default import for next modules & add useParam to source map

* gssp/gsp

* api routes

* dont run api wrap on rpc/[[...blitz]] & error on usage of local middleware

* DRY cleanup

* update codemod steps

* add ignore extension to getAllFiles

* add more imports to source map

* check for invokeWithMiddleware

* add error counter to middleware checker

* rename codemod & fix silly typo error

* update bin file & change all invokeWithMiddleware to invoke

* add logging from blitz

* manypkg fix

* add codemod test

* lockfile

* fix test

* show errors for invokeWithMiddleware

* update invokeWithMiddleware error message

* line break in new app generator before your new blitz app is ready

* Apply suggestions from code review

* Add changeset

* changeset

* pnpmlock

Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-06-07 12:03:37 -04:00
Dillon Raphael
4e9c1f60b6 pnpm lock @blitzjs/generator@2.0.0-alpha.29 @blitzjs/auth@2.0.0-alpha.29 @blitzjs/next@2.0.0-alpha.29 @blitzjs/rpc@2.0.0-alpha.29 blitz@2.0.0-alpha.29 2022-06-07 11:36:45 -04:00
github-actions[bot]
508682c8f8 Version Packages (alpha) (#3400)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 11:35:42 -04:00
Dillon Raphael
962eb58af6 Migrate printEnvInfo to CLI (#3394)
* init printEnvInfo function

* changeset
2022-06-07 11:31:56 -04:00
Dillon Raphael
17669b3af8 pnpmlock @blitzjs/auth@2.0.0-alpha.28 @blitzjs/generator@2.0.0-alpha.28 @blitzjs/next@2.0.0-alpha.28 @blitzjs/rpc@2.0.0-alpha.28 blitz@2.0.0-alpha.28 2022-06-07 11:06:31 -04:00
github-actions[bot]
ec6299c36a Version Packages (alpha) (#3399)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 11:05:15 -04:00
Dillon Raphael
6ac2d3412a Update generator template npmrc & next versions (#3398)
* add strict-peer-dependencies=false
side-effects-cache=false to npmrc generator template

* add comment to generated npmrc file

* update versions of next for full and minimal templates

* pinned next version to 12.1.6 in generator templates

* add next back to root package

* fix lock file

* add changeset

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-06-07 10:59:28 -04:00
Dillon Raphael
85f9959d1f update pnpm lock file @blitzjs/auth@2.0.0-alpha.27 @blitzjs/generator@2.0.0-alpha.27 @blitzjs/next@2.0.0-alpha.27 @blitzjs/rpc@2.0.0-alpha.27 blitz@2.0.0-alpha.27 2022-06-07 10:23:51 -04:00
github-actions[bot]
354f0440d6 Version Packages (alpha) (#3392)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 10:21:41 -04:00
Dillon Raphael
ac365a0656 No suspense test and Trailing slash test (#3390)
* no suspense test and trailing slash test

* use playwright for integration tests

* remove seed from server mode test in auth integration

* change pkg-dir version for blitz cli

* use pkg-dir 5.0.0

* clean up

* move seed location in auth test

* explict timeout for auth test

Co-authored-by: beerose <alexsandra.sikora@gmail.com>
2022-06-01 20:54:29 -04:00
Aleksandra
0729291099 Add invokeWithCtx (#3391) 2022-05-31 16:06:45 -04:00
Dillon Raphael
9cf924ee86 Regenerate route manifest on page changes (Working build) (#3385) 2022-05-30 10:09:20 -04:00
Dillon Raphael
b545a38b87 pnpmlock @blitzjs/auth@2.0.0-alpha.26 @blitzjs/generator@2.0.0-alpha.26 @blitzjs/next@2.0.0-alpha.26 @blitzjs/rpc@2.0.0-alpha.26 blitz@2.0.0-alpha.26 2022-05-24 15:11:18 -04:00
github-actions[bot]
1463a20471 Version Packages (alpha) (#3378)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-24 15:09:03 -04:00