Skip to content

Commit

Permalink
Update Sass version to 1.61.0
Browse files Browse the repository at this point in the history
  • Loading branch information
azizk committed Apr 11, 2023
1 parent 29ab5e7 commit 8d49eda
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v0.6.0 (unreleased)

- Update Sass version to `1.61.0`

## v0.5.1 (2022-08-26)

- Update Sass version to `1.54.5`
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Once installed, change your `config/config.exs` to pick your
dart_sass version of choice:

```elixir
config :dart_sass, version: "1.54.5"
config :dart_sass, version: "1.61.0"
```

Now you can install dart-sass by running:
Expand Down Expand Up @@ -68,7 +68,7 @@ directory, the OS environment, and default arguments to the

```elixir
config :dart_sass,
version: "1.54.5",
version: "1.61.0",
default: [
args: ~w(css/app.scss ../priv/static/assets/app.css),
cd: Path.expand("../assets", __DIR__)
Expand Down Expand Up @@ -100,7 +100,7 @@ compile CSS to the output location `priv/static/assets/app.css`:

```elixir
config :dart_sass,
version: "1.54.5",
version: "1.61.0",
default: [
args: ~w(css/app.scss ../priv/static/assets/app.css),
cd: Path.expand("../assets", __DIR__)
Expand Down
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Config

config :dart_sass,
version: "1.54.5",
version: "1.61.0",
another: [
args: ["--version"]
]
4 changes: 1 addition & 3 deletions lib/dart_sass.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ defmodule DartSass do

@doc false
# Latest known version at the time of publishing.
def latest_version do
"1.54.5"
end
def latest_version, do: "1.61.0"

@doc """
Returns the configured Sass version.
Expand Down
6 changes: 3 additions & 3 deletions test/dart_sass_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule DartSassTest do
use ExUnit.Case, async: true

@version "1.54.5"
@version DartSass.latest_version()

test "run on default" do
assert ExUnit.CaptureIO.capture_io(fn ->
Expand All @@ -16,13 +16,13 @@ defmodule DartSassTest do
end

test "updates on install" do
Application.put_env(:dart_sass, :version, "1.49.11")
Application.put_env(:dart_sass, :version, "1.60.0")

Mix.Task.rerun("sass.install", ["--if-missing"])

assert ExUnit.CaptureIO.capture_io(fn ->
assert DartSass.run(:default, ["--version"]) == 0
end) =~ "1.49.11"
end) =~ "1.60.0"

Application.delete_env(:dart_sass, :version)

Expand Down

0 comments on commit 8d49eda

Please sign in to comment.