state-in-url 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -97,7 +97,7 @@ This library is a good alternative for NUQS.
97
97
  - - [`encodeState` and `decodeState` for pure JS usage](#encodestate-and-decodestate-helpers)
98
98
  - - [Low-level `encode` and `decode` functions](#encode-and-decode-helpers)
99
99
  - [Best practices](#best-practices)
100
- - - [Gothas](#gothas)
100
+ - - [Gotchas](#gotchas)
101
101
  - [Other](#other)
102
102
  - - [Roadmap](#roadmap)
103
103
  - - [Contributing](#contribute-andor-run-locally)
@@ -545,7 +545,7 @@ export const useUserState = () => {
545
545
 
546
546
  ```
547
547
 
548
- ## Gothas
548
+ ## Gotchas
549
549
 
550
550
  1. Can pass only serializable values, `Function`, `BigInt` or `Symbol` won't work, probably things like `ArrayBuffer` neither. Everything that can be serialized to JSON will work.
551
551
  2. Vercel servers limit size of headers (query string and other stuff) to **14KB**, so keep your URL state under ~5000 words. <https://vercel.com/docs/errors/URL_TOO_LONG>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "state-in-url",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Easily share complex state objects between unrelated React components, preserve types and structure, with TS validation. Deep links and url state synchronization wthout any hasssle or boilerplate.",
5
5
  "homepage": "https://state-in-url.dev",
6
6
  "keywords": [