react-element-to-jsx-string
Advanced tools
Comparing version
@@ -1,1 +0,4 @@ | ||
{} | ||
{ | ||
"typescript.validate.enable": false, | ||
"javascript.validate.enable": false | ||
} |
@@ -0,1 +1,10 @@ | ||
# [15.0.0](https://github.com/algolia/react-element-to-jsx-string/compare/v14.3.4...v15.0.0) (2022-05-09) | ||
### Bug Fixes | ||
* add react 18 support, fixes [#728](https://github.com/algolia/react-element-to-jsx-string/issues/728) ([#729](https://github.com/algolia/react-element-to-jsx-string/issues/729)) ([8e17e12](https://github.com/algolia/react-element-to-jsx-string/commit/8e17e1283fd48108663c7fedf7d174c957c00f68)) | ||
## [14.3.4](https://github.com/algolia/react-element-to-jsx-string/compare/v14.3.3...v14.3.4) (2021-10-19) | ||
@@ -2,0 +11,0 @@ |
@@ -44,13 +44,7 @@ 'use strict'; | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
_typeof = function (obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
} | ||
return _typeof(obj); | ||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}, _typeof(obj); | ||
} | ||
@@ -57,0 +51,0 @@ |
@@ -18,13 +18,7 @@ import { isPlainObject } from 'is-plain-object'; | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
_typeof = function (obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
} | ||
return _typeof(obj); | ||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}, _typeof(obj); | ||
} | ||
@@ -31,0 +25,0 @@ |
{ | ||
"name": "react-element-to-jsx-string", | ||
"version": "14.3.4", | ||
"version": "15.0.0", | ||
"description": "Turn a ReactElement into the corresponding JSX string.", | ||
@@ -39,29 +39,29 @@ "main": "dist/cjs/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "7.15.7", | ||
"@babel/core": "7.15.8", | ||
"@babel/preset-env": "7.15.8", | ||
"@babel/preset-flow": "7.14.5", | ||
"@babel/preset-react": "7.14.5", | ||
"@commitlint/cli": "8.3.5", | ||
"@commitlint/config-angular": "8.3.4", | ||
"@babel/cli": "7.17.6", | ||
"@babel/core": "7.17.9", | ||
"@babel/preset-env": "7.16.11", | ||
"@babel/preset-flow": "7.16.7", | ||
"@babel/preset-react": "7.16.7", | ||
"@commitlint/cli": "8.3.6", | ||
"@commitlint/config-angular": "8.3.6", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.2.0", | ||
"babel-eslint": "10.1.0", | ||
"babel-jest": "24.9.0", | ||
"babel-register": "6.26.0", | ||
"conventional-changelog-cli": "2.1.1", | ||
"conventional-changelog-cli": "2.2.2", | ||
"doctoc": "1.4.0", | ||
"enzyme": "3.11.0", | ||
"enzyme-adapter-react-16": "1.15.6", | ||
"eslint": "6.8.0", | ||
"eslint-config-algolia": "14.0.1", | ||
"eslint-config-prettier": "6.15.0", | ||
"eslint-plugin-import": "2.25.2", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-jest": "22.21.0", | ||
"eslint-plugin-prettier": "3.4.1", | ||
"eslint-plugin-react": "7.26.1", | ||
"eslint-plugin-react": "7.29.4", | ||
"esm": "3.2.25", | ||
"expect": "27.2.5", | ||
"expect": "27.5.1", | ||
"flow-bin": "0.119.1", | ||
"flow-copy-source": "2.0.9", | ||
"husky": "3.1.0", | ||
"jest": "27.2.5", | ||
"jest": "27.5.1", | ||
"json": "10.0.0", | ||
@@ -71,6 +71,6 @@ "lint-staged": "10.5.4", | ||
"prettier": "1.19.1", | ||
"react": "16.14.0", | ||
"react-dom": "16.14.0", | ||
"react-test-renderer": "16.14.0", | ||
"rollup": "2.58.0", | ||
"react": "^18.1.0", | ||
"react-dom": "^18.1.0", | ||
"react-test-renderer": "^18.1.0", | ||
"rollup": "2.70.1", | ||
"rollup-plugin-babel": "4.4.0", | ||
@@ -83,4 +83,4 @@ "rollup-plugin-node-builtins": "2.1.2", | ||
"peerDependencies": { | ||
"react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1", | ||
"react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" | ||
"react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0", | ||
"react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0" | ||
}, | ||
@@ -90,3 +90,3 @@ "dependencies": { | ||
"is-plain-object": "5.0.0", | ||
"react-is": "17.0.2" | ||
"react-is": "18.1.0" | ||
}, | ||
@@ -93,0 +93,0 @@ "jest": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
212270
4.67%1204
-0.58%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated