* 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