From f2df9705826ed742a0083f4f4ea6c0163e171afe Mon Sep 17 00:00:00 2001 From: Jitendra Adhikari Date: Tue, 13 Apr 2021 12:18:38 +0700 Subject: [PATCH] chore: new version v0.1.0 [skip ci] [ci skip] --- CHANGELOG.md | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++ VERSION | 1 + 2 files changed, 146 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d75b5bd --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,145 @@ +## [v0.1.0](https://github.com/adhocore/urlsh/releases/tag/v0.1.0) (2021-04-13) + +### Features +- **Cmd.urlshc**: Add urlshc command (Jitendra Adhikari) [_7f30ea5_](https://github.com/adhocore/urlsh/commit/7f30ea5) +- **Service.url**: Check url reach (host) if configured (Jitendra Adhikari) [_ca97005_](https://github.com/adhocore/urlsh/commit/ca97005) +- **Request.url**: Append host to input (Jitendra Adhikari) [_79c845c_](https://github.com/adhocore/urlsh/commit/79c845c) +- **Tmpl**: Toggle check on copy from history row (Jitendra Adhikari) [_5833b70_](https://github.com/adhocore/urlsh/commit/5833b70) +- Add /banner route and resource for og:image (Jitendra Adhikari) [_ec7ed9c_](https://github.com/adhocore/urlsh/commit/ec7ed9c) +- **Tmpl**: Add og tags (Jitendra Adhikari) [_f9f4a1d_](https://github.com/adhocore/urlsh/commit/f9f4a1d) +- *****: Add favicon and robots router and template (Jitendra Adhikari) [_72a55fa_](https://github.com/adhocore/urlsh/commit/72a55fa) +- **Tmpl**: Add copy btn in history row, simplify dynamic row (Jitendra Adhikari) [_aa6bfdc_](https://github.com/adhocore/urlsh/commit/aa6bfdc) +- **Tmpl**: Add history table, rename copy button (Jitendra Adhikari) [_e7367cb_](https://github.com/adhocore/urlsh/commit/e7367cb) +- **Controller**: Show UI in homepage (Jitendra Adhikari) [_3d1f396_](https://github.com/adhocore/urlsh/commit/3d1f396) +- **Tmpl**: Add home html template (Jitendra Adhikari) [_0fc94ad_](https://github.com/adhocore/urlsh/commit/0fc94ad) +- **Import.service**: Make cache deactivation async, increment hits to compare threshold (Jitendra Adhikari) [_97fdfe3_](https://github.com/adhocore/urlsh/commit/97fdfe3) +- **Controller**: Make hits increment async (Jitendra Adhikari) [_193af34_](https://github.com/adhocore/urlsh/commit/193af34) +- **Service.url**: Make cache deactivation async (Jitendra Adhikari) [_bd6fb24_](https://github.com/adhocore/urlsh/commit/bd6fb24) +- **Controller**: Add x-cached header for cached data (Jitendra Adhikari) [_eadf345_](https://github.com/adhocore/urlsh/commit/eadf345) +- **Service.client**: Lookup return flag to signify cached value (Jitendra Adhikari) [_ce0ed85_](https://github.com/adhocore/urlsh/commit/ce0ed85) +- **Cache**: Add redis cache with lookup, persist and deactivate feature (Jitendra Adhikari) [_e781d68_](https://github.com/adhocore/urlsh/commit/e781d68) +- **Controller**: Add endpoint to serve short url (Jitendra Adhikari) [_df2d6a9_](https://github.com/adhocore/urlsh/commit/df2d6a9) +- **Service.url**: Add service to lookup origin & inc hits by shortcode (Jitendra Adhikari) [_79ac77a_](https://github.com/adhocore/urlsh/commit/79ac77a) +- **Common**: Add shortcode regex (Jitendra Adhikari) [_040db1d_](https://github.com/adhocore/urlsh/commit/040db1d) +- **Router**: Register short url delete endpoint (Jitendra Adhikari) [_c12f42a_](https://github.com/adhocore/urlsh/commit/c12f42a) +- **Controller**: Add delete endpoint (Jitendra Adhikari) [_79455d4_](https://github.com/adhocore/urlsh/commit/79455d4) +- **Common**: Add no short code error (Jitendra Adhikari) [_31e2f43_](https://github.com/adhocore/urlsh/commit/31e2f43) +- **Service.url**: Add service to delete short url (Jitendra Adhikari) [_24e8d7d_](https://github.com/adhocore/urlsh/commit/24e8d7d) +- **Common**: Add auth token errors (Jitendra Adhikari) [_e7fa252_](https://github.com/adhocore/urlsh/commit/e7fa252) +- **Middleware**: Add auth middleware to validate header token for admin (Jitendra Adhikari) [_11f06d9_](https://github.com/adhocore/urlsh/commit/11f06d9) +- **Router**: Register admin list/search controller (Jitendra Adhikari) [_7ec1ac1_](https://github.com/adhocore/urlsh/commit/7ec1ac1) +- **Controller**: Add admin list/search endpoint controller (Jitendra Adhikari) [_136666e_](https://github.com/adhocore/urlsh/commit/136666e) +- **Common**: Add data not found error (Jitendra Adhikari) [_98c1160_](https://github.com/adhocore/urlsh/commit/98c1160) +- **Service.url**: Add service to list urls by filter for admin (Jitendra Adhikari) [_be7bff1_](https://github.com/adhocore/urlsh/commit/be7bff1) +- **Request**: Add UrlFilter definition with offset getter for search (Jitendra Adhikari) [_70dc8d4_](https://github.com/adhocore/urlsh/commit/70dc8d4) +- **Response.body**: Add Merge helper (Jitendra Adhikari) [_e6f8e12_](https://github.com/adhocore/urlsh/commit/e6f8e12) +- **Controller**: Add client api controller for short url (Jitendra Adhikari) [_b729830_](https://github.com/adhocore/urlsh/commit/b729830) +- **Common**: Add short code length constant (Jitendra Adhikari) [_6c93eae_](https://github.com/adhocore/urlsh/commit/6c93eae) +- **Service**: Add short url creation service (Jitendra Adhikari) [_ba6e13b_](https://github.com/adhocore/urlsh/commit/ba6e13b) +- **Request**: Add short url create request struct with validator (Jitendra Adhikari) [_d291da2_](https://github.com/adhocore/urlsh/commit/d291da2) +- **Common**: Add errors to be used in validation throughout (Jitendra Adhikari) [_dbf74f6_](https://github.com/adhocore/urlsh/commit/dbf74f6) +- **Util**: Add random length helper util (Jitendra Adhikari) [_dbbf1ad_](https://github.com/adhocore/urlsh/commit/dbbf1ad) +- **Orm**: Add postgres connection handler for gorm (Jitendra Adhikari) [_aca8fc1_](https://github.com/adhocore/urlsh/commit/aca8fc1) +- Add DateLayout const, use time.UTC instead of common.UTC (Jitendra Adhikari) [_f8f53a8_](https://github.com/adhocore/urlsh/commit/f8f53a8) +- **Model**: Add url model (Jitendra Adhikari) [_8f0af8a_](https://github.com/adhocore/urlsh/commit/8f0af8a) +- **Model**: Add keyword model (Jitendra Adhikari) [_8462de3_](https://github.com/adhocore/urlsh/commit/8462de3) +- **Controller**: Add not found handler (Jitendra Adhikari) [_e8437d5_](https://github.com/adhocore/urlsh/commit/e8437d5) +- **Router**: Add route registrar with multi endpoints handler (Jitendra Adhikari) [_153a45a_](https://github.com/adhocore/urlsh/commit/153a45a) +- **Main**: Listen and serve request, register default route (Jitendra Adhikari) [_1020674_](https://github.com/adhocore/urlsh/commit/1020674) +- **Controller**: Add frontend controller (Jitendra Adhikari) [_0955f36_](https://github.com/adhocore/urlsh/commit/0955f36) +- **Response**: Add json response writer (Jitendra Adhikari) [_5894f71_](https://github.com/adhocore/urlsh/commit/5894f71) +- Init module (Jitendra Adhikari) [_8e796d3_](https://github.com/adhocore/urlsh/commit/8e796d3) + +### Bug Fixes +- Typo (Jitendra Adhikari) [_4c11604_](https://github.com/adhocore/urlsh/commit/4c11604) +- **Service.url**: Use generic error (Jitendra Adhikari) [_034ae99_](https://github.com/adhocore/urlsh/commit/034ae99) +- **Cache**: Redis uses different env (Jitendra Adhikari) [_6038ced_](https://github.com/adhocore/urlsh/commit/6038ced) +- **Request**: Validate url with regex (Jitendra Adhikari) [_3bc274c_](https://github.com/adhocore/urlsh/commit/3bc274c) +- **Request**: Exclude pattern (Jitendra Adhikari) [_e27a8b8_](https://github.com/adhocore/urlsh/commit/e27a8b8) +- **Tmpl**: Use short href (Jitendra Adhikari) [_d1c067e_](https://github.com/adhocore/urlsh/commit/d1c067e) +- **Request**: Blacklist local urls (Jitendra Adhikari) [_d37cfc5_](https://github.com/adhocore/urlsh/commit/d37cfc5) +- **Tmpl**: Hide copy btn on error (Jitendra Adhikari) [_6e08e41_](https://github.com/adhocore/urlsh/commit/6e08e41) +- **Cache**: User h is not usable (Jitendra Adhikari) [_ef8e844_](https://github.com/adhocore/urlsh/commit/ef8e844) +- **Init-db**: Make executable (Jitendra Adhikari) [_48ca0cf_](https://github.com/adhocore/urlsh/commit/48ca0cf) +- **Main**: Use port dynamically (Jitendra Adhikari) [_5233f98_](https://github.com/adhocore/urlsh/commit/5233f98) +- **Cache.redis**: A;ways populate cached model (Jitendra Adhikari) [_e7f265d_](https://github.com/adhocore/urlsh/commit/e7f265d) +- **Service.url**: Ignore empty short code early (Jitendra Adhikari) [_d6439aa_](https://github.com/adhocore/urlsh/commit/d6439aa) +- **Service.url**: Select deleted field (Jitendra Adhikari) [_998d8c3_](https://github.com/adhocore/urlsh/commit/998d8c3) +- **Service.url**: When checking dupe, exclude deleted (Jitendra Adhikari) [_dc99646_](https://github.com/adhocore/urlsh/commit/dc99646) +- **Middleware**: Use req.URL.Path for portability (Jitendra Adhikari) [_860b16d_](https://github.com/adhocore/urlsh/commit/860b16d) + +### Internal Refactors +- Move tmpl/ to assets/ (Jitendra Adhikari) [_65bc2a0_](https://github.com/adhocore/urlsh/commit/65bc2a0) +- **Service.url**: Make validateURLInput public (Jitendra Adhikari) [_85c9194_](https://github.com/adhocore/urlsh/commit/85c9194) +- Validate url len, keyword char, rephrase url filter error msg (Jitendra Adhikari) [_6bc3661_](https://github.com/adhocore/urlsh/commit/6bc3661) +- *****: Use 2000 as default port (Jitendra Adhikari) [_01f58ab_](https://github.com/adhocore/urlsh/commit/01f58ab) +- **Tmpl**: Add source code url, fix per w3c validator (Jitendra Adhikari) [_2c0a8c6_](https://github.com/adhocore/urlsh/commit/2c0a8c6) +- Use PORT instead of APP_PORT (Jitendra Adhikari) [_5c014f9_](https://github.com/adhocore/urlsh/commit/5c014f9) +- **Orm,cache**: Use DATABASE_URL and REDIS_URL env instead (Jitendra Adhikari) [_8910662_](https://github.com/adhocore/urlsh/commit/8910662) +- *****: Use 301 permanent redirect instead (Jitendra Adhikari) [_2619adc_](https://github.com/adhocore/urlsh/commit/2619adc) +- **Postman**: Move "/" to "/status" (Jitendra Adhikari) [_42f5da3_](https://github.com/adhocore/urlsh/commit/42f5da3) +- **Router**: Move "/" to "/status" (Jitendra Adhikari) [_9ee7a87_](https://github.com/adhocore/urlsh/commit/9ee7a87) +- **Cache.redis**: Use pool instead (Jitendra Adhikari) [_cc24a94_](https://github.com/adhocore/urlsh/commit/cc24a94) +- **Cache**: Support redis user/pass (Jitendra Adhikari) [_0ad1754_](https://github.com/adhocore/urlsh/commit/0ad1754) +- **Controller**: Adapt to changed service layer (with cache) (Jitendra Adhikari) [_c4edc2e_](https://github.com/adhocore/urlsh/commit/c4edc2e) +- **Service.url**: Integrate with cache layer for delete (Jitendra Adhikari) [_df1ad3f_](https://github.com/adhocore/urlsh/commit/df1ad3f) +- **Service.url**: Integrate with cache layer for lookup (Jitendra Adhikari) [_9bdc002_](https://github.com/adhocore/urlsh/commit/9bdc002) +- **Config.env**: Add some hints (Jitendra Adhikari) [_bbe5596_](https://github.com/adhocore/urlsh/commit/bbe5596) +- **Orm**: Use test db for APP_ENV=test (Jitendra Adhikari) [_6fefad1_](https://github.com/adhocore/urlsh/commit/6fefad1) +- **Router**: Refactor to handle ServeShortUrl request (Jitendra Adhikari) [_a6d8a1f_](https://github.com/adhocore/urlsh/commit/a6d8a1f) +- **Main**: Attach mux handler from router (Jitendra Adhikari) [_8fa951b_](https://github.com/adhocore/urlsh/commit/8fa951b) +- **Router**: Use mux instead to make it middleware friendly (Jitendra Adhikari) [_4f44825_](https://github.com/adhocore/urlsh/commit/4f44825) +- **Service.url**: Add doc, always use offset (Jitendra Adhikari) [_22f50e7_](https://github.com/adhocore/urlsh/commit/22f50e7) +- **Controller.client**: Simplify with body.Merge (Jitendra Adhikari) [_8899f07_](https://github.com/adhocore/urlsh/commit/8899f07) +- **Request.url**: Cleanup and simplify GetExpiresOn (Jitendra Adhikari) [_cc24550_](https://github.com/adhocore/urlsh/commit/cc24550) +- **Main**: Switch to router instead (Jitendra Adhikari) [_e314a4a_](https://github.com/adhocore/urlsh/commit/e314a4a) + +### Miscellaneous +- Minor tweak homepage html (Jitendra Adhikari) [_f912681_](https://github.com/adhocore/urlsh/commit/f912681) +- Use short url to source code (Jitendra Adhikari) [_79db201_](https://github.com/adhocore/urlsh/commit/79db201) +- Timeout 1s (Jitendra Adhikari) [_41e9fbf_](https://github.com/adhocore/urlsh/commit/41e9fbf) +- Add check conf (Jitendra Adhikari) [_68bc576_](https://github.com/adhocore/urlsh/commit/68bc576) +- No tag autocomplete (Jitendra Adhikari) [_d94c26c_](https://github.com/adhocore/urlsh/commit/d94c26c) +- Fix typo (Jitendra Adhikari) [_78bf1ff_](https://github.com/adhocore/urlsh/commit/78bf1ff) +- **Tmpl**: Use nbsp (Jitendra Adhikari) [_4e7b2cb_](https://github.com/adhocore/urlsh/commit/4e7b2cb) +- **Config**: Fix db host (Jitendra Adhikari) [_bc4871b_](https://github.com/adhocore/urlsh/commit/bc4871b) +- **Config**: Add DATABASE_URL and REDIS_URL (Jitendra Adhikari) [_bf17b7a_](https://github.com/adhocore/urlsh/commit/bf17b7a) +- **Common**: Normalize error msg (Jitendra Adhikari) [_b7f93e6_](https://github.com/adhocore/urlsh/commit/b7f93e6) +- Cleanup (Jitendra Adhikari) [_c34d86a_](https://github.com/adhocore/urlsh/commit/c34d86a) +- Docker cache (Jitendra Adhikari) [_ec6d9a8_](https://github.com/adhocore/urlsh/commit/ec6d9a8) +- Flush redis before test (Jitendra Adhikari) [_b3a0610_](https://github.com/adhocore/urlsh/commit/b3a0610) +- Add gha test (Jitendra Adhikari) [_75fca1a_](https://github.com/adhocore/urlsh/commit/75fca1a) +- Gh codeowner (Jitendra Adhikari) [_6c23bac_](https://github.com/adhocore/urlsh/commit/6c23bac) +- **Common**: Popular website hits count (Jitendra Adhikari) [_1804fe9_](https://github.com/adhocore/urlsh/commit/1804fe9) +- **Config**: Redis cache host:port (Jitendra Adhikari) [_4cbb672_](https://github.com/adhocore/urlsh/commit/4cbb672) +- **Deps**: Add redigo module (Jitendra Adhikari) [_e37f192_](https://github.com/adhocore/urlsh/commit/e37f192) +- Gha lint (Jitendra Adhikari) [_36e8942_](https://github.com/adhocore/urlsh/commit/36e8942) +- **Config**: Document APP_PORT (Jitendra Adhikari) [_2916f87_](https://github.com/adhocore/urlsh/commit/2916f87) +- **Postman**: Add collection and environment (Jitendra Adhikari) [_f630b8b_](https://github.com/adhocore/urlsh/commit/f630b8b) +- **Config**: Add env example config (Jitendra Adhikari) [_83a3dd6_](https://github.com/adhocore/urlsh/commit/83a3dd6) +- **Git**: Add .env to ignore (Jitendra Adhikari) [_ceab82c_](https://github.com/adhocore/urlsh/commit/ceab82c) +- **Deps**: Add postgres driver and gorm (Jitendra Adhikari) [_544705a_](https://github.com/adhocore/urlsh/commit/544705a) +- **Cs**: Add editorconfig config (Jitendra Adhikari) [_97b5312_](https://github.com/adhocore/urlsh/commit/97b5312) +- Add gitignore (Jitendra Adhikari) [_cc2d8f1_](https://github.com/adhocore/urlsh/commit/cc2d8f1) + +### Documentations +- Add urlshc terminal client (Jitendra Adhikari) [_25c8a31_](https://github.com/adhocore/urlsh/commit/25c8a31) +- Add screenshot (Jitendra Adhikari) [_d682cb4_](https://github.com/adhocore/urlsh/commit/d682cb4) +- Update readme (Jitendra Adhikari) [_b7100c3_](https://github.com/adhocore/urlsh/commit/b7100c3) +- Move "/" to "/status" (Jitendra Adhikari) [_86d1933_](https://github.com/adhocore/urlsh/commit/86d1933) +- About redis cache (Jitendra Adhikari) [_bb8ead9_](https://github.com/adhocore/urlsh/commit/bb8ead9) +- **Cache**: Add method docs (Jitendra Adhikari) [_925bab0_](https://github.com/adhocore/urlsh/commit/925bab0) +- About test env and cov (Jitendra Adhikari) [_696ca9b_](https://github.com/adhocore/urlsh/commit/696ca9b) +- Create url short code param and behavior (Jitendra Adhikari) [_0379809_](https://github.com/adhocore/urlsh/commit/0379809) +- Postman redirect (Jitendra Adhikari) [_26c8efc_](https://github.com/adhocore/urlsh/commit/26c8efc) +- **Readme**: Add installation/setup/testing steps, endpoint docs and postman (Jitendra Adhikari) [_e7fe6c6_](https://github.com/adhocore/urlsh/commit/e7fe6c6) +- *****: Add method docs for all source (Jitendra Adhikari) [_ed3277f_](https://github.com/adhocore/urlsh/commit/ed3277f) +- Init repo (Jitendra Adhikari) [_9c9ad4a_](https://github.com/adhocore/urlsh/commit/9c9ad4a) + +### Builds +- **Docker**: APP_DB_DSN is no longer needed (Jitendra Adhikari) [_249e4f6_](https://github.com/adhocore/urlsh/commit/249e4f6) +- **Docker**: Add redis cache (Jitendra Adhikari) [_744d5eb_](https://github.com/adhocore/urlsh/commit/744d5eb) +- **Docker**: Add docker-compose (Jitendra Adhikari) [_d2b182f_](https://github.com/adhocore/urlsh/commit/d2b182f) +- **Docker**: Add init-test-db (Jitendra Adhikari) [_5832a09_](https://github.com/adhocore/urlsh/commit/5832a09) + + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..b82608c --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +v0.1.0