Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump version 3.1.2 #93

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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