Comparing version 2.4.0-beta.6 to 2.4.0
@@ -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 @@ |
'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", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
142806
2979
0
50