Open
Description
Package
next-drupal (NPM package)
Describe the feature request
The goal of the 2.0.0 releases of next-drupal
(NPM package) and next
(Drupal module) is to have release that is fully compatible with Next.js' App Router. Secondarily, the project is being updated so that it easier to maintain and contribute to.
These are the steps needed to accomplish this
- App Router related:
- ✔︎ Allow DrupalClient usage in Server components and in Client Components. Fixed with App directory support with servercomponents #442
- ✔︎ Add Next.js v14 support. Fixed with Add Next.js v14 support #578
- ✔︎ Support for Draft Mode. Fixed with Support for Next.js draft mode #502
- ✔︎ Add example showing a single app migrating from Pages Router to App Router while supporting both. See /examples/example-router-migration
- ✔︎ Add methods to DrupalClient to support App Router. Adopt Next's app router #665
- ✔︎ Upgrade starters to App Router. Upgrade starters to App Router #601
- ✔︎ Use "Dynamic Path Segment" or "path" instead of "slug" Use "Dynamic Path Segment" or "path" instead of "slug" #718
- Maintainability related:
- ✔︎ Organize Jest tests by method (adds 100% test coverage). Organize Jest tests by method #608
- Fix local Jest testing fails local Jest testing fails #533 (may be fixed after 2.0.0 release)
- Improve CONTRIBUTING docs Improve CONTRIBUTING docs #529 (partially done, still working on it)
- Update docs for 2.0.0 release Update docs for 2.0.0 release #691
We also have a 2.0.0 milestone to dynamically track which issues we want to add before a 2.0.0 release. https://github.com/chapter-three/next-drupal/milestone/9 I'll try to keep this issue updated with that milestone.