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
github-actions[bot]
718a194891
Version Packages (alpha) ( #3583 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-22 20:06:49 +02:00
Fran Zekan
0f18c68d63
Fix prefetching, again... ( #3578 )
...
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-07-22 18:08:12 +02:00
Aleksandra
3511d5b69b
[temporary fix] skip version check until internal issues are resolved ( #3584 )
2022-07-22 17:05:40 +02:00
Aleksandra
716e188d13
Fix queries/mutations lookup on Windows ( #3581 )
2022-07-22 16:16:01 +02:00
github-actions[bot]
57a53fa3c2
Version Packages (alpha) ( #3561 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-20 14:34:36 +02:00
Fran Zekan
abb1ad5d1c
Don't throw error on a missing app/api folder when running codemod ( #3568 )
...
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-07-20 08:26:14 +02:00
Brandon Bayer
7096083038
Update CODEOWNERS
2022-07-19 18:29:15 +02:00
Ante Primorac
0ac6e17122
fix blitz not loading custom server ( #3564 )
...
* fix blitz not loading custom server
2022-07-19 00:42:14 +02:00
Brandon Bayer
8bcb471a53
Fix auth issue where session token and publicData cookie were updated unnecessarily, leading to potential user logout ( #3556 )
...
* fix auth issue where session token and public data token was updated unnecessarily
2022-07-19 00:19:55 +02:00
Brandon Bayer
abe2afccdf
Fix a long-standing issue with occasional blitz auth flakiness ( #3554 )
...
* fix cookie set bug
2022-07-19 00:06:38 +02:00
Fran Zekan
d9fc5d8e26
Fix queryClient not working the same in SSP and SP ( #3563 )
...
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-07-18 17:14:53 +02:00
Aleksandra
3f20a47405
Fix delete session type ( #3560 )
2022-07-18 12:58:03 +02:00
github-actions[bot]
72addbbeed
Version Packages (alpha) ( #3540 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-18 11:29:22 +02:00
Fran Zekan
1c809094fd
Fix Page.authenticate not working for layout components ( #3547 )
...
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-07-18 10:39:07 +02:00
Fran Zekan
54a66a95dc
Show all blitz packages when running blitz version command ( #3553 )
...
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-07-18 10:03:44 +02:00
Fran Zekan
8d9ea00e1d
Fix prefetching multiple queries causes only the last one to be passed to page ( #3551 )
2022-07-17 19:28:45 +02:00
Fran Zekan
ab4d9de70f
Don't try to copy RPC API endpoint in templates that don't have it ( #3545 )
...
* Don't try to copy RPC API endpoint in templates that don't have it
2022-07-17 18:08:08 +02:00
Fran Zekan
8f166a5db0
Check for new versions when running CLI ( #3465 )
...
* Simple function to call new on every cli invocation to update blitz
* Fix printing of how to
* Catch network errors
* Cleanup
* Loop through all locally installed and packages and check if an update is needed
* cache checkForLatestVersion so it runs only on every 24 hours
* make update message pretty
* uncomment shouldUpdate boolean
* run checkLatestVersion on dev command and new
* Dont run in our monorepo + small changes
* Create curly-seas-serve.md
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
2022-07-17 01:01:52 +02:00
Datner
df7cee84ad
fix(blitz-rpc): fix 6th pipe resolver not returning resolved value ( #3537 )
...
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-07-15 12:18:00 +02:00
github-actions[bot]
b364af7f57
Version Packages (alpha) ( #3516 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-14 16:07:20 +02:00
Fran Zekan
20fc9f80f4
Fix SSP / SP not prefetching queries correctly ( #3518 )
...
* Fix prefetchQuery getting key for infinite wrong
* Add new webpack loader to transform resolvers server-side to have _routePath and other meta values
* Fix key error when loading dehydrated props
* Add unit-tests for loader-server-resolvers.ts
2022-07-12 14:41:26 +02:00
Aleksandra
80e1ead7cb
Create jest.config.js with new app generator ( #3532 )
...
* Create jest.config.js with new app generator
2022-07-12 11:44:36 +02:00
Fran Zekan
a3bbe6ce3f
Fix routes manifest showing duplicates for non queries|resolvers reso… ( #3531 )
...
* Fix routes manifest showing duplicates for non queries|resolvers resolver type
* Simplify resolverType checking
2022-07-12 11:36:59 +02:00
Fran Zekan
348fd6f5e4
Fix redirectAuthenticatedTo errors ( #3529 )
...
* Wrap BlitzProvider from next with RouterContext
2022-07-11 21:47:16 +02:00
Dawid Urbaniak
cacb65d633
fix: fix wrong import of the db module in blitz db seed command function ( #3526 )
...
* fix: fix wrong import of the db module
2022-07-11 11:35:08 +02:00
Fran Zekan
f397cc2036
Fix switch case fall-through bug in CLI ( #3525 )
...
* Fix redundant if
* Fix switch fallthrough cases
* Extract install map to top
* Create cool-horses-check.md
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
2022-07-11 10:30:03 +02:00
Fran Zekan
ffa7b5ccc2
If project name argument is set to "." change it to current folder name ( #3523 )
...
* If project name argument is set to "." change it to current folder name
* Create two-carpets-rhyme.md
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
2022-07-11 10:22:03 +02:00
Aleksandra
a961aff881
Add missing lint deps ( #3515 )
2022-07-07 16:45:02 +02:00
github-actions[bot]
ac9c4cebc8
Version Packages (alpha) ( #3514 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-07 15:43:57 +02:00
Dillon Raphael
a7e37c58db
Export BlitzProvider from blitz-next ( #3513 )
...
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-07-07 15:36:52 +02:00
Brandon Bayer
b0d2505a85
Update CODEOWNERS
2022-07-06 23:54:29 +02:00
github-actions[bot]
024cd819e3
Version Packages (alpha) ( #3512 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-06 19:25:31 +02:00
Dillon Raphael
12cb7a727d
Upgrade Prisma to v4.0.0 ( #3511 )
...
* Upgrade Prisma to v4.0.0
* Changeset
2022-07-06 19:21:36 +02:00
github-actions[bot]
923703b661
Version Packages (alpha) ( #3510 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-06 18:26:09 +02:00
Dillon Raphael
70f9ae4921
Handle next/dynamic default import in codemod ( #3509 )
2022-07-06 18:21:45 +02:00
beerose
c738ecacbc
Remove --tag option from release script
2022-07-06 17:07:55 +02:00
github-actions[bot]
ad0b087d9f
Version Packages (alpha) ( #3507 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-06 16:03:29 +02:00
Dillon Raphael
dc694cf1cf
remove mounted check from withBlitz ( #3504 )
...
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-07-06 15:59:18 +02:00
Aleksandra
4c221b655e
Tag @blitzjs/rpc and @blitzjs/auth with alpha, update package.json files ( #3508 )
2022-07-06 13:56:25 +02:00
Aleksandra
c11f0401cf
Update Next.js version and addBasePath location ( #3506 )
2022-07-06 13:14:48 +02:00
github-actions[bot]
830b51d0dc
Version Packages (alpha) ( #3492 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-04 17:39:14 +02:00
David
bec9512e30
Expand & rename baseResolverPath ( #3421 )
...
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-07-04 17:35:36 +02:00
Dillon Raphael
1493729d6b
forked changesets action
2022-07-04 16:48:30 +02:00
Dillon Raphael
6bb5980da9
revert changesets action version
2022-07-04 15:44:21 +02:00
Dillon Raphael
7310f7171d
use forked changesets github action
2022-07-04 15:32:28 +02:00
github-actions[bot]
d855ee3e1d
Version Packages (alpha) ( #3487 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-04 13:29:42 +02:00
Aleksandra
93851d90ca
Handle duplicated imports with Blitz codemod ( #3486 )
2022-07-04 13:25:44 +02:00
beerose
3ab05b3cda
Update pnpm-lock.yaml
2022-07-01 17:07:36 +02:00
github-actions[bot]
bb3dd56f7a
Version Packages (alpha) ( #3482 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-01 17:06:10 +02:00
Aleksandra
1d9804a610
remove references to the logging package ( #3474 )
2022-07-01 17:01:41 +02:00
Aleksandra
0fd1f9c9b1
Revert codemod changes ( #3483 )
2022-07-01 16:10:28 +02:00
Aleksandra
b86b569d56
Remove as any assertion for the PrismaStorage argument ( #3481 )
2022-07-01 16:04:58 +02:00
Aleksandra
b405c1e876
Add missing _document and 404 pages to the templates ( #3480 )
2022-07-01 12:44:37 +02:00
Dillon Raphael
c957828ea6
remove release-drafter
2022-06-30 11:54:31 +02:00
Dillon Raphael
c78e5c4704
set config name in release action
2022-06-30 11:47:58 +02:00
Dillon Raphael
009664e0f5
Merge branch 'main' of github.com:blitz-js/blitz
2022-06-30 11:33:42 +02:00
Dillon Raphael
3110522dca
release drafter template
2022-06-30 11:33:32 +02:00
github-actions[bot]
7269ac2bc5
Version Packages (alpha) ( #3472 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-30 11:09:25 +02:00
Datner
7a7ce2229e
Add middleware integration tests ( #3411 )
...
* Set up middleware integration test application
* Add middleware integration test
* Update pnpm lock
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-06-30 11:05:30 +02:00
Dillon Raphael
10c23d3d20
Merge branch 'main' of github.com:blitz-js/blitz
2022-06-29 13:03:54 +02:00
Dillon Raphael
d93b05d0ac
Add github release template
2022-06-29 13:03:41 +02:00
Dillon Raphael
aafdc5b4c4
Codemod: Move middlewares from blitz config to blitz server ( #3471 )
...
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-06-29 12:52:56 +02:00
Dillon Raphael
37ef42811b
Merge branch 'main' of github.com:blitz-js/blitz
2022-06-29 12:24:44 +02:00
Dillon Raphael
34cc29e40c
Turn off auto github releases
2022-06-29 12:24:26 +02:00
Fran Zekan
bee19a259d
Hook up onError function for rpc server and next ( #3460 )
...
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-06-29 12:18:22 +02:00
Fran Zekan
9ada0f6661
Allow customizing PreviewData in gSSP ( #3461 )
2022-06-29 11:42:41 +02:00
Dillon Raphael
425559d360
pnpm install without frozen lockfile for github release action
2022-06-29 10:40:12 +02:00
Dillon Raphael
0411689b1d
pnpmlock
2022-06-26 06:28:07 -04:00
github-actions[bot]
0d3514cd27
Version Packages (alpha) ( #3464 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-26 06:18:37 -04:00
Dillon Raphael
a9edde6d83
pnpmlock
2022-06-26 06:05:38 -04:00
Dillon Raphael
5c5decbce2
Remove suspense wrapper from withBlitz ( #3463 )
...
* remove suspense wrapper
* changeset
2022-06-26 06:02:45 -04:00
beerose
e476beba39
Update pnpm-lock.yaml
2022-06-23 17:00:27 +02:00
github-actions[bot]
1a1b23a7e8
Version Packages (alpha) ( #3459 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-23 16:59:54 +02:00
Fran Zekan
ae0b714f69
Expanding types for GetServerSideProps ( #3457 )
...
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-06-23 16:56:41 +02:00
Aleksandra
7817fe3a85
Add missing RouteUrlObject on Page.authenticate.redirectTo ( #3458 )
2022-06-23 16:45:27 +02:00
beerose
30bb474abb
Update pnpm-lock.yaml
2022-06-23 13:32:30 +02:00
github-actions[bot]
135b30efde
Version Packages (alpha) ( #3456 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-23 13:31:59 +02:00
Aleksandra
527e48ac3e
Fix running bin commands with Blitz CLI ( #3455 )
2022-06-23 13:29:22 +02:00
beerose
b905270875
Update pnpm-lock.yaml
2022-06-23 12:56:21 +02:00
github-actions[bot]
96ea5291e4
Version Packages (alpha) ( #3454 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-23 12:54:23 +02:00
Aleksandra
9c2e7d372c
Import useRouter form next/router in useParams.tsx ( #3453 )
2022-06-23 12:47:01 +02:00
beerose
493d505b24
Update pnpm-lock
2022-06-22 12:12:57 +02:00
github-actions[bot]
09da992bef
Version Packages (alpha) ( #3450 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-22 12:11:54 +02:00
Dillon Raphael
bbac7906e8
fix codemod for wrapping \_app arrow function and nested pages directory ( #3443 )
...
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-06-22 10:55:35 +02:00
Dillon Raphael
21ca3a9b02
pnpmlock
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Dillon Raphael
0e762fb557
export BlitzPage & BlitzLayout types from @blitzjs/next ( #3376 )
...
* Export types
* Add changeset
* export AppProps
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-05-24 21:02:17 +02:00
github-actions[bot]
6fe860512c
Version Packages (alpha) ( #3377 )
...
* Version Packages (alpha)
* empty
* pnpm lock
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
2022-05-24 14:48:47 -04:00
Dillon Raphael
adfe8ff919
run build after pnpm i --frozen-lockfile so lint can work
2022-05-24 14:22:02 -04:00
Dillon Raphael
980869fbc8
add npm auth token to npmrc file in action step
2022-05-24 14:15:50 -04:00
Dillon Raphael
00f6d5576a
merge main branch
2022-05-24 13:52:40 -04:00
Dillon Raphael
1945d85db2
Set strict peer dependencies to false
2022-05-24 13:47:56 -04:00
Aleksandra
b0c21b0706
Move blitz config to next.config.js ( #3370 )
2022-05-19 15:34:37 +02:00
Aleksandra
931156c352
Add support for prefetchInfiniteQuery ( #3369 )
2022-05-17 16:29:12 +02:00
Aleksandra
1436e76180
Export zod-utils from blitz core ( #3368 )
2022-05-17 15:49:42 +02:00
Aleksandra
c3bb5cd95b
Add passport adapter ( #3365 )
2022-05-16 18:02:44 +02:00
beerose
8b08fe4e38
Update release workflow
2022-05-12 18:12:46 +02:00
beerose
604dc3b345
Update pnpm-lock after manually updating packages versions
2022-05-12 17:58:21 +02:00
beerose
20fb3b9427
Update packages versions manually
2022-05-12 17:52:00 +02:00
beerose
66ea6ec0cb
Update package-lock
2022-05-12 17:47:17 +02:00
Dillon Raphael
8490b07246
test automated publish
2022-05-12 11:44:53 -04:00
Dillon Raphael
f15a519017
alpha.23
2022-05-12 11:39:15 -04:00
Aleksandra
cfcd3f83df
Read custom server config from blitz config ( #3359 )
2022-05-12 17:15:50 +02:00
beerose
adabb11a0c
2.0.0-alpha.23
2022-05-12 16:06:10 +02:00
Dillon Raphael
909dc76087
merge
2022-05-12 09:35:11 -04:00
Dillon Raphael
c5c727cb67
add mounted check to withBlitz
2022-05-12 09:31:55 -04:00
Aleksandra
6ff9ec0d75
Upgrade @types/react, fix typings inside @blitzjs/next ( #3356 )
2022-05-12 13:04:05 +02:00
Aleksandra
da17cc8a24
Support prefetchBlitzQuery in gSP and gSSP ( #3341 )
2022-05-12 12:55:13 +02:00
Dillon Raphael
89bf993a1d
Add db seed cli command ( #3350 )
...
* added db seed cli command
* Update .changeset/poor-penguins-look.md
* Add tsconfig-paths to blitz deps
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-05-10 15:24:58 +02:00
Blake Bayer
68f129491c
change password updated with try/catch ( #3321 )
...
* change password updated with try/catch
* Update changePassword.ts
* Update changePassword.ts
* Apply suggestions from code review
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
2022-05-10 11:26:39 +02:00
Dillon Raphael
c096891bf0
change queries & mutation test package.json to different name
2022-05-09 14:30:59 -04:00
Dillon Raphael
81b4b41a99
add mounted check in app generator ( #3349 )
...
* add mounted check in app generator
* add changeset
2022-05-09 14:26:30 -04:00
Dillon Raphael
e8271d579c
React query tests ( #3348 )
...
* init tests
* fix custom blitz provider for testing-library render function
* fix mutation test setup and set globaThis react environment to true so the act function will work
* added query tests & moved blitz test utils to the utils dir
* clean queries and mutation test files
* remove .env file from qm tests
Co-authored-by: beerose <alexsandra.sikora@gmail.com >
2022-05-09 17:05:42 +02:00
GaneshMani
9e798b152b
migrate react-query unit test to blitz-rpc ( #3340 )
2022-05-08 14:44:50 +02:00
Aleksandra
3c6f43a11d
Add github workflow for automatic release ( #3330 )
2022-05-05 15:33:31 +02:00
Dillon Raphael
8107138e2f
alpha.21
2022-05-04 13:58:20 -04:00
Dillon Raphael
8cb1134d94
Change template package.json to use latest tags on blitz/auth & blitz/rpc
2022-05-04 13:56:50 -04:00
Dillon Raphael
2073714f8d
testing explicity setting dist-tag for changesets
2022-05-04 13:48:11 -04:00
Dillon Raphael
9631c45833
alpha.19
2022-05-04 12:23:32 -04:00
Aleksandra
2150dcc3e7
Setup Superjson for gssp and gsp ( #3335 )
2022-05-04 17:45:35 +02:00
Aleksandra
63605961b4
Use routes manifest in template app ( #3334 )
2022-05-04 17:18:23 +02:00
Brandon Bayer
d711948809
toolkit: fix suspense loading by throwing error on the server (but still have error popup) ( #3332 )
...
* wip
* cleanup
* upgrade next@canary
2022-05-02 17:07:41 -07:00
Dillon Raphael
1f6b0b54c2
alpha.18
2022-04-29 20:46:32 -04:00
Dillon Raphael
4603a2b7bd
alpha.17
2022-04-29 20:04:23 -04:00
Dillon Raphael
01f3a03ea9
alpha.16
2022-04-29 18:21:07 -04:00
Dillon Raphael
36e26193b7
alpha.15
2022-04-29 18:13:17 -04:00
Dillon Raphael
4a9aa9f7ff
alpha.14
2022-04-29 18:08:06 -04:00
Dillon Raphael
1e1bb73b2d
alpha.13
2022-04-29 16:25:20 -04:00
beerose
99205f52d5
alpha.12
2022-04-29 20:10:31 +02:00
Aleksandra
d03a1165d7
Use alpha version for blitz dependency, fix package manager selection ( #3327 )
2022-04-29 20:08:10 +02:00
beerose
d87288a2e9
alpha.11
2022-04-29 16:00:15 +02:00
beerose
fdff45a592
Update isInBlitzMonorepo check in postinstall script
2022-04-29 15:58:48 +02:00
beerose
469f55a429
Fix pre-publish script to build packages after
...
changeset version
2022-04-29 15:47:01 +02:00
Dillon Raphael
e6c31704ed
added postinstall script to blitz/next package json
2022-04-29 09:41:57 -04:00
Dillon Raphael
35a070ad7d
alpha.10
2022-04-28 19:37:39 -04:00
Dillon Raphael
9674efc0bf
alpha.9
2022-04-28 19:07:56 -04:00
Dillon Raphael
666a3ae3e6
fix cli versioning
2022-04-28 17:35:54 -04:00