1
0
mirror of synced 2025-12-25 11:00:31 -05:00
Commit Graph

37 Commits

Author SHA1 Message Date
Brandon Bayer
b1ef45bf28 2.0.0-alpha.2 - fix generator npm package dist @blitzjs/generator@2.0.0-alpha.2 @blitzjs/auth@2.0.0-alpha.2 @blitzjs/next@2.0.0-alpha.2 @blitzjs/rpc@2.0.0-alpha.2 blitz@2.0.0-alpha.2 2022-04-14 20:44:45 -04:00
Brandon Bayer
c6e8df5efd release 2.0.0-alpha.1 blitz@2.0.0-alpha.1 @blitzjs/generator@2.0.0-alpha.1 @blitzjs/auth@2.0.0-alpha.1 @blitzjs/next@2.0.0-alpha.1 @blitzjs/rpc@2.0.0-alpha.1 2022-04-14 20:31:40 -04:00
Brandon Bayer
46a34c7b3a install changeset 2022-04-14 20:28:16 -04:00
Dillon Raphael
18d4ef74a9 Migrate cli generate command (#3294)
* migrate generate command

* tidy up the help command
2022-04-14 16:49:59 -04:00
Dillon Raphael
212a1cb941 Cli codegen command (#3276)
* WIP: init cli + init env utils

* remove pnpm global link artifacts

* WIP: migrate legacy new cli command

* change enums to objects

* remove chromedriver package from integration test

* create cli bin file that requires blitz/dist/index.cj

* fix prisma-utils pEvent

* fix missing modules

* use form key types & rename bin script

* init cli-codegen

* add fs-extra package to blitz-next

* read config file as a buffer then eval the string

Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MBP.hitronhub.home>
2022-04-14 11:17:19 -04:00
Aleksandra
151dcc308e Add RpcClientPlugin 🎉 (#3302) 2022-04-13 14:24:26 +02:00
Aleksandra
fd90cbedb4 Support blitz next CMD (#3272) 2022-04-13 11:23:49 +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
Aleksandra
c28684b8e5 Add jest config to blitz-next package (#3267) 2022-04-08 13:38:09 +02:00
Dillon Raphael
a590820c14 Cli (#3270)
* WIP: init cli + init env utils

* remove pnpm global link artifacts

* WIP: migrate legacy new cli command

* change enums to objects

* remove chromedriver package from integration test

* create cli bin file that requires blitz/dist/index.cj

* fix prisma-utils pEvent

* fix missing modules

* use form key types & rename bin script

Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MBP.hitronhub.home>
2022-04-07 18:02:52 -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
Aleksandra
e33c81a70f Add useParams to blitz-next (#3269) 2022-04-05 18:34:16 +02:00
Aleksandra
dc41f8eedc Add paginate utility to blitz package (#3266) 2022-04-04 11:04:43 +02:00
Brandon Bayer
f49aa37892 toolkit: fix some various package and build issues (#3263) 2022-04-02 16:06:25 -04:00
Aleksandra
e218d5f84d Migrate generator package (#3245) 2022-03-30 14:34:49 +02:00
Ante Primorac
2eb4f791a8 Add typings for PrismaStorage (#3243) 2022-03-28 12:48:55 +02:00
Aleksandra
fa0850d0a3 Migrate middleware to core package (#3238) 2022-03-24 16:14:00 +01:00
Aleksandra
2d3c6cbfb8 Add zod utilities to blitz core (#3233) 2022-03-11 14:50:10 -05:00
Aleksandra
6ff7e99d15 Include client error patch in blitz core (#3232) 2022-03-11 14:35:11 -05:00
Aleksandra
77ca03af96 Add enhancePrisma to blitz core (#3231) 2022-03-11 14:15:34 -05:00
Aleksandra
f56ef9b2c5 Add connectMiddleware to blitz-next (#3230) 2022-03-11 13:18:17 -05:00
Aleksandra
991b4a9db0 Export ErrorBoundary from blitz-next (#3229) 2022-03-11 10:10:23 -05:00
Aleksandra
0c8edbb8b2 Move errors.ts to blitz package (#3228) 2022-03-10 11:55:39 -05:00
Aleksandra
2d75a2b7c7 Move runMiddlewares to blitz package (#3227) 2022-03-10 11:38:01 -05:00
Aleksandra
b878c6845e Figure out relations between Blitz packages (#3195) 2022-03-10 10:33:20 -05:00
Brandon Bayer
cb0da6a0cb upgrade some toolkit deps (#3194) 2022-03-09 12:12:29 -05:00
Aleksandra
a47c643145 Add client side support for auth plugin (#3161) 2022-02-21 15:53:02 +01:00
Aleksandra
945c66a53c Properly add sessionConfig to globalThis type (#3174) 2022-02-18 15:09:31 +01:00
Aleksandra
50421a19ed Add default values to public-hoist-pattern (#3175) 2022-02-18 15:07:20 +01:00
Aleksandra Sikora
926e5cf10f Add auth client unit tests (#3160) 2022-02-09 13:19:37 +01:00
Aleksandra Sikora
6228366ea3 Migrate auth code to Blitz toolkit, add server & client setup (#3147) 2022-02-09 12:59:13 +01:00
Brandon Bayer
bcb56eb79d cleanup packages 2022-01-16 17:53:15 -05:00
Brandon Bayer
80f0c81130 Set up fancy new monorepo for blitz toolkit with pnpm, turborepo, unbuild, vitest (#3129) 2022-01-16 17:45:02 -05:00
Brandon Bayer
0847896968 mit license 2022-01-16 17:26:30 -05:00
Brandon Bayer
07df04e91d Initial commit 2020-02-17 13:54:16 -08:00