v0.49.1 including Codemods (#28)

This commit is contained in:
David Price
2022-03-11 09:30:10 -08:00
committed by GitHub
parent 19ba5fa253
commit f560b7402c
7 changed files with 1000 additions and 917 deletions

BIN
api/db/dev.db-journal Normal file

Binary file not shown.

View File

@@ -3,7 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@redwoodjs/api": "0.45.0", "@redwoodjs/api": "0.49.1",
"@redwoodjs/graphql-server": "0.45.0" "@redwoodjs/graphql-server": "0.49.1"
} }
} }

View File

@@ -143,6 +143,14 @@ export const handler = async (event, context) => {
login: loginOptions, login: loginOptions,
resetPassword: resetPasswordOptions, resetPassword: resetPasswordOptions,
signup: signupOptions, signup: signupOptions,
cookie: {
HttpOnly: true,
Path: '/',
SameSite: 'Strict',
Secure: true,
// Domain: 'example.com',
},
}) })
return await authHandler.invoke() return await authHandler.invoke()

View File

@@ -7,7 +7,7 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@redwoodjs/core": "0.45.0" "@redwoodjs/core": "0.49.1"
}, },
"eslintConfig": { "eslintConfig": {
"extends": "@redwoodjs/eslint-config" "extends": "@redwoodjs/eslint-config"

View File

@@ -13,23 +13,22 @@
] ]
}, },
"dependencies": { "dependencies": {
"@redwoodjs/auth": "0.44.1", "@redwoodjs/auth": "0.49.1",
"@redwoodjs/forms": "0.45.0", "@redwoodjs/forms": "0.49.1",
"@redwoodjs/router": "0.45.0", "@redwoodjs/router": "0.49.1",
"@redwoodjs/web": "0.45.0", "@redwoodjs/web": "0.49.1",
"netlify-identity-widget": "1.9.2",
"prop-types": "15.8.1", "prop-types": "15.8.1",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/aspect-ratio": "0.4.0", "@tailwindcss/aspect-ratio": "0.4.0",
"@tailwindcss/forms": "0.4.0", "@tailwindcss/forms": "0.5.0",
"@tailwindcss/line-clamp": "0.3.1", "@tailwindcss/line-clamp": "0.3.1",
"@tailwindcss/typography": "0.5.1", "@tailwindcss/typography": "0.5.2",
"autoprefixer": "10.4.2", "autoprefixer": "10.4.2",
"postcss": "8.4.6", "postcss": "8.4.8",
"postcss-loader": "6.2.1", "postcss-loader": "6.2.1",
"tailwindcss": "3.0.18" "tailwindcss": "3.0.23"
} }
} }

View File

@@ -7,11 +7,19 @@
// still render a generic error page, but your users will prefer something a bit more // still render a generic error page, but your users will prefer something a bit more
// thoughtful. =) // thoughtful. =)
export default () => ( // Ensures that production builds do not include the error page
<main> let RedwoodDevFatalErrorPage = undefined
<style if (process.env.NODE_ENV === 'development') {
dangerouslySetInnerHTML={{ RedwoodDevFatalErrorPage =
__html: ` require('@redwoodjs/web/dist/components/DevFatalErrorPage').DevFatalErrorPage
}
export default RedwoodDevFatalErrorPage ||
(() => (
<main>
<style
dangerouslySetInnerHTML={{
__html: `
html, body { html, body {
margin: 0; margin: 0;
} }
@@ -42,12 +50,12 @@ export default () => (
color: #2D3748; color: #2D3748;
} }
`, `,
}} }}
/> />
<section> <section>
<h1> <h1>
<span>Something went wrong</span> <span>Something went wrong</span>
</h1> </h1>
</section> </section>
</main> </main>
) ))

1850
yarn.lock

File diff suppressed because it is too large Load Diff