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
67
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 1.19.0 to 1.19.1

20

dist/index.js

@@ -228,3 +228,3 @@ import { getDefaultThrottle, error, debug, parseAsString, parseAsInteger, parseAsFloat, parseAsBoolean, parseAsTimestamp, parseAsIsoDateTime, parseAsStringEnum, parseAsJson, parseAsArrayOf, safeParse, renderQueryString } from './chunk-VJE6YUVV.js';

function patchHistory() {
const version = "1.19.0";
const version = "1.19.1";
const patched = history.__nuqs_patched;

@@ -411,2 +411,17 @@ if (patched) {

);
React.useEffect(() => {
if (window.next?.version !== "14.0.3") {
return;
}
const state = parseMap(
keyMap,
initialSearchParams,
queryRef.current,
stateRef.current
);
setInternalState(state);
}, [
Object.keys(keyMap).map((key) => initialSearchParams?.get(key)).join("&"),
keys
]);
React.useInsertionEffect(() => {

@@ -510,2 +525,5 @@ function updateInternalState(state) {

obj[key] = value ?? defaultValue ?? null;
if (cachedQuery) {
cachedQuery[key] = query;
}
return obj;

@@ -512,0 +530,0 @@ }, {});

2

package.json
{
"name": "nuqs",
"version": "1.19.0",
"version": "1.19.1",
"description": "Type-safe search params state manager for Next.js - Like React.useState, but stored in the URL query string",

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

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