Skip to content

Commit fc20c29

Browse files
committed
revert arrow function in class property to address #46e8ea5ff69325b73087811a2ce6a2b1faffa971
1 parent b6eb31a commit fc20c29

6 files changed

+19
-11
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 15.0.1
2+
3+
- revert arrow function in class property to address [this](https://github.com/i18next/react-i18next/commit/46e8ea5ff69325b73087811a2ce6a2b1faffa971#r145061161)
4+
15
### 15.0.0
26

37
- use optional chaining, nullish coalescing and nullish coalescing assignment [1774](https://github.com/i18next/react-i18next/pull/1774)

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"eslint-plugin-testing-library": "^5.11.0",
107107
"happy-dom": "^12.10.3",
108108
"husky": "^8.0.3",
109-
"i18next": "^23.12.1",
109+
"i18next": "^23.12.2",
110110
"lint-staged": "^15.2.7",
111111
"mkdirp": "^1.0.4",
112112
"prettier": "^3.3.3",

react-i18next.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,9 @@
502502
this.usedNamespaces[ns] ??= true;
503503
});
504504
}
505-
getUsedNamespaces = () => Object.keys(this.usedNamespaces);
505+
getUsedNamespaces() {
506+
return Object.keys(this.usedNamespaces);
507+
}
506508
}
507509
const composeInitialProps = ForComponent => async ctx => {
508510
const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};

react-i18next.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export class ReportNamespaces {
1818
});
1919
}
2020

21-
getUsedNamespaces = () => Object.keys(this.usedNamespaces);
21+
getUsedNamespaces() {
22+
return Object.keys(this.usedNamespaces);
23+
}
2224
}
2325

2426
export const composeInitialProps = (ForComponent) => async (ctx) => {

0 commit comments

Comments
 (0)