From 6d21323a00248f0a9dfa831b5110b1ee591ef39c Mon Sep 17 00:00:00 2001 From: cabol Date: Sat, 20 Feb 2021 19:35:29 +0100 Subject: [PATCH] Release v2.0.0 :rocket: --- .github/workflows/ci.yml | 3 +- CHANGELOG.md | 73 +++++++++++++++++++++++++++--------- README.md | 2 +- lib/nebulex_redis_adapter.ex | 4 +- mix.exs | 9 ++--- mix.lock | 5 ++- 6 files changed, 67 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e48db3f..1a137fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,8 @@ jobs: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} restore-keys: | - ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build- + ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-${{ + hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - name: Install Dependencies run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bb3d41..05e3db0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,24 +1,49 @@ # Changelog +## [v2.0.0](https://github.com/cabol/nebulex_redis_adapter/tree/v2.0.0) (2021-02-20) + +[Full Changelog](https://github.com/cabol/nebulex_redis_adapter/compare/v2.0.0-rc.1...v2.0.0) + +**Added features:** + +- Added support for Nebulex v2.0.0 + +**Closed issues:** + +- Nebulex v2.0.0 support + [#25](https://github.com/cabol/nebulex_redis_adapter/issues/25) + ## [v2.0.0-rc.1](https://github.com/cabol/nebulex_redis_adapter/tree/v2.0.0-rc.1) (2020-11-29) [Full Changelog](https://github.com/cabol/nebulex_redis_adapter/compare/v1.1.1...v2.0.0-rc.1) +**Implemented enhancements:** + +- Allow storing raw strings, not the whole `Nebulex.Object.t()` + [#15](https://github.com/cabol/nebulex_redis_adapter/issues/15) + **Closed issues:** -- Compatiblity with nebulex v2.0.0 [#21](https://github.com/cabol/nebulex_redis_adapter/issues/21) -- Update redix dependency version to `~> 0.11` [#19](https://github.com/cabol/nebulex_redis_adapter/issues/19) -- Change redis address is invalid [#14](https://github.com/cabol/nebulex_redis_adapter/issues/14) +- Compatiblity with nebulex v2.0.0-rc.0? + [#21](https://github.com/cabol/nebulex_redis_adapter/issues/21) +- Update redix dependency version to ~> 0.11 + [#19](https://github.com/cabol/nebulex_redis_adapter/issues/19) +- change redis address is invalid + [#14](https://github.com/cabol/nebulex_redis_adapter/issues/14) **Merged pull requests:** -- Overall fixes and enhancements [#24](https://github.com/cabol/nebulex_redis_adapter/pull/24) +- Overall fixes and enhancements + [#24](https://github.com/cabol/nebulex_redis_adapter/pull/24) ([cabol](https://github.com/cabol)) -- Migrate to Nebulex v2 [#23](https://github.com/cabol/nebulex_redis_adapter/pull/23) +- Migrate to Nebulex v2 + [#23](https://github.com/cabol/nebulex_redis_adapter/pull/23) ([cabol](https://github.com/cabol)) -- Fix a small typo in readme [#22](https://github.com/cabol/nebulex_redis_adapter/pull/22) +- Fix a small typo in readme + [#22](https://github.com/cabol/nebulex_redis_adapter/pull/22) ([manusajith](https://github.com/manusajith)) -- [#19] redix `~> 0.11` [#20](https://github.com/cabol/nebulex_redis_adapter/pull/20) +- #19 redix ~> 0.11 + [#20](https://github.com/cabol/nebulex_redis_adapter/pull/20) ([diogommartins](https://github.com/diogommartins)) ## [v1.1.1](https://github.com/cabol/nebulex_redis_adapter/tree/v1.1.1) (2020-01-25) @@ -27,17 +52,22 @@ **Closed issues:** -- `jchash.start` undefined function [#13](https://github.com/cabol/nebulex_redis_adapter/issues/13) -- Can you release? [#12](https://github.com/cabol/nebulex_redis_adapter/issues/12) +- jchash.start undefined function + [#13](https://github.com/cabol/nebulex_redis_adapter/issues/13) +- Can you release? + [#12](https://github.com/cabol/nebulex_redis_adapter/issues/12) **Merged pull requests:** -- Compression of data in Redis [#18](https://github.com/cabol/nebulex_redis_adapter/pull/18) +- Compression of data in Redis + [#18](https://github.com/cabol/nebulex_redis_adapter/pull/18) ([vovayartsev](https://github.com/vovayartsev)) -- Replaced the redis FLUSHALL command by FLUSHDB [#17](https://github.com/cabol/nebulex_redis_adapter/pull/17) +- Replaced the redis FLUSHALL command by FLUSHDB + [#17](https://github.com/cabol/nebulex_redis_adapter/pull/17) ([Atlas42](https://github.com/Atlas42)) - [#15] Allow storing raw strings, not the whole `Nebulex.Object.t()` - [#16](https://github.com/cabol/nebulex_redis_adapter/pull/16) ([cabol](https://github.com/cabol)) + [#16](https://github.com/cabol/nebulex_redis_adapter/pull/16) + ([cabol](https://github.com/cabol)) ## [v1.1.0](https://github.com/cabol/nebulex_redis_adapter/tree/v1.1.0) (2019-05-11) @@ -45,15 +75,19 @@ **Implemented enhancements:** -- Default cluster support [#10](https://github.com/cabol/nebulex_redis_adapter/issues/10) +- Default cluster support + [#10](https://github.com/cabol/nebulex_redis_adapter/issues/10) **Closed issues:** -- Redis Clustering on Redis 4+ without Sentinel [#8](https://github.com/cabol/nebulex_redis_adapter/issues/8) +- Redis Clustering on Redis 4+ without Sentinel + [#8](https://github.com/cabol/nebulex_redis_adapter/issues/8) **Merged pull requests:** -- Cluster Support [#11](https://github.com/cabol/nebulex_redis_adapter/pull/11) ([cabol](https://github.com/cabol)) +- Cluster Support + [#11](https://github.com/cabol/nebulex_redis_adapter/pull/11) + ([cabol](https://github.com/cabol)) ## [v1.0.0](https://github.com/cabol/nebulex_redis_adapter/tree/v1.0.0) (2018-12-12) @@ -61,9 +95,12 @@ **Implemented enhancements:** -- Add TravisCI support [#7](https://github.com/cabol/nebulex_redis_adapter/issues/7) -- Implement `Nebulex.Adapter.Transaction` interface [#2](https://github.com/cabol/nebulex_redis_adapter/issues/2) -- Implement `Nebulex.Adapter.Queryable` behaviour [#1](https://github.com/cabol/nebulex_redis_adapter/issues/1) +- Add TravisCI support + [#7](https://github.com/cabol/nebulex_redis_adapter/issues/7) +- Implement `Nebulex.Adapter.Transaction` interface + [#2](https://github.com/cabol/nebulex_redis_adapter/issues/2) +- Implement `Nebulex.Adapter.Queryable` behaviour + [#1](https://github.com/cabol/nebulex_redis_adapter/issues/1) diff --git a/README.md b/README.md index 532cc99..f39ffcf 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add `nebulex_redis_adapter` to your list of dependencies in `mix.exs`: ```elixir defp deps do [ - {:nebulex_redis_adapter, "~> 2.0.0-rc.1"}, + {:nebulex_redis_adapter, "~> 2.0.0"}, {:crc, "~> 0.10"}, #=> Needed when using Redis Cluster {:jchash, "~> 0.1.2"} #=> Needed when using consistent-hashing ] diff --git a/lib/nebulex_redis_adapter.ex b/lib/nebulex_redis_adapter.ex index ef04b14..79dc03e 100644 --- a/lib/nebulex_redis_adapter.ex +++ b/lib/nebulex_redis_adapter.ex @@ -244,7 +244,7 @@ defmodule NebulexRedisAdapter do Therefore, the adapter injects two additional/extended functions to the defined cache: `command!/3` and `pipeline!/3`. - ### `command!(key \\ nil, name \\ __MODULE__, command) + ### `command!(key \\ nil, name \\ __MODULE__, command)` iex> MyCache.command!("mylist", ["LPUSH", "mylist", "world"]) 1 @@ -253,7 +253,7 @@ defmodule NebulexRedisAdapter do iex> MyCache.command!("mylist", ["LRANGE", "mylist", "0", "-1"]) ["hello", "world"] - ### `pipeline!(key \\ nil, name \\ __MODULE__, commands) + ### `pipeline!(key \\ nil, name \\ __MODULE__, commands)` iex> cache.pipeline!("mylist", [ ...> ["LPUSH", "mylist", "world"], diff --git a/mix.exs b/mix.exs index 4a00d21..299836b 100644 --- a/mix.exs +++ b/mix.exs @@ -2,8 +2,8 @@ defmodule NebulexRedisAdapter.MixProject do use Mix.Project @source_url "https://github.com/cabol/nebulex_redis_adapter" - @version "2.0.0-rc.2" - @nbx_vsn "2.0.0-rc.2" + @version "2.0.0" + @nbx_vsn "2.0.0" def project do [ @@ -69,8 +69,7 @@ defmodule NebulexRedisAdapter.MixProject do if path = System.get_env("NEBULEX_PATH") do {:nebulex, "~> #{@nbx_vsn}", path: path} else - # {:nebulex, "~> #{@nbx_vsn}"} - {:nebulex, github: "cabol/nebulex"} + {:nebulex, "~> #{@nbx_vsn}"} end end @@ -78,7 +77,7 @@ defmodule NebulexRedisAdapter.MixProject do [ "nbx.setup": [ "cmd rm -rf nebulex", - "cmd git clone --depth 1 --branch master https://github.com/cabol/nebulex" + "cmd git clone --depth 1 --branch v2.0.0 https://github.com/cabol/nebulex" ], check: [ "compile --warnings-as-errors", diff --git a/mix.lock b/mix.lock index daea67a..480e9fb 100644 --- a/mix.lock +++ b/mix.lock @@ -7,12 +7,12 @@ "crc": {:hex, :crc, "0.10.1", "87a0478e5a930926f1062397c9eb32d981f6b3abbc352d6d6fecf45a1725b249", [:mix, :rebar3], [{:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "ed3a9a673d4726fd12d6f58811f014e33cb3926b28f9639b12456ccb241d0f9b"}, "credo": {:hex, :credo, "1.5.5", "e8f422026f553bc3bebb81c8e8bf1932f498ca03339856c7fec63d3faac8424b", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "dd8623ab7091956a855dc9f3062486add9c52d310dfd62748779c4315d8247de"}, "deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"}, - "dialyxir": {:hex, :dialyxir, "1.0.0", "6a1fa629f7881a9f5aaf3a78f094b2a51a0357c843871b8bc98824e7342d00a5", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "aeb06588145fac14ca08d8061a142d52753dbc2cf7f0d00fc1013f53f8654654"}, + "dialyxir": {:hex, :dialyxir, "1.1.0", "c5aab0d6e71e5522e77beff7ba9e08f8e02bad90dfbeffae60eaf0cb47e29488", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "07ea8e49c45f15264ebe6d5b93799d4dd56a44036cf42d0ad9c960bc266c0b9a"}, "earmark_parser": {:hex, :earmark_parser, "1.4.12", "b245e875ec0a311a342320da0551da407d9d2b65d98f7a9597ae078615af3449", [:mix], [], "hexpm", "711e2cc4d64abb7d566d43f54b78f7dc129308a63bc103fbd88550d2174b3160"}, "elixir_make": {:hex, :elixir_make, "0.6.2", "7dffacd77dec4c37b39af867cedaabb0b59f6a871f89722c25b28fcd4bd70530", [:mix], [], "hexpm", "03e49eadda22526a7e5279d53321d1cced6552f344ba4e03e619063de75348d9"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, "ex_doc": {:hex, :ex_doc, "0.23.0", "a069bc9b0bf8efe323ecde8c0d62afc13d308b1fa3d228b65bca5cf8703a529d", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm", "f5e2c4702468b2fd11b10d39416ddadd2fcdd173ba2a0285ebd92c39827a5a16"}, - "excoveralls": {:hex, :excoveralls, "0.13.4", "7b0baee01fe150ef81153e6ffc0fc68214737f54570dc257b3ca4da8e419b812", [:mix], [{:hackney, "~> 1.16", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "faae00b3eee35cdf0342c10b669a7c91f942728217d2a7c7f644b24d391e6190"}, + "excoveralls": {:hex, :excoveralls, "0.14.0", "4b562d2acd87def01a3d1621e40037fdbf99f495ed3a8570dfcf1ab24e15f76d", [:mix], [{:hackney, "~> 1.16", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "94f17478b0cca020bcd85ce7eafea82d2856f7ed022be777734a2f864d36091a"}, "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, "hackney": {:hex, :hackney, "1.17.0", "717ea195fd2f898d9fe9f1ce0afcc2621a41ecfe137fae57e7fe6e9484b9aa99", [:rebar3], [{:certifi, "~>2.5", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~>6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~>1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~>1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "64c22225f1ea8855f584720c0e5b3cd14095703af1c9fbc845ba042811dc671c"}, "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, @@ -22,6 +22,7 @@ "makeup_elixir": {:hex, :makeup_elixir, "0.15.1", "b5888c880d17d1cc3e598f05cdb5b5a91b7b17ac4eaf5f297cb697663a1094dd", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.1", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "db68c173234b07ab2a07f645a5acdc117b9f99d69ebf521821d89690ae6c6ec8"}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, "mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm", "f278585650aa581986264638ebf698f8bb19df297f66ad91b18910dfc6e19323"}, + "nebulex": {:hex, :nebulex, "2.0.0", "d33dc5a2b96ba09e5eb1c90e53dd1d036b0c006f1bb379bcc5c10acd0b140d6d", [:mix], [{:decorator, "~> 1.3", [hex: :decorator, repo: "hexpm", optional: true]}, {:shards, "~> 1.0", [hex: :shards, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "411c707e455408ae79ae7bfe7ada125967d016b83ff2a4e9763fd7cc2dd9372d"}, "nimble_parsec": {:hex, :nimble_parsec, "1.1.0", "3a6fca1550363552e54c216debb6a9e95bd8d32348938e13de5eda962c0d7f89", [:mix], [], "hexpm", "08eb32d66b706e913ff748f11694b17981c0b04a33ef470e33e11b3d3ac8f54b"}, "parse_trans": {:hex, :parse_trans, "3.3.1", "16328ab840cc09919bd10dab29e431da3af9e9e7e7e6f0089dd5a2d2820011d8", [:rebar3], [], "hexpm", "07cd9577885f56362d414e8c4c4e6bdf10d43a8767abb92d24cbe8b24c54888b"}, "redix": {:hex, :redix, "1.0.0", "4f310341744ffceab3031394450a4e603d4d1001a697c3f18ae57ae776cbd3fb", [:mix], [{:castore, "~> 0.1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "8c8d9b33b5491737adcd5bb9e0f43b85212a384ac0042f64c156113518266ecb"},