Skip to content

Commit a8569c9

Browse files
authored
Merge pull request #42 from tompave/version_updates
Maintenance version updates
2 parents 30120c9 + ea064cd commit a8569c9

File tree

6 files changed

+56
-52
lines changed

6 files changed

+56
-52
lines changed

.credo.exs

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@
8484
#
8585
# {Credo.Check.Design.AliasUsage,
8686
# [priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]},
87-
87+
{Credo.Check.Design.TagFIXME, []},
8888
# You can also customize the exit_status of each check.
8989
# If you don't want TODO comments to cause `mix credo` to fail, just
9090
# set this value to 0 (zero).
9191
#
9292
{Credo.Check.Design.TagTODO, [exit_status: 2]},
93-
{Credo.Check.Design.TagFIXME, []},
9493

9594
#
9695
## Readability Checks
@@ -123,19 +122,19 @@
123122
{Credo.Check.Refactor.Apply, []},
124123
{Credo.Check.Refactor.CondStatements, []},
125124
{Credo.Check.Refactor.CyclomaticComplexity, []},
125+
{Credo.Check.Refactor.FilterCount, []},
126+
{Credo.Check.Refactor.FilterFilter, []},
126127
{Credo.Check.Refactor.FunctionArity, []},
127128
{Credo.Check.Refactor.LongQuoteBlocks, []},
128-
{Credo.Check.Refactor.MatchInCondition, []},
129129
{Credo.Check.Refactor.MapJoin, []},
130+
{Credo.Check.Refactor.MatchInCondition, []},
130131
{Credo.Check.Refactor.NegatedConditionsInUnless, []},
131132
{Credo.Check.Refactor.NegatedConditionsWithElse, []},
132133
{Credo.Check.Refactor.Nesting, [max_nesting: 3]},
134+
{Credo.Check.Refactor.RedundantWithClauseResult, []},
135+
{Credo.Check.Refactor.RejectReject, []},
133136
{Credo.Check.Refactor.UnlessWithElse, []},
134137
{Credo.Check.Refactor.WithClauses, []},
135-
{Credo.Check.Refactor.FilterCount, []},
136-
{Credo.Check.Refactor.FilterFilter, []},
137-
{Credo.Check.Refactor.RejectReject, []},
138-
{Credo.Check.Refactor.RedundantWithClauseResult, []},
139138

140139
#
141140
## Warnings
@@ -151,7 +150,7 @@
151150
{Credo.Check.Warning.OperationWithConstantResult, []},
152151
{Credo.Check.Warning.RaiseInsideRescue, []},
153152
{Credo.Check.Warning.SpecWithStruct, []},
154-
{Credo.Check.Warning.WrongTestFileExtension, []},
153+
{Credo.Check.Warning.UnsafeExec, []},
155154
{Credo.Check.Warning.UnusedEnumOperation, []},
156155
{Credo.Check.Warning.UnusedFileOperation, []},
157156
{Credo.Check.Warning.UnusedKeywordOperation, []},
@@ -160,11 +159,12 @@
160159
{Credo.Check.Warning.UnusedRegexOperation, []},
161160
{Credo.Check.Warning.UnusedStringOperation, []},
162161
{Credo.Check.Warning.UnusedTupleOperation, []},
163-
{Credo.Check.Warning.UnsafeExec, []}
162+
{Credo.Check.Warning.WrongTestFileExtension, []}
164163
],
165164
disabled: [
166165
#
167-
# Checks scheduled for next check update (opt-in for now, just replace `false` with `[]`)
166+
# Checks scheduled for next check update (opt-in for now)
167+
{Credo.Check.Refactor.UtcNowTruncate, []},
168168

169169
#
170170
# Controversial and experimental checks (opt-in, just move the check to `:enabled`
@@ -180,13 +180,13 @@
180180
{Credo.Check.Readability.MultiAlias, []},
181181
{Credo.Check.Readability.NestedFunctionCalls, []},
182182
{Credo.Check.Readability.OneArityFunctionInPipe, []},
183+
{Credo.Check.Readability.OnePipePerLine, []},
183184
{Credo.Check.Readability.SeparateAliasRequire, []},
184185
{Credo.Check.Readability.SingleFunctionToBlockPipe, []},
185186
{Credo.Check.Readability.SinglePipe, []},
186187
{Credo.Check.Readability.Specs, []},
187188
{Credo.Check.Readability.StrictModuleLayout, []},
188189
{Credo.Check.Readability.WithCustomTaggedTuple, []},
189-
{Credo.Check.Readability.OnePipePerLine, []},
190190
{Credo.Check.Refactor.ABCSize, []},
191191
{Credo.Check.Refactor.AppendSingleItem, []},
192192
{Credo.Check.Refactor.DoubleBooleanNegation, []},
@@ -203,13 +203,10 @@
203203
{Credo.Check.Warning.LeakyEnvironment, []},
204204
{Credo.Check.Warning.MapGetUnsafePass, []},
205205
{Credo.Check.Warning.MixEnv, []},
206-
{Credo.Check.Warning.UnsafeToAtom, []},
206+
{Credo.Check.Warning.UnsafeToAtom, []}
207207

208208
# {Credo.Check.Refactor.MapInto, []},
209209

210-
{Credo.Check.Design.AliasUsage, []},
211-
{Credo.Check.Readability.PreferImplicitTry, []},
212-
213210
#
214211
# Custom checks can be created using `mix credo.gen.check`.
215212
#

.github/workflows/quality.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
branches: [master]
88

99
env:
10-
elixir_version: '1.15'
11-
otp_version: '26.0'
10+
elixir_version: '1.17'
11+
otp_version: '27.0'
1212

1313
jobs:
1414
credo:
@@ -20,16 +20,16 @@ jobs:
2020

2121
steps:
2222
- name: Set up Elixir and OTP
23-
uses: erlef/setup-elixir@v1
23+
uses: erlef/setup-beam@v1
2424
with:
2525
elixir-version: ${{ env.elixir_version }}
2626
otp-version: ${{ env.otp_version }}
2727

2828
- name: Checkout code
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030

3131
- name: 'Restore cache for deps/ and _build/ directories'
32-
uses: actions/cache@v3
32+
uses: actions/cache@v4
3333
with:
3434
path: |
3535
deps

.github/workflows/test.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
elixir:
18+
- '1.17'
19+
- '1.16'
1820
- '1.15'
19-
- '1.14'
20-
- '1.13'
2121
otp:
22-
- '26.1'
23-
- '26.0'
22+
- '27.0'
23+
- '26.2'
2424
- '25.3'
2525
- '24.3'
2626
exclude:
27-
- elixir: '1.13'
28-
otp: '26.1'
29-
- elixir: '1.13'
30-
otp: '26.0'
27+
- elixir: '1.17'
28+
otp: '24.3'
29+
- elixir: '1.16'
30+
otp: '27.0'
31+
- elixir: '1.15'
32+
otp: '27.0'
3133

3234
services:
3335
redis:
@@ -37,16 +39,16 @@ jobs:
3739
steps:
3840

3941
- name: Set up Elixir and OTP
40-
uses: erlef/setup-elixir@v1
42+
uses: erlef/setup-beam@v1
4143
with:
4244
elixir-version: ${{ matrix.elixir }}
4345
otp-version: ${{ matrix.otp }}
4446

4547
- name: Checkout code
46-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4749

4850
- name: 'Restore cache for deps/ and _build/ directories'
49-
uses: actions/cache@v3
51+
uses: actions/cache@v4
5052
with:
5153
path: |
5254
deps

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Changelog
22

3+
## v1.1.0 (unreleased)
4+
5+
* Add support for Elixir 1.16 and 1.17. Drop support for Elixir 1.13 and 1.14. Elixir >= 1.15 is now required. Dropping support for older versions of Elixir simply means that this package is no longer tested with them in CI, and that compatibility issues are not considered bugs.
6+
* Require `fun_with_flags ~> 1.12`. This is not strictly required because `v1.11` will also work, but it makes it easier to ensure that both libraries are compatible with the latest Elixir and OTP.
7+
38
## v1.0.0
49

510
No changes, but this package has been stable for so long that it's time to graduate to `v1`. It's possible to just upgrade from `v0.x` to `v1.0` without issues. This also makes it easier to keep the versions of this UI package and of the `fun_with_flags` package in lockstep, when `v2` is released.
611

712
## v0.9.0
813

9-
* Add support for Elixir 1.14, 1.15. Drop support for Elixir 1.11 and 1.12. Elixir >= 1.13 is now required. Dropping support for older versions of Elixir simply means that this package is no longer tested with them in CI, and that compatibility issues are not considered bugs.
14+
* Add support for Elixir 1.14 and 1.15. Drop support for Elixir 1.11 and 1.12. Elixir >= 1.13 is now required. Dropping support for older versions of Elixir simply means that this package is no longer tested with them in CI, and that compatibility issues are not considered bugs.
1015
* Drop support for Erlang/OTP 22 and 23, and Erlang/OTP >= 24 is now required. Dropping support for older versions of Erlang/OTP simply means that this package is not tested with them in CI, and that compatibility issues are not considered bugs.
1116
* Addressed Plug an Logger deprecation warnings. Thank you [Ch4s3](https://github.com/Ch4s3) ([pull/27](https://github.com/tompave/fun_with_flags_ui/pull/27)) and [ryvasquez](https://github.com/ryvasquez) ([pull/31](https://github.com/tompave/fun_with_flags_ui/pull/31)) for bringing it up and addressing them.
1217
* Addressed XSS vulnerability. (Thanks [ryanwinchester](https://github.com/ryanwinchester), [pull/29](https://github.com/tompave/fun_with_flags_ui/pull/29), plus [pull/34](https://github.com/tompave/fun_with_flags_ui/pull/34))

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule FunWithFlagsUi.Mixfile do
88
app: :fun_with_flags_ui,
99
source_url: "https://github.com/tompave/fun_with_flags_ui",
1010
version: @version,
11-
elixir: "~> 1.13",
11+
elixir: "~> 1.15",
1212
elixirc_paths: elixirc_paths(Mix.env),
1313
build_embedded: Mix.env == :prod,
1414
start_permanent: Mix.env == :prod,
@@ -44,7 +44,7 @@ defmodule FunWithFlagsUi.Mixfile do
4444
{:plug, "~> 1.12"},
4545
{:plug_cowboy, ">= 2.0.0", optional: true},
4646
{:cowboy, ">= 2.0.0", optional: true},
47-
{:fun_with_flags, "~> 1.11"},
47+
{:fun_with_flags, "~> 1.12"},
4848
{:redix, "~> 1.0", only: [:dev, :test]},
4949
{:ex_doc, ">= 0.0.0", only: :dev},
5050
{:credo, "~> 1.7", only: :dev, runtime: false},

0 commit comments

Comments
 (0)