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

@react-stately/slider

Package Overview
Dependencies
Maintainers
2
Versions
874
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-stately/slider - npm Package Compare versions

Comparing version 3.0.0-nightly-a98da553e-241116 to 3.0.0-nightly-ab9fd5c68-241122

12

package.json
{
"name": "@react-stately/slider",
"version": "3.0.0-nightly-a98da553e-241116",
"version": "3.0.0-nightly-ab9fd5c68-241122",
"description": "Spectrum UI components in React",

@@ -25,9 +25,9 @@ "license": "Apache-2.0",

"dependencies": {
"@react-stately/utils": "^3.0.0-nightly-a98da553e-241116",
"@react-types/shared": "^3.0.0-nightly-a98da553e-241116",
"@react-types/slider": "^3.0.0-nightly-a98da553e-241116",
"@react-stately/utils": "^3.0.0-nightly-ab9fd5c68-241122",
"@react-types/shared": "^3.0.0-nightly-ab9fd5c68-241122",
"@react-types/slider": "^3.0.0-nightly-ab9fd5c68-241122",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},

@@ -37,3 +37,3 @@ "publishConfig": {

},
"stableVersion": "3.5.8"
"stableVersion": "3.6.0"
}

@@ -179,3 +179,3 @@ /*

let restrictValues = useCallback((values: number[]) => values?.map((val, idx) => {
let restrictValues = useCallback((values: number[] | undefined) => values?.map((val, idx) => {
let min = idx === 0 ? minValue : values[idx - 1];

@@ -187,3 +187,3 @@ let max = idx === values.length - 1 ? maxValue : values[idx + 1];

let value = useMemo(() => restrictValues(convertValue(props.value)), [props.value]);
let defaultValue = useMemo(() => restrictValues(convertValue(props.defaultValue) ?? [minValue]), [props.defaultValue, minValue]);
let defaultValue = useMemo(() => restrictValues(convertValue(props.defaultValue) ?? [minValue])!, [props.defaultValue, minValue]);
let onChange = createOnChange(props.value, props.defaultValue, props.onChange);

@@ -326,3 +326,3 @@ let onChangeEnd = createOnChange(props.value, props.defaultValue, props.onChangeEnd);

function convertValue(value: number | number[]) {
function convertValue(value?: number | number[]) {
if (value == null) {

@@ -329,0 +329,0 @@ return undefined;

Sorry, the diff of this file is not supported yet

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