* upgrade to next 13.5.2 and update location of internal function
* Create lucky-teachers-sleep.md
* fix bootupMarkers
* fix issues with qm integration test
* Update integration-tests/utils/next-test-utils.ts
* next.js generated stuff
* Update .changeset/lucky-teachers-sleep.md
* remove unnecessary next lints to the integration-tests
* Update main.yml
* Revert "remove unnecessary next lints to the integration-tests"
This reverts commit 3226b2e3ba.
* initial port
* read custom template values from blitz-server
* fix unit tests
* add unit tests
* remove comments
* make db import generic
* fix blitz genrate not updating values
* cleanup
* fix parent generation in createMutation and components, and move existing pages when --parent is called
* cleanup
* Create silly-peas-work.md
* Update .changeset/silly-peas-work.md
* add types for codegen
* fix belongsTo not working
* fix pnpm-lock
* use latest blitz logging setup in generator
* show error when structure of codegen is incorrect using zod
* cleanup
* make prisma import generic
* update tests
* generic prisma to work on subsequent runs
* initial commit adding dropdown option when using belongTo and parent flag
* cleanup
* fix --parent flag
* fix type
* Update getUsers.ts
* fix duplicate
* update prop type to options for --parent or belongsTo option and add LabelSelectField
* update tests
* Update blitz-server.ts
* fix lock file and add react-final-form select component
* fix default bug for string values in #2863
* Update apps/toolkit-app/app/blitz-server.ts
* update to latest changes
* implement suggessions
* fix tests and remove custom log
* add required test and remove error if prisma does not exist
* remove error log if no prisma schema
* works without prisma
* move zod to devDeps
* fix zod version
* preWriteFile and postWriteFile hooks
* fix pnpm lock
* Update packages/generator/src/generators/template-builders/field-values-builder.ts
Co-authored-by: John Vandivier <vandivier_john@yahoo.com>
* initial revert changes to log and add better types
* minor fix
* minor fix
* Update main.yml
* fix playwright issue
* Update main.yml
* try agin
* fix env location
* fix path
* fix version
* try another way
* with deps
* fix version
* cleanup
* add new zod `datetime`
Co-authored-by: Tobias <tobias@fixmycity.de>
* pnpm lock
* update zod to 3.20.0 in generator
* update unit tests
* Create pr-release.yml
* add changeset pre exit to fix error
* update to latest
* fix syntax
* try again
* feature: Consolidate mutations schema to schemas.ts file (#4057)
* fix global install issue
* update the templates from suggestions
* merge the default and custom config
* fix custom codegen
* fix validations
* add partial type to codegen
* commit to rerun the action
---------
Co-authored-by: John Vandivier <vandivier_john@yahoo.com>
Co-authored-by: Tobias <tobias@fixmycity.de>
* 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>
* 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>
* 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>