Skip to content

Commit

Permalink
revert arrow function in class property to address #46e8ea5ff69325b73…
Browse files Browse the repository at this point in the history
…087811a2ce6a2b1faffa971
  • Loading branch information
adrai committed Aug 7, 2024
1 parent b6eb31a commit fc20c29
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 15.0.1

- revert arrow function in class property to address [this](https://github.com/i18next/react-i18next/commit/46e8ea5ff69325b73087811a2ce6a2b1faffa971#r145061161)

### 15.0.0

- use optional chaining, nullish coalescing and nullish coalescing assignment [1774](https://github.com/i18next/react-i18next/pull/1774)
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"eslint-plugin-testing-library": "^5.11.0",
"happy-dom": "^12.10.3",
"husky": "^8.0.3",
"i18next": "^23.12.1",
"i18next": "^23.12.2",
"lint-staged": "^15.2.7",
"mkdirp": "^1.0.4",
"prettier": "^3.3.3",
Expand Down
4 changes: 3 additions & 1 deletion react-i18next.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@
this.usedNamespaces[ns] ??= true;
});
}
getUsedNamespaces = () => Object.keys(this.usedNamespaces);
getUsedNamespaces() {
return Object.keys(this.usedNamespaces);
}
}
const composeInitialProps = ForComponent => async ctx => {
const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};
Expand Down
2 changes: 1 addition & 1 deletion react-i18next.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export class ReportNamespaces {
});
}

getUsedNamespaces = () => Object.keys(this.usedNamespaces);
getUsedNamespaces() {
return Object.keys(this.usedNamespaces);
}
}

export const composeInitialProps = (ForComponent) => async (ctx) => {
Expand Down

0 comments on commit fc20c29

Please sign in to comment.