Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: i18next/react-i18next
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13.3.2
Choose a base ref
...
head repository: i18next/react-i18next
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.4.0
Choose a head ref
  • 3 commits
  • 8 files changed
  • 1 contributor

Commits on Nov 10, 2023

  1. 2
    Copy the full SHA
    3af3fa8 View commit details
  2. use fixed i18next version

    adrai committed Nov 10, 2023
    Copy the full SHA
    2fa3eff View commit details
  3. 13.4.0

    adrai committed Nov 10, 2023
    Copy the full SHA
    0fdd3a8 View commit details
Showing with 71 additions and 38 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −0 TransWithoutContext.d.mts
  3. +1 −0 icu.macro.d.mts
  4. +1 −0 index.d.mts
  5. +1 −0 initReactI18next.d.mts
  6. +42 −28 package-lock.json
  7. +20 −8 package.json
  8. +1 −2 tsconfig.json
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 13.4.0

- fix: separate cjs and mjs typings

### 13.3.2

- types: fix consider importing '\*.js'
1 change: 1 addition & 0 deletions TransWithoutContext.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './TransWithoutContext.js';
1 change: 1 addition & 0 deletions icu.macro.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './icu.macro.js';
1 change: 1 addition & 0 deletions index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './index.js';
1 change: 1 addition & 0 deletions initReactI18next.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './initReactI18next.js';
70 changes: 42 additions & 28 deletions package-lock.json

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

28 changes: 20 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "react-i18next",
"version": "13.3.2",
"version": "13.4.0",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
"main": "dist/commonjs/index.js",
"types": "./index.d.ts",
"types": "./index.d.mts",
"jsnext:main": "dist/es/index.js",
"module": "dist/es/index.js",
"keywords": [
@@ -20,28 +20,40 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"types": {
"require": "./index.d.ts",
"import": "./index.d.mts"
},
"module": "./dist/es/index.js",
"import": "./dist/es/index.js",
"require": "./dist/commonjs/index.js",
"default": "./dist/es/index.js"
},
"./TransWithoutContext": {
"types": "./TransWithoutContext.d.ts",
"types": {
"require": "./TransWithoutContext.d.ts",
"import": "./TransWithoutContext.d.mts"
},
"module": "./dist/es/TransWithoutContext.js",
"import": "./dist/es/TransWithoutContext.js",
"require": "./dist/commonjs/TransWithoutContext.js",
"default": "./dist/es/TransWithoutContext.js"
},
"./initReactI18next": {
"types": "./initReactI18next.d.ts",
"types": {
"require": "./initReactI18next.d.ts",
"import": "./initReactI18next.d.mts"
},
"module": "./dist/es/initReactI18next.js",
"import": "./dist/es/initReactI18next.js",
"require": "./dist/commonjs/initReactI18next.js",
"default": "./dist/es/initReactI18next.js"
},
"./icu.macro": {
"types": "./icu.macro.d.ts",
"types": {
"require": "./icu.macro..d.ts",
"import": "./icu.macro..d.mts"
},
"default": "./icu.macro.js"
}
},
@@ -94,7 +106,7 @@
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-testing-library": "^5.11.0",
"husky": "^8.0.3",
"i18next": "^23.4.5",
"i18next": "^23.7.2",
"jest": "^24.8.0",
"jest-cli": "^24.8.4",
"lint-staged": "^8.1.3",
@@ -107,7 +119,7 @@
"rollup": "3.25.1",
"sinon": "^7.2.3",
"tslint": "^6.1.3",
"typescript": "^5.1.3",
"typescript": "5.1.3",
"yargs": "^17.7.2"
},
"peerDependencies": {
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -10,10 +10,9 @@
"noEmit": true,
"baseUrl": ".",
"paths": { "react-i18next": ["./"] },

"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["./index.d.ts", "./@types/**/*", "./icu.macro.d.ts", "./test/**/*"],
"include": ["./index.d.mts", "./@types/**/*", "./icu.macro.d.mts", "./test/**/*"],
"exclude": ["test/typescript/nonEsModuleInterop/**/*.ts", "test/typescript/custom-types"]
}