* Version Packages
* chore: its a minor not major
* pnpm lock fix
* Apply suggestions from code review
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
* Version Packages
* make the version 2.1.0
* Update integration-tests/no-suspense/package.json
* pnpm lock fix
* use latest pnpm version
* Revert "use latest pnpm version"
This reverts commit 5fab234a4a.
* Revert "pnpm lock fix"
This reverts commit 690a467cf7.
* Revert "make the version 2.1.0"
This reverts commit 922e95156f.
* make the version 2.1.0
* pnpm lock fix
* fix
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
* Use this.rootContext instead of webpack internals
Ensures the root context is read from the public API that webpack exposes. This is the first step for Turbopack support as Turbopack includes `this.rootContext` as well
* Turbopack support for Blitz
* Update packages/blitz-rpc/src/server/loader/server/loader-server.ts
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
* fix: CI and update next.js version in test app
* feat: add tests for turbo and expose new `turbo` boolean
* upgrade to latest next version
* use latest canary in internal packages and tests
* chore: add changeset
* chore: minor fix on how the test is run
* fix stray DYNAMIC_SERVER_USAGE thrown
* cleanup
* chore: changeset
* pnpm lock fix
* fix turbo tests
* fixes
* oops
* add turbo config only when needed
* remove need for any change to `next.config.js`
---------
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
* fix: process.kill("SIGABRT") not supported on windows
* fix: use process.kill("SIGINT") across all operative systems
* Update .changeset/clever-insects-shave.md
---------
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
* fix: remove custom errors thrown by blitz
* Create curvy-cougars-lick.md
* use require and eval rather than the await which becomes a `yield import` possibly causing the issue
* pnpm lock fix
* Update .changeset/curvy-cougars-lick.md
* add comment
* use correct error type
* Apply suggestions from code review
* perf: add check to make sure only non expired sessions are selected by default
* remove console.logs
* Create chatty-ants-bake.md
* remove `expiresAt` from the publicData
* remove internal from changelog
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Added support for legacy projects that have the pages folder located inside a /src directory
* Fixed line 687 for path.resolve(`${findPagesDirectory}/api/rpc`) not actually calling the function and added path.resolve's to findPagesDirectory
* Update for lines 56 and 1340 to add support for app and pages directories located in /src
* new blitz app starter
* tanstack form first time working
* complete app template
* re-arrange generator folders
* add app router as recomended
* 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.
* fix starter with tanstack form
* make changes to the generator
* mske final changes
* pnpm lock fix
* more changes
* add logging to rsc invoke and decouple auth from rpc again
* implement object chaining
* add `onInvokeError` options to catch errors without manual wrapping
* rename `LoggerOptions` to `RpcLoggerOptions`
* spacing
* fix error typed to `any`
* update class code
* tests working again
* add last test case proving working modal of roles
* Create moody-pandas-do.md
* Apply suggestions from code review
* move app -> `src/app`
* move from auth -> (auth) directory structure
* review 1 fixes
* missing change from auth -> (auth) change
* review 2: more fixes and match old behaviour
* pnpm lock fix
* add new pages to the `pathsToMove` array
* remove submodule
* remove changelog from the template
* fix name of .env
* match readme
* march prisma schema
* match package.json
* match blitz-client and blitz-server files
* remove vercel logo
* remove `next13`
* upgrade next and add husky
* fix build error
* Create poor-bikes-wait.md
* Revert "remove `next13`"
This reverts commit c0d7f54ab1.
* remove next13
* re-add next 13 that exists in main
* Apply suggestions from code review
* pnpm lock
* improvements to the template
* fix location of imports in `reset-password` page
* Update packages/blitz/src/cli/commands/new.ts
Co-authored-by: Tobias <tobias@fixmycity.de>
* Update packages/generator/templates/app/src/pages/api/rpc/blitzrpcroute.ts
Co-authored-by: Tobias <tobias@fixmycity.de>
* fix auth -> (auth)
* Update packages/generator/templates/app/src/app/layout.tsx
Co-authored-by: Tobias <tobias@fixmycity.de>
* Apply suggestions from code review
Co-authored-by: Tobias <tobias@fixmycity.de>
* abstact forms as client compoennts and pages as rscs
* re-add proper singup mutation
* remove console.log
* fix additonal forms
* pnpm lock fix
* fix missing ,
* Add project package manager to postInstallSteps
* add husky
* move to devDeps
* add preview email
* remove extra components folder
* add 800px as maximum of body size
* remove auth from reset-password url
* fix non-existant compoennts
* pnpm
* fix favicon
* package.json fixes
* revert to `latest`
* move to `devDeps`
* add display names
* make it a template
* new route generator
* fidnally got it working
* add `isAppDir` check
* should be the final changes
* fix
* fix import error
* revert
* make zod optional when needed
* fix tests
* fix nullable issue
* Update packages/blitz-auth/src/server/auth-sessions.ts
* new folder structure
---------
Co-authored-by: Tobias <tobias@fixmycity.de>
* upgrade to next 14
* use default react import
* use `next/compat/router`
* set baseurl for next13 app
* get it working
* fix Error Component
* fix floating promisis
* Create modern-cups-cheat.md
* fix type of error boundary
* get react query working again
* remove experimental
* remove broken test since next export is removed
* fix qm integration test
* fix mismatch of cookie names in client and server
* fix `auth-with-rpc`
* fix unit tests
* fix snapshot
* remove `@tanstack/query-core` dep from `@blitzjs/rpc`
* Update .changeset/modern-cups-cheat.md
* fix: lockfile
* regression: re-export react query client utilites
* Update .changeset/modern-cups-cheat.md
* do not export `withRouter`
* revert change to `BlitzProvider`
* remove unnecessary next types
* add logic to auto handle role with usage of `redirectAuthenticatedTo`
* Create hot-knives-vanish.md
* fix `globalThis.__BLITZ_GET_RSC_CONTEXT` being overriden
* pnpm lock fix
* export `next-auth` and all its requirements in a sub-directory
* Create modern-insects-raise.md
* undo changes to `secure-password` adapter
* try another way
* Update .changeset/modern-insects-raise.md
* Update .changeset/modern-insects-raise.md
* patch next-auth
* add logging to rsc invoke and decouple auth from rpc again
* implement object chaining
* add `onInvokeError` options to catch errors without manual wrapping
* rename `LoggerOptions` to `RpcLoggerOptions`
* spacing
* fix error typed to `any`
* update class code
* tests working again
* add last test case proving working modal of roles
* Create moody-pandas-do.md
* Apply suggestions from code review
* blitz invoke logger
* fix logic to test the role
* add tests
* pnpm lock
* Create afraid-ligers-build.md
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* feat: Load Head lazyily using `dynamic`
* feat: upgrate turbo and fix layout.tsx
* fix: pnpm lock version
* Create chatty-scissors-jump.md
* Update .changeset/chatty-scissors-jump.md
* fix: move `dynamic` call to the top of the file
* add loading state to be null and no ssr
* 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.
* chore: add nix
This could help contributers... contribute!
* build: use turborepo pipelines for coordination
instead of hacking it with sleeps and such....
* chore: update dev script
now we're cooking with gas! no more hacks, no more awkward flags
* chore: update pnpm version requirement
you want to support v6?? then use a v6-compatible pnpm version
* chore: update pnpm-lock
* improve blitz rpc logging
* implement improved setup with jsdoc comments
* make it verbose by default
* change routePath to resolverName for easier use
* Update packages/blitz-rpc/src/index-server.ts
* rename to make language more inclusive
* set output as debug
* Create sixty-rockets-count.md
* Update sixty-rockets-count.md
* Update sixty-rockets-count.md
* fix verbose bug
* Apply suggestions from code review
Co-authored-by: Brandon Bayer <b@bayer.ws>
---------
Co-authored-by: Brandon Bayer <b@bayer.ws>
* fix: make Next.js version stick to 13.3.4
* fix: upgrade Next.js from 13.3.4 to 13.4.5
---------
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
* 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>
* secure-password breaking changes
* fix
* more fixes
* fix secure-password imports
* add codemod
* add secure-password to auth integration test
* Apply suggestions from code review
* try adding playwrigth to package.json
* without server mode
* add one to fix conficting ports
* another try
* add waitPort in the right place
* use same port
* manually kill the process
* remove the server mode
* cleanup
* 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>
* redesign index page for full app template
* pnpmlock
* iteration 2
* Add padding around blitz logo
* Fix more padding
* update padding for logo and button container
* increase max-width
* final draft
* address comments
Co-authored-by: Brandon Bayer <b@bayer.ws>
The previous solution did solve the if-statement but not the line below, which still had this TS error:
```
const relationType = Relation[_fieldName]
// ^- const _fieldName: string | undefined
// Type 'undefined' cannot be used as an index type.ts(2538)
```
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
* 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
* Reference `vitest.config.ts` instead of jest for README|s
* Update apps/toolkit-app/README.md
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
This comment was helpful but could be even more helpful if it clearly stated that it referenced the "P"-Code; and link to docs to learn more.
Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
* 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>
* 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
* fix: builder execute command hangs up
* using "blitz install" inside recipe with addRunCommandStep causes hangs up
Co-authored-by: Selçuk Fatih Sevinç <selcuk@hub.studio>
* Extend paginate.ts to support more complex pagination object
* change pagination object based on reviewer suggestion
* changest inclusion
* update paginate test
Co-authored-by: Paul Moss <paulmoss06@gmail.com>
* fix: remove views from public Session data
* add changeset
* Update .changeset/strong-keys-lie.md
Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
* Throw redirect errors when component has mounted
* Create heavy-cobras-own.md
* clean up useEffect
* Add mounted check for AuthenticationError
* remove clean up
Bump react, react-dom, @types/react and next versions
This fixes a console warning: `Warning: Received `true` for a non-boolean attribute `global`.` when using `styled-jsx`. Versions bump also fixes React Hydration error that happens on and off when using `redirectAuthenticatedTo`.
These are various changes to will make the codemod more dynamic and work with a larger variety of codebases. These fixes are implemented to make the codemod work with flightdeck.
Patch Next.js Suspense issue in all node environments. Previously we only patched it in the `development` environment, but now we make sure it gets patched in the `production` env (with the `blitz build` command) as well.
Remove trailing comma when removing BlitzConfig from next.config.js & Fix codemod so if route (eg. `app/auth/pages`) convert to (eg. `pages/`) instead of (eg. `pages/auth`)
Fix a long-standing issue with occasional blitz auth flakiness
This bug would sometimes cause users to be logged out or to experience an CSRFTokenMismatchError. This bug, when encountered, usually by lots of setPublicData or session.create calls, would not set the cookie headers correctly resulting in cookies being set to a previous state or in a possibly undefined state.
There are no security concerns as far as I can tell.
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.