-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(next-drupal)!: move non-DrupalClient code to src/deprecated
BREAKING CHANGE: The JsonApiWithAuthOptions type has been renamed to JsonApiWithAuthOption. The JsonApiWithLocaleOptions type is now considered deprecated for DrupalClient usage and can be replaced with the JsonApiOptions type.
- Loading branch information
Showing
28 changed files
with
558 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export * from "./deprecated/get-access-token" | ||
export * from "./deprecated/get-menu" | ||
export * from "./deprecated/get-paths" | ||
export * from "./deprecated/get-resource-collection" | ||
export * from "./deprecated/preview" | ||
export * from "./deprecated/get-resource-type" | ||
export * from "./deprecated/get-resource" | ||
export * from "./deprecated/get-search-index" | ||
export * from "./deprecated/get-view" | ||
export * from "./deprecated/translate-path" | ||
export { | ||
deserialize, | ||
buildUrl, | ||
getJsonApiIndex, | ||
getJsonApiPathForResourceType, | ||
syncDrupalPreviewRoutes, | ||
} from "./deprecated/utils" | ||
|
||
export type * from "./types/deprecated" |
2 changes: 1 addition & 1 deletion
2
packages/next-drupal/src/get-access-token.ts → ...drupal/src/deprecated/get-access-token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 2 additions & 5 deletions
7
packages/next-drupal/src/get-menu.ts → ...es/next-drupal/src/deprecated/get-menu.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/next-drupal/src/get-paths.ts → ...s/next-drupal/src/deprecated/get-paths.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ages/next-drupal/src/get-resource-type.ts → ...rupal/src/deprecated/get-resource-type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
packages/next-drupal/src/get-search-index.ts → ...drupal/src/deprecated/get-search-index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/next-drupal/src/get-view.ts → ...es/next-drupal/src/deprecated/get-view.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/next-drupal/src/preview.ts → ...ges/next-drupal/src/deprecated/preview.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/next-drupal/src/translate-path.ts → ...t-drupal/src/deprecated/translate-path.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/next-drupal/src/navigation/use-menu.ts → ...es/next-drupal/src/deprecated/use-menu.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.