unstale

pypi / pydantic-monty

pydantic-monty

What changed in pydantic-monty 0.0 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

34 breaking7 security129 new APIs and options13 performance34 behavior and defaults6 tooling96 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

pydantic-monty 1135 changes

Breaking changes 16

  • Protocol roles are renamed from parent/child to client/worker.

    1.6.0release notes

  • Rust 1.98 is required so macOS 27 builds load.

    1.6.0release notes

  • Container repr raises MemoryError instead of truncating.

    1.5.0release notes

  • Date arithmetic outside the supported range raises OverflowError.

    1.5.0release notes

  • The sandbox fails empty paths instead of resolving them to the current working directory.

    1.5.0release notes

  • Removing the filesystem root is refused.

    1.5.0release notes

  • A result that cannot be converted to Python raises MontyRuntimeError.

    1.5.0release notes

  • Directory creation counts against a mount's write-bytes limit.

    1.5.0release notes

  • Rejects renaming a directory into one of its descendants.

    1.4.0release notes

  • re.split() results now include capture groups.

    1.2.0release notes

  • Rejects a script path that collides with the type stubs file.

    1.1.0release notes

  • With ag-ui-protocol >= 1.0, converts binary input parts to image, audio, video, or document content; parts missing a MIME type or payload still raise.

    1.0.0docs

  • Dumps switch from postcard to CBOR.

    1.0.0release notes

  • AutoOsCalls is renamed to OsPolicy.

    1.0.0release notes

  • Session max_duration is replaced with feed and turn limits.

    1.0.0release notes

  • Wire types are restricted to a whitelist; other values use a proxy.

    1.0.0release notes

Security 3

  • Remote server certificates are verified with the operating system's trust store.

    1.5.0release notes

  • Rejects a file replacing a directory, regardless of operation order.

    1.4.0release notes

  • Resource limit checks were added for binascii and base64 operations.

    1.2.0release notes

New APIs and options 50

Performance 7

  • Repeating an empty list or deque returns at once.

    1.6.0release notes

  • Binary arithmetic adds numeric fast paths.

    1.6.0release notes

  • Sorting uses a port of CPython's timsort.

    1.5.0release notes

  • Reduces allocations when formatting floats with f-strings and %.

    1.4.0release notes

  • Makes len and indexing O(1) on ASCII heap strings.

    1.4.0release notes

  • F-string concatenation now optimizes buffer preallocation and refcount churn.

    1.2.0release notes

  • Sequence unpacking was optimized to use direct unpacking.

    1.2.0release notes

Behavior and default changes 16

  • Async host calls start without waiting for the host.

    1.6.0release notes

  • The first request behind Configure is sent without waiting for its reply.

    1.6.0release notes

  • File-import search is capped at 32 __path__ directories.

    1.5.0release notes

  • Enclosing bindings are collected from function defaults.

    1.5.0release notes

  • A function's repr no longer puts quotes around its name.

    1.5.0release notes

  • The pool refills to min_processes in the background.

    1.5.0release notes

  • Pool workers are recycled after 1000 checkouts by default.

    1.5.0release notes

  • Monty can now build for 32-bit targets.

    1.4.0release notes

  • File objects are now iterable.

    1.2.0release notes

  • The binary module is now loaded eagerly at package import.

    1.2.0release notes

  • Sets and frozensets now support ordering comparisons.

    1.2.0release notes

  • Many more dunder methods are now supported on user instances.

    1.2.0release notes

  • Skips message roles, input content types, or media source types introduced by a newer protocol version, with a warning, rather than failing the whole request.

    1.0.0docs

  • Await handling becomes eager.

    1.0.0release notes

  • Monty drops its experimental framing ahead of v1.

    1.0.0release notes

  • The source position of every suspension is reported.

    1.0.0release notes

Tooling 1

Fixes and other changes 42

  • Index searches start at the requested offset.

    1.6.0release notes

  • Pathlib errors now match CPython's.

    1.6.0release notes

  • Client failures are exposed as typed failures, and remote error details are preserved.

    1.6.0release notes

  • Checkouts can confirm subprocess termination.

    1.5.0release notes

  • Its repr falls back to insertion order when counts cannot be ordered.

    1.5.0release notes

  • Updating an entry preserves its original key.

    1.5.0release notes

  • Only spaces and tabs are stripped before eval() source.

    1.5.0release notes

  • Exceptions record __cause__ and __context__.

    1.5.0release notes

  • float() now supports bytes arguments.

    1.5.0release notes

  • json.dump() supports the default= argument.

    1.5.0release notes

  • Restored sessions apply the checkout's OS policy.

    1.5.0release notes

  • Text appends to byte-backed files are fixed.

    1.5.0release notes

  • Intermediate files are reported as NotADirectoryError.

    1.5.0release notes

  • MemoryFile growth is capped.

    1.5.0release notes

  • Formatting with custom numeric classes is fixed.

    1.5.0release notes

  • Regex patterns are parsed with CPython's grammar.

    1.5.0release notes

  • Stat results preserve file types when special permission bits are set.

    1.5.0release notes

  • Out-of-range bounds are handled correctly.

    1.5.0release notes

  • The Python client preserves WebSocket disconnect diagnostics.

    1.5.0release notes

  • Preserves snapshots when auto-resume is rejected.

    1.4.0release notes

  • Preserves OSAccess state when a path is renamed to itself.

    1.4.0release notes

  • Matches Python's line-boundary behavior when splitting strings.

    1.4.0release notes

  • Float format precision is capped at INT_MAX - 1024, matching CPython 3.14.8.

    1.2.0release notes

  • JavaScript print callbacks no longer swallow thrown null.

    1.2.0release notes

  • List slice assignment is now supported.

    1.2.0release notes

  • open() now honours its newline argument.

    1.2.0release notes

  • Restored session budgets are capped at the destination limits.

    1.2.0release notes

  • Treats bool values as int values in arithmetic expressions.

    1.1.0release notes

  • Scans raise, assert, and except expressions for closure captures.

    1.1.0release notes

  • Fixes octal escapes in the re module.

    1.1.0release notes

  • The module gains uu, quoted-printable, and CRC-16 conversions.

    1.0.0release notes

  • casefold and other case methods gain improved compatibility.

    1.0.0release notes

  • date.today() is answered during standard execution.

    1.0.0release notes

  • datetime.now() is answered during standard execution.

    1.0.0release notes

  • Exception classes are resolved directly and modeled inbound.

    1.0.0release notes

  • Integer/float arithmetic on long integers and float power overflow match CPython.

    1.0.0release notes

  • The math module accepts long integers.

    1.0.0release notes

  • Container growth is checked against the memory limit before allocation.

    1.0.0release notes

  • pow() accepts long integers.

    1.0.0release notes

  • print(file=sys.stderr) is supported.

    1.0.0release notes

  • round() accepts long integers.

    1.0.0release notes

  • Unpacking supports attribute and subscript targets.

    1.0.0release notes

pydantic-monty 0.0184 changes

Breaking changes 18

  • A stalled async scheduler now raises instead of aborting.

    0.0.22release notes

  • Mutating a dictionary's size during iteration now raises dictionary changed size during iteration, including on last-element mutation.

    0.0.22release notes

  • Unknown keys in the limits dict are now rejected instead of silently ignored.

    0.0.22release notes

  • The CLI no longer includes logfire by default.

    0.0.20release notes

  • The peek module has been removed.

    0.0.20release notes

  • Raises RuntimeError when a coroutine is reused across gathers.

    0.0.19release notes

  • Renames external_lookup and changes its behaviour.

    0.0.19release notes

  • Removes max_allocations from resource limits.

    0.0.19release notes

  • Moves mounting to the host side and moves fs to monty-fs.

    0.0.19release notes

  • Renames the monty-cli crate to monty-runtime.

    0.0.19release notes

  • Rejects open modes that specify no action.

    0.0.19release notes

  • Only swallows AttributeError, allowing other exceptions raised during attribute lookup to propagate.

    0.0.18release notes

  • Enforces Monty's BigInt limits for JSON integers, including the natural JSON BigInt path.

    0.0.18release notes

  • Renamed prefix_code to type_check_stubs; developers should use the new name.

    0.0.16release notes

  • Source containing lone surrogates now raises MontySyntaxError.

    0.0.15release notes

  • The scheduler is now required.

    0.0.9release notes

  • The external_functions parameter is removed; external functions are detected automatically with NameLookup.

    0.0.8release notes

  • Changed the exceptions raised when using LongInt.

    0.0.4release notes

Security 4

  • Mounts are confined with cap-std descriptors instead of path checks, with follow-up fixes to confinement defects.

    0.0.20release notes

  • Caps CollectString and CollectStreams so print loops cannot exhaust host memory.

    0.0.19release notes

  • Input safety changed; the notes do not specify further details.

    0.0.16release notes

  • Fixes a leak in id().

    0.0.5release notes

New APIs and options 79

Performance 6

  • An empty tuple singleton no longer contributes to the memory limit.

    0.0.17release notes

  • Added cheaper sourcemaps.

    0.0.15release notes

  • Improves type checking performance.

    0.0.12release notes

  • JSON performance improvements may make JSON operations faster.

    0.0.11release notes

  • Implemented optimizations for small tuples.

    0.0.4release notes

  • The GIL is released when printing with Python.

    0.0.2release notes

Behavior and default changes 18

  • Print output in the worker is debounced.

    0.0.23release notes

  • Class __annotations__ are now populated with stringized annotations.

    0.0.20release notes

  • The / operator now supports Path / Path and reflected str / Path.

    0.0.20release notes

  • The wire protocol is now versioned independently of the package.

    0.0.20release notes

  • Adds pytest-style assert failure messages.

    0.0.19release notes

  • Allows any iterable after * instead of only five container types.

    0.0.19release notes

  • Moves execution to a subprocess pool.

    0.0.19release notes

  • Supports multi-level closure capture.

    0.0.19release notes

  • Adds limits on F-string precision.

    0.0.18release notes

  • In monty-js, allocation limits can exceed u32::MAX.

    0.0.17release notes

  • In monty-js, GC interval limits can exceed u32::MAX.

    0.0.17release notes

  • In monty-js, maxMemory limits can exceed u32::MAX.

    0.0.17release notes

  • In monty-js, recursion depth limits can exceed u32::MAX.

    0.0.17release notes

  • Added natural JSON support in MontyObject.

    0.0.14release notes

  • Import statements now support importing multiple modules, such as import a, b, c.

    0.0.10release notes

  • PEP 448 generalised unpacking is implemented.

    0.0.8release notes

  • In-place mutation is not supported for str and bytes.

    0.0.8release notes

  • Adds a depth guard, affecting how deeply Monty can execute nested operations.

    0.0.5release notes

Tooling 5

  • Teaches the type checker about iter and next.

    0.0.19release notes

  • Adds type checking in the REPL.

    0.0.12release notes

  • Memory growth is tracked in mutable container operations.

    0.0.9release notes

  • The REPL gains line editing and history through rustyline.

    0.0.8release notes

  • Type stubs are being added, providing type information for developers using the package.

    0.0.2release notes

Fixes and other changes 54

  • A failing gather now leaves its sibling tasks running.

    0.0.22release notes

  • Dispatches __index__ for indexing, slicing, and integer arguments.

    0.0.22release notes

  • REPL input now continues after decorators and for triple-quoted strings.

    0.0.22release notes

  • Wire validation now accepts multi-line spans.

    0.0.22release notes

  • The in operator now works for bytes.

    0.0.20release notes

  • User-defined __iter__, __next__, and __contains__ methods are now dispatched.

    0.0.20release notes

  • Implements NotImplemented and uses it for user equality.

    0.0.20release notes

  • Bounds native evaluate_function re-entry to prevent infinite recursion.

    0.0.19release notes

  • Improves error messages for suspensions in evaluate_function.

    0.0.19release notes

  • Improves f-string support.

    0.0.19release notes

  • Reintroduces the feed_start API for Python and JavaScript.

    0.0.19release notes

  • Returns an error instead of panicking when reading the ForIter heap.

    0.0.19release notes

  • Fixes interactions involving global names, function scopes, and the REPL.

    0.0.19release notes

  • Includes argument fixes for int(), str(), and round().

    0.0.19release notes

  • Implements iter(callable, sentinel).

    0.0.19release notes

  • Makes an existing iterator self-iterable.

    0.0.19release notes

  • Fixes type-object marshalling across the sandbox boundary.

    0.0.19release notes

  • Fixes exception propagation from async external functions.

    0.0.18release notes

  • Fixes a panic when a function has duplicate parameter names.

    0.0.18release notes

  • Uses name-based identity and equality for external function values.

    0.0.18release notes

  • Rejects reuse of an already-awaited external future via gather.

    0.0.18release notes

  • Fixes a panic when a coroutine is duplicated in gather.

    0.0.18release notes

  • Avoids a panic when the key callback mutates the list being sorted.

    0.0.18release notes

  • Prevents the OpenFile buffer_meta cache from being serialized across snapshots.

    0.0.18release notes

  • Adds local/global store operations for comprehension expressions in the REPL.

    0.0.18release notes

  • Deduplicates source lines in tracebacks.

    0.0.18release notes

  • Implements trial deletion to collect cycles and properly release references held by values in cycles.

    0.0.18release notes

  • Fixes the GC interval being ignored in ResourceTracker and Heap.

    0.0.17release notes

  • Fixes panics when negating i64::MIN overflows.

    0.0.17release notes

  • Fixed panics during partial future resolution in mixed gathers.

    0.0.15release notes

  • Input Unicode conversion errors are now wrapped as MontyRuntimeError.

    0.0.15release notes

  • Fixed a panic when parsing source files with lines larger than u16::MAX.

    0.0.14release notes

  • Corrected the types for datetime os calls.

    0.0.13release notes

  • Corrected the type for not_handled.

    0.0.13release notes

  • Fixes mount edge cases.

    0.0.11release notes

  • Stack-depth tracking after break or continue in unreachable code is fixed.

    0.0.9release notes

  • max() supports keyword arguments and the default argument.

    0.0.9release notes

  • dict supports dict(iterable, **kwargs), and dict(zip(...)) is fixed.

    0.0.8release notes

  • A VM panic is fixed when a function parameter shadows an outer local variable.

    0.0.8release notes

  • Builtin calls are supported in module attributes.

    0.0.8release notes

  • A panic in os.environ is fixed in the JS bindings.

    0.0.8release notes

  • JS runMontyAsync forwards printCallback.

    0.0.8release notes

  • The REPL session is preserved when runtime errors occur in start or resume.

    0.0.8release notes

  • Comparison operations are implemented for str and bytes.

    0.0.8release notes

  • Augmented assignment is supported on subscript targets.

    0.0.8release notes

  • Fixed async stack overflow.

    0.0.7release notes

  • Fixes a TypeError when comparing heap-allocated strings.

    0.0.5release notes

  • Handles i64::MIN division overflow in //, %, and divmod().

    0.0.5release notes

  • Enforces max_duration better.

    0.0.5release notes

  • Fixed AST depth overflow.

    0.0.4release notes

  • Improved getattr support, allowing developers to use it more reliably.

    0.0.4release notes

  • Included wrapper.js and wrapper.d.ts in the npm package.

    0.0.4release notes

  • Syntax fixes may affect code accepted by the implementation.

    0.0.2release notes

  • The TypeScript implementation is brought to parity with the Python implementation.

    0.0.2release notes