@wordpress/element
Advanced tools
Comparing version 4.12.0 to 4.13.0
@@ -31,3 +31,4 @@ /** | ||
*/ | ||
import { kebabCase, isPlainObject } from 'lodash'; | ||
import isPlainObject from 'is-plain-obj'; | ||
import { paramCase as kebabCase } from 'change-case'; | ||
/** | ||
@@ -34,0 +35,0 @@ * WordPress dependencies |
@@ -16,4 +16,6 @@ "use strict"; | ||
var _lodash = require("lodash"); | ||
var _isPlainObj = _interopRequireDefault(require("is-plain-obj")); | ||
var _changeCase = require("change-case"); | ||
var _escapeHtml = require("@wordpress/escape-html"); | ||
@@ -245,3 +247,3 @@ | ||
} else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) { | ||
return (0, _lodash.kebabCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]); | ||
return (0, _changeCase.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]); | ||
} else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) { | ||
@@ -272,6 +274,6 @@ return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]; | ||
if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) { | ||
return '-' + (0, _lodash.kebabCase)(property); | ||
return '-' + (0, _changeCase.paramCase)(property); | ||
} | ||
return (0, _lodash.kebabCase)(property); | ||
return (0, _changeCase.paramCase)(property); | ||
} | ||
@@ -546,3 +548,3 @@ /** | ||
// Only generate from object, e.g. tolerate string value. | ||
if (!(0, _lodash.isPlainObject)(style)) { | ||
if (!(0, _isPlainObj.default)(style)) { | ||
return style; | ||
@@ -549,0 +551,0 @@ } |
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 4.13.0 (2022-08-10) | ||
## 4.12.0 (2022-07-27) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/element", | ||
"version": "4.12.0", | ||
"version": "4.13.0", | ||
"description": "Element React module for WordPress.", | ||
@@ -34,4 +34,5 @@ "author": "The WordPress Contributors", | ||
"@types/react-dom": "^17.0.11", | ||
"@wordpress/escape-html": "^2.14.0", | ||
"lodash": "^4.17.21", | ||
"@wordpress/escape-html": "^2.15.0", | ||
"change-case": "^4.1.2", | ||
"is-plain-obj": "^4.1.0", | ||
"react": "^17.0.2", | ||
@@ -43,3 +44,3 @@ "react-dom": "^17.0.2" | ||
}, | ||
"gitHead": "0315dbc240cb2aa146d7c1bafd251f004b88300e" | ||
"gitHead": "08358f53b627a15148c3a3e433cdf58cf8714aa4" | ||
} |
@@ -31,3 +31,4 @@ /** | ||
*/ | ||
import { kebabCase, isPlainObject } from 'lodash'; | ||
import isPlainObject from 'is-plain-obj'; | ||
import { paramCase as kebabCase } from 'change-case'; | ||
@@ -34,0 +35,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5228
378472
8
+ Addedchange-case@^4.1.2
+ Addedis-plain-obj@^4.1.0
+ Addedcamel-case@4.1.2(transitive)
+ Addedcapital-case@1.0.4(transitive)
+ Addedchange-case@4.1.2(transitive)
+ Addedconstant-case@3.0.4(transitive)
+ Addeddot-case@3.0.4(transitive)
+ Addedheader-case@2.0.4(transitive)
+ Addedis-plain-obj@4.1.0(transitive)
+ Addedlower-case@2.0.2(transitive)
+ Addedno-case@3.0.4(transitive)
+ Addedparam-case@3.0.4(transitive)
+ Addedpascal-case@3.1.2(transitive)
+ Addedpath-case@3.0.4(transitive)
+ Addedsentence-case@3.0.4(transitive)
+ Addedsnake-case@3.0.4(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedupper-case@2.0.2(transitive)
+ Addedupper-case-first@2.0.2(transitive)
- Removedlodash@^4.17.21
- Removedlodash@4.17.21(transitive)