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

@shopify/react-async

Package Overview
Dependencies
Maintainers
27
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-async - npm Package Compare versions

Comparing version 5.2.1 to 5.2.2

7

build/ts/component.d.ts

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

import { ReactNode, ComponentType } from 'react';
import { ResolverOptions, DeferTiming } from '@shopify/async';
import { AsyncComponentType } from './types';
import type { ReactNode, ComponentType } from 'react';
import type { ResolverOptions } from '@shopify/async';
import { DeferTiming } from '@shopify/async';
import type { AsyncComponentType } from './types';
interface Options<Props extends object, PreloadOptions extends object = {}, PrefetchOptions extends object = {}, KeepFreshOptions extends object = {}> extends ResolverOptions<ComponentType<Props>> {

@@ -5,0 +6,0 @@ defer?: DeferTiming | ((props: Props) => boolean);

@@ -13,3 +13,3 @@ import type { Resolver } from '@shopify/async';

NoInfer<PreloadOptions>
]>): ReturnType<typeof args[0]['usePreload']>;
]>): ReturnType<(typeof args)[0]['usePreload']>;
export declare function usePrefetch<PrefetchOptions extends object>(...args: IfAllOptionalKeys<PrefetchOptions, [

@@ -21,3 +21,3 @@ Prefetchable<PrefetchOptions>,

NoInfer<PrefetchOptions>
]>): ReturnType<typeof args[0]['usePrefetch']>;
]>): ReturnType<(typeof args)[0]['usePrefetch']>;
export declare function useKeepFresh<KeepFreshOptions extends object>(...args: IfAllOptionalKeys<KeepFreshOptions, [

@@ -29,3 +29,3 @@ KeepFreshable<KeepFreshOptions>,

NoInfer<KeepFreshOptions>
]>): ReturnType<typeof args[0]['useKeepFresh']>;
]>): ReturnType<(typeof args)[0]['useKeepFresh']>;
interface Options {

@@ -32,0 +32,0 @@ immediate?: boolean;

/// <reference types="react" />
import { PrefetchManager } from './context/prefetch';
import type { PrefetchManager } from './context/prefetch';
interface Props {

@@ -4,0 +4,0 @@ manager: PrefetchManager;

import React from 'react';
import { PrefetchManager } from './context/prefetch';
import type { PrefetchManager } from './context/prefetch';
interface Props {

@@ -4,0 +4,0 @@ manager: PrefetchManager;

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

import React, { Context, ComponentType } from 'react';
import { ResolverOptions } from '@shopify/async';
import { AsyncComponentType } from './types';
import type { Context, ComponentType } from 'react';
import React from 'react';
import type { ResolverOptions } from '@shopify/async';
import type { AsyncComponentType } from './types';
interface Options<Value> extends ResolverOptions<Value> {

@@ -5,0 +6,0 @@ }

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

import { ReactElement } from 'react';
import type { ReactElement } from 'react';
import { AsyncAssetManager } from './context/assets';
export declare function getUsedAssets(element: ReactElement<unknown>, ...args: Parameters<AsyncAssetManager['used']>): Promise<import("./context/assets").AssetSelector[]>;
//# sourceMappingURL=testing.d.ts.map
{
"name": "@shopify/react-async",
"version": "5.2.1",
"version": "5.2.2",
"license": "MIT",

@@ -34,9 +34,9 @@ "description": "Tools for creating powerful, asynchronously-loaded React components",

"dependencies": {
"@shopify/async": "^4.0.2",
"@shopify/async": "^4.0.3",
"@shopify/react-effect": "^5.0.3",
"@shopify/react-hooks": "^3.0.3",
"@shopify/react-hydrate": "^3.0.8",
"@shopify/react-idle": "^3.1.1",
"@shopify/react-intersection-observer": "^4.0.3",
"@shopify/useful-types": "^5.1.1"
"@shopify/react-hooks": "^3.0.4",
"@shopify/react-hydrate": "^3.0.9",
"@shopify/react-idle": "^3.1.2",
"@shopify/react-intersection-observer": "^4.0.4",
"@shopify/useful-types": "^5.1.2"
},

@@ -43,0 +43,0 @@ "peerDependencies": {

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