Skip to content

Commit

Permalink
feat(next-drupal): add NextDrupal and NextDrupalBase class definitions
Browse files Browse the repository at this point in the history
The DrupalClient class has been renamed to NextDrupalPages and has been
refactored to inherit from the NextDrupalBase (base class) and NextDrupal
(JsonAPI/App Router class). NextDrupalPages class contains the methods that are
only needed to support Next.js' Pages Router. NextDrupalPages is also available
as "DrupalClient" for backwards-compatibility.

The getPathFromContext() method has been replaced with the
constructPathFromSegment() method for App Router usages.

Issue #665
  • Loading branch information
JohnAlbin committed Apr 18, 2024
1 parent 2a9aa28 commit c9ae778
Show file tree
Hide file tree
Showing 44 changed files with 4,714 additions and 3,647 deletions.
2 changes: 2 additions & 0 deletions packages/next-drupal/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
],
},
testLocationInResults: true,
// TODO: Remove prettierPath after Jest v30 release. See https://github.com/jestjs/jest/issues/14305
prettierPath: null,
coverageProvider: "v8",
collectCoverage: true,
collectCoverageFrom: ["./src/**"],
Expand Down
Loading

0 comments on commit c9ae778

Please sign in to comment.