Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 40c2c11
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Jun 15 20:54:08 2022 +0000

    fix(deps): update dependency @apollo/client to v3.6.8 (#5769)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 8bc48ff
Author: Anders Søgaard <andershagbard@gmail.com>
Date:   Wed Jun 15 17:55:15 2022 +0200

    Correct a few spelling mistakes (#5747)

commit 957f98c
Author: António Meireles <antonio.meireles@reformi.st>
Date:   Wed Jun 15 16:14:13 2022 +0100

    docs: yet another set of single byte typo squashing (#5749)

    Signed-off-by: António Meireles <antonio.meireles@reformi.st>

    Co-authored-by: David Thyresson <dthyresson@gmail.com>
    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit ef5aaec
Author: Rushabh Javeri <javeri.rushabh45@gmail.com>
Date:   Wed Jun 15 20:40:33 2022 +0530

    docs: GraphQL Yoga's playground, not Apollo Server's (#5741)

    * docs: GraphQL Yoga's playground, not Apollo Server's

    * docs: Changed "GraphQL Playground" to "GraphiQL" and added appropriate link

commit 4272511
Author: Charly POLY <1252066+charlypoly@users.noreply.github.com>
Date:   Wed Jun 15 17:02:38 2022 +0200

    docs(graphql): replaced outdated mentions to Apollo Server (#5768)

commit b7636b1
Author: Masvoras <58081001+Masvoras@users.noreply.github.com>
Date:   Wed Jun 15 10:58:53 2022 -0400

    Update routing-params.md (#5706)

    There were errors in the code portion at the end of Chapter 2 -> Routing params when ArticleCell is last modified.

commit 90592e3
Author: Syahrizal Ardana <57914770+Gombeng@users.noreply.github.com>
Date:   Wed Jun 15 21:55:23 2022 +0700

    fixing typo (#5699)

commit 43230ae
Author: David Thyresson <dthyresson@gmail.com>
Date:   Wed Jun 15 10:41:20 2022 -0400

    fix: RedwoodLogger -- Mask errors, but include stack trace in formatter (#5704)

    * Mask errors, but include stack trasce in formatter

    * Fix tests for new error attribute in log data

    * Adds test to log stack traces

    * Tests log error formatter

    * style: remove extra space between error and stack

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 6c43606
Author: Dominic Saadi <dominiceliassaadi@gmail.com>
Date:   Wed Jun 15 21:41:46 2022 +0900

    Lint fix some template files (#5766)

    * fix: lint fix template files

    * fix: update snapshots

commit 4613200
Author: Guillaume Mantopoulos <3082385+MrGuiMan@users.noreply.github.com>
Date:   Wed Jun 15 00:55:54 2022 +0200

    docs: adding precisions and fixes to contributing (#5760)

    Co-authored-by: Guillaume Mantopoulos <guillaume.mantopoulos@gmail.com>
    Co-authored-by: David Thyresson <dthyresson@gmail.com>

commit 339d783
Author: Rob Cameron <cannikin@fastmail.com>
Date:   Tue Jun 14 15:23:00 2022 -0700

    Adds note about errors when generating cells without a SDL file (#5764)

commit 7423b55
Author: Jan Henning <triton539@outlook.com>
Date:   Tue Jun 14 19:16:28 2022 +0200

    docs: Fix not being able to fullscreen YouTube embeds (#5744)

    Co-authored-by: David Thyresson <dthyresson@gmail.com>

commit b6a733d
Author: Rob Cameron <cannikin@fastmail.com>
Date:   Mon Jun 13 14:29:49 2022 -0700

    Adds mailchimp signup form to tutorial Foreword page (#5758)

    * Add Mailchimp signup form

    * Update link

    * Rename back

    * Add form directly to 1.5 versioned docs

    * Fix link

    * Move signup form to root /docs dir

    * Also add to 1.5

    * Remove Mailchimp JS, move component to bottom to fix title

commit ac4844d
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Jun 13 21:23:58 2022 +0000

    fix(deps): update dependency webpack-dev-server to v4.9.2 (#5754)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit e7e0e8b
Author: Dominic Saadi <dominiceliassaadi@gmail.com>
Date:   Mon Jun 13 23:34:24 2022 +0900

    Update yarn.lock

commit 025e113
Merge: 32e879a f3bc655
Author: Dominic Saadi <dominiceliassaadi@gmail.com>
Date:   Mon Jun 13 23:33:41 2022 +0900

    Merge branch 'release/patch/v1.5.2'

commit f3bc655
Author: Dominic Saadi <dominiceliassaadi@gmail.com>
Date:   Mon Jun 13 23:07:09 2022 +0900

    v1.5.2

commit 20aee39
Author: Dominic Saadi <dominiceliassaadi@gmail.com>
Date:   Mon Jun 13 23:02:53 2022 +0900

    Update yarn.lock

commit 0998c76
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Jun 13 22:45:20 2022 +0900

    fix(deps): update dependency webpack-cli to v4.10.0 (#5756)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 32e879a
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Jun 13 22:45:20 2022 +0900

    fix(deps): update dependency webpack-cli to v4.10.0 (#5756)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 9e9ecb6
Author: Rushabh Javeri <javeri.rushabh45@gmail.com>
Date:   Sat Jun 11 11:14:50 2022 +0530

    docs: Some fact checks in the deployment section. (#5736)

    * docs: Some fact checks in the deployment section.

    * docs: Inform users to create account in order to persist their DB.

    Co-authored-by: Rob Cameron <cannikin@fastmail.com>

    Co-authored-by: Rob Cameron <cannikin@fastmail.com>
    Co-authored-by: David Thyresson <dthyresson@gmail.com>

commit a81f916
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Jun 10 15:05:33 2022 +0000

    fix(deps): update dependency ts-morph to v15 (#5644)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit be229fd
Author: Aleph Retamal <7674479+alephao@users.noreply.github.com>
Date:   Fri Jun 10 11:23:36 2022 -0300

    fix: typo in graphql generate service command (#5712)

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit b71339b
Author: Kolja Lampe <razzeee@gmail.com>
Date:   Fri Jun 10 16:15:18 2022 +0200

    Fix typo (#5735)

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 17730f6
Author: Bouzid Badreddine <ubugnu@gmail.com>
Date:   Fri Jun 10 15:11:35 2022 +0100

    Fix typo (#5733)

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 5c6f08d
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Jun 10 22:20:06 2022 +0900

    fix(deps): update storybook monorepo to v6.5.8 (#5720)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 39e86c6
Author: Tobbe Lundberg <tobbe@tlundberg.com>
Date:   Fri Jun 10 13:30:59 2022 +0200

    Reorganize router utils (#5659)

commit 012bc15
Author: Alon <57628667+AlonHor@users.noreply.github.com>
Date:   Fri Jun 10 13:41:52 2022 +0300

    Fixed not enough spaces after '>' (#5732)

commit 218887b
Author: Rushabh Javeri <javeri.rushabh45@gmail.com>
Date:   Fri Jun 10 16:07:49 2022 +0530

    docs: (typo fix) Updated reference to GraphQL Yoga from Apollo (#5731)

    * docs: (typo fix) Updated reference to GraphQL Yoga from Apollo

    * docs: (typo fix) Updated reference to GraphQL Yoga from Apollo

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 14ec0c7
Author: kunalarya <alunaryak@gmail.com>
Date:   Fri Jun 10 03:31:40 2022 -0700

    docs: Fix Typescript typo in authentication chapter (#5621)

    * Fix Typescript typo in authentication chapter

    * Move changes to docs/docs

    Co-authored-by: Kunal Arya <me@example.com>
    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 5e3cb58
Author: Fabio Lazzaroni <lazzaroni@jeflab.it>
Date:   Fri Jun 10 12:25:27 2022 +0200

    Update comment-form.md (#5637)

    * Update comment-form.md

    Fix a broken import in example code

    * Update rbac.md

    Fix a broken import in example code

    * Update comment-form.md

    Fix a broken import in example code

    * typo(docs): fix typo in docs

    fix some broken imports in the example code of the tutorial documentation
    `api/src/lib/db` -> `src/lib/db`

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit c91b3dc
Author: mattdriscoll <mdriscoll815@gmail.com>
Date:   Fri Jun 10 05:13:27 2022 -0500

    Fix typo in Tutorial Chapter 1 Prerequisites (#5616)

    * Fix typo

    * chore: copy typo fix to ./docs

    Co-authored-by: Aditya Pandey <aditya@autospace.co>
    Co-authored-by: David Thyresson <dthyresson@gmail.com>
    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit ebd0ffe
Author: Anders Søgaard <andershagbard@gmail.com>
Date:   Fri Jun 10 12:10:48 2022 +0200

    Fix typo (#5711)

    * Fix typo

    * Update authentication.md

    * Update authentication.md

    * Update authentication.md

    * Update authentication.md

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 07b00d2
Author: David Thyresson <dthyresson@gmail.com>
Date:   Fri Jun 10 05:57:26 2022 -0400

    auth0 decoder handles undefined public key (#5701)

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit fa8fba9
Author: Dominic Saadi <dominiceliassaadi@gmail.com>
Date:   Fri Jun 10 18:27:21 2022 +0900

    Revert "chore: update cypress github action"

    This reverts commit 1232e40.

commit 1232e40
Author: Dominic Saadi <dominiceliassaadi@gmail.com>
Date:   Fri Jun 10 18:04:41 2022 +0900

    chore: update cypress github action

commit 71823f5
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Jun 10 08:44:34 2022 +0000

    fix(deps): update prisma monorepo to v3.15.1 (#5721)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 5e10b85
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Jun 10 16:57:13 2022 +0900

    chore(deps): update dependency octokit to v1.7.2 (#5719)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 03af8ff
Author: kunalarya <alunaryak@gmail.com>
Date:   Thu Jun 9 23:43:41 2022 -0700

    docs: Link to current document source. (#5658)

    Co-authored-by: Kunal Arya <me@example.com>
    Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>

commit e8d2eb9
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Thu Jun 9 16:23:30 2022 +0000

    fix(deps): update dependency @envelop/depth-limit to v1.5.3 (#5709)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 2dfe7d8
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Jun 10 00:32:02 2022 +0900

    chore(deps): update dependency esbuild to v0.14.43 (#5717)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 5eb4236
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Thu Jun 9 23:54:00 2022 +0900

    fix(deps): update dependency @envelop/disable-introspection to v3.3.3 (#5710)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 7cb547b
Author: nickpdemarco <nickpdemarco@gmail.com>
Date:   Thu Jun 9 01:25:44 2022 -0400

    Move import/order rule into shared eslint configuration so generated projects have to adhere to the rule as well (#4954)

    Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>

commit 161c460
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Jun 8 01:43:00 2022 +0000

    chore(deps): update dependency typescript to v4.7.3 (#5707)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit a56ef2b
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Tue Jun 7 22:40:28 2022 +0000

    chore(deps): update dependency @clerk/clerk-sdk-node to v3.6.1 (#5697)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 3adbff8
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Tue Jun 7 18:48:34 2022 +0000

    chore(deps): update dependency @nhost/hasura-auth-js to v1.1.14 (#5688)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit aba9a3a
Author: Pin Sern <52379442+fangpinsern@users.noreply.github.com>
Date:   Tue Jun 7 21:57:04 2022 +0800

    docs: Removes unnecessary word in Chapter 3: saving-data.md (#5698)

    Co-authored-by: David Thyresson <dthyresson@gmail.com>

commit a7dff82
Author: António Meireles <antonio.meireles@reformi.st>
Date:   Tue Jun 7 14:50:34 2022 +0100

    docs: yet another single byte typo squash (#5702)

commit b6005c3
Author: craineum <kevin.craine@codingzeal.com>
Date:   Tue Jun 7 07:45:49 2022 -0400

    Add example usage of useRegister and useErrorStyles (#5692)

    * 📝 Add documentation for custom input fields

    Covers use of `useRegister` and `useErrorStyles`

    * 👌 Implement PR feedback

    * 👌 A couple more PR feedback implementations

commit 62d209e
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Tue Jun 7 00:48:05 2022 +0000

    chore(deps): update dependency @envelop/testing to v4.3.3 (#5690)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 6729c29
Author: Jorge Venegas <jorgepvenegas@protonmail.com>
Date:   Mon Jun 6 12:00:38 2022 -0700

    Update contributing docs (#5685)

    * docs: remove broken URLs

    * docs: typo, update on description

    * docs: add missing packages

    * docs: add missing README

    * docs: add descriptions

    * Update packages/prerender/README.md

    Co-authored-by: David Price <thedavid@thedavidprice.com>

commit ca0bfe4
Author: Min ho Kim <minho42@gmail.com>
Date:   Tue Jun 7 01:20:37 2022 +0900

    Fix typos in docs (#5694)

    Co-authored-by: Daniel Choudhury <dannychoudhury@gmail.com>

commit d5ef5da
Author: Leon <18523441+Leon-Sam@users.noreply.github.com>
Date:   Mon Jun 6 08:43:14 2022 -0400

    Fix typo in ArticleCell code snippet of Tutorial 2 docs (#5695)

commit 7b9c60e
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Sat Jun 4 02:40:18 2022 +0000

    fix(deps): update dependency core-js to v3.22.8 (#5683)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 4cc4fd1
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Fri Jun 3 23:18:20 2022 +0000

    fix(deps): update dependency webpack-dev-server to v4.9.1 (#5684)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit fd24d85
Author: paikwiki <paikwiki@gmail.com>
Date:   Sat Jun 4 02:34:57 2022 +0900

    Fix typo (#5686)

    Co-authored-by: David Price <thedavid@thedavidprice.com>

commit 0604543
Author: Andre Wruszczak <avataw.dev@gmail.com>
Date:   Fri Jun 3 19:20:52 2022 +0200

    Add warning box for missing roles in authorization doc (#5611)

    * Add warning box for missing roles in authorization doc

    * Update docs/docs/tutorial/chapter4/authentication.md

    Co-authored-by: Peter Colapietro <petercolapietro+github@gmail.com>

    Co-authored-by: Peter Colapietro <petercolapietro+github@gmail.com>
    Co-authored-by: David Price <thedavid@thedavidprice.com>

commit dbc0989
Author: Jonas Oberschweiber <jonas@frozenbeetle.net>
Date:   Thu Jun 2 17:25:34 2022 +0200

    Fix dbAuth on AWS Lambda (#5474)

    * queryStringParameters can be null in AWS Lambda

    * Allow cookie to be capitalized

    * Make cookie vs. Cookie distinction once in DbAuthHandler

    * Extract header handling into separate function

    * Missed another semicolon...

    * Fix linter errors, add extractCookie in one more place

    Co-authored-by: Rob Cameron <cannikin@fastmail.com>

commit d348e50
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Thu Jun 2 02:20:59 2022 +0000

    fix(deps): update dependency @types/jest to v27.5.2 (#5681)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 422867c
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Jun 1 22:05:29 2022 +0000

    fix(deps): update dependency vscode-languageserver-textdocument to v1.0.5 (#5679)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>

commit 8b25fbc
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Jun 1 18:23:20 2022 +0000

    chore(deps): update dependency @nhost/hasura-auth-js to v1.1.12 (#5677)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
  • Loading branch information
cannikin committed Jun 15, 2022
1 parent c491719 commit b6bf8f8
Show file tree
Hide file tree
Showing 146 changed files with 1,488 additions and 1,186 deletions.
33 changes: 0 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,6 @@ module.exports = {
],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'import/order': [
'error',
{
'newlines-between': 'always',
pathGroupsExcludedImportTypes: ['react'],
pathGroups: [
{
pattern: 'react',
group: 'builtin',
position: 'after',
},
{
pattern: '@redwoodjs/**',
group: 'external',
position: 'after',
},
{
pattern: 'src/lib/test',
group: 'parent',
position: 'before',
},
{
pattern: 'src/**',
group: 'parent',
position: 'before',
},
],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
curly: 'error',
},
overrides: [
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/test-project/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"@redwoodjs/api": "1.5.1",
"@redwoodjs/graphql-server": "1.5.1"
"@redwoodjs/api": "1.5.2",
"@redwoodjs/graphql-server": "1.5.2"
}
}
6 changes: 3 additions & 3 deletions __fixtures__/test-project/api/src/functions/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ export const handler = async (event, context) => {

const resetPasswordOptions = {
// handler() is invoked after the password has been successfully updated in
// the database. Returning anything truthy will automatically logs the user
// the database. Returning anything truthy will automatically log the user
// in. Return `false` otherwise, and in the Reset Password page redirect the
// user to the login page.
handler: (user) => {
return user
},

// If `false` then the new password MUST be different than the current one
// If `false` then the new password MUST be different from the current one
allowReusedPassword: true,

errors: {
Expand Down Expand Up @@ -125,7 +125,7 @@ export const handler = async (event, context) => {
db: db,

// The name of the property you'd call on `db` to access your user table.
// ie. if your Prisma model is named `User` this value would be `user`, as in `db.user`
// i.e. if your Prisma model is named `User` this value would be `user`, as in `db.user`
authModelAccessor: 'user',

// A map of what dbAuth calls a field to what your database calls it.
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/test-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
]
},
"devDependencies": {
"@redwoodjs/core": "1.5.1"
"@redwoodjs/core": "1.5.2"
},
"eslintConfig": {
"extends": "@redwoodjs/eslint-config",
Expand Down
8 changes: 4 additions & 4 deletions __fixtures__/test-project/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
]
},
"dependencies": {
"@redwoodjs/auth": "1.5.1",
"@redwoodjs/forms": "1.5.1",
"@redwoodjs/router": "1.5.1",
"@redwoodjs/web": "1.5.1",
"@redwoodjs/auth": "1.5.2",
"@redwoodjs/forms": "1.5.2",
"@redwoodjs/router": "1.5.2",
"@redwoodjs/web": "1.5.2",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2"
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/a11y.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ export default ContactPage
`RouteFocus` tells the router to send focus to it's child on page change. In the example above, when the user navigates to the contact page, the name text field on the form is focused—the first field of the form they're here to fill out.

<div class="video-container">
<iframe src="https://www.youtube.com/embed/T1zs77LU68w?t=3240" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0" allowfullscreen></iframe>
<iframe src="https://www.youtube.com/embed/T1zs77LU68w?t=3240" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0; fullscreen"></iframe>
</div>
2 changes: 1 addition & 1 deletion docs/docs/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Read the post-install instructions carefully as they contain instructions for ad
>
> Need simple Login, Signup and Forgot Password pages? Of course we have a generator for those:
>
> yarn rw generate dbAuth
> yarn rw generate dbAuth
Note that if you change the fields named `hashedPassword` and `salt`, and you have some verbose logging in your app, you'll want to scrub those fields from appearing in your logs. See the [Redaction](logger.md#redaction) docs for info.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/connection-pooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To use Prisma Client with PgBouncer from a serverless function, add the `?pgboun
postgresql://USER:PASSWORD@HOST:PORT/DATABASE?pgbouncer=true
```

Typically, your PgBouncer port will be 6543 which is different than the Postgres default of 5432.
Typically, your PgBouncer port will be 6543 which is different from the Postgres default of 5432.

> Note that since Prisma Migrate uses database transactions to check out the current state of the database and the migrations table, if you attempt to run Prisma Migrate commands in any environment that uses PgBouncer for connection pooling, you might see an error.
>
Expand Down
10 changes: 6 additions & 4 deletions docs/docs/contributing-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,22 @@ What you want to do not on the roadmap? Well, still go for it! We love spikes an
### RedwoodJS Framework Packages
|Package|Description|
|:-|:-|
|[`@redwoodjs/api-server`](https://github.com/redwoodjs/redwood/blob/main/packages/api-server/README.md)|Run a Redwood app using Express server (alternative to serverless API)|
|[`@redwoodjs/api`](https://github.com/redwoodjs/redwood/blob/main/packages/api/README.md)|Infrastruction components for your applications UI including logging, webhooks, authentication decoders and parsers, as well as tools to test custom serverless functions and webhooks|
|[`@redwoodjs/api-server`](https://github.com/redwoodjs/redwood/blob/main/packages/api-server/README.md)|Run a Redwood app using Fastify server (alternative to serverless API)|
|[`@redwoodjs/api`](https://github.com/redwoodjs/redwood/blob/main/packages/api/README.md)|Infrastructure components for your applications UI including logging, webhooks, authentication decoders and parsers, as well as tools to test custom serverless functions and webhooks|
|[`@redwoodjs/auth`](https://github.com/redwoodjs/redwood/blob/main/packages/auth/README.md#contributing)|A lightweight wrapper around popular SPA authentication libraries|
|[`@redwoodjs/cli`](https://github.com/redwoodjs/redwood/blob/main/packages/cli/README.md)|All the commands for Redwood's built-in CLI|
|[`@redwoodjs/codemods`](https://github.com/redwoodjs/redwood/blob/main/packages/codemods/README.md)|Codemods that automate upgrading a Redwood project|
|[`@redwoodjs/core`](https://github.com/redwoodjs/redwood/blob/main/packages/core/README.md)|Defines babel plugins and config files|
|[`@redwoodjs/create-redwood-app`](https://github.com/redwoodjs/redwood/blob/main/packages/create-redwood-app/README.md)|Enables `yarn create redwood-app`&mdash;downloads the latest release of Redwood and extracts it into the supplied directory|
|[`@redwoodjs/dev-server`](https://github.com/redwoodjs/redwood/blob/main/packages/dev-server/README.md)|Configuration for the local development server|
|[`@redwoodjs/eslint-config`](https://github.com/redwoodjs/redwood/blob/main/packages/eslint-config/README.md)|Defines Redwood's eslint config|
|[`@redwoodjs/eslint-plugin-redwood`](https://github.com/redwoodjs/redwood/blob/main/packages/eslint-plugin-redwood/README.md)|Defines eslint plugins; currently just prohibits the use of non-existent pages in `Routes.js`|
|[`@redwoodjs/forms`](https://github.com/redwoodjs/redwood/blob/main/packages/forms/README.md)|Provides Form helpers|
|[`@redwoodjs/graphql-server`](https://github.com/redwoodjs/redwood/blob/main/packages/graphql-server/README.md)|Exposes functions to build the GraphQL API, provides services with `context`, and a set of envelop plugins to supercharge your GraphQL API with logging, authentication, error handling, directives and more|
|[`@redwoodjs/internal`](https://github.com/redwoodjs/redwood/blob/main/packages/internal/README.md)|Provides tooling to parse Redwood configs and get a project's paths|
|[`@redwoodjs/prerender`](https://github.com/redwoodjs/redwood/blob/main/packages/prerender/README.md)|Defines functionality for prerendering static content|
|[`@redwoodjs/record`](https://github.com/redwoodjs/redwood/blob/main/packages/record/README.md)|ORM built on top of Prisma. It may be extended in the future to wrap other database access packages|
|[`@redwoodjs/router`](https://github.com/redwoodjs/redwood/blob/main/packages/router/README.md)|The built-in router for Redwood|
|[`@redwoodjs/structure`](https://github.com/redwoodjs/redwood/blob/main/packages/structure/README.md)|Provides a way to build, validate and inspect an object graph that represents a complete Redwood project|
|[`@redwoodjs/telemetry`](https://github.com/redwoodjs/redwood/blob/main/packages/telemetry/README.md)|Provides functionality for anonymous data collection|
|[`@redwoodjs/testing`](https://github.com/redwoodjs/redwood/blob/main/packages/testing/README.md)|Provides helpful defaults when testing a Redwood project's web side|
|[`@redwoodjs/web`](https://github.com/redwoodjs/redwood/blob/main/packages/web/README.md)|Configures a Redwood's app web side: wraps the Apollo Client in `RedwoodApolloProvider`; defines the Cell HOC|

Expand Down
9 changes: 4 additions & 5 deletions docs/docs/contributing-walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ The following recording is from a Contributing Workshop, following through the e
style={{ height: '24rem' }}
src="https://www.youtube.com/embed/aZs_9g-5Ms8"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0"
allowfullscreen
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0; fullscreen"
></iframe>
## Prologue: Getting Started with Redwood and GitHub (and git)
Expand Down Expand Up @@ -71,11 +70,11 @@ This has quickly become the de facto editor for JavaScript and TypeScript. Addit

**GitHub Desktop**
[Download GitHub Desktop](https://desktop.github.com)
You’ll need to be comfortable using Git at the command line. But the thing ew like best about GitHub Desktop is how easy it makes workflow across GitHub -- GitHub Desktop -- VS Code. You don’t have to worry about syncing permissions or finding things. You can start from a repo on GitHub.com and use Desktop to do everything from “clone and open on your computer” to returning back to the site to “open a PR on GitHub”.
You’ll need to be comfortable using Git at the command line. But the thing we like best about GitHub Desktop is how easy it makes workflow across GitHub -- GitHub Desktop -- VS Code. You don’t have to worry about syncing permissions or finding things. You can start from a repo on GitHub.com and use Desktop to do everything from “clone and open on your computer” to returning back to the site to “open a PR on GitHub”.

**[Mac OS] iTerm and Oh-My-Zsh**
There’s nothing wrong with Terminal (on Mac) and bash. (If you’re on Windows, we highly recommend using Git for Windows and Git bash.) But we enjoy using iTerm ([download](https://iterm2.com)) and Zsh much more (use [Oh My Zsh](https://ohmyz.sh)). Heads up, you can get lost in the world of theming and adding plugins. We recommend keeping it simple for awhile before taking the customization deep dive
😉
There’s nothing wrong with Terminal (on Mac) and plain zsh or bash. (If you’re on Windows, we highly recommend using Git for Windows and Git bash.) But we enjoy using iTerm2 ([download](https://iterm2.com)) and zsh much more (combined with [Oh My Zsh](https://ohmyz.sh)). Heads up, you can get lost in the world of theming and adding plugins. We recommend keeping it simple for awhile before taking the customization deep dive
😉.

**[Windows] Git for Windows with Git Bash or WSL(2)**
Unfortunately, there are a lot of “gotchas” when it comes to working with Javascript-based frameworks on Windows. We do our best to point out (and resolve) issues, but our priority focus is on developing a Redwood app vs contributing to the Framework. (If you’re interested, there’s a lengthy Forum conversation about this with many suggestions.)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/deploy/baremetal.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ host = 'server.com'
# ...
```

Server specific commands are defined with a `before.command` and `after.commmand` key directly in your server config:
Server specific commands are defined with a `before.command` and `after.command` key directly in your server config:

```toml
[[production.servers]]
Expand Down
48 changes: 48 additions & 0 deletions docs/docs/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,54 @@ For example:
```
will return `undefined` if the field is empty.

### Custom Input Fields

You can create a custom field that integrates with Redwood through the use of Redwood's `useRegister` and `useErrorStyles` hooks. Each of these serving a different purpose depending on what you are trying to build.

`useRegister` registers the field with react-hook-form and is a wrapper for [`register`](https://react-hook-form.com/api/useform/register).

`useErrorStyles` sets up error styling for your custom input field.

Using these two together you can create custom input fields that replicate a Redwood input field while also allowing for custom domain logic.

In the following example we have an all-in-one custom required input field with label, input, and error display.

```jsx
import { FieldError, useErrorStyles, useRegister } from '@redwoodjs/forms'

const RequiredField = ({ label, name, validation }) => {
const register = useRegister({
name,
validation: {...validation, required: true}
})

const { className: labelClassName, style: labelStyle } = useErrorStyles({
className: `my-label-class`,
errorClassName: `my-label-error-class`,
name,
})

const { className: inputClassName, style: inputStyle } = useErrorStyles({
className: `my-input-class`,
errorClassName: `my-input-error-class`,
name,
})

return (
<>
<label className={labelClassName} style={labelStyle}>{label}</label>
<input
className={inputClassName}
style={inputStyle}
type="text"
{...register}
/>
<FieldError name={name}>
</>
)
}
```

## `<SelectField>`

Renders an HTML `<select>` tag.
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ Note that if you don't import `RedwoodApolloProvider`, it won't be included in y

### Understanding Default Resolvers

According to the spec, for every field in your sdl, there has to be a resolver in your Services. But you'll usually see fewer resolvers in your Services than you technically should. And that's because if you don't define a resolver, [Apollo Server will](https://www.apollographql.com/docs/apollo-server/data/resolvers/#default-resolvers).
According to the spec, for every field in your sdl, there has to be a resolver in your Services. But you'll usually see fewer resolvers in your Services than you technically should. And that's because if you don't define a resolver, GraphQL Yoga server will.

The key question Apollo Server asks is: "Does the parent argument (in Redwood apps, the `parent` argument is named `root`&mdash;see [Redwood's Resolver Args](#redwoods-resolver-args)) have a property with this resolver's exact name?" Most of the time, especially with Prisma Client's ergonomic returns, the answer is yes.
The key question the Yoga server asks is: "Does the parent argument (in Redwood apps, the `parent` argument is named `root`&mdash;see [Redwood's Resolver Args](#redwoods-resolver-args)) have a property with this resolver's exact name?" Most of the time, especially with Prisma Client's ergonomic returns, the answer is yes.

Let's walk through an example. Say our sdl looks like this:

Expand Down Expand Up @@ -148,7 +148,7 @@ model User {
}
```
If you create your Services for this model using Redwood's generator (`yarn rw g services user`), your Services will look like this:
If you create your Services for this model using Redwood's generator (`yarn rw g service user`), your Services will look like this:
```jsx title="api/src/services/user/user.js"
import { db } from 'src/lib/db'
Expand All @@ -161,7 +161,7 @@ export const users = () => {
Which begs the question: where are the resolvers for the User fields&mdash;`id`, `email`, and `name`?
All we have is the resolver for the Query field, `users`.
As we just mentioned, Apollo defines them for you. And since the `root` argument for `id`, `email`, and `name` has a property with each resolvers' exact name (i.e. `root.id`, `root.email`, `root.name`), it'll return the property's value (instead of returning `undefined`, which is what Apollo would do if that weren't the case).
As we just mentioned, GraphQL Yoga defines them for you. And since the `root` argument for `id`, `email`, and `name` has a property with each resolvers' exact name (i.e. `root.id`, `root.email`, `root.name`), it'll return the property's value (instead of returning `undefined`, which is what Yoga would do if that weren't the case).
But, if you wanted to be explicit about it, this is what it would look like:
Expand Down Expand Up @@ -221,7 +221,7 @@ Of the four, you'll see `args` and `root` being used a lot.
> **There's so many terms!**
>
> Half the battle here is really just coming to terms. To keep your head from spinning, keep in mind that everybody tends to rename `obj` to something else: Redwood calls it `root`, Apollo calls it `parent`. `obj` isn't exactly the most descriptive name in the world.
> Half the battle here is really just coming to terms. To keep your head from spinning, keep in mind that everybody tends to rename `obj` to something else: Redwood calls it `root`, GraphQL Yoga calls it `parent`. `obj` isn't exactly the most descriptive name in the world.
### Context
Expand Down Expand Up @@ -292,7 +292,7 @@ Now that you've seen the sdl, be sure to check out [the resolvers](https://githu
The GraphQL Playground's nice, but if you're a power user, you'll want to be using something a little more dedicated and always on; where you can save things like environments...
<div class="relative pb-9/16">
<iframe class="absolute inset-0 w-full h-full" src="https://www.youtube.com/watch?v=SU4g9_K0H1c" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0" allowfullscreen></iframe>
<iframe class="absolute inset-0 w-full h-full" src="https://www.youtube.com/watch?v=SU4g9_K0H1c" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0; fullscreen"></iframe>
</div>
- todo
Expand Down Expand Up @@ -1017,7 +1017,7 @@ export const handler = createGraphQLHandler({
#### Redwood Errors
Redwood Errors are derived from [Apollo Server Error codes](https://www.apollographql.com/docs/apollo-server/data/errors/#error-codes) for common use cases:
Redwood Errors are inspired from [Apollo Server Error codes](https://www.apollographql.com/docs/apollo-server/data/errors/#error-codes) for common use cases:
To use a Redwood Error, import each from `@redwoodjs/graphql-server`.
Expand Down

0 comments on commit b6bf8f8

Please sign in to comment.