@datacamp/waffles-utils
Advanced tools
Comparing version 1.3.3 to 2.0.0
@@ -6,2 +6,24 @@ # Change Log | ||
# [2.0.0](https://github.com/datacamp/design-system/compare/@datacamp/waffles-utils@1.3.3...@datacamp/waffles-utils@2.0.0) (2020-02-27) | ||
### Bug Fixes | ||
* replace ssrSafeFirstChildSelector with ssrSafeNotFirstChildSelector ([cff83d0](https://github.com/datacamp/design-system/commit/cff83d0)) | ||
### BREAKING CHANGES | ||
* The ssrSafeFirstChildSelector actually never worked | ||
correctly. There isn't a fix for this so it has been removed. It has | ||
been replaced by the ssrSafeNotFirstChildSelector which does the | ||
opposite. It will apply if the element is not the first child of its | ||
parent. It can be used in the same situation as the previous | ||
implementation by switching the around the default style and the | ||
override since they now apply to the other set of elements. | ||
## [1.3.3](https://github.com/datacamp/design-system/compare/@datacamp/waffles-utils@1.3.2...@datacamp/waffles-utils@1.3.3) (2020-01-27) | ||
@@ -8,0 +30,0 @@ |
export { default as computeDataAttributes } from './computeDataAttributes'; | ||
export { default as ssrSafeFirstChildSelector } from './ssrSafeFirstChildSelector'; | ||
export { default as isChildType } from './isChildType'; | ||
export { default as isChildType } from './isChildType'; | ||
export { default as ssrSafeNotFirstChildSelector } from './ssrSafeNotFirstChildSelector'; |
@@ -14,12 +14,12 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "ssrSafeFirstChildSelector", { | ||
Object.defineProperty(exports, "isChildType", { | ||
enumerable: true, | ||
get: function get() { | ||
return _ssrSafeFirstChildSelector.default; | ||
return _isChildType.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "isChildType", { | ||
Object.defineProperty(exports, "ssrSafeNotFirstChildSelector", { | ||
enumerable: true, | ||
get: function get() { | ||
return _isChildType.default; | ||
return _ssrSafeNotFirstChildSelector.default; | ||
} | ||
@@ -30,4 +30,4 @@ }); | ||
var _ssrSafeFirstChildSelector = _interopRequireDefault(require("./ssrSafeFirstChildSelector")); | ||
var _isChildType = _interopRequireDefault(require("./isChildType")); | ||
var _isChildType = _interopRequireDefault(require("./isChildType")); | ||
var _ssrSafeNotFirstChildSelector = _interopRequireDefault(require("./ssrSafeNotFirstChildSelector")); |
{ | ||
"name": "@datacamp/waffles-utils", | ||
"version": "1.3.3", | ||
"version": "2.0.0", | ||
"description": "Various collection of things to be shared across waffles packages", | ||
@@ -30,5 +30,5 @@ "author": "Louis Bailey <louis@datacamp.com>", | ||
"@babel/core": "7.7.7", | ||
"@datacamp/waffles-babel-preset": "^1.4.0", | ||
"@datacamp/waffles-tsconfig": "^1.1.7", | ||
"babel-jest": "24.9.0", | ||
"@datacamp/waffles-babel-preset": "^1.4.1", | ||
"@datacamp/waffles-tsconfig": "^1.1.8", | ||
"babel-jest": "25.1.0", | ||
"jest": "24.9.0", | ||
@@ -44,3 +44,3 @@ "react": "16.8.6" | ||
}, | ||
"gitHead": "f481ce7fcdc978e58423c3d474340ddb8f0298ed" | ||
"gitHead": "8c6061e86cc4dcdb12eec09d7fcb92ba9e54cf5b" | ||
} |
import * as utils from '.'; | ||
import computeDataAttributes from './computeDataAttributes'; | ||
import isChildType from './isChildType'; | ||
import ssrSafeFirstChildSelector from './ssrSafeFirstChildSelector'; | ||
import ssrSafeNotFirstChildSelector from './ssrSafeNotFirstChildSelector'; | ||
@@ -11,5 +11,5 @@ describe('waffles-utils', () => { | ||
isChildType, | ||
ssrSafeFirstChildSelector, | ||
ssrSafeNotFirstChildSelector, | ||
}); | ||
}); | ||
}); |
export { default as computeDataAttributes } from './computeDataAttributes'; | ||
export { default as ssrSafeFirstChildSelector } from './ssrSafeFirstChildSelector'; | ||
export { default as isChildType } from './isChildType'; | ||
export { default as ssrSafeNotFirstChildSelector } from './ssrSafeNotFirstChildSelector'; |
export { default as computeDataAttributes } from './computeDataAttributes'; | ||
export { default as ssrSafeFirstChildSelector } from './ssrSafeFirstChildSelector'; | ||
export { default as isChildType } from './isChildType'; | ||
export { default as ssrSafeNotFirstChildSelector } from './ssrSafeNotFirstChildSelector'; |
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
14045
180