New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@leafygreen-ui/hooks

Package Overview
Dependencies
Maintainers
3
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/hooks - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

dist/index.node.js

6

CHANGELOG.md
# @leafygreen-ui/hooks
## 2.0.0
### Major Changes
- 464c09d: Introduces SSR compatibility though a change to our build process and files
## 1.1.0

@@ -4,0 +10,0 @@

2

dist/useElementNode.d.ts

@@ -6,3 +6,3 @@ /**

const Example = () => {
[ refNode, setRefNode ] = useElementNode
[ refNode, setRefNode ] = useElementNode()
return (

@@ -9,0 +9,0 @@ <div ref={setRefNode}>I am a ref</div>

{
"name": "@leafygreen-ui/hooks",
"version": "1.1.0",
"version": "2.0.0",
"description": "LeafyGreen UI Kit Custom Hooks",
"main": "./dist/index.js",
"browser": "./dist/index.web.js",
"main": "./dist/index.node.js",
"types": "./dist/index.d.ts",

@@ -15,2 +16,2 @@ "scripts": {

"gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0"
}
}

@@ -8,3 +8,3 @@ import { useState, useCallback } from 'react';

const Example = () => {
[ refNode, setRefNode ] = useElementNode
[ refNode, setRefNode ] = useElementNode()
return (

@@ -11,0 +11,0 @@ <div ref={setRefNode}>I am a ref</div>

@@ -32,5 +32,5 @@ import { useEffect, useRef } from 'react';

) {
const memoizedEventCallback: React.MutableRefObject<
(e: GlobalEventHandlersEventMap[Type]) => void
> = useRef(() => {});
const memoizedEventCallback: React.MutableRefObject<(
e: GlobalEventHandlersEventMap[Type],
) => void> = useRef(() => {});

@@ -37,0 +37,0 @@ useEffect(() => {

@@ -19,3 +19,3 @@ import { useEffect, useState } from 'react';

callback: MutationHandler<Value>,
enabled: boolean = true,
enabled = true,
): Value | undefined {

@@ -22,0 +22,0 @@ const [value, setValue] = useState<Value>();

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