@lingui/react 4.0.0-next.8 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -36,7 +36,7 @@ const I18nProvider = ({
36
36
  updateContext();
37
37
  }
38
38
  return unsubscribe;
39
- }, [makeContext]);
39
+ }, [i18n, makeContext]);
40
40
  if (!latestKnownLocale.current) {
41
41
  process.env.NODE_ENV === "development" && console.log(
42
42
  "I18nProvider rendered `null`. A call to `i18n.activate` needs to happen in order for translations to be activated and for the I18nProvider to render.This is not an error but an informational message logged only in development."
package/dist/index.mjs CHANGED
@@ -34,7 +34,7 @@ const I18nProvider = ({
34
34
  updateContext();
35
35
  }
36
36
  return unsubscribe;
37
- }, [makeContext]);
37
+ }, [i18n, makeContext]);
38
38
  if (!latestKnownLocale.current) {
39
39
  process.env.NODE_ENV === "development" && console.log(
40
40
  "I18nProvider rendered `null`. A call to `i18n.activate` needs to happen in order for translations to be activated and for the I18nProvider to render.This is not an error but an informational message logged only in development."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/react",
3
- "version": "4.0.0-next.8",
3
+ "version": "4.0.0",
4
4
  "sideEffects": false,
5
5
  "description": "React components for translations",
6
6
  "main": "./dist/index.cjs",
@@ -58,14 +58,17 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@babel/runtime": "^7.20.13",
61
- "@lingui/core": "^4.0.0-next.8"
61
+ "@lingui/core": "4.0.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@lingui/jest-mocks": "^3.0.3",
64
+ "@lingui/jest-mocks": "*",
65
65
  "@testing-library/react": "^11.0.4",
66
+ "@types/react": "^17.0.56",
67
+ "eslint-plugin-react": "^7.32.2",
68
+ "eslint-plugin-react-hooks": "^4.6.0",
66
69
  "react": "^17.0.2",
67
70
  "react-dom": "^17.0.2",
68
71
  "unbuild": "^1.1.2"
69
72
  },
70
- "gitHead": "c9104b3227327030db3f1c684acba65ea2c0d03f"
73
+ "gitHead": "998996381f5e5a458c2eccf650f949d8c5d8ac89"
71
74
  }