From c28b78ae1d73ceefc94c66ef60f2e51d5de364b1 Mon Sep 17 00:00:00 2001
From: Jason Pollentier <jason.pollentier@revelry.co>
Date: Wed, 4 Dec 2024 17:34:25 -0700
Subject: [PATCH 1/2] chore: format the new test cases

---
 test/nodejs_test.exs | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/test/nodejs_test.exs b/test/nodejs_test.exs
index 5f5c2e1..928e180 100644
--- a/test/nodejs_test.exs
+++ b/test/nodejs_test.exs
@@ -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

From 6650e17d223b86c7ee66a262b3412586b423fe78 Mon Sep 17 00:00:00 2001
From: Jason Pollentier <jason.pollentier@revelry.co>
Date: Wed, 4 Dec 2024 17:37:17 -0700
Subject: [PATCH 2/2] chore: release version 3.1.2

---
 CHANGELOG.md | 10 ++++++++++
 mix.exs      |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6f7b697..188ee8c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/mix.exs b/mix.exs
index 81f6a25..6a779f2 100644
--- a/mix.exs
+++ b/mix.exs
@@ -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(),