forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
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 chore/router…
…-dual-pkg * 'main' of github.com:redwoodjs/redwood: (74 commits) chore(deps): Remove webpack related packages (redwoodjs#11028) fix(deps): update dependency pino to v9 (redwoodjs#11030) fix(deps): update dependency lru-cache to v11 (redwoodjs#11029) fix(deps): update dependency @sdl-codegen/node to v1 (redwoodjs#11027) chore(deps): update yarn to v4.3.1 (redwoodjs#11026) chore(deps): update dependency vitest to v2 (redwoodjs#11021) fix(deps): update dependency @react-email/render to v0.0.16 (redwoodjs#11025) chore(deps): update dependency rimraf to v6 (redwoodjs#11024) chore(deps): update dependency make-dir-cli to v4 (redwoodjs#11023) chore(deps): update dependency glob to v11 (redwoodjs#11022) chore(deps): update dependency type-fest to v4 (redwoodjs#11020) fix(deps): update dependency @whatwg-node/fetch to v0.9.18 (redwoodjs#11016) chore(deps): update dependency @supabase/ssr to v0.4.0 (redwoodjs#11017) fix(deps): update dependency @joshwooding/vite-plugin-react-docgen-typescript to v0.4.0 (redwoodjs#11018) fix(deps): update dependency esbuild to v0.23.0 (redwoodjs#11015) fix(deps): update dependency @swc/core to v1.7.0 (redwoodjs#11012) chore(storybook): Pin versions and update them (redwoodjs#11011) fix(deps): update dependency eslint-plugin-prettier to v5.2.1 (redwoodjs#11010) fix(deps): update dependency @vitejs/plugin-react to v4.3.1 (redwoodjs#11013) fix(deps): update dependency graphql-yoga to v5.6.1 (redwoodjs#11007) ...
- Loading branch information
Showing
235 changed files
with
3,533 additions
and
10,448 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,17 @@ | ||
- breaking: remove webpack (#10867) by @Josh-Walker-GM | ||
|
||
This PR removes support for webpack. | ||
|
||
--- | ||
To the person releasing, the follow are the breaking changes I have identified: | ||
1. `prebuildWebFile` is function no longer exported from `@redwoodjs/babel-config` package | ||
2. `@redwoodjs/cli-storybook` has been removed | ||
3. `yarn rw build` no longer accepts the `--stats` flag | ||
4. `yarn rw dev` no longer accepts the `--watchNodeModules` flag | ||
5. `yarn rw setup custom-web-index` command has been removed | ||
6. `yarn rw setup webpack` has been removed | ||
7. `@redwoodjs/core` no longer provides `@redwoodjs/core/config/*` files | ||
8. The `web.bundler` TOML config option has been removed | ||
9. `@redwoodjs/testing` no longer provides storybook config files | ||
10. `@redwoodjs/testing` no longer provides a `StorybookProvider` | ||
11. The `webpack` bin has been removed from `@redwoodjs/web` |
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,25 @@ | ||
feat(prisma): Support multi file Prisma schemas (#10869) by @dthyresson | ||
|
||
Prisma's `prismaSchemaFolder` [feature](https://www.prisma.io/docs/orm/prisma-schema/overview/location#multi-file-prisma-schema) allows you to define multiple files in a schema subdirectory of your prisma directory. | ||
|
||
This PR updates: | ||
|
||
* Prisma utilities | ||
* generators | ||
* dbAuth setup | ||
* documentation | ||
|
||
to support single and multi file Prisma schemas. | ||
|
||
If you have enabled Prisma multi file schemas, you configure your project toml api `schemaPath` setting the directory where your schema.prisma can be found, for example: './api/db/schema' | ||
|
||
When [organizing your Prisma Schema into multiple files](https://www.prisma.io/blog/organize-your-prisma-schema-with-multi-file-support), you will need [enable](https://www.prisma.io/docs/orm/prisma-schema/overview/location#multi-file-prisma-schema) that feature in Prisma, move your `schema.prisma` file into a new directory such as `./api/db/schema` and then set `schemaPath` in the api toml config. | ||
::: | ||
|
||
For example: | ||
|
||
```toml title="redwood.toml" | ||
[api] | ||
port = 8911 | ||
schemaPath = "./api/db/schema" | ||
``` |
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,11 @@ | ||
fix(realtime/trusted-docs): Supports GraphQL subscriptions and trusted documents (#10893) by @dthyresson | ||
|
||
Fixes: https://github.com/redwoodjs/redwood/issues/10892 | ||
|
||
This PR updates the SSELink to check if there is a trusted document hash in the request. If there is, then don't also include the query. | ||
|
||
The persisted operations plugin checks if the params has a query. If it does then raises an error that only persisted operations are allowed. | ||
|
||
Subscriptions failed this test because the request had both the hash and a query. And since there were query details, the request was blocked. | ||
|
||
Now, if there is a hash, the SSELink won't add back the query and thus it succeeds. |
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,34 @@ | ||
feat(trusted-docs): Allows useRedwoodTrustedDocuments to set more custom UsePersistedOperationsOptions (#10894) by @dthyresson | ||
|
||
Allows useRedwoodTrustedDocuments to set more custom UsePersistedOperationsOptions | ||
|
||
Allows the useRedwoodTrustedDocuments plugin to define: | ||
|
||
```ts | ||
/** | ||
* Whether to allow execution of arbitrary GraphQL operations aside from persisted operations. | ||
*/ | ||
allowArbitraryOperations?: boolean | AllowArbitraryOperationsHandler; | ||
/** | ||
* The path to the persisted operation id | ||
*/ | ||
extractPersistedOperationId?: ExtractPersistedOperationId; | ||
|
||
/** | ||
* Whether to skip validation of the persisted operation | ||
*/ | ||
skipDocumentValidation?: boolean; | ||
|
||
/** | ||
* Custom errors to be thrown | ||
*/ | ||
customErrors?: CustomPersistedQueryErrors; | ||
``` | ||
|
||
This can let you override to allow certain ops or skip validation etc: | ||
|
||
> If you validate your persisted operations while building your store, we recommend to skip the validation on the server. So this will reduce the work done by the server and the latency of the requests. | ||
The allow authenticated request is still considered, but `allowArbitraryOperations` can override. | ||
|
||
Omitted `getPersistedOperation` as this extracts hash from store. |
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 @@ | ||
- feat(Storybook Vite): Add JS project support (#10900) by @arimendelow | ||
|
||
This adds support to the SBV CLI for JS projects. |
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(storybook): Fix import issues with storybook vite (#10961) by @Josh-Walker-GM | ||
|
||
Fixes an issue with the `yarn rw storybook-vite` command where it would not start due to an import issue. |
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 @@ | ||
- 📝 Added page for using GitPod to the documentation (#9366) by @ahaywood | ||
|
||
This introduces new documentation to make getting started with redwood using GitPod easy! |
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 |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
"@actions/exec": "1.1.1", | ||
"@actions/github": "6.0.0" | ||
}, | ||
"packageManager": "[email protected].0" | ||
"packageManager": "[email protected].1" | ||
} |
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"@actions/core": "1.10.1", | ||
"@actions/exec": "1.1.1" | ||
}, | ||
"packageManager": "[email protected].0" | ||
"packageManager": "[email protected].1" | ||
} |
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"@actions/core": "1.10.1", | ||
"@actions/exec": "1.1.1" | ||
}, | ||
"packageManager": "[email protected].0" | ||
"packageManager": "[email protected].1" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.13.1 | ||
20.15.1 |
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.