From 1340bf670b961d219ff96fcd688f9a1793b4ff04 Mon Sep 17 00:00:00 2001 From: Jan Muehlemann Date: Sat, 27 Oct 2018 09:34:07 +0200 Subject: [PATCH] change entry point for hooks --- CHANGELOG.md | 4 ++++ hooks.js | 11 ++++++++++- package.json | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8567ee78..0d4546ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 8.3.1 + +- make export in ./hooks.js explicit + ### 8.3.0 - Ensure withI18n hoists static members. [584](https://github.com/i18next/react-i18next/pull/584) diff --git a/hooks.js b/hooks.js index e1a11bd8..57b25d66 100644 --- a/hooks.js +++ b/hooks.js @@ -1 +1,10 @@ -export * from './dist/es/hooks'; +export { + useT, + withT, + Trans, + initReactI18n, + setDefaults, + getDefaults, + setI18n, + getI18n, +} from './dist/es/hooks'; diff --git a/package.json b/package.json index 7019ac86..6f2992e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-i18next", - "version": "8.3.0", + "version": "8.3.1", "description": "Internationalization for react done right. Using the i18next i18n ecosystem.", "main": "dist/commonjs/index.js", "types": "index.d.ts",