Skip to content

Commit

Permalink
chore(release): 4.0.1 [skip ci]
Browse files Browse the repository at this point in the history
## [4.0.1](v4.0.0...v4.0.1) (2024-11-02)

### Bug Fixes

* fix JSDoc ([621c436](621c436))
  • Loading branch information
semantic-release-bot committed Nov 2, 2024
1 parent 621c436 commit 68edf11
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
6 changes: 3 additions & 3 deletions dist/react-router/useUrlState/useUrlState.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export declare function useUrlState<T extends JSONCompatible>({ 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}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 68edf11

Please sign in to comment.