Skip to content

Commit

Permalink
Allow new Duration module
Browse files Browse the repository at this point in the history
  • Loading branch information
sabiwara committed May 25, 2024
1 parent 310795c commit 357c79d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

### Enhancements

- `Dune.Allowlist.Default` allows the new `Duration` module
- Add an `:inspect_sort_maps` option for deterministic outputs

## v0.3.6 (2023-12-23)
Expand Down
5 changes: 5 additions & 0 deletions lib/dune/allowlist/default.ex
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ defmodule Dune.Allowlist.Default do
allow Date, :all
allow DateTime, :all
allow NaiveDateTime, :all

if System.version() |> Version.compare("1.17.0-rc.0") != :lt do
allow Duration, :all
end

allow Calendar, except: ~w[put_time_zone_database]a
allow Calendar.ISO, :all
allow Time, :all
Expand Down

0 comments on commit 357c79d

Please sign in to comment.