Repository navigation
build(deps)!: move to fig 7 - #1
Merged
Merged
Conversation
fig 6 made every format a language a program registers, and took embedding out of fig; fig 7 is that core in Rust, with no Zig to build. The library depends on `fig` alone, as before: it uses the value tree, never a language. The command line brings the languages it names (json with jsonc and json5, yaml, toml, zon, figl) and twig, which now locates a markdown file's frontmatter or endmatter, all behind a default `cli` feature, so a library caller with `default-features = false` compiles none of them. Behavioural-change: `FieldType::Extended(ExtKind::Data)` displays as `data`. fig 6 renamed plist's `PlistData` to `Data`, any format's byte string, and it displayed as `plist-data`. Behavioural-change: `fig-schema` reads `.zon` files and `--input zon`. It named zon before but refused to read it, since the prebuilt fig it linked carried only json, yaml, toml and fig. Behavioural-change: `--input figl` names figl, as fig 6 does; `--input fig` still reads as figl, and a `.fig` file still does. Behavioural-change: a markdown file's block is found by twig, which reads `---` (or `---<lang>`) and `+++` frontmatter and YAML endmatter. A `;;;` JSON block or a fenced ```` ```yaml ```` block at the top of a file is no longer read as the document; `check` treats such a file as having no block.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves fig-schema to fig 7 so prov can move to fig 7 and twig 6. fig-schema 0.4 depends on
fig ^5, and itsFieldType/Valueare not fig 7's.What changes
figalone. Its only API change is fig 6'sExtKind::PlistData→ExtKind::Data, which now displays asdata.twig::meta), because fig 6 removedfig::detect/fig::split.clifeature: it carries all of the CLI's dependencies, and[[bin]]hasrequired-features = ["cli"], socargo install fig-schemastill works. A library user (prov) setsdefault-features = falseand compiles none of them.check_on_standard_input_needs_the_schema_namedno longer fails when the binary exits before the test writes to its stdin (a broken-pipe race).Behavioural changes (in the commit trailers)
ExtKind::Datadisplays asdata(wasplist-data)..zonfiles and--input zonare now read. Before, zon was named but refused.--input figlis the spelling;figstill reads.;;;JSON blocks and fenced```yamlblocks are no longer read as the document.Release
The version is not bumped in this PR. prov depends on this branch from git until a 0.5.0 is on crates.io, so please cut 0.5.0 after merging.
cargo fmt --check,cargo clippy --all-targets -D warnings,cargo testandRUSTDOCFLAGS=-D warnings cargo docall pass locally.Generated by Claude Code