Skip to content

Commit

Permalink
bump to v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Nov 19, 2024
1 parent 413a412 commit e3d9630
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

- v1.2.1
- upgrade deps

- v1.2.0
- [BREAK] change `Store.Locate`/`Trie[T].Locate`/`Trie[T].Query` prototypes
- support url var matching - "/:id/", "/*filepath"
- upgrade deps

- v1.1.3
- security patch
- upgrade deps
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,18 @@ To see the recently changes at [CHANGELOG](https://github.com/hedzr/store/blob/m
> Since v1.1.0, unexported struct ptr (*storeS) removed from `Store` API.
>
> These apis changed to:
>
> - `Clone() (newStore Store)`
> - `Dup() (newStore Store)`
> - `WithPrefix(prefix ...string) (newStore Store)`
> - `WithPrefixReplaced(newPrefix ...string) (newStore Store)`
>
> Since v1.2.0, the prototypes of `Locate`/`Query` are changed.
>
> - an extra `kvpair` will be returned if there is `:ident` in trie path and matched ok.
> - support these url var matching: "/:id/", "/*filepath"
>
> For example, matching `/hello/bob` on a router path pattern `/hello/:name` will get `kvpair = {"name":"bob"}`, and `/search/any/thing/here` on pattern `/search/*keywords` will get `kvpair = {"keywords":"any/thing/here"}`.
## More Features

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@
// - https://github.com/hedzr/store
package store

const Version = "v1.1.3" // Version of libs.store
const Version = "v1.2.1" // Version of libs.store

0 comments on commit e3d9630

Please sign in to comment.