@commercetools-uikit/utils
Advanced tools
Comparing version 10.21.0 to 10.39.1
# @commercetools-uikit/utils | ||
## 10.21.0 | ||
## 10.39.1 | ||
### Patch Changes | ||
- [`7897ced`](https://github.com/commercetools/ui-kit/commit/7897cede31440e29ce8afdb2b17fa23462f6f211) [#1642](https://github.com/commercetools/ui-kit/pull/1642) Thanks [@emmenko](https://github.com/emmenko)! - Ensure each package.json of each package has all the necessary fields. | ||
## 10.21.0 | ||
### Patch Changes | ||
- [`f3fb2f0`](https://github.com/commercetools/ui-kit/commit/f3fb2f02f303b8627eece8972c5421e0d17ebb64) [#1360](https://github.com/commercetools/ui-kit/pull/1360) Thanks [@emmenko](https://github.com/emmenko)! - Update utils README in order to trigger a new release of the utils package. Fixes #1359 |
@@ -5,7 +5,10 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var isPropValid = require('@emotion/is-prop-valid'); | ||
var warning = require('warning'); | ||
var isPropValid = _interopDefault(require('@emotion/is-prop-valid')); | ||
var warning = _interopDefault(require('warning')); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var isPropValid__default = /*#__PURE__*/_interopDefaultLegacy(isPropValid); | ||
var warning__default = /*#__PURE__*/_interopDefaultLegacy(warning); | ||
var regexpData = /^data-/; | ||
@@ -33,3 +36,3 @@ function filterDataAttributes(obj) { | ||
return Object.keys(obj).filter(function (prop) { | ||
return isPropValid(prop); | ||
return isPropValid__default['default'](prop); | ||
}).reduce(function (acc, prop) { | ||
@@ -57,3 +60,3 @@ acc[prop] = obj[prop]; | ||
var message = "\"".concat(componentName, "\" has been deprecated and will be removed in the next major version.").concat(additionalMessage); | ||
warning(false, message); | ||
warning__default['default'](false, message); | ||
}); | ||
@@ -63,3 +66,3 @@ | ||
var message = "\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated and will be removed in the next major version.").concat(additionalMessage); | ||
warning(false, message); | ||
warning__default['default'](false, message); | ||
}); | ||
@@ -190,3 +193,3 @@ | ||
var version = '10.21.0'; | ||
var version = '10.39.1'; | ||
@@ -193,0 +196,0 @@ exports.SafeHTMLElement = SafeHTMLElement; |
@@ -180,4 +180,4 @@ import isPropValid from '@emotion/is-prop-valid'; | ||
var version = '10.21.0'; | ||
var version = '10.39.1'; | ||
export { SafeHTMLElement, addStaticFields, createSequentialId, filterAriaAttributes, filterDataAttributes, filterProps as filterInvalidAttributes, getFieldId, getPassThroughProps, isNumberish, parseTime, version, warnDeprecatedComponent, warnDeprecatedProp }; |
{ | ||
"name": "@commercetools-uikit/utils", | ||
"version": "10.21.0", | ||
"description": "A collection of utilities shared across the other packages.", | ||
"main": "dist/utils.cjs.js", | ||
"module": "dist/utils.esm.js", | ||
"version": "10.39.1", | ||
"bugs": "https://github.com/commercetools/ui-kit/issues", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/commercetools/ui-kit.git", | ||
"directory": "packages/utils" | ||
}, | ||
"homepage": "https://uikit.commercetools.com", | ||
"keywords": [ | ||
"javascript", | ||
"design system", | ||
"react", | ||
"uikit" | ||
], | ||
"license": "MIT", | ||
"private": false, | ||
@@ -11,2 +23,6 @@ "publishConfig": { | ||
}, | ||
"sideEffects": false, | ||
"main": "dist/utils.cjs.js", | ||
"module": "dist/utils.esm.js", | ||
"files": ["dist"], | ||
"scripts": { | ||
@@ -17,9 +33,6 @@ "prepare": "../../scripts/version.js replace", | ||
}, | ||
"files": ["dist"], | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@emotion/is-prop-valid": "0.8.8", | ||
"warning": "4.0.3" | ||
}, | ||
"license": "MIT" | ||
} | ||
} |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
15121
329
0
0