Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spark-ui/use-merge-refs

Package Overview
Dependencies
Maintainers
7
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spark-ui/use-merge-refs - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

10

CHANGELOG.md

@@ -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 @@

2

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc