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

react-bindings

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bindings - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

2

lib/binding/types/binding-dependencies.d.ts
import type { ReadonlyBinding } from './readonly-binding';
export declare type BindingArrayDependencies = Array<ReadonlyBinding | undefined> | [ReadonlyBinding];
export declare type NamedBindingDependencies = Record<string, ReadonlyBinding | undefined>;
export declare type BindingDependencies = ReadonlyBinding | BindingArrayDependencies | NamedBindingDependencies;
export declare type BindingDependencies = ReadonlyBinding | BindingArrayDependencies | NamedBindingDependencies | undefined;
//# sourceMappingURL=binding-dependencies.d.ts.map

@@ -20,3 +20,3 @@ /// <reference types="react" />

*/
export declare const BindingsConsumer: <DependenciesT extends BindingDependencies = Record<string, never>>({ children, bindings, areInputValuesEqual, detectInputChanges, makeComparableInputValue, limitMode, limitMSec, limitType, priority, queue }: LimiterOptions & {
export declare const BindingsConsumer: <DependenciesT extends BindingDependencies>({ children, bindings, areInputValuesEqual, detectInputChanges, makeComparableInputValue, limitMode, limitMSec, limitType, priority, queue }: LimiterOptions & {
bindings?: DependenciesT | undefined;

@@ -23,0 +23,0 @@ areInputValuesEqual?: ((a: any, b: any) => boolean) | undefined;

@@ -6,3 +6,3 @@ import { MutableRefObject } from 'react';

/** A component that returns a refresh method that can be used to manually rerender */
export declare const Refreshable: <DependenciesT extends BindingDependencies = Record<string, never>>({ cancelLastPendingRefresh, getDependencies, getDependencyValues, refreshControls, render }: {
export declare const Refreshable: <DependenciesT extends BindingDependencies>({ cancelLastPendingRefresh, getDependencies, getDependencyValues, refreshControls, render }: {
cancelLastPendingRefresh: () => void;

@@ -9,0 +9,0 @@ getDependencies: () => DependenciesT;

import type { BindingDependencies } from '../../../binding/types/binding-dependencies';
import type { LimiterOptions } from '../../../limiter/options';
export declare type BindingsConsumerProps<DependenciesT extends BindingDependencies = Record<string, never>> = LimiterOptions & {
export declare type BindingsConsumerProps<DependenciesT extends BindingDependencies> = LimiterOptions & {
/** Bindings that cause the consumer to rerender. Undefined values are ignored */

@@ -5,0 +5,0 @@ bindings?: DependenciesT;

@@ -10,3 +10,3 @@ import type { ReactNode } from 'react';

*/
export declare type BindingsConsumerRenderCallback<DependenciesT extends BindingDependencies = Record<string, never>> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => ReactNode;
export declare type BindingsConsumerRenderCallback<DependenciesT extends BindingDependencies> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => ReactNode;
//# sourceMappingURL=render-callback.d.ts.map

@@ -13,5 +13,5 @@ import type { BindingDependencies } from '../../binding/types/binding-dependencies';

*/
export declare type UseDerivedBindingTransformer<GetT, DependenciesT extends BindingDependencies = Record<string, never>> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => GetT;
export declare type UseDerivedBindingTransformer<GetT, DependenciesT extends BindingDependencies> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => GetT;
/** A derived binding is a binding derived from zero or more other bindings */
export declare const useDerivedBinding: <GetT, DependenciesT extends BindingDependencies = Record<string, never>>(bindings: DependenciesT | undefined, transformer: UseDerivedBindingTransformer<GetT, DependenciesT>, { id, deps, areInputValuesEqual, detectInputChanges, makeComparableInputValue, areOutputValuesEqual, detectOutputChanges, limitMode, limitMSec, limitType, priority, queue }: DerivedBindingOptions<GetT>) => ReadonlyBinding<GetT>;
export declare const useDerivedBinding: <GetT, DependenciesT extends BindingDependencies>(bindings: DependenciesT | undefined, transformer: UseDerivedBindingTransformer<GetT, DependenciesT>, { id, deps, areInputValuesEqual, detectInputChanges, makeComparableInputValue, areOutputValuesEqual, detectOutputChanges, limitMode, limitMSec, limitType, priority, queue }: DerivedBindingOptions<GetT>) => ReadonlyBinding<GetT>;
//# sourceMappingURL=use-derived-binding.d.ts.map

@@ -13,5 +13,5 @@ import type { BindingDependencies } from '../binding/types/binding-dependencies';

*/
export declare type UseFlattenedBindingTransformer<GetT, DependenciesT extends BindingDependencies = Record<string, never>> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => ReadonlyBinding<GetT>;
export declare type UseFlattenedBindingTransformer<GetT, DependenciesT extends BindingDependencies> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => ReadonlyBinding<GetT>;
/** Use when a binding contains another binding, to listen to the second-level binding if either the first or second levels change */
export declare const useFlattenedBinding: <GetT, DependenciesT extends BindingDependencies = Record<string, never>>(bindings: DependenciesT | undefined, transformer: UseFlattenedBindingTransformer<GetT, DependenciesT>, { id, deps, areInputValuesEqual, detectInputChanges, makeComparableInputValue, areOutputValuesEqual, detectOutputChanges, limitMode, limitMSec, limitType, priority, queue }: DerivedBindingOptions<GetT>) => ReadonlyBinding<GetT>;
export declare const useFlattenedBinding: <GetT, DependenciesT extends BindingDependencies>(bindings: DependenciesT | undefined, transformer: UseFlattenedBindingTransformer<GetT, DependenciesT>, { id, deps, areInputValuesEqual, detectInputChanges, makeComparableInputValue, areOutputValuesEqual, detectOutputChanges, limitMode, limitMSec, limitType, priority, queue }: DerivedBindingOptions<GetT>) => ReadonlyBinding<GetT>;
//# sourceMappingURL=flattened-binding.d.ts.map

@@ -11,3 +11,3 @@ import type { BindingDependencies } from '../binding/types/binding-dependencies';

*/
export declare type UseBindingEffectCallback<DependenciesT extends BindingDependencies = Record<string, never>> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => void;
export declare type UseBindingEffectCallback<DependenciesT extends BindingDependencies> = (bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => void;
/**

@@ -21,3 +21,3 @@ * Calls the specified callback function any time any of the specified bindings are changed.

*/
export declare const useBindingEffect: <DependenciesT extends BindingDependencies = Record<string, never>>(bindings: DependenciesT | undefined, callback: UseBindingEffectCallback<DependenciesT>, { id, deps, areInputValuesEqual, detectInputChanges, makeComparableInputValue, triggerOnMount, limitMode, limitMSec, limitType, priority, queue }?: UseBindingEffectOptions) => (() => void);
export declare const useBindingEffect: <DependenciesT extends BindingDependencies>(bindings: DependenciesT | undefined, callback: UseBindingEffectCallback<DependenciesT>, { id, deps, areInputValuesEqual, detectInputChanges, makeComparableInputValue, triggerOnMount, limitMode, limitMSec, limitType, priority, queue }?: UseBindingEffectOptions) => (() => void);
//# sourceMappingURL=use-binding-effect.d.ts.map
{
"name": "react-bindings",
"version": "1.6.1",
"version": "1.6.2",
"description": "Data bindings for React",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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