Skip to content

Commit 5bf2694

Browse files
committed
feat: make data property protected to enable inheritance
BREAKING CHANGE: Changed `data` property from private to protected to allow subclasses to access internal state. This enables better extensibility but may affect consumers who subclass DrupalJsonApiParams. - Changed `private data` to `protected data` in DrupalJsonApiParams class - Allows subclasses to access and modify internal query state - Improves library extensibility for advanced use cases
1 parent 25d7f8a commit 5bf2694

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export interface DrupalJsonApiParamsInterface {
6060
getQueryObject(): object;
6161
}
6262
export class DrupalJsonApiParams implements DrupalJsonApiParamsInterface {
63-
private data: DrupalJsonApiParamsStore = {
63+
64+
protected data: DrupalJsonApiParamsStore = {
6465
filter: {},
6566
include: [],
6667
page: undefined,

0 commit comments

Comments
 (0)