Skip to content

Commit

Permalink
Fix deprecation warnings for Elixir 1.15 (& require Elixir 1.12+) (#94)
Browse files Browse the repository at this point in the history
* Fix deprecation warning

* Require Elixir 1.11+

* Update CHANGELOG.md

* Require 1.12+

Co-authored-by: Nathanaël <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Nathanaël <[email protected]>

---------

Co-authored-by: Nathanaël <[email protected]>
  • Loading branch information
thbar and Shakadak authored Jul 13, 2023
1 parent 60c328d commit 7ce2aac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased]

### Changed

* Logger deprecation warning fixed for Elixir 1.15 (`#94`)
* Now requires Elixir 1.12+ (`#94`)

## [0.7.3] (2022-04-11)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion lib/sweet_xml/options.ex
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ defmodule SweetXml.Options do

{[[_]], _opts} ->
require Logger
_ = Logger.warn("rules opt will be overriden because of the dtd option")
_ = Logger.warning("rules opt will be overriden because of the dtd option")
opts = opts ++ dtd_opts ++ [rules: ets]
{opts, {:cleanup, ets}}
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule SweetXml.Mixfile do
[
app: app(),
version: version(),
elixir: "~> 1.0",
elixir: "~> 1.12",
description: "A sweet wrapper of :xmerl to help query XML docs",
deps: deps(),
docs: docs(),
Expand Down

0 comments on commit 7ce2aac

Please sign in to comment.