Releases: redwoodjs/graphql
v0.23.0
Redwood is kicking off 2021 with back-to-back releases. 🚀 This version also adds the final piece of code for the launch of the Redwood Tutorial Pt 2 — stay tuned!
Come join us for a RedwoodJS Meetup on Thursday, January 14! 👉 See this Forum post for details and free registration.
v0.23.0 Highlights
1. Redwood Console
Launch your very own interactive Redwood shell with yarn rw console
- This feature is experimental and limited to DB. Docs here.
2. Fix for Redwood v0.22 web/ hoisted node_modules issue
Redwood v0.22 experienced a strange issue with node_modules being hoisted to the web/ directory. If you are upgrading from a v0.22 project and/or are having an issue with 'node_modulesbeing hoisted to yourweb/` directory, see the "Manual Code Modifications" section below for the fix.
Changed
- Console: resolve promises in the console #1619 by @jtoar
- Generators: Replace prisma deprecated fineOne() -> findUnique() #1629 by @cannikin
- Docs: Update All-contributors and include Learn repo #1621 #1634 @thedavidprice @adithyasunil26
- Ops: update PR package Action formatting #1635 #1638 @thedavidprice @Tobbe
Added
- Tests: adds mockCurrentUser() to API-side Jest #1624 by @cannikin
- Env: Add TEST_DATABASE_URL to the default .env create-redwood-app/#123 by @jvanbaarsen
Fixes
- Tests: move whatwg-fetch from devDep to dep #1625 by @Tobbe
- Template: fix issue with web/ dependencies being hoisted to
./web11780ed by @peterp
Breaking ⚠️
Nothing to see here 🎉
How to upgrade RedwoodJS to the latest v0.23
👉 IMPORTANT: Skipping versions when upgrading is not recommended and will likely cause problems. Do read through all Release Notes between your current version and this latest version. Each minor release will likely require you to implement breaking change fixes and apply manual code modifications.
Manual Code Modifications
1. Add Test DB Env Var
Projects running a database other than SQLite will need to include an env var to config a local DB for testing. Admittedly, this has not (yet) been well documented.
- Add the env var
TEST_DATABASE_URLto your projects.env - See this commit, which adds an example to the installation template's
.env.defaults.
2. Downgrade "react" and "react-dom" packages in web/package.json (if applicable)
In the Redwood v0.22 release, both "react" and "react-dom" packages were upgraded to v17. However, this created a weird/strange/unexpected issue where packages were being hoisted from root to the web/ directory, resulting in seemingly random errors with Jest test failures and React hook errors.
- The fix --> downgrade both "react" and "react-dom" in
web/package.jsonto16.13.1 - See this commit for a reference
Upgrade Packages
Run the following command within your App directory:
yarn rw upgradeNeed help or having trouble upgrading? See this forum topic for manual upgrade instructions and general upgrade help.
v0.22.1
Happy New Year 🥳 And what an exciting year it's going to be for Redwood. Things are kicking off with a 🚀
👉 Join us for the upcoming RedwoodJS Meetup on Thursday, January 14th. We're going to be talking about plans for the upcoming v1, all the shiny new things in this release, and have a demo of a new production Redwood app.
👉 Help us improve the upcoming Redwood Tutorial Pt 2. In preparation for the v1 release, we're again using Tutorial-Driving-Development to guide the way. We need your help trying it out before it's published.
And now on to the amazing work included in this release thanks to the amazing, collaborative community of people listed below.
v0.22 Highlights
Azure AD Authentication Provider
That's right, Azure AD is supported out of the box thanks to @jeliasson.
- Documentation
- PR #1311
New Test Scenarios
Testing with mock data just got a whole lot easier thanks to @cannikin The new Scenarios are data that is pre-set into the database at the start of your test and removed afterward.
- Read the full explanation and how to use in #1465
- And keep a lookout for the deep-dive in the upcoming Tutorial Pt 2
Bring your own GraphQL Client Library
Redwood ships with Appollo GraphQL Client, but we recognize that's not necessarily the right choice for every project. Thanks to @peterp, you can now swap out for the tool of your choice!
Changed
- CLI: update diagnostics to display a success message when no errors or warnings are encountered #1405 by @M0nica
- CLI: Update Setup TailwindCSS to v2 using PostCSS v7 compatible install #1540 by @jtoar
- CLI: Tailwind setup use fs.renameSync instead of mv #1579 by @Tobbe
- GraphQL: Allow users to "bring your own" GraphQL Library #1498 by @peterp 🎉
- Forms: Improve typings for errors #1510 by @Tobbe
- UI: Only stop rendering on Private routes #1519 by @peterp
- Webpack: Make webpack load .mjs extensions #1528 by @peterp
- Auth: upgrade to Supabase 1.0; [email protected] with cleaner imports #1536 #1564 by @Tobbe
- this is a breaking change for projects currently using Supabase. See "Breaking Changes" section below.
- MSW: Explicit target environment for MSW #1574 by @peterp
- Docs: Contributors consolidate Core Team with Roles and update with new contributors #1541 by @thedavidprice
- Docs: Clarify CONTRIBUTING.md #1580 by @jtoar
- Prisma: Upgrade Prisma v2.12.1 #1604 by @thedavidprice
- Release Notes for v2.12.0 and v2.12.1
- Standalone Prisma Studio app for macOS
- Prisma codemods help upgrading your codebase
- Microsoft SQL Server now supports native database types (Preview)
- BREAKING: Remove non-$ methods
- BREAKING: 1-1-relations must now have an optional side
- BREAKING: Fix how data for Json[] fields is stored
- DEPRECATION: Rename findOne to findUnique
- DEPRECATION: Move most types under the Prisma namespace
Added
- Auth: Support Azure AD authentication #1311 by @jeliasson 🎉
- CLI: Add redwood console #809 by @jtoar
- CLI: Add flags to generators to skip tests and story files #1454 by @jvanbaarsen
- CLI: Add --pr to upgrade command #1552 by @Tobbe
- Tests: Test Scenarios #1465 by @cannikin 🎉
- Storybook: Add --build option to
yarn rw storybook#1516 by @peterp - Ops: GitHub Action PR packages #1530 by @Tobbe
- Auth: Firebase Signup login with email, password #1555 by @byudaniel
Fixes
- Lint: Orderliness and break avoiding lint rules, package.json flags #1381 by @Krisztiaan
- Lint: Fix jest-dom lint errors #1575 by @peterp
- Lint: Fixed a few eslint warnings #1582 by @Tobbe
- Storybook: Fixes Storybook/Webpack Out of Memory Error by using relative path to config stories location #1509 by @dthyresson
- Auth: Fix FetchConfigProvider to reprise handling no auth #1515 by @jtoar
- Auth: Supabase getToken uses session to get access_token so that graphql calls are authenticated #1539 by @dthyresson
- GraphQL: Fix renamed export QueryHooksProvider to GraphQLHooksProvider #1520 by @peterp
- Router: Include queryParams in redirectTo #1526 by @dac09
- Deploy: Fix aws_serverless config when api folder missing #1553 by @bennettrogers
- Babel: Make glob import dir ignore .scenarios. files. #1607 by @peterp
Breaking ⚠️
For projects using Supabase Auth
-
This release upgrades to Supabase v1, which requires a new env var
SUPABASE_JWT_SECRET:- See https://redwoodjs.com/docs/authentication#supabase
- For reference, see #1536 and #1564
-
Additionally, the Supabase token is now decoded whereas before it was returned undecided.
- See how this is handled starting here in the package unit tests
Prisma custom implementations
This version uses Prisma v2.12, which includes the following breaking changes affecting some projects with related custom implementation:
- Remove non-$ methods
- 1-1-relations must now have an optional side
- Fix how data for Json[] fields is stored
If your project is affected, you'll need to review the Prisma v2.12 Release Notes.
Note: Prisma now includes a code mode command, which will help fix any issue. See the release notes for more info. General example:
cd my-app npm install @prisma/cli @prisma/client npx @prisma/codemods update-2.12 ./
How to upgrade RedwoodJS to the latest v0.22
👉 IMPORTANT: Skipping versions when upgrading is not recommended and will likely cause problems. Do read through all Release Notes between your current version and this latest version. Each minor release will likely require you to implement breaking change fixes and apply manual code modifications.
Upgrade Packages
Run the following command within your App directory:
yarn rw upgradeTo run the upgrade command, your project must be using v0.6.0 or greater. See this forum topic for manual upgrade instructions and general upgrade help.
v0.21.0
👉 Join us for the upcoming RedwoodJS Meetup on Thursday, December 3rd.
v0.21.0 Highlights
A huge Thank You to everyone who contributed to documentation on redwoodjs.com. 🤩
And 🚀 to @dac09 and @Tobbe for these release highlights as well as all the fantastic individuals below who made this release possible!
Experimental support for React fast-refresh!
React fast refresh is a development-time feature that improves the "Hot reloading" functionality. The biggest benefit is that your components maintain state when you save them and they're refreshed on the screen. Learn more here about this feature.
To add support for fast-refresh, edit your redwood.toml file and add the following:
[web]
# ... others
experimentalFastRefresh = trueRestart you development process and you should be good to go!
Added multiproviders to firebase auth!
Now, when you logIn() or signUp() with the firebase auth client, you can optionally specify the provider: google.com, facebook.com, github.com, twitter.com, microsoft.com or apple.com. The default is google.com.
Converted @redwoodjs/forms to TypeScript!
More progress toward the Redwood v1 TS support goals!
Changed
- Apollo: Add fetchPolicy and nextFetchPolicy to beforeQuery #1428 @cannikin
- Apollo: Remove unnecessary refetchQuery calls #1497 @cannikin
- Tests: update Cell tests to just test that nothing is thrown #1397 @cannikin
- Tests: default sides to "all" in test command #1414 @cannikin
- CLI: updated the CLI command rw generate deploy anchor links to match the documentation for Netlify and Vercel #1422 @dhausser
- Docs: update contributors #1430 @thedavidprice
- Docs: Update create-redwood-app readme to fix npm result #1484 @jacebenson
- Ops: use api/db for E2E test #1500 @thedavidprice
- Prisma: Upgrade to Prisma
v2.11.0#1499 @thedavidprice- 2.11.0 Release Notes
- Native database types in the Prisma schema (Preview)
- New types in the Prisma schema: BigInt, Bytes and Decimal (Preview)
- Set foreign keys directly (Preview)
- 2.10.2 Release Notes
- 2.10.1 Release Notes
- 2.10.0 Release Notes
- Support for Microsoft SQL Server (Preview)
- Single-command schema changes for prototyping
prisma db push(Preview)
- 2.11.0 Release Notes
Added
- Auth: added multiproviders to firebase auth! #1412 @dac09 🎉
- TS: converted @redwoodjs/forms to TypeScript! #1431 @Tobbe 🎉
- Dev: experimental support for React fast-refresh! #1461 #1463 #1464 @dac09 🎉
- see "Highlights" above for instructions
- Ops: GH Action to create packages from PRs #1459 #1485 #1477 @Tobbe
- Storybook: add
openflag,yarn rw storbook --openwill now open the browsers. #1445 @jvanbaarsen - Storybook: add Redwood's "node" Webpack config to Storybook's Webpack config. #1491 @jderrough
- Server: http server tweaks. #1441 @peterp
- Prisma: added
{ redwood { prismaVersion } }field to GraphQL #1425 @jvanbaarsen - Prisma: add ability to specify a custom path for the
prisma.schema#1424 @dhausser - CRWA: Quick start message added to
yarn create redwood-app#1388 @kevPo
Fixes
- Prisma: fix field resolver not working #1440 @AntonioMeireles
- Prisma: bug fix
prisma.disconnectdeprecated warning #1404 @guillaumeLamanda - Prisma: fixes setting Prisma Version in root redwood schema #1442 @AntonioMeireles
- Prisma: use original prisma schema path #1486 #1488 @peterp
- Generator: fix nested scaffolding QUERY import paths #1432 @forresthayes
- Fixes DB Generators failing when a schema path includes spaces or other problematic characters #1492 @dthyresson
- Tests: fix
rw testlogic #1415 @cannikin - Tests: overwritten DATABASE_URL wasn't being used in actual Jest run #1446 @cannikin
- Tests: run jest api tests in sequence. #1447 @cannikin
- Tests: fix tests when the project app path includes spaces or other problematic characters #1494 @dthyresson
- Setup: fix tailwindcss setup command #1407 @mohinderps
- Docs: fix a typo in the contribution guide :) #1401 @olance
- Docs: fix typo in User route param types section #1466 @ajcwebdev
- Storybook: launch Storybook with path w/ spaces #1495 @dthyresson
Breaking ⚠️
[Minor Change] In this release, the Apollo fetchPolicy and nextFetchPolicy were changed for Redwood Cell's beforeQuery. It's possible that cache behavior may change for custom implementations of Apollo cache configuration. However, it's unlikely the majority of Redwood projects will experience any changes after upgrading — tests demonstrated backwards compatibility. (See #1428) Also relevant are updates to Scaffold Generators no longer requiring refetchQuery calls. Note: existing refetchQuery configuration is backwards compatible. (See #1497)
How to upgrade RedwoodJS to v0.21.0
👉 IMPORTANT: Skipping versions when upgrading is not recommended and will likely cause problems. Do read through all Release Notes between your current version and this latest version. Each minor release will likely require you to implement breaking change fixes and apply manual code modifications.
Manual Code Modifications
The following code modifications are recommended but not required.
- [Recommended] Rename
api/prismatoapi/db
This change is not required. New installations of Redwood now use the directoryapi/dbinstead ofapi/prisma. If you change the directory name in your project, you must also add aschemaPathconfig toredwood.toml. See #116 for code change example.
// redwood.toml
...
[api]
port = 8911
schemaPath = "./api/db/schema.prisma"
...
- [Recommended] Remove
schema.prisma"rhel-openssl-1.0.x"binaryTarget
Prisma v2.11.0 (included in this release) fixes the requirement for adding "rhel-openssl-1.0.x". Removing thisbinaryTargetmay also reduce the size of the built API. See #115 for code change example.
// api/db/schema.prisma
...
generator client {
provider = "prisma-client-js"
binaryTargets = "native"
}
...
Upgrade Packages
Run the following command within your App directory:
yarn rw upgradeTo run the upgrade command, your project must be using v0.6.0 or greater. See this forum topic for manual upgrade instructions and general upgrade help.
v0.20.0
This is definitely a mega release! 📣 Just scroll through all the work below, contributed by so many individuals. Hats off to the active, growing Redwood community! Version v0.20.0 is amazing because of you. 🚀
⚠️ This version contains breaking changes and manual code modifications. See the "Breaking" and "Manual Code Modifications" sections below for more info and upgrade instructions.
v0.20.0 Highlights
If this version has a theme, it's performance. Most of the highlights below are under-the-hood improvements and hard-earned fixes.
- Improved Router Performance #1284
- Improved GraphQL Cache Handling (Apollo) #1250 #1387 #1342
- Improved TypeScript Support for Web #1232 #1241 #1247 #1291
- Added Setup Command for one-step install and config and install #1154 #1234 #1269 #1282 #1294
- after upgrading, run
yarn redwood setup --helpto see current commands
- after upgrading, run
- Fixed Jest Test Command #1376
- Fixed Storybook Command on Windows #1324
Additionally, a huge Thank You to everyone who contributed to documentation on redwoodjs.com. 🤩
Changed
- Apollo: Revert to default Apollo fetch policy #1250 by @amorriscode
⚠️ - Apollo: Add refetch queries to create and delete mutations #1387
⚠️ - CLI: modify generated tailwind config to opt-in to upcoming change #1179 by @forresthayes
- CLI: add compatibility comment to color/style palettes in cli packages #1210 by @jeliasson
- CLI: improve Upgrade command so
-taccepts any string #1270 - CLI: add validation for tag supplied to rw upgrade #1304 by @dac09
- CLI: improved Scaffold error output #1320 by @santhoshle
- CLI: SDL generator: id only needed for CRUD #1327 by @Tobbe
- CRWA: improve installation success message #1195 by @jeliasson
- CRWA: update CRWA success message #1373 by @robobunny
- Prisma: remove deprecated argument from prisma studio call #1298 by @AntonioMeireles
- Prisma: upgrade prisma v2.9.0 #1206 #1300 #1344
- v2.9.0 Release Notes, v2.8.1 Release Notes, v2.8.0 Release Notes, v2.7.1 Release Notes, v2.7.0 Release Notes
findFirst- Case insensitive filters for PostgreSQL are now stable
- Prisma Studio is Stable
- Configure Prisma schema location via package.json for more flexibility
- v2.9.0 Release Notes, v2.8.1 Release Notes, v2.8.0 Release Notes, v2.7.1 Release Notes, v2.7.0 Release Notes
- Structure: update VS Code private icon logic #1331 by @M0nica
- Router: add validation for private routes #1340 by @esteban-url
Added
- CLI: add the setup command #1154 #1234 #1269 #1282 by @noire-munich 🎉
- CLI: add setup webpack.config.js for web #1294 by @dac09
- TS: make "@redwoodjs/web" TypeScript ready #1232 🎉
- TS: add types to createGraphQLClient and GraphQLProvider #1241 by @kimadeline 🎉
- TS: add types to withCell #1247 by @kimadeline 🎉
- TS: converted FatalErrorBoundary to typescript #1273 by @shzmr 🎉
- TS: Add types to RedwoodProvider #1291 by @kimadeline 🎉
- Tests: add jest-watch-typeahead #1208 by @RobertBroersma
- Docs: add structure/CONTRIBUTING.md #1357 by @aldonline
- Docs: Added Quick Start callout to Quick Start page #1386 by @kevPo
Fixed
- Router: Fix loaders initialization #1284 @jtoar @mojombo 🎉
- Test: fix usage of private variable #1207 by @RobertBroersma
- Test: fix cwd in getConfigPath to actual cwd #1209 by @RobertBroersma
- Docs: Fix typos #1211 by @androiddevnotes
- Docs: updating contributing.md with install instructions #1231 by @M0nica
- Docs: fix misspelling of "contained" #1338 by @Irev-Dev
- Docs: redwoodjs.com docs Introduction link to node/yarn requirements #1358 by @brentguf
- CLI: don't create an AuthProvider if one exists #1251 by @amorriscode
- CLI: replace
<tt>HTML elements with semantic<code>HTML elements #1260 by @Thieffen - Structure: fix env visibility bug #1308 by @aldonline
- Structure: diagnostics throws error if a notfound route is within a Private tag #1325 by @M0nica
- Structure: fix router "Create Page..." codelens positon #1326 by @mbucchi
- Storybook: fix storybook on Windows #1324 by @Tobbe 🎉
- Storybook: Fix auto-mocking #1378
- Babel: fix importing .ts/.tsx files in web with directory-named-import plugin #1332 by @dac09
- Bable: fix directory named imports #1364
- Forms: fix form error message display #1337 by @forresthayes
- Apollo: fix scaffold mutation #1342
⚠️ - Apollo: fix Apollo Client imports (and Test command) #1376 🎉
Breaking ⚠️
Appollo Client v3 Cache Behavior for GraphQL Mutations
Prior to this version, Redwood Cells used Apollo's cache and network fetch policy. This has been removed in favor of the default policy (see #1250). This change, along with the new Apollo v3 behavior, changes the behavior of mutations — state changes will often not render without a page reload.
From the ApolloDocs: If a mutation modifies multiple entities, or if it creates or deletes entities, the Apollo Client cache is not automatically updated to reflect the result of the mutation.
tl;dr: if things with your App's CRUD rendering seem broken after upgrading, you'll need to update the Mutations in your components to use Apollo's new features like refetchQueries:
- See this Apollo Doc about Mutations and Cache
- For a more advanced approach and example using
inMemoryCache, see this Forum Topic by @jtoar - Redwood Scaffold generated CRUD will also need to be updated. See the "Manual Code Modifications" section below.
Prisma Query Engine Deploy Error
Prisma v2.9.0 now requires setting an additional binaryTarget in schema.prisma. Otherwise, the Prisma query engine will not build correctly, resulting in an error affecting the production deploy.
- See the "Manual Code Modifications" section below for required changes
How to upgrade RedwoodJS to v0.20.0
👉 IMPORTANT: Skipping versions when upgrading is not recommended and will likely cause problems. Do read through all Release Notes between your current version and this latest version. Each minor release will likely require you to implement breaking change fixes and apply manual code modifications.
Manual Code Modifications
- Prisma
v2.9requires an additionalbinaryTargetfor production deploys to build correctly:- add the additional binaryTarget
"rhel-openssl-1.0.x"toapi/prisma/schema.prisma - see this example
- add the additional binaryTarget
- VS Code GraphQL extension required config:
- this GraphQL Extension is recommend for VS Code projects
- add
graphql.config.jsto your project root; see this example with code
- Update Scaffold generated Component files (or, in some cases, your own custom mutation implementations)
- Redwood Scaffold generated CRUD needs to be updated in order to work with the new Apollo v3 Cache. There are four generated component files that need to be updated for each generated Scaffold. The specific names will be different based on your schema models. For the Tutorial
postmodel as an example, the files to update are the components/Post/Post.js,/Posts/Posts.js,/NewPost/NewPost.js, and/EditPostCell/EditPostCell.js - Note: One way to handle this is to re-run Scaffold Generator with the
--forceoption. 🚨 It's the fastest. But this will overwrite any customization. - Edit [Model].js, [Model]s.js, and New[Model].js Components (e.g. Post.js, Posts.js, and NewPost.js):
- See the three files in this commit for reference. Note: the reference file are
Name.js.template,Names.js.template, andNewName.js.template - For each file, add
import { QUERY } from 'src/components/${pluralPascalName}Cell' - For the respective
DELETEandCREATEmutation'sonCompletedproperty, addrefetchQueries: [{ query: QUERY }], awaitRefetchQueries: true, - For the [Model]s.js file, remove the current
refetchQueriesproperty from theonDeleteClickconditional
- See the three files in this commit for reference. Note: the reference file are
- Edit the Edit[Model]Cell.js Component (e.g. EditPostCell.js):
- See the
EditNameCell.js.templatefile in this commit for reference - The
UPDATEmutation requires passing all properties, not justidin the same manner as theQUERY - Add all
QUERYproperties (e.g.id,title,body,createdAt) to theUPDATE_[Model]_MUTATION
- See the
- Redwood Scaffold generated CRUD needs to be updated in order to work with the new Apollo v3 Cache. There are four generated component files that need to be updated for each generated Scaffold. The specific names will be different based on your schema models. For the Tutorial
Upgrading is worth it! And, more importantly, there's a vibrant community for help (and encouragement) if you need it.
- Have questions or need help upgrading? Check out this Forum Topic.
- We're evaluating how to handle the Redwood Client GraphQL. Check out this Forum Topic to learn more and share your experience and suggestions.
Upgrade Packages
Run the following command within your App directory:
yarn rw upgrade*To run the upgrade command, your project must be using v0.6.0 or greater. [See this forum topic for manual upgrade instructions and general upgrade help](https://community.redwoodjs.com/t/how-to-upgrade-redwoodjs-app-and-...
v0.19.3
v0.19.2
This is a patch release to get VS Code extension working:
- Small Language Server fixes (to get VSCode extension working) #1267 by @aldonline
- Suppress most error responses from the Language Server
- Improve initialization order of LSP components
- Tolerate certain missing files and folders
v0.19.1
This is a quick bug fixing release:
- Export some additional Apollo methods:
useClient,useSubscriptionanduseLazyQuery. #1185 @KrisCoulson - Incorrect import of default
mergeversus named exportmerge. #1188 @jeliasson - Make
yarn rw generate util tailwinduse the correct pinned version of postcss-loader and autoprefixer. #1189 @dthyresson
v0.19.0
v0.19.0 Highlights
- We've upgraded to Apollo Client v3!
- We've dropped support for IE 11 and remove some things in the bundle that are no longer required. This gave us a ~80KB reduction in bundle size.
Changed
- Upgraded to Apollo Client v3 #1005 @thedavidprice
- Alias
diagnosticstocheck#1112 @forresthayes - Reduce bundle size by ~80KB #1132 @peterp
- The CLI was getting a slow, we did a bit of an audit and managed to improve the speed significantly. #1173 @peterp
Added
- An updated contributors section #1151 @thedavidprice
Fixed
- Allow CORS to be passed to the GraphQL handler #1175 @peterp
- When trying to destroy pages the propParam was not defined. #1162 @jwkratz
- Add the required prisma binaries when generating an aws deployment target #1144 @hemildesai
- Fix the generated cell test template #1142 @thedavidprice
- In Storybook import
index.[css,scss]file #1134 @RyannosaurusRex - Put migration name in quotes #1123 @amorriscode
- Fix stats command #1126 @peterp
Breaking ⚠️
-
We've dropped support for IE 11, which might be a concern for some users, if you absolutely want to support IE 11 please reach out to @peterp and he'll write up some instructions.
-
We've upgraded Apollo Client to v3.1.4, if you modified the cache when a mutation ran then you might experience some issues, please check the migration notes for Apollo Client: https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/
How to upgrade RedwoodJS to v0.19.0
👉 IMPORTANT: Skipping versions when upgrading is not recommended and will likely cause problems. Do read through all Release Notes between your current version and this latest version. Each minor release will likely require you to implement breaking change fixes and apply manual code modifications.
Manual Code Modifications
- In the last few releases, we let you know that
dbshould not be passedcreateGraphQLHandler. We've now removed that. You should instead disconnect from Prisma inonExceptionin the fileapi/src/functions/graphql.js:- Add
onException. See Lines 16-19 in this reference example here.
- Add
- Drop support for IE 11 by updating Browserslist targets in
web/package.json:- Update targets on Lines 5-8 in this reference example
- Improve VS Code debugging by adding
.vscode/launch.json:- Create a new file and add the code in this reference example
Upgrade Packages
Run the following command within your App directory:
yarn rw upgradeTo run the upgrade command, your project must be using v0.6.0 or greater. See this forum topic for manual upgrade instructions and general upgrade help.
v0.18.0
v0.18.0 Highlights
- Supabase Authentication Provider 🔐
- More Typescript and Conventions Support ⚡️
Changed
- Generators: quote paths and keywords with
<tt>instead of quotation marks in JSX template generator #1094 by turadg
Added
- TS: Create Directory Named Import plugin #1102 by peterp 🎉
- TS: Add typedefs to router #1110 by peterp 🎉
- Auth: Add supabase auth provider #1033 by amorriscode 🎉
- Auth: Adds signup() to Auth to default UI to a signup tab/form when available #1057 by dthyresson
Fixed
Breaking ⚠️
nothing to see here 🙈
How to upgrade RedwoodJS to v0.18.0
👉 IMPORTANT: Skipping versions when upgrading is not recommended and will likely cause problems. Do read through all Release Notes between your current version and this latest version. Each minor release will likely require you to implement breaking change fixes and apply manual code modifications.
Upgrade Packages
Run the following command within your App directory:
yarn rw upgradeTo run the upgrade command, your project must be using v0.6.0 or greater. See this forum topic for manual upgrade instructions and general upgrade help.
v0.17.2 - Fix deploy generators
v0.17.2