github-actions[bot]
9f316d73f5
Version Packages (beta) ( #4111 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-04-03 19:26:36 +05:30
Siddharth Suresh
f84d77a425
Fix invoke type regression ( #4110 )
2023-04-03 08:49:55 +05:30
github-actions[bot]
f2da4f1516
Version Packages (beta) ( #4083 )
...
* Version Packages (beta)
* pnpm lock
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-03-31 23:30:39 +05:30
Brandon Bayer
acc07ce943
Fix Next 13.2 compatibility ( #4108 )
...
* make everything work with next 13.2
* changeset
* update test
* fix test
2023-03-30 20:20:30 +00:00
Siddharth Suresh
37aeaa7fa2
feature: Nextjs 13 App Directory Utility Methods ( #4103 )
...
* working
* fix toolkit app
* fix add directive
* add back secure password
* changeset
* improve blitz rpc structure
* make it work
* fix most integration tests
* fix the tests
* fix import error
* fix unit test
* fix tests
* remove breaking changes
* remove another breaking change
* fix typescript declaration
* fix errorboundary redirect issues
* cleanup
* upgrade to next13
* update pnpm-lock
* add Server Plugin Export
* fix lint error
* fix build errors
* fixes
* Solve NextRouter is not mounted
* fix
* fix issues
* pnpm lock fix
* rename session function and add auth utility
* remove potential implicit warning
* fix deps and cleanup
* fix secure-password missing file
* fix possibility of crsf token cookie being null
* remove secure-password breaking changes
* Update cuddly-singers-perform.md
* rename functions and remove headers
* Revert "remove secure-password breaking changes"
This reverts commit abccf93d0c .
* unsupported auth methods in react server components
* remove authorizedContext: To be done in another PR
* add integration test for app dir
* fix duplicate package name
* Revert "remove authorizedContext: To be done in another PR"
This reverts commit 46fe8afab9 .
* pnpm lock
* integration test
* remove empty then and add void operator
* add new invokeResolver function
* fix bug in useAuthenticatedBlitzContext
* Create .changeset/tall-radios-clean.md
* overload the invoke function for the new RSC usecase
* invoke works without implicit passing of arguments
* fix pnpm lock
2023-03-29 19:05:46 +05:30
Siddharth Suresh
cadefb88e4
feature: Next 13 App directory ( #4079 )
...
* working
* fix toolkit app
* fix add directive
* add back secure password
* changeset
* improve blitz rpc structure
* make it work
* fix most integration tests
* fix the tests
* fix import error
* fix unit test
* fix tests
* remove breaking changes
* remove another breaking change
* fix typescript declaration
* fix errorboundary redirect issues
* cleanup
* upgrade to next13
* update pnpm-lock
* add Server Plugin Export
* fix lint error
* fix build errors
* fixes
* Solve NextRouter is not mounted
* fix
* fix issues
* pnpm lock fix
* rename session function and add auth utility
* remove potential implicit warning
* fix deps and cleanup
* fix secure-password missing file
* fix possibility of crsf token cookie being null
* remove secure-password breaking changes
* Update cuddly-singers-perform.md
* rename functions and remove headers
* Revert "remove secure-password breaking changes"
This reverts commit abccf93d0c .
* unsupported auth methods in react server components
* remove authorizedContext: To be done in another PR
* add integration test for app dir
* fix duplicate package name
* integration test
* remove empty then and add void operator
* fix pnpm lock
2023-03-24 11:10:36 +05:30
Siddharth Suresh
6f18cbdc98
feature: Next Auth Adapter ( #4046 )
...
* initial working
* add user side callback control
* connect to blitz-auth
* better error handling
* initial working after submodule
* Create fast-adults-guess.md
* add submodule init and update to workflow
* remove internal folder
* cleanup
* ignore tests from next-auth
* add redirectUrl config and maintin consistency
* move required files back to internals folder
* remove submodule cloning
* Patch NextAuth
another time
fix import issue
fix import
add path imports for the adapters
Revert "add to blitz-auth"
This reverts commit 246e62faa5a451aad9f4a2530a159ca3457b8b75.
add to blitz-auth
pnpm lock fix
cleanup
fix codegen
remove nextauth submodule and internal folder and patch nextauth
* Revert "Patch NextAuth"
This reverts commit 31888fc643 .
* switch
* DRY
* optional peerDependency
* Delete .gitmodules
* make it work with webpack alias
* fix
* split to new path
* undo unnecessary changes
* more fixes
* add strong typing to nextauth adapter (#4104 )
* add strong typing to nextauth adapter
* cleanup
---------
Co-authored-by: Brandon Bayer <b@bayer.ws >
2023-03-24 09:07:11 +05:30
github-actions[bot]
6374f2ff0c
Version Packages (beta) ( #4055 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-02-09 21:44:34 +05:30
Siddharth Suresh
3fa3c70b39
internal: Readme for the packages ( #4052 )
2023-02-07 15:14:58 +07:00
Jhonny Michel
c3c789740a
Fixing tests for blitz apps that use vitest ( #4072 )
...
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
Closes https://github.com/blitz-js/blitz/issues/4065
2023-02-06 21:17:28 +05:30
github-actions[bot]
21b83fb7bf
Version Packages (beta) ( #4038 )
...
* Version Packages (beta)
* pnpm lock
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-01-12 10:43:33 +05:30
Tobias
14882d43fe
Update package Zod to 3.20.2 ( #4039 )
...
* Update package zod to 3.20.2
* `pnpm changeset` Update zod to 3.20.2 (was 3.19.1).
Co-authored-by: Brandon Bayer <b@bayer.ws >
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-01-11 11:32:02 +05:30
Brandon Bayer
2703618868
change rpc route basepath includeRPC in monorepos to be one folder up ( #4045 )
...
* change rpc route basepath includeRPC in monorepos to be one folder up
* changeset
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-11 00:13:11 +00:00
Siddharth Suresh
9be4d86174
Version Packages (beta) ( #4035 )
...
* Version Packages (beta)
* Version Packages (beta)
* pnpm lock
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-04 01:16:55 +05:30
Siddharth Suresh
249e7cf527
Revert "Version Packages (beta) ( #4012 )" ( #4034 )
...
This reverts commit 76df5db1c3 .
2023-01-04 00:54:38 +05:30
github-actions[bot]
76df5db1c3
Version Packages (beta) ( #4012 )
...
* Version Packages (beta)
* pnpmlock
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
2023-01-04 00:37:02 +05:30
Dillon Raphael
d692b4c1d7
Fix suspense error codegen patch for latest nextjs version ( #4031 )
...
* Use the new nextjs constant to check if SSR and fix suspense for nextjs 13.1 and above
* satisfy version from 13 to 13.0.6
* check for DYNAMIC_SERVER_USAGE error string for nextjs versions 13-13.0.6
* Create fluffy-coats-flow.md
* revert toolkit-app update to next 13.1
* set error message for compatability with next 13.0.7
* fix changeset
2023-01-03 13:49:53 -05:00
Datner
0025856b9e
support invalidate all queries ( #3899 )
...
* support invalidate all queries
* Add changeset
* Update .changeset/stupid-rabbits-jump.md
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com >
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
2022-12-20 15:09:15 -05:00
github-actions[bot]
13c2642bdb
Version Packages (beta) ( #3992 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-16 14:09:41 -05:00
Brandon Bayer
03bad3175d
fix Cannot read properties of null (reading 'isReady') for pnpm/yarn v3 ( #4008 )
2022-12-16 14:02:44 -05:00
Siddharth Suresh
6ece096134
Decouple Blitz RPC and Blitz Auth ( #3943 )
...
* inital unwrapping of blitz rpc from blitz auth
* fix linr
* Revert "fix linr"
This reverts commit 000e2c7259 .
* remove duplication of code and dynamically import blitz auth if plugin is used
* return types to blitz-auth and import in rpc as types
* remove excess files from git diff
* remove todo ts-ignore
* add changeset
* better error messages
* Update odd-cars-fry.md
* switch from blitz log to console - due to import error.
* Revert "Merge branch 'rpc-without-auth' of https://github.com/blitz-js/blitz into rpc-without-auth"
This reverts commit 5b45d65b4d , reversing
changes made to b15dfa6dec .
* Revert "switch from blitz log to console - due to import error."
This reverts commit b15dfa6dec .
* Revert "better error messages"
This reverts commit 75922cb063 .
* fix location of seting global variable
* better error message due to dynamic import
* allow setting csrf token in blitz rpc
* cleanup
* fix
* pnpm lock fix and update csrf api
* fix global.ts type definition
* remove change to merge
* fix pnpm-lock
* update integration-tests to work without blitz-auth
* initial working commit after switch to plugin system
* fix pnpm-lock
* readd the changeset
* update hook names
* Revert "readd the changeset"
This reverts commit 796f3f518e .
* Revert "update hook names"
This reverts commit fb127ed84e .
* Revert "fix pnpm-lock"
This reverts commit d7447b5966 .
* Revert "Revert "fix pnpm-lock""
This reverts commit c2f21aa0e5 .
* Revert "Revert "update hook names""
This reverts commit 4b66846b20 .
* Revert "Revert "readd the changeset""
This reverts commit c95d150e64 .
* add header to rpc plugin
* pnpm lock fix
* cleanup - change global hook names to prefix with __BLITZ
* initial commit suggestion - TODO Fix types
* fix most type assertions
* fix error without blitz auth
* add typea to events and middleware reducers
* implement suggestion
* Apply suggestions from code review
Co-authored-by: Brandon Bayer <b@bayer.ws >
* move onSessionCreated event from blitz-auth to blitz-rpc
* move globals to blitz core, move event listener to blitz-next
* remove middlewareCtx to Ctx
* fix imports
* improve type definition of hook types
* format
* Revert "remove middlewareCtx to Ctx"
This reverts commit 4259b4dbed .
* Revert "fix imports"
This reverts commit 7422bfaee3 .
* revert changes from MiddlewareCtx to Ctx
* pnpm lock and other fixes
* remove type assertion
* merge to one `Array.reduce`
* Apply suggestions from code review
Co-authored-by: Brandon Bayer <b@bayer.ws >
* implement review suggestions
* Update packages/blitz/src/types.ts
* add unit tests
* cleanup
* Update packages/blitz/tests/plugin.test.ts
* add providers to plugin reduce
* add initial integration test for full blitz rpc+auth and custom client plugins
* test commenting out playwright install
* fixes
* remove changes related to console.log checking
* test
* try with different command
* comment
* another try
* try adding global install
* change console.log to console.info for better identification
* fix db
* lowdb import fix
* convert from lowdb to prisma
* fix blitz build error
* add custom plugin events to integration-tests
* manipulate the timing of event firing
* fix
* check
* add middleware tests
* fix
* fix commented test and cleanup
* add the migration file
Co-authored-by: Brandon Bayer <b@bayer.ws >
2022-12-13 18:44:39 -05:00
Aleksandra
8c247e26e7
Switch from jest to vitest in new app templates ( #3985 )
...
* Switch from jest to vitest in new app templates
* Finish vitest setup
* Handle vitest.config.js vs vitest.config.ts
* Add proper vitest config to js templates
* Add changeset
* Update READMEs in new app templates
* Fix tests after vitest upgrade
* Update spyOn references in tests
2022-11-28 14:24:08 -05:00
Siddharth Suresh
650a157e1d
fix #3989 ( #3990 )
2022-11-25 18:21:41 -05:00
github-actions[bot]
474b5494ac
Version Packages (beta) ( #3977 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-22 16:09:29 -05:00
Dillon Raphael
b33db08286
Ensure superjson registers error classes once ( #3982 )
...
* bump superjson version & ensure superjson register
* update changeset & use error name as property for check if class has been registered
* refactor
2022-11-22 16:04:42 -05:00
Brandon Bayer
c1e0040639
transpile packages to es2015 to support older browsers ( #3983 )
2022-11-22 13:39:11 -05:00
Brandon Bayer
b493c93f8b
fix resolverPath:root and make it work with monorepo resolvers ( #3978 )
2022-11-17 21:47:17 -05:00
github-actions[bot]
4c0024c468
Version Packages (beta) ( #3967 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-16 18:56:59 -05:00
Brandon Bayer
72a4e594ae
internal: remove unneeded useSession from useQuery hooks ( #3968 )
2022-11-14 18:00:20 -05:00
Paul
ed2b0e22c5
Add feature for resolvers to exist outside of Blitz root ( #3953 )
...
Co-authored-by: Paul Moss <paulmoss06@gmail.com >
Co-authored-by: Brandon Bayer <b@bayer.ws >
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com >
2022-11-14 14:51:42 -05:00
Tom MacWright
c0a3b1ee36
Fix runaway mutability bug in httpMethod ( #3963 )
...
Co-authored-by: Brandon Bayer <b@bayer.ws >
Closes https://github.com/blitz-js/blitz/issues/3962
2022-11-14 14:23:22 -05:00
github-actions[bot]
936211a657
Version Packages (beta) ( #3955 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-09 15:22:38 -05:00
Aleksandra
8b4bf999ce
Update deps ( #3957 )
2022-11-09 14:11:28 -05:00
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
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
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
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
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
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
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
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
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
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
Dillon Raphael
8e0c9d76b5
Migrate recipes ( #3784 )
2022-10-03 09:21:45 -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
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
Aleksandra
0b94a45039
Upgrade superjson to the latest version ( #3827 )
2022-09-12 18:05:44 +02:00
Siddharth Suresh
c213d521c6
Add Windows Testing to CI ( #3799 )
...
* add windows testing
2022-08-30 18:32:48 -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