From a6d4a3f480b2810a8cce3c0118a2aacc6c6c7add Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 26 Feb 2021 18:15:35 +0700 Subject: [PATCH 1/2] Fix TypeScript type for `stringifyUrl()` Fixes #308 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b6d651b..4a115fb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -372,7 +372,7 @@ export interface UrlObject { /** Overrides queries in the `url` property. */ - readonly query: StringifiableRecord; + readonly query?: StringifiableRecord; /** Overrides the fragment identifier in the `url` property. From 0090a3418253eea4b2c437ba034dd445361325b2 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 26 Feb 2021 18:16:40 +0700 Subject: [PATCH 2/2] 6.14.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3b90b26..c75f01a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "query-string", - "version": "6.14.0", + "version": "6.14.1", "description": "Parse and stringify URL query strings", "license": "MIT", "repository": "sindresorhus/query-string",