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

react-waitables

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-waitables - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

1

.eslintrc.js

@@ -37,2 +37,3 @@ module.exports = {

// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',

@@ -39,0 +40,0 @@ '@typescript-eslint/explicit-module-boundary-types': 'off',

2

lib/components/WaitablesConsumer/types/transformers.d.ts
import type { ReactNode } from 'react';
import { InferOptionalWaitableAndBindingValueTypes, InferRequiredWaitableAndBindingValueTypes } from '../../../waitable/types/infer-waitable-and-binding-value-types';
import type { InferOptionalWaitableAndBindingValueTypes, InferRequiredWaitableAndBindingValueTypes } from '../../../waitable/types/infer-waitable-and-binding-value-types';
import type { WaitableDependencies } from '../../../waitable/types/waitable-dependencies';

@@ -4,0 +4,0 @@ /** A transformer that requires all waitable values to be loaded. */

/// <reference types="react" />
import { SingleOrArray } from 'react-bindings';
import type { SingleOrArray } from 'react-bindings';
import type { WaitableDependencies } from '../../waitable/types/waitable-dependencies';

@@ -4,0 +4,0 @@ import type { WaitablesConsumerProps } from './types/props';

@@ -1,4 +0,4 @@

import { RefObject } from 'react';
import type { RefObject } from 'react';
/** Much lighter weight than useMountBinding */
export declare const useIsMountedRef: () => RefObject<boolean>;
//# sourceMappingURL=use-is-mounted-ref.d.ts.map

@@ -1,2 +0,2 @@

import { EmptyObject, SingleOrArray } from 'react-bindings';
import type { EmptyObject, SingleOrArray } from 'react-bindings';
import type { UseWaitableArgs } from '../../use-waitable/types/args';

@@ -3,0 +3,0 @@ import type { Waitable } from '../../waitable/types/waitable';

@@ -1,2 +0,2 @@

import { ReadonlyBinding } from 'react-bindings';
import type { ReadonlyBinding } from 'react-bindings';
export declare const doSpecialLoggingForLockedWaitable: ({ id, lockedUntil, lockedWhile }: {

@@ -3,0 +3,0 @@ id: string;

import type { MutableRefObject } from 'react';
import { Binding, ReadonlyBinding } from 'react-bindings';
import type { Binding, ReadonlyBinding } from 'react-bindings';
import type { UseWaitableOnFailureCallback, UseWaitableOnSuccessCallback } from '../types/args';

@@ -4,0 +4,0 @@ import type { WaitablePrimaryFunction } from '../types/primary-function';

@@ -1,2 +0,2 @@

import { ReadonlyBinding, TypeOrDeferredType } from 'react-bindings';
import type { ReadonlyBinding, TypeOrDeferredType } from 'react-bindings';
import type { WaitResult } from '../../waitable/types/wait';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { EmptyObject } from 'react-bindings';
import type { EmptyObject } from 'react-bindings';
import type { Waitable } from '../waitable/types/waitable';

@@ -3,0 +3,0 @@ import type { UseWaitableArgs } from './types/args';

{
"name": "react-waitables",
"version": "1.6.2",
"version": "1.6.3",
"description": "Async data bindings for React",

@@ -16,4 +16,4 @@ "keywords": [

"types": "lib/index.d.ts",
"repository": "https://github.com/Passfolio/react-waitables.git",
"homepage": "https://passfolio.github.io/react-waitables/",
"repository": "https://github.com/TypeScript-OSS/react-waitables.git",
"homepage": "https://typescript-oss.github.io/react-waitables/",
"license": "MIT",

@@ -39,15 +39,15 @@ "private": false,

"dependencies": {
"client-run-queue": "^2.0.1",
"client-run-queue": "^2.0.2",
"is-promise": "^4.0.0",
"react-bindings": "^1.9.0"
"react-bindings": "^1.9.1"
},
"devDependencies": {
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.4.0",
"@types/react": "18.0.27",
"@types/react-dom": "18.0.10",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"eslint": "8.33.0",
"eslint-config-prettier": "^8.6.0",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.4.4",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"eslint": "8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-import-resolver-typescript": "^3.5.3",

@@ -61,6 +61,6 @@ "eslint-plugin-import": "^2.27.5",

"eslint-plugin-tsdoc": "^0.2.17",
"jest": "29.4.1",
"jest-environment-jsdom": "^29.4.1",
"jest": "29.5.0",
"jest-environment-jsdom": "^29.5.0",
"madge": "6.0.0",
"prettier": "2.8.3",
"prettier": "2.8.4",
"react": "18.2.0",

@@ -70,5 +70,5 @@ "react-dom": "18.2.0",

"ts-jest": "^29.0.5",
"typedoc": "^0.23.24",
"typedoc": "^0.23.26",
"typescript": "4.9.5"
}
}

@@ -184,3 +184,3 @@ # react-waitables

[API Docs](https://passfolio.github.io/react-waitables/)
[API Docs](https://typescript-oss.github.io/react-waitables/)

@@ -191,6 +191,4 @@ ## Thanks

react-waitables is maintained by the team at [Passfolio](https://www.passfolio.com).
Be sure to check out our other [TypeScript OSS](https://github.com/TypeScript-OSS) projects as well.
Be sure to check out our other [Open Source @ Passfolio](https://github.com/Passfolio) projects as well.
<!-- Definitions -->

@@ -197,0 +195,0 @@

@@ -5,9 +5,9 @@ # Security Policy

| Version | Supported |
| ------- | ------------------ |
| 1.0.0 | :white_check_mark: |
| Version | Supported |
| --------- | ------------------ |
| >=1.0.0 | :white_check_mark: |
## Reporting a Vulnerability
Please report vulnerabilities to <security@passfolio.com> - which is private and monitored by our maintainers. We usually respond within 2-3 days, but if you believe your report is "critical", please include the word "critical" in your email subject.
Please report vulnerabilities to <typescript.oss@gmail.com> - which is private and monitored by our maintainers. We usually respond within 2-3 days, but if you believe your report is "critical", please include the word "critical" in your email subject.

@@ -14,0 +14,0 @@ When reporting an issue, where possible, please include:

import type { ReactNode } from 'react';
import {
import type {
InferOptionalWaitableAndBindingValueTypes,

@@ -5,0 +5,0 @@ InferRequiredWaitableAndBindingValueTypes

@@ -1,2 +0,3 @@

import { RefObject, useEffect, useRef } from 'react';
import type { RefObject } from 'react';
import { useEffect, useRef } from 'react';

@@ -3,0 +4,0 @@ /** Much lighter weight than useMountBinding */

@@ -1,2 +0,3 @@

import { isBinding, ReadonlyBinding } from 'react-bindings';
import type { ReadonlyBinding } from 'react-bindings';
import { isBinding } from 'react-bindings';

@@ -3,0 +4,0 @@ import type { InferOptionalWaitableAndBindingValueTypes } from '../waitable/types/infer-waitable-and-binding-value-types';

import { useMemo } from 'react';
import { EmptyObject, isBinding, ReadonlyBinding, SingleOrArray, useCallbackRef, useStableValue } from 'react-bindings';
import type { EmptyObject, ReadonlyBinding, SingleOrArray } from 'react-bindings';
import { isBinding, useCallbackRef, useStableValue } from 'react-bindings';

@@ -4,0 +5,0 @@ import { concatArrays, normalizeAsArray, normalizeAsOptionalArray } from '../../internal-utils/array-like';

/* istanbul ignore file */
import { getLogger, ReadonlyBinding } from 'react-bindings';
import type { ReadonlyBinding } from 'react-bindings';
import { getLogger } from 'react-bindings';

@@ -5,0 +6,0 @@ export const doSpecialLoggingForLockedWaitable = ({

import isPromise from 'is-promise';
import type { MutableRefObject } from 'react';
import { Binding, getLogger, ReadonlyBinding } from 'react-bindings';
import type { Binding, ReadonlyBinding } from 'react-bindings';
import { getLogger } from 'react-bindings';

@@ -5,0 +6,0 @@ import type { UseWaitableOnFailureCallback, UseWaitableOnSuccessCallback } from '../types/args';

@@ -1,2 +0,3 @@

import { ReadonlyBinding, resolveTypeOrDeferredType, TypeOrDeferredType } from 'react-bindings';
import type { ReadonlyBinding, TypeOrDeferredType } from 'react-bindings';
import { resolveTypeOrDeferredType } from 'react-bindings';

@@ -3,0 +4,0 @@ import type { WaitResult } from '../../waitable/types/wait';

import { DEFAULT_PRIORITY } from 'client-run-queue';
import { useMemo, useRef } from 'react';
import {
areEqual,
EmptyObject,
ReadonlyBinding,
useBinding,
useBindingEffect,
useCallbackRef,
useDefaultQueue,
useDerivedBinding,
useLimiter
} from 'react-bindings';
import type { EmptyObject, ReadonlyBinding } from 'react-bindings';
import { areEqual, useBinding, useBindingEffect, useCallbackRef, useDefaultQueue, useDerivedBinding, useLimiter } from 'react-bindings';

@@ -15,0 +6,0 @@ import { isSpecialLoggingEnabledFor } from '../config/logging';

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

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

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