diff --git a/CHANGELOG.md b/CHANGELOG.md index f5dfd51..6b9b2c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,17 @@ All notable changes to `route-usage` will be documented in this file +## 0.4 +**07 Dec 2019** | [git diff 0.3..0.4](https://github.com/julienbourdeau/route-usage/compare/0.3..0.4) + +* Support other databases - PR [#5](https://github.com/julienbourdeau/route-usage/pull/5) + + Instead of a raw MySQL query, the package is now using Eloquent + to save the route usage entries. This brings support to other databases, + so tests are now running using SQLite. + ## 0.3 -**29 Oct 2019** | [git diff 0.2..0.3](https://github.com/julienbourdeau/route-usage/compare/0.3..0.3) +**29 Oct 2019** | [git diff 0.2..0.3](https://github.com/julienbourdeau/route-usage/compare/0.2..0.3) * Hide HTML page behind Gate - PR [#13](https://github.com/julienbourdeau/route-usage/pull/13) diff --git a/README.md b/README.md index 7c6cd42..7ddc79a 100644 --- a/README.md +++ b/README.md @@ -67,11 +67,22 @@ The value must be a valid regex or anything falsy. * I only logs request with a 2xx or 3xx HTTP response. I don't think the rest makes sense. Your opinion is welcome! * In the very first version, I was incrementing a `count` attribute. I removed it because I think it gives a wrong information. If it was used a lot because but last access was a year ago, it gives a false sense of importance to this unused route. -## Todo +## Road to 1.0 release -- [ ] Add option to put page behind middleware (like `dev` in Laravel Spark) -- [ ] Add support for Redis to log `updated_at` +**Less SQL queries** +I'll like to reduce the number of SQL queries performed. Typically, if a route +is called, we don't need to log usage for the next 5 minutes. I'm thinking we could +use some cache or split the data: attributes in mysql but last used date in Redis. + +💡 Feel free to open an issue to discuss your ideas. + +**More package to ignore** + +Today, we ignore routes from Nova or Debugbar because there is nothing you can +do about these routes. I'd like to support more packages out of the box. + +📦 What package would you like to see added? ## About