@bfwk/utils
Advanced tools
Comparing version 0.6.19 to 0.6.20
@@ -6,10 +6,14 @@ # Change Log | ||
## [0.6.19](https://github.com/salesforce/builder-framework/compare/v0.6.18...v0.6.19) (2021-05-13) | ||
## [0.6.20](https://github.com/salesforce/builder-framework/compare/v0.6.19...v0.6.20) (2021-05-24) | ||
**Note:** Version bump only for package @bfwk/utils | ||
### Features | ||
* add support for object types and external types, remove scoped schema @W-9209075 ([#49](https://github.com/salesforce/builder-framework/issues/49)) ([322be93](https://github.com/salesforce/builder-framework/commit/322be9385170c999ff3a02f387902c3a9f6afb85)) | ||
* property editor interface v1 @W-9185960 ([#31](https://github.com/salesforce/builder-framework/issues/31)) ([d22ef45](https://github.com/salesforce/builder-framework/commit/d22ef450c1b12a383e136acdff8eac4b8b4bc570)) | ||
## [0.6.7](https://git.soma.salesforce.com/BuilderFramework/builder-framework/compare/v0.6.6...v0.6.7) (2021-04-05) | ||
@@ -16,0 +20,0 @@ |
@@ -1193,2 +1193,27 @@ import { ValueChangedEvent } from '@lwc/wire-service'; | ||
export { Connection, ConnectionManager, CustomURLSearchParams, ExpressionServiceFactory, MessageChannelConnection, Observable, ObservableCreator, PostMessageConnection, Subscription, WireValueChangeObservers, clone, configureObservers, createWireAdapterFactory, formatLabel, generateAdapterId, generateGuid, inverse, isArray, isEqual, isFunction, isObject, isUndefined, isUndefinedOrNull, isValidNumber, labelComparator, labelFilter, multiComparatorGenerator, nameComparator, scrubURLDomain, shallowCopy, stringPropertyComparator, throttle }; | ||
/** | ||
* Performs a deep merge of `source` into `target`. | ||
* Mutates `target` only but not its objects and arrays. | ||
*/ | ||
function mergeDeep(target, source) { | ||
const isObject = (obj) => obj && typeof obj === 'object'; | ||
if (!isObject(target) || !isObject(source)) { | ||
return source; | ||
} | ||
Object.keys(source).forEach(key => { | ||
const targetValue = target[key]; | ||
const sourceValue = source[key]; | ||
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) { | ||
target[key] = targetValue.concat(sourceValue); | ||
} | ||
else if (isObject(targetValue) && isObject(sourceValue)) { | ||
target[key] = mergeDeep(Object.assign({}, targetValue), sourceValue); | ||
} | ||
else { | ||
target[key] = sourceValue; | ||
} | ||
}); | ||
return target; | ||
} | ||
export { Connection, ConnectionManager, CustomURLSearchParams, ExpressionServiceFactory, MessageChannelConnection, Observable, ObservableCreator, PostMessageConnection, Subscription, WireValueChangeObservers, clone, configureObservers, createWireAdapterFactory, formatLabel, generateAdapterId, generateGuid, inverse, isArray, isEqual, isFunction, isObject, isUndefined, isUndefinedOrNull, isValidNumber, labelComparator, labelFilter, mergeDeep, multiComparatorGenerator, nameComparator, scrubURLDomain, shallowCopy, stringPropertyComparator, throttle }; |
@@ -1684,2 +1684,27 @@ import { ValueChangedEvent } from '@lwc/wire-service'; | ||
export { Connection, ConnectionManager, CustomURLSearchParams, ExpressionServiceFactory, MessageChannelConnection, Observable, ObservableCreator, PostMessageConnection, ReactiveMembrane, Subscription, WireValueChangeObservers, clone, configureObservers, createWireAdapterFactory, formatLabel, generateAdapterId, generateGuid, inverse, isArray, isEqual, isFunction, isObject, isUndefined, isUndefinedOrNull, isValidNumber, labelComparator, labelFilter, multiComparatorGenerator, nameComparator, scrubURLDomain, shallowCopy, stringPropertyComparator, throttle }; | ||
/** | ||
* Performs a deep merge of `source` into `target`. | ||
* Mutates `target` only but not its objects and arrays. | ||
*/ | ||
function mergeDeep(target, source) { | ||
const isObject = (obj) => obj && typeof obj === 'object'; | ||
if (!isObject(target) || !isObject(source)) { | ||
return source; | ||
} | ||
Object.keys(source).forEach(key => { | ||
const targetValue = target[key]; | ||
const sourceValue = source[key]; | ||
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) { | ||
target[key] = targetValue.concat(sourceValue); | ||
} | ||
else if (isObject(targetValue) && isObject(sourceValue)) { | ||
target[key] = mergeDeep(Object.assign({}, targetValue), sourceValue); | ||
} | ||
else { | ||
target[key] = sourceValue; | ||
} | ||
}); | ||
return target; | ||
} | ||
export { Connection, ConnectionManager, CustomURLSearchParams, ExpressionServiceFactory, MessageChannelConnection, Observable, ObservableCreator, PostMessageConnection, ReactiveMembrane, Subscription, WireValueChangeObservers, clone, configureObservers, createWireAdapterFactory, formatLabel, generateAdapterId, generateGuid, inverse, isArray, isEqual, isFunction, isObject, isUndefined, isUndefinedOrNull, isValidNumber, labelComparator, labelFilter, mergeDeep, multiComparatorGenerator, nameComparator, scrubURLDomain, shallowCopy, stringPropertyComparator, throttle }; |
@@ -22,1 +22,2 @@ export { Comparator, stringPropertyComparator, labelComparator, nameComparator, multiComparatorGenerator, } from './sortLib'; | ||
export { inverse } from './inverse'; | ||
export { mergeDeep } from './mergeDeep'; |
{ | ||
"name": "@bfwk/utils", | ||
"version": "0.6.19", | ||
"version": "0.6.20", | ||
"description": "LBF Pub Sub", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
149365
32
3348