diff --git a/CHANGELOG.md b/CHANGELOG.md index 826ef38..2bb4854 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [4.0.1](https://github.com/asmyshlyaev177/state-in-url/compare/v4.0.0...v4.0.1) (2024-11-02) + + +### Bug Fixes + +* fix JSDoc ([621c436](https://github.com/asmyshlyaev177/state-in-url/commit/621c436eee19c8bd5233a4b7e59cfcaa47ed36e5)) + # [4.0.0](https://github.com/asmyshlyaev177/state-in-url/compare/v3.1.0...v4.0.0) (2024-11-02) diff --git a/dist/react-router/useUrlState/useUrlState.d.ts b/dist/react-router/useUrlState/useUrlState.d.ts index 88a457c..e15a3f5 100644 --- a/dist/react-router/useUrlState/useUrlState.d.ts +++ b/dist/react-router/useUrlState/useUrlState.d.ts @@ -26,11 +26,11 @@ export declare function useUrlState({ defaultState, us /** * * Example: * ```ts - * setUrlState({ name: 'test' }); + * setState({ name: 'test' }); * // or - * setUrlState(curr => ({ ...curr, name: 'test' }) ); + * setState(curr => ({ ...curr, name: 'test' }) ); * // can pass optional React-Router `NavigateOptions` - * setUrlState(curr => ({ ...curr, name: 'test', preventScrollReset: false }) ); + * setState(curr => ({ ...curr, name: 'test', preventScrollReset: false }) ); * ``` * * * Docs {@link https://github.com/asmyshlyaev177/state-in-url/tree/master/packages/urlstate/react-router/useUrlState#updatestate} diff --git a/package.json b/package.json index a40f5f1..334e8ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "state-in-url", - "version": "4.0.0", + "version": "4.0.1", "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.", "homepage": "https://state-in-url.dev", "keywords": [