From c8d410ed05b7a3bfbc079c545a1976f352d2c240 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 18 Feb 2023 22:47:24 +0100 Subject: [PATCH] search-param-serialization: Reference jsurl2 --- docs/guide/custom-search-param-serialization.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/custom-search-param-serialization.md b/docs/guide/custom-search-param-serialization.md index 0c27a9e2096..e4a89915dd7 100644 --- a/docs/guide/custom-search-param-serialization.md +++ b/docs/guide/custom-search-param-serialization.md @@ -102,9 +102,9 @@ export function encodeToBinary(str: string): string { > [⚠️ Why does this snippet not use atob/btoa?](#safe-binary-encodingdecoding) -## Using JSURL +## Using JSURL2 -[JSURL](https://github.com/Sage/jsurl) is a non-standard library that can both compress URLs while still maintaining readability. This can be done with the following code: +[JSURL2](https://github.com/wmertens/jsurl2) is a non-standard library that can both compress URLs while still maintaining readability. This can be done with the following code: ```tsx import { @@ -112,7 +112,7 @@ import { parseSearchWith, stringifySearchWith, } from '@tanstack/react-router' -import jsurl from 'jsurl' +import jsurl from 'jsurl2' const router = new ReactRouter({ parseSearch: parseSearchWith(jsurl.parse),