-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update redwoodjs monorepo to v0.50.0 #193
base: main
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/ruedap/nekostagram/DvYhgQdaUNye7V287egrL434HtWC [Deployment for 55546d5 failed] |
648c454
to
e3fe454
Compare
e3fe454
to
cee5e6e
Compare
cee5e6e
to
c1fb7a8
Compare
c1fb7a8
to
0afde84
Compare
0afde84
to
6c10574
Compare
6c10574
to
bb6cefa
Compare
bb6cefa
to
3149578
Compare
3149578
to
440a9ce
Compare
440a9ce
to
4f1fb5d
Compare
4f1fb5d
to
9c1d633
Compare
9c1d633
to
370ceab
Compare
370ceab
to
ce6f1a1
Compare
ce6f1a1
to
b1fd1c2
Compare
b1fd1c2
to
d70f260
Compare
d70f260
to
55546d5
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This PR contains the following updates:
0.36.4
->0.50.0
0.36.4
->0.50.0
0.36.4
->0.50.0
0.36.4
->0.50.0
0.36.4
->0.50.0
0.36.4
->0.50.0
0.36.4
->0.50.0
Release Notes
redwoodjs/redwood
v0.50.0
Compare Source
Changelog
Unique contributors: 19
PRs merged: 76
Features
Fixed
Chore
Package Dependencies
View all Dependency Version Upgrades
Removed Deprecations and Breaking Changes
This release removes prior deprecations and has breaking changes.
Removed binary
rw-api-server
; replaced withrw-server [side]
This bin is used for running the Fastify server, which is called when you run
yarn rw serve
.Projects should use
yarn rw-server api
. Also takesweb
positional (or both).dbAuth: removed COOKIE_META cookies
PR #4722 dbAuth cookie config has moved to
api/src/function/auth.js
for better customization. See:Refer to Code Modification below to update.
DevFatalErrorPage now pretty prints query
PR #4696 updates
src/components/FatalErrorPage.tsx
Refer to Code Modification below to update.
Private routes and Set now use roles (instead of role)
PR #4681 Changes the use of Router
role
to be replaced byroles
plural.Projects using
role
for RBAC will need to make a Code ModificationCode Modifications
Update DevFatalErrorPage
We've made a small change to FatalErrorPage make sure your bundle sizes are as small as possible!
If you only have the default FatalErrorPage, you can run our automatic codemod to pull in the latest changes.
If you've customised your error page, just a small tweak is needed:
Update
roles
forrole
in Private routes and SetsProjects using roles and RBAC will need to change any prop in
Routes.ts|js
namedrole
toroles
. The value can be a string or array of strings, which is consistent with previous behavior.Example:
Netlify Deploy: Update .toml
PR #4782 improves prerender performance on Jamstack deploy providers. For most cases, the changes are automatic.
It is recommended that projects deploying to Netlify should update
netlify.toml
:Nhost Auth: Upgrade to v2
PR #4770 updates Nhost Auth provider to use Nhost v2.
Existing projects using Nhost need to use the new Nhost SDK. Make the following changes to
Auth.ts|js
:dbAuth: Set Secure Cookie Attribute in Config Template
If you're using dbAuth with the new
cookie
config that we added toapi/src/functions/auth.js
in the last release, you'll need to make a change if you use Safari as your dev browser, or if you access your dev server at a host other thanlocalhost
(you may have noticed that you can't stay logged in).Change the
Secure
config to this:This will set the cookie to not secure when in a development environment, but otherwise
true
everywhere else (like in production). Chrome has an exception that you can set a secure cookie over HTTP, but only if the domain islocalhost
. Safari does not have this exception!Deploy Redwood Record on Netlify (experimental)
See #4618
Redwood Record datamodel file
In order to fix the Netlify deploy when using Redwood Record the
datamodel.json
generated by runningyarn rw record init
was moved and will now be tracked under git.How to Update
If you are using the RedwoodRecord lib the only thing you have to do is run
yarn rw record init
again and you'll be good to go.v0.49.1
Compare Source
Patch Release
This release includes the following fixes:
v0.49.0
Compare Source
Changelog
Unique contributors: 4
PRs merged: 7
Features
Fixed
Chore
Package Dependencies
View all Dependency Version Upgrades
Recommended Code Modification
dbAuth Cookie Configuration
If you are using dbAuth, we've moved the configuration for the dbAuth cookie alongside the rest of the configuration in
api/src/functions/auth.js
. The original configuration, which was internal to Redwood itself, is now deprecated. If you do not add this cookie config to auth.js your app will continue to work for now, but will show a deprecation notice in your api logs. The old behavior will be removed in a future version of Redwood.To preserve the existing cookie settings, add the
cookie
property to the options sent intonew DbAuthHandler()
:The cookie
Domain
is now set here instead of in an ENV var. When do you need to setDomain
? If your web side and api side are served from different domains (such aswww.example.com
andapi.example.com
). To read more aboutDomain
config: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookiesv0.48.0
Compare Source
Highlight: 🧶 Yarn 3 (Preview)
This release adds preview support for using Yarn v3 with Redwood projects. Why would you want to bump from Yarn v1 to v3? Because it's amazingly superior. And it's SuperEasy™ to upgrade and try it out. Just run the codemod:
Let us know how it goes!
Code Modification: Webhook timestamp verifiers
This is a required modification for projects using the the
timestamp
webhook verifier option.PR #4608 introduces a new option called
eventTimestamp
. Together with the existing tolerance option it's possible to add timestamp diff checks to all verifiers. But do note that all webhook events won't have the needed timestamp info to implement. That's up to the vendor you're integrating with to include or not include. Currently we know Svix, Clerk and Stripe have the required info.🚨This PR renames the
timestamp
webhook verifier option tocurrentTimestampOverride
.To automatically update your code, simply run this code modification in your Redwood project:
Manual Upgrade Step
Only necessary if you do not use the automated code mod above.
timestamp
value, you'll need to rename the timestamp object key tocurrentTimestampOverride
. A simple find and replace should do the trick!Changelog
Unique contributors: 9
PRs merged: 22
Features
Fixed
rw prisma migrate diff
#4590 by @thedavidpriceChore
#4623
#4626 by @thedavidpricesetTimeout
outside test block #4638 by @jtoarPackage Dependencies
View all Dependency Version Upgrades
v0.47.1
Compare Source
Patch Release
This release includes the following change, which mitigates an issue with Prisma generating duplicate clients:
v0.47.0
Compare Source
Recommended Code Modification
This code modification is recommended but not required.
PR #4167 adds a shiny ✨ new Runtime Error Page. New projects ship with the updated code. To use the new Error Page with existing projects, the following code modification is required.
Option 1: Automated Code Mod
To automatically apply the required code mods, run this command:
Option 2: Manual Code Mod
Only make these changes if you did not use the automated code mod above.
Update the file
web/src/pages/FatalErrorPage/FatalErrorPage.js|tsx
:RedwoodDevFatalErrorPage
use in development:export
with a condition for production and development:Changelog
Unique contributors: 8
PRs merged: 13
Features
undefined
as a value for service validators #4534 by @realStandalredwood open
command has been fully deprecatedFixed
Chore
rw test ...
duration for case of Test-project #4504 by @thedavidpricePackage Dependencies
View all Dependency Version Upgrades
v0.46.1
Compare Source
Patch Release
This release includes the following fixes, resolving an issue with Auth:
v0.46.0
Compare Source
Changelog
Unique contributors: 13
PRs merged: 20
Feature
web/src/App.js|ts
to match this templateapi/src/lib/auth.js|ts
to match this templateFixed
type
property + Workaround for upstream react/prop-types lint rule #3762 by @nzdjbx-www-form-urlencoded
andmultipart/form-data
content type in api-server #4416 by @srzainabChore
Package Dependencies
View all Dependency Version Upgrades
Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.