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

39 Commits

Author SHA1 Message Date
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
Aleksandra
a6e81f156b Add BlitzLogger plugin and allow customizing logging (#3886) 2022-10-18 15:50:17 +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
Aleksandra
e2c18895da Add client testing utilities and index.test.tsx back to toolkit (#3857) 2022-09-28 16:38:58 -04:00
Aleksandra
1742eb45db Use prefetchInfiniteQuery from @tanstack/react-query for prefetching infinite Blitz queries (#3847)
* Use prefetchInfiniteQuery from @tanstack/react-query for prefetching infinite Blitz queries
2022-09-19 15:23:57 -04:00
Dillon Raphael
757789c43b CI Fixes (#3834) 2022-09-14 09:42:27 -04:00
Dillon Raphael
870986b5ad rename test-get-initial-props 2022-09-13 15:22:44 -04:00
Siddharth Suresh
aba000a812 Update CI (#3824) 2022-09-13 11:30:52 -04:00
Dillon Raphael
6b788b03be Fix CI & Tests (#3822)
* set bash as shell for github action
2022-09-08 11:04:43 -04:00
Siddharth Suresh
c213d521c6 Add Windows Testing to CI (#3799)
* add windows testing
2022-08-30 18:32:48 -04:00
Aleksandra
69fb280340 Copy App component properties inside withBlitz (#3778)
* Copy App component properties inside withBlitz
2022-08-23 10:24:28 -04: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
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
Fran Zekan
f52ca398ee Upgrade React-Query to V4 (#3557) 2022-07-30 20:59: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
12cb7a727d Upgrade Prisma to v4.0.0 (#3511)
* Upgrade Prisma to v4.0.0

* Changeset
2022-07-06 19:21:36 +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
c11f0401cf Update Next.js version and addBasePath location (#3506) 2022-07-06 13:14:48 +02:00
Aleksandra
b86b569d56 Remove as any assertion for the PrismaStorage argument (#3481) 2022-07-01 16:04:58 +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
Aleksandra
17ce29e5e4 Update rpc plugin setup in templates (#3404) 2022-06-07 11:33:06 -07: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
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
Aleksandra
6ff9ec0d75 Upgrade @types/react, fix typings inside @blitzjs/next (#3356) 2022-05-12 13:04:05 +02:00
Dillon Raphael
c096891bf0 change queries & mutation test package.json to different name 2022-05-09 14:30:59 -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
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
Aleksandra
a2ebdbe7d6 make blitz CMD run the associated .bin file (#3310) 2022-04-27 11:38:55 +02:00
Aleksandra
151dcc308e Add RpcClientPlugin 🎉 (#3302) 2022-04-13 14:24:26 +02:00
Brandon Bayer
10d27c74af refactor toolkit setup a bit for better DX (#3297) 2022-04-12 15:56:15 -04:00
Brandon Bayer
9810d984f1 toolkit: remove hook exports from setupClient (#3287)
* cleanup exports

* bump

* Update example app

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-04-12 14:31:10 +02:00
Brandon Bayer
10574b7359 Add RPC package to toolkit, including magical imports 🎉 (#3278)
* wip

* webpack loader working

* time to switch to babel

* wip

* wip - next broken

* build & babel working, but resolver not loaded at runtime

* webpack loaders fully working!

* rpc server handler ported

* fully working e2e!

* ci

* fix

* fix

* fix test

* refactor integration test setup

* port rpc integration test

* remove duplicate constants

* fix timeout

* add more explicit timeouts for tests

* use pnpm exec

* add custom _document for auth test

* await killapp

* add next as dependency for test utils

* update pnpm ci

* add vitest config file

* add hookTimeout to global vitest file

Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
2022-04-11 14:18:02 -04:00
Dillon Raphael
ff3ef58a47 Auth tests (#3260)
* Auth tests setup

* WIP: Updated test-utils

* WIP: Fix lowdb for tests + passing unauth tests + create elementByXpath webdriver chain

* Using prisma & sqlite for tests

* manypkg fix dependency

* fix server mode for auth test

* Add .env template to auth integration test

* Add default value for .env + fix how chrome window is rendered in next-webdriver + install chromedriver in package.json

* Rename test directory

* Update pnpm-lock

* trying to set debug port

* add chrome to ci

* Install chrome with apt-get for github actions

* set headless and chrome bin in env file

* find chrome path inside webdriver

* run the right chrome command in github action based on os

* fix step cannot have both the  and  keys

* add explicit bash shell for github action

* use matrix os expression and run if statement under chrome run

* dont cancel in progress tests to see if one works

* add chrome driver

* remove potential conflicting chromedriver versions

* let selenium find chromedriver path instead of manually setting it

* set chrome option to no gpu & disable shm usage

* remove chrome install github action

* use chromedriver path for binary

* add --headless attribute to chrome driver options

* use chrome bin instead of chromedriver bin

* set path if chromewebdriver env variable present

* set next commands inside try/catch

* remove try/catch

* increase timeout

* disable gpu

* add back headless env

* set shell to bash

* set default shell

* set timeout for webdriver test function

* remove run chromedriver for windows since we're using bash

* scl_source enable

* remove scl_source enable

* add try catch

* remove bash default

* whitelist ips for chromedriver in windows matrix

* set shell to cmd for windows matrix

* console.log path

* force cmd for running chromedriver

* start chromedriver for cmd

* set default windows command to pwsh

* set path for windows test command

* set dynamic path for windows os

* remove if statement for test command

* remove chromedriver from github yaml

* remove windows os from tests

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MacBook-Pro.local>
Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MBP.hitronhub.home>
2022-04-07 12:46:37 -04:00