Skip to content

Commit

Permalink
Merge pull request #93 from revelrylabs/release-3.1.2
Browse files Browse the repository at this point in the history
chore: bump version 3.1.2
  • Loading branch information
grossvogel authored Dec 5, 2024
2 parents 07b310f + 6650e17 commit ce20e1f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.1.2]

### Changed
- fix #90 terminal corruption when running inside an iEx session

### Contributors
- @francois-codes for the fix
- @mrdotb and @Valian for contributing to the discussion


## [3.1.1]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule NodeJS.MixProject do
def project do
[
app: :nodejs,
version: "3.1.1",
version: "3.1.2",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down
17 changes: 9 additions & 8 deletions test/nodejs_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -261,17 +261,18 @@ defmodule NodeJS.Test do
test "handles ANSI sequences without corrupting protocol" do
# Test basic ANSI handling - protocol messages should work
assert {:ok, "clean output"} = NodeJS.call({"terminal-test", "outputWithANSI"})

# Test complex ANSI sequences - protocol messages should work
assert {:ok, "complex test passed"} = NodeJS.call({"terminal-test", "complexOutput"})

# Test multiple processes don't interfere with each other
tasks = for _ <- 1..4 do
Task.async(fn ->
NodeJS.call({"terminal-test", "outputWithANSI"})
end)
end

tasks =
for _ <- 1..4 do
Task.async(fn ->
NodeJS.call({"terminal-test", "outputWithANSI"})
end)
end

results = Task.await_many(tasks)
assert Enum.all?(results, &match?({:ok, "clean output"}, &1))
end
Expand Down

0 comments on commit ce20e1f

Please sign in to comment.