diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d4910a6..7062a50 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,12 +1,9 @@ -Changelog for release v0.2.6 +Changelog for release v0.2.8 -Update to use decimal.Decimal rather than int to support cheaper items -on Cex which have decimal prices. +Update to show distance to stores when a postcode is supplied. -* go: update modules -* web: update int pricing to use decimal.Decimal -* console: update int pricing to use decimal.Decimal -* cli: update int pricing to use decimal.Decimal -* query: bubble up json unmarshall errors properly -* cex: change int pricing to decimal.Decimal, update tests accordingly -* testdata: add example data json file with decimal results +* Store locations are cached in a goroutine safe manner. +* Store postcode lookups are cached in a goroutine safe manner. + +The clients have been altered to show distances to stores where +appropriate, and new gifs generated! diff --git a/README.md b/README.md index ac81f60..edb548c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ # cexfind -v0.2.7 : 19 January 2025 : add model to searchables +v0.2.8 : 22 January 2025 : add store distances + +If you supply a postcode, cexfind will show the distance to stores from +that location. The store locations are updated daily in local cache, +so should be pretty fast to lookup. + +The lookup for the supplied postcode uses +[api.postcodes.io](https://api.postcodes.io/). Let's see how that goes. ## Find kit on Cex, fast @@ -25,6 +32,17 @@ build for your local machine using `make build-all` if you have go (>= ## Clients +**web server** + +A simple htmx webserver client. + +Run `./bin/webserver` or the windows alternative to run the server +locally on the default local ip address of `127.0.0.1` and port `8000`. +Use the command line switches to change these options. (Use `-h` to see +the switches.) + + + Three clients are provided for the very simple `cexfind` golang module: **console** @@ -44,16 +62,6 @@ Run `./bin/cli -h` or the windows alternative to see the switch options. -**web server** - -A simple htmx webserver client. - -Run `./bin/webserver` or the windows alternative to run the server -locally on the default local ip address of `127.0.0.1` and port `8000`. -Use the command line switches to change these options. (Use `-h` to see -the switches.) - - ## Licence