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

nuqs

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuqs - npm Package Compare versions

Comparing version 2.4.0-beta.6 to 2.4.0

dist/chunk-C3RNEY2H.js

15

dist/_tsup-dts-rollup.d.ts

@@ -144,4 +144,17 @@ import { Context } from 'react';

/**
* Next.js pages router merges dynamic URL params with search params in its
* internal state.
* However, we need to pass just the URL params to the href part of the router
* update functions.
* This function finds the dynamic URL params placeholders in the pathname
* (eg: `/path/[foo]/[bar]`) and extracts the corresponding values from the
* query state object, leaving out any other search params.
*/
export declare function extractDynamicUrlParams(pathname: string, values: Record<string, string | string[] | undefined>): Record<string, string | string[] | undefined>;
export declare const FLUSH_RATE_LIMIT_MS: number;
export declare function getAsPathPathname(asPath: string): string;
export declare function getDefaultThrottle(): 50 | 120 | 320;

@@ -627,4 +640,2 @@

export declare function renderURL(base: string, search: URLSearchParams): string;
declare type Require<T, Keys extends keyof T> = Pick<Required<T>, Keys> & Omit<T, Keys>;

@@ -631,0 +642,0 @@

5

dist/adapters/next.js
'use client';
import { useNuqsNextAppRouterAdapter } from '../chunk-YKPYTZN5.js';
import { useNuqsNextPagesRouterAdapter, isPagesRouter } from '../chunk-PFAMMZIP.js';
import '../chunk-X6EWNOYG.js';
import { useNuqsNextAppRouterAdapter } from '../chunk-C3RNEY2H.js';
import { useNuqsNextPagesRouterAdapter, isPagesRouter } from '../chunk-ZJRAGNYE.js';
import { createAdapterProvider } from '../chunk-5WWTJYGR.js';

@@ -7,0 +6,0 @@

'use client';
import { useNuqsNextAppRouterAdapter } from '../../chunk-YKPYTZN5.js';
import '../../chunk-X6EWNOYG.js';
import { useNuqsNextAppRouterAdapter } from '../../chunk-C3RNEY2H.js';
import { createAdapterProvider } from '../../chunk-5WWTJYGR.js';

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

'use client';
import { useNuqsNextPagesRouterAdapter } from '../../chunk-PFAMMZIP.js';
import '../../chunk-X6EWNOYG.js';
import { useNuqsNextPagesRouterAdapter } from '../../chunk-ZJRAGNYE.js';
import { createAdapterProvider } from '../../chunk-5WWTJYGR.js';

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

{
"name": "nuqs",
"version": "2.4.0-beta.6",
"version": "2.4.0",
"description": "Type-safe search params state manager for React - Like useState, but stored in the URL query string",

@@ -5,0 +5,0 @@ "license": "MIT",

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