@fluentui/react-jsx-runtime 9.0.19 → 9.0.21

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,30 @@
1
1
  # Change Log - @fluentui/react-jsx-runtime
2
2
 
3
- This log was last generated on Thu, 09 Nov 2023 17:23:06 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 14 Dec 2023 09:51:37 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.21)
8
+
9
+ Thu, 14 Dec 2023 09:51:37 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.20..@fluentui/react-jsx-runtime_v9.0.21)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-utilities to v9.15.3 ([commit](https://github.com/microsoft/fluentui/commit/80a1b02be2fbbdde916ac87fbf760e442a2295c4) by beachball)
15
+
16
+ ## [9.0.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.20)
17
+
18
+ Thu, 30 Nov 2023 13:42:06 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.19..@fluentui/react-jsx-runtime_v9.0.20)
20
+
21
+ ### Patches
22
+
23
+ - chore: move up NODE_ENV check in warnIfElementTypeIsInvalid ([PR #29886](https://github.com/microsoft/fluentui/pull/29886) by wfwf1997@gmail.com)
24
+
7
25
  ## [9.0.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.19)
8
26
 
9
- Thu, 09 Nov 2023 17:23:06 GMT
27
+ Thu, 09 Nov 2023 17:29:36 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.18..@fluentui/react-jsx-runtime_v9.0.19)
11
29
 
12
30
  ### 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) && process.env.NODE_ENV === 'development') {
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) && process.env.NODE_ENV === 'development') {\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,IAAI,OAAOA,SAAS,YAAY,CAACF,mBAAmBE,SAASC,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;QACnG,sCAAsC;QACtCC,QAAQC,KAAK,CAAuB,CAAC;6HAE4F,EAAEL,KAAK;;;;wJAKtI,CAAC;IACL;AACF"}
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) && process.env.NODE_ENV === 'development') {
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) && process.env.NODE_ENV === 'development') {\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","isValidElementType","process","env","NODE_ENV","console","error"],"mappings":";;;;+BAEgBA;;;eAAAA;;;;iEAFO;yBACY;AAC5B,SAASA,2BAA2BC,IAAI;IAC3C,IAAI,OAAOA,SAAS,YAAY,CAACC,IAAAA,2BAAkB,EAACD,SAASE,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;QACjG,sCAAsC;QACtCC,QAAQC,KAAK,CAAC,CAAC;6HACsG,EAAEN,KAAK;;;;wJAIoB,CAAC;IACrJ;AACJ"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-jsx-runtime",
3
- "version": "9.0.19",
3
+ "version": "9.0.21",
4
4
  "description": "Custom JSX runtime for @fluentui/react-components",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -31,7 +31,7 @@
31
31
  "@fluentui/scripts-tasks": "*"
32
32
  },
33
33
  "dependencies": {
34
- "@fluentui/react-utilities": "^9.15.2",
34
+ "@fluentui/react-utilities": "^9.15.3",
35
35
  "react-is": "^17.0.2",
36
36
  "@swc/helpers": "^0.5.1"
37
37
  },