@lingui/react 4.5.0 → 4.6.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/server.cjs CHANGED
@@ -107,6 +107,7 @@ function TransNoContext(props) {
107
107
  id,
108
108
  message,
109
109
  translation,
110
+ // TODO vonovak - remove isTranslated prop in v5 release
110
111
  isTranslated: id !== translation && message !== translation,
111
112
  children: translation
112
113
  // for type-compatibility with `component` prop
package/dist/server.d.cts CHANGED
@@ -6,6 +6,9 @@ type TransRenderProps = {
6
6
  translation: React.ReactNode;
7
7
  children: React.ReactNode;
8
8
  message?: string | null;
9
+ /**
10
+ * @deprecated isTranslated prop is undocumented and buggy. It'll be removed in v5 release.
11
+ * */
9
12
  isTranslated: boolean;
10
13
  };
11
14
  type TransRenderCallbackOrComponent = {
package/dist/server.d.mts CHANGED
@@ -6,6 +6,9 @@ type TransRenderProps = {
6
6
  translation: React.ReactNode;
7
7
  children: React.ReactNode;
8
8
  message?: string | null;
9
+ /**
10
+ * @deprecated isTranslated prop is undocumented and buggy. It'll be removed in v5 release.
11
+ * */
9
12
  isTranslated: boolean;
10
13
  };
11
14
  type TransRenderCallbackOrComponent = {
package/dist/server.d.ts CHANGED
@@ -6,6 +6,9 @@ type TransRenderProps = {
6
6
  translation: React.ReactNode;
7
7
  children: React.ReactNode;
8
8
  message?: string | null;
9
+ /**
10
+ * @deprecated isTranslated prop is undocumented and buggy. It'll be removed in v5 release.
11
+ * */
9
12
  isTranslated: boolean;
10
13
  };
11
14
  type TransRenderCallbackOrComponent = {
package/dist/server.mjs CHANGED
@@ -101,6 +101,7 @@ function TransNoContext(props) {
101
101
  id,
102
102
  message,
103
103
  translation,
104
+ // TODO vonovak - remove isTranslated prop in v5 release
104
105
  isTranslated: id !== translation && message !== translation,
105
106
  children: translation
106
107
  // for type-compatibility with `component` prop
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/react",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "sideEffects": false,
5
5
  "description": "React components for translations",
6
6
  "main": "./dist/index.cjs",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@babel/runtime": "^7.20.13",
76
- "@lingui/core": "4.5.0"
76
+ "@lingui/core": "4.6.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@lingui/jest-mocks": "*",
@@ -85,5 +85,5 @@
85
85
  "react-dom": "^18.2.0",
86
86
  "unbuild": "2.0.0"
87
87
  },
88
- "gitHead": "62c92d1f8c60b3890bdda870f307fa780d423080"
88
+ "gitHead": "2afa0efb2d0cd1d47adc76e1eec9f5e57e34ae18"
89
89
  }