@spark-ui/use-merge-refs
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -6,2 +6,12 @@ # Change Log | ||
# [0.2.0](https://github.com/adevinta/spark/compare/@spark-ui/use-merge-refs@0.1.0...@spark-ui/use-merge-refs@0.2.0) (2023-03-29) | ||
### Features | ||
- **use-merge-refs:** export extra utilities ([e55bf96](https://github.com/adevinta/spark/commit/e55bf966ebd292ba7b94b6b06bee9bea1932fd9b)) | ||
### BREAKING CHANGES | ||
- **use-merge-refs:** mergeRefs fn and assignRef fn exported | ||
# 0.1.0 (2023-03-29) | ||
@@ -8,0 +18,0 @@ |
@@ -1,1 +0,1 @@ | ||
export { useMergeRefs } from './useMergeRefs'; | ||
export { useMergeRefs, assignRef, mergeRefs } from './useMergeRefs'; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function c(...n){return o=>{n.forEach(r=>function(e,t){if(e!=null)if(typeof e!="function")try{e.current=t}catch{throw console.log("value",e),new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(r,o))}}exports.useMergeRefs=function(...n){return u.useMemo(()=>c(...n),n)}; | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function r(e,t){if(e!=null)if(typeof e!="function")try{e.current=t}catch{throw console.log("value",e),new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}function o(...e){return t=>{e.forEach(n=>r(n,t))}}exports.assignRef=r,exports.mergeRefs=o,exports.useMergeRefs=function(...e){return u.useMemo(()=>o(...e),e)}; |
{ | ||
"name": "@spark-ui/use-merge-refs", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "merge and sync the passed references into a single one", | ||
@@ -19,3 +19,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "244ed8addc680ed7244cf160096deda6d0d2e866" | ||
"gitHead": "36a87ec2adcc8f6ce3fc72f15a6f9e247eb841a8" | ||
} |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
4712
41