@fluentui/react-jsx-runtime 9.0.19 → 9.0.20
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/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-jsx-runtime
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu,
|
|
3
|
+
This log was last generated on Thu, 30 Nov 2023 13:37:53 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.0.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.20)
|
|
8
|
+
|
|
9
|
+
Thu, 30 Nov 2023 13:37:53 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.19..@fluentui/react-jsx-runtime_v9.0.20)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- chore: move up NODE_ENV check in warnIfElementTypeIsInvalid ([PR #29886](https://github.com/microsoft/fluentui/pull/29886) by wfwf1997@gmail.com)
|
|
15
|
+
|
|
7
16
|
## [9.0.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.19)
|
|
8
17
|
|
|
9
|
-
Thu, 09 Nov 2023 17:
|
|
18
|
+
Thu, 09 Nov 2023 17:29:36 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.18..@fluentui/react-jsx-runtime_v9.0.19)
|
|
11
20
|
|
|
12
21
|
### Patches
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { isValidElementType } from 'react-is';
|
|
3
3
|
export function warnIfElementTypeIsInvalid(type) {
|
|
4
|
-
if (typeof type === 'object' && !isValidElementType(type)
|
|
4
|
+
if (process.env.NODE_ENV === 'development' && typeof type === 'object' && !isValidElementType(type)) {
|
|
5
5
|
// eslint-disable-next-line no-console
|
|
6
6
|
console.error(`@fluentui/react-jsx-runtime:
|
|
7
7
|
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${type}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["warnIfElementTypeIsInvalid.ts"],"sourcesContent":["import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\nexport function warnIfElementTypeIsInvalid(type: React.ElementType) {\n if (typeof type === 'object' && !isValidElementType(type)
|
|
1
|
+
{"version":3,"sources":["warnIfElementTypeIsInvalid.ts"],"sourcesContent":["import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\nexport function warnIfElementTypeIsInvalid(type: React.ElementType) {\n if (process.env.NODE_ENV === 'development' && typeof type === 'object' && !isValidElementType(type)) {\n // eslint-disable-next-line no-console\n console.error(/** #__DE-INDENT__ */ `\n @fluentui/react-jsx-runtime:\n Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${type}.\n\n If this happened in a slot of Fluent UI component, you might be facing package resolution issues.\n Please make sure you don't have multiple versions of \"@fluentui/react-utilities\" installed in your dependencies or sub-dependencies.\n You can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).\n `);\n }\n}\n"],"names":["React","isValidElementType","warnIfElementTypeIsInvalid","type","process","env","NODE_ENV","console","error"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,kBAAkB,QAAQ,WAAW;AAE9C,OAAO,SAASC,2BAA2BC,IAAuB;IAChE,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,iBAAiB,OAAOH,SAAS,YAAY,CAACF,mBAAmBE,OAAO;QACnG,sCAAsC;QACtCI,QAAQC,KAAK,CAAuB,CAAC;6HAE4F,EAAEL,KAAK;;;;wJAKtI,CAAC;IACL;AACF"}
|
|
@@ -12,7 +12,7 @@ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildc
|
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
13
|
const _reactis = require("react-is");
|
|
14
14
|
function warnIfElementTypeIsInvalid(type) {
|
|
15
|
-
if (typeof type === 'object' && !(0, _reactis.isValidElementType)(type)
|
|
15
|
+
if (process.env.NODE_ENV === 'development' && typeof type === 'object' && !(0, _reactis.isValidElementType)(type)) {
|
|
16
16
|
// eslint-disable-next-line no-console
|
|
17
17
|
console.error(`@fluentui/react-jsx-runtime:
|
|
18
18
|
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${type}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["warnIfElementTypeIsInvalid.js"],"sourcesContent":["import * as React from 'react';\nimport { isValidElementType } from 'react-is';\nexport function warnIfElementTypeIsInvalid(type) {\n if (typeof type === 'object' && !isValidElementType(type)
|
|
1
|
+
{"version":3,"sources":["warnIfElementTypeIsInvalid.js"],"sourcesContent":["import * as React from 'react';\nimport { isValidElementType } from 'react-is';\nexport function warnIfElementTypeIsInvalid(type) {\n if (process.env.NODE_ENV === 'development' && typeof type === 'object' && !isValidElementType(type)) {\n // eslint-disable-next-line no-console\n console.error(`@fluentui/react-jsx-runtime:\nElement type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${type}.\n\nIf this happened in a slot of Fluent UI component, you might be facing package resolution issues.\nPlease make sure you don't have multiple versions of \"@fluentui/react-utilities\" installed in your dependencies or sub-dependencies.\nYou can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).`);\n }\n}\n"],"names":["warnIfElementTypeIsInvalid","type","process","env","NODE_ENV","isValidElementType","console","error"],"mappings":";;;;+BAEgBA;;;eAAAA;;;;iEAFO;yBACY;AAC5B,SAASA,2BAA2BC,IAAI;IAC3C,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,iBAAiB,OAAOH,SAAS,YAAY,CAACI,IAAAA,2BAAkB,EAACJ,OAAO;QACjG,sCAAsC;QACtCK,QAAQC,KAAK,CAAC,CAAC;6HACsG,EAAEN,KAAK;;;;wJAIoB,CAAC;IACrJ;AACJ"}
|