Skip to content

Commit

Permalink
Update Sass to 1.43.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumm committed Nov 3, 2021
1 parent b673d27 commit 8f89317
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## v0.3.1

* Update Sass version to `1.43.4`
* Allow `config :dart_sass, :sass_path, path` to configure the path to the Sass snapshot (or executable)
* Allow `config :dart_sass, :dart_path, path` to configure the path to the Dart executable
* Support OTP 24 on Apple M1 architectures (via Rosetta2)
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.39.0"
config :dart_sass, version: "1.43.4"
```

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

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

```elixir
config :dart_sass,
version: "1.39.0",
version: "1.43.4",
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.39.0",
version: "1.43.4",
another: [
args: ["--version"]
]
4 changes: 2 additions & 2 deletions lib/dart_sass.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule DartSass do
directory and environment:
config :dart_sass,
version: "1.39.0",
version: "1.43.4",
default: [
args: ~w(css/app.scss ../priv/static/assets/app.css),
cd: Path.expand("../assets", __DIR__)
Expand Down Expand Up @@ -79,7 +79,7 @@ defmodule DartSass do
@doc false
# Latest known version at the time of publishing.
def latest_version do
"1.39.0"
"1.43.4"
end

@doc """
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.39.0"
@version "1.43.4"

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.36.0")
Application.put_env(:dart_sass, :version, "1.43.3")

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

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

Application.delete_env(:dart_sass, :version)

Expand Down

0 comments on commit 8f89317

Please sign in to comment.