Skip to content
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Every host already has its own Roslyn constraints (Unity pins 4.8 because of `Sy
## C# in two lines

```xml
<PackageReference Include="com.IvanMurzak.CodeExec" Version="0.3.1" />
<PackageReference Include="com.IvanMurzak.CodeExec.Roslyn" Version="0.3.1" />
<PackageReference Include="com.IvanMurzak.CodeExec" Version="0.4.0" />
<PackageReference Include="com.IvanMurzak.CodeExec.Roslyn" Version="0.4.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" /> <!-- your choice, 3.8+ -->
```

Expand Down
2 changes: 1 addition & 1 deletion dotnet/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<Deterministic>true</Deterministic>
<Version>0.3.1</Version>
<Version>0.4.0</Version>
<Authors>Ivan Murzak</Authors>
<Copyright>Copyright (c) 2026 Ivan Murzak</Copyright>
<RepositoryUrl>https://github.com/IvanMurzak/Code-Exec</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion python/code_exec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

__all__ = ["run", "run_json", "run_b64", "set_value_converter", "set_default_timeout_ms", "set_max_timeout_ms",
"set_max_recursion_limit", "SnippetTimeout", "SnippetThreadStopped", "SNIPPET_FILE"]
__version__ = "0.3.0"
__version__ = "0.4.0"
4 changes: 2 additions & 2 deletions spec/contract.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Code-Exec contract (v0.3)
# Code-Exec contract (v0.4)

One request/response shape for every runtime (C# and Python) and every host (Unity, Godot, BRUTAL, Unreal, plain
.NET). **This file is normative: a runtime that disagrees with it is the bug.** Behaviour changes start here, then
Expand Down Expand Up @@ -301,7 +301,7 @@ Lengths are in characters: UTF-16 code units in C#, code points in Python. A lim

## Changelog

- **Unreleased** — execution guards (§3.6): C# snippets, full source and includes stop with `Runtime`
- **v0.4.0** — execution guards (§3.6): C# snippets, full source and includes stop with `Runtime`
(`Recursion too deep`) before a stack overflow and with `Timeout` once `timeoutMs` is spent, also in synchronous code
on the main thread; Python stops with `Timeout` through a watchdog (§4). `timeoutMs` applies to both runtimes; `0`
means the host's default (120000), a negative value is `InvalidRequest`. Full-source mode gets the request's `usings`
Expand Down
Loading