Skip to content

Commit ce20e1f

Browse files
authored
Merge pull request #93 from revelrylabs/release-3.1.2
chore: bump version 3.1.2
2 parents 07b310f + 6650e17 commit ce20e1f

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [3.1.2]
9+
10+
### Changed
11+
- fix #90 terminal corruption when running inside an iEx session
12+
13+
### Contributors
14+
- @francois-codes for the fix
15+
- @mrdotb and @Valian for contributing to the discussion
16+
17+
818
## [3.1.1]
919

1020
### Changed

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule NodeJS.MixProject do
44
def project do
55
[
66
app: :nodejs,
7-
version: "3.1.1",
7+
version: "3.1.2",
88
elixir: "~> 1.12",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps(),

test/nodejs_test.exs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,17 +261,18 @@ defmodule NodeJS.Test do
261261
test "handles ANSI sequences without corrupting protocol" do
262262
# Test basic ANSI handling - protocol messages should work
263263
assert {:ok, "clean output"} = NodeJS.call({"terminal-test", "outputWithANSI"})
264-
264+
265265
# Test complex ANSI sequences - protocol messages should work
266266
assert {:ok, "complex test passed"} = NodeJS.call({"terminal-test", "complexOutput"})
267-
267+
268268
# Test multiple processes don't interfere with each other
269-
tasks = for _ <- 1..4 do
270-
Task.async(fn ->
271-
NodeJS.call({"terminal-test", "outputWithANSI"})
272-
end)
273-
end
274-
269+
tasks =
270+
for _ <- 1..4 do
271+
Task.async(fn ->
272+
NodeJS.call({"terminal-test", "outputWithANSI"})
273+
end)
274+
end
275+
275276
results = Task.await_many(tasks)
276277
assert Enum.all?(results, &match?({:ok, "clean output"}, &1))
277278
end

0 commit comments

Comments
 (0)