-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:redwoodjs/redwood into feat/dc-rc-o…
…g-gen-mw-p2 * 'main' of github.com:redwoodjs/redwood: RSC: Add RSC+SSR smoke test to CI (#10477) fix(dbauth-mw): Use response passed in to middleware (#10516) Add redwood.toml to `yarn rw info` (#10518) chore(tests): Fix packages/web tests (#10517) fix(dbauth-mw): Unset cookie instead of clearing (#10502) chore(deps): Upgrade to React canary 20240424 (#10513) chore(deps): Upgrade to React Testing Library 14.3.1 (#10514) feat(upgrade): Use GitHub token if available when downloading patches (#10515)
- Loading branch information
Showing
47 changed files
with
601 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- fix(dbauth-mw): Unset cookie instead of clearing (#10502) by @dac09 | ||
Updates dbAuth middleware implementation to _unset_ the cookies, instead of clearing them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- feat(upgrade): Use GitHub token if available when downloading patches (#10515) by @Tobbe | ||
|
||
If a GitHub token is available in the environment we use that when fetching the | ||
git tree from GitHub. That way we're less likely to be rate limited. For most | ||
users the token shouldn't be needed. The free allowance/usage of the GitHub API | ||
should be enough. | ||
|
||
We support `GH_TOKEN`, `GITHUB_TOKEN` and `REDWOOD_GITHUB_TOKEN` as the env var names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- fix(dbauth-mw): Use response passed in to middleware (#10516) by @dac09 | ||
|
||
Middleware can be chained - which means if auth middleware is not the first one on the list of middleware being registered, we need to use the `MiddlewareResponse` that gets passed to the middleware, instead of creating a new one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
- Add redwood.toml to `yarn rw info` (#10518) by @Tobbe | ||
|
||
The project `redwood.toml` file is now included in the `yarn rw info` output to | ||
make it easier and faster to help with issue reports | ||
|
||
|
||
## Before | ||
``` | ||
System: | ||
OS: macOS 14.1.1 | ||
Shell: 5.9 - /bin/zsh | ||
Binaries: | ||
Node: 20.11.0 - /usr/local/bin/node | ||
Yarn: 4.1.1 - /usr/local/bin/yarn | ||
Databases: | ||
SQLite: 3.39.5 - /usr/bin/sqlite3 | ||
Browsers: | ||
Safari: 17.1 | ||
``` | ||
|
||
## After | ||
``` | ||
System: | ||
OS: macOS 14.1.1 | ||
Shell: 5.9 - /bin/zsh | ||
Binaries: | ||
Node: 20.11.0 - /usr/local/bin/node | ||
Yarn: 4.1.1 - /usr/local/bin/yarn | ||
Databases: | ||
SQLite: 3.39.5 - /usr/bin/sqlite3 | ||
Browsers: | ||
Safari: 17.1 | ||
redwood.toml: | ||
[web] | ||
title = "Redwood App" | ||
port = 8910 | ||
apiUrl = "/.redwood/functions" # You can customize graphql and dbauth urls individually too: see https://redwoodjs.com/docs/app-configuration-redwood-toml#api-paths | ||
includeEnvironmentVariables = [ | ||
# Add any ENV vars that should be available to the web side to this array | ||
# See https://redwoodjs.com/docs/environment-variables#web | ||
] | ||
[api] | ||
port = 8911 | ||
[browser] | ||
open = true | ||
[notifications] | ||
versionUpdates = ["latest"] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
"autoplay", | ||
"bazinga", | ||
"corepack", | ||
"envinfo", | ||
"execa", | ||
"Fastify", | ||
"Flightcontrol", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
__fixtures__/test-project-rsc-external-packages-and-cells/web/src/ServerRoutes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// In this file, all Page components from 'src/pages` are auto-imported. Nested | ||
// directories are supported, and should be uppercase. Each subdirectory will be | ||
// prepended onto the component name. | ||
// | ||
// Examples: | ||
// | ||
// 'src/pages/HomePage/HomePage.js' -> HomePage | ||
// 'src/pages/Admin/BooksPage/BooksPage.js' -> AdminBooksPage | ||
|
||
import { Route } from '@redwoodjs/router/dist/Route' | ||
import { Router } from '@redwoodjs/router/dist/server-router' | ||
import { Set } from '@redwoodjs/router/dist/Set' | ||
|
||
import NavigationLayout from './layouts/NavigationLayout/NavigationLayout' | ||
import ScaffoldLayout from './layouts/ScaffoldLayout/ScaffoldLayout' | ||
import AboutPage from './pages/AboutPage/AboutPage' | ||
import EmptyUserEmptyUsersPage from './pages/EmptyUser/EmptyUsersPage/EmptyUsersPage' | ||
import EmptyUserNewEmptyUserPage from './pages/EmptyUser/NewEmptyUserPage/NewEmptyUserPage' | ||
import HomePage from './pages/HomePage/HomePage' | ||
import MultiCellPage from './pages/MultiCellPage/MultiCellPage' | ||
import UserExampleNewUserExamplePage from './pages/UserExample/NewUserExamplePage/NewUserExamplePage' | ||
import UserExampleUserExamplePage from './pages/UserExample/UserExamplePage/UserExamplePage' | ||
import UserExampleUserExamplesPage from './pages/UserExample/UserExamplesPage/UserExamplesPage' | ||
|
||
const NotFoundPage = () => { | ||
return <div>Not Found</div> | ||
} | ||
|
||
const Routes = ({ location }) => { | ||
return ( | ||
<Router location={location}> | ||
<Set wrap={NavigationLayout} rnd={Math.random()}> | ||
<Route path="/" page={HomePage} name="home" /> | ||
<Route path="/about" page={AboutPage} name="about" /> | ||
<Route path="/multi-cell" page={MultiCellPage} name="multiCell" /> | ||
|
||
<Set | ||
wrap={ScaffoldLayout} | ||
title="EmptyUsers" | ||
titleTo="emptyUsers" | ||
buttonLabel="New EmptyUser" | ||
buttonTo="newEmptyUser" | ||
> | ||
<Route | ||
path="/empty-users/new" | ||
page={EmptyUserNewEmptyUserPage} | ||
name="newEmptyUser" | ||
/> | ||
<Route | ||
path="/empty-users" | ||
page={EmptyUserEmptyUsersPage} | ||
name="emptyUsers" | ||
/> | ||
</Set> | ||
|
||
<Set | ||
wrap={ScaffoldLayout} | ||
title="UserExamples" | ||
titleTo="userExamples" | ||
buttonLabel="New UserExample" | ||
buttonTo="newUserExample" | ||
> | ||
<Route | ||
path="/user-examples/new" | ||
page={UserExampleNewUserExamplePage} | ||
name="newUserExample" | ||
/> | ||
<Route | ||
path="/user-examples/{id:Int}" | ||
page={UserExampleUserExamplePage} | ||
name="userExample" | ||
/> | ||
<Route | ||
path="/user-examples" | ||
page={UserExampleUserExamplesPage} | ||
name="userExamples" | ||
/> | ||
</Set> | ||
</Set> | ||
<Route notfound page={NotFoundPage} /> | ||
</Router> | ||
) | ||
} | ||
|
||
export default Routes |
10 changes: 8 additions & 2 deletions
10
__fixtures__/test-project-rsc-external-packages-and-cells/web/src/entry.server.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
import type { TagDescriptor } from '@redwoodjs/web/dist/components/htmlTags' | ||
|
||
import { Document } from './Document' | ||
import ServerRoutes from './ServerRoutes' | ||
|
||
interface Props { | ||
css: string[] | ||
meta?: TagDescriptor[] | ||
location: { | ||
pathname: string | ||
hash?: string | ||
search?: string | ||
} | ||
} | ||
|
||
export const ServerEntry: React.FC<Props> = ({ css, meta }) => { | ||
export const ServerEntry: React.FC<Props> = ({ css, meta, location }) => { | ||
return ( | ||
<Document css={css} meta={meta}> | ||
<div>App</div> | ||
<ServerRoutes location={location} /> | ||
</Document> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.