You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d0cc51
Browse filesBrowse the repository at this point in the historyBrowse files
chore(deps): Bump openjd-* Rust crates to 0.8.0 (#365)
openjd-expr 0.7.0 -> 0.8.0, openjd-model 0.7.1 -> 0.8.0, and
openjd-sessions 0.5.8 -> 0.6.0 (openjd-rs release PR #395).
Six upstream changes land, reconciled against a source diff of the
published crates. The only new public API is two methods on
openjd_expr::FormatString, segment_count and literal_segments, which
the model crate's validator uses (#383). Both are now exposed on
openjd.expr.FormatString, with the stub and specs/python-expr-interface.md
updated. openjd-model and openjd-sessions have no public signature
changes; the two [breaking] changelog entries are behavioural.
Each change exercised through this package's API, v1 and v0 side by
side where both apply:
* openjd-rs#396 type-checks an `in`/`not in` item against the list's
element type. `'a' in [1, 2]` now raises where it returned False.
Int/float and path/string coercion kept; `x in []` is False for any x.
* openjd-rs#383 checks resolved-value constraints at template
validation. A job name resolving to 129 characters, and a chunks
defaultTaskCount naming an undeclared parameter, are now rejected at
decode. v0 already rejected both. The whole-field chunks expression
is resolved with target type int, so a STRING value fails inside the
evaluator: test_chunk_default_task_count_invalid_int's message match
moves from "not a valid integer" to "Cannot convert ... to int"; the
exception class it pins is unchanged.
* openjd-rs#397: a single-valued allOf with one literal and one
whole-field expression is now accepted at validation (0.7.1 rejected
it) because the expression can null-skip, and job creation re-checks
the resolved count. A control character in a resolved job name is
rejected at create_job; 0.7.1 produced the job.
* openjd-rs#398 renders NONCONTIGUOUS chunks like the v0 reference:
[1,2,4,6] is "1,2,4,6", not "1,2-6:2". Both paths agree on all four
probed shapes.
* openjd-rs#384: preprocess_job_parameters accepts its own output for a
LIST[PATH] parameter defaulting to []. 0.7.1 refused the second pass.
* openjd-rs#359 rejects embedded filenames ".", ".." and any containing
a null byte at template validation. v0 accepts all three. The
sessions-side check for Windows drive anchors ("C:", "D:relative") is
not reachable from this repo's tests: the model layer accepts them
and the check is Windows-only.
One test template was invalid and passed only because 0.7.1 did not
validate chunk fields: test_chunks_with_format_string_default_task_count
now declares the parameter it references.
Old-pins mutant: with the three pins reverted and the two new bindings
removed, 30 tests fail, all in the new or updated classes, and the
whole-field allOf deferral was measured as rejected on 0.7.1. Two new
cases (a tab in a literal run of an interpolated name, two certain
allOf elements) were already rejected on 0.7.1 and are labelled
controls.
THIRD-PARTY-LICENSES.txt regenerated; only the three crate versions
changed. Cargo.lock moved only those three packages.
Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>
0 commit comments