1.8.0 and LSP stabilization plan
Status: Complete across all three tracks (adotenv-lsp 0.6.0,
adotenv / adotenv-process / adotenv-cli 1.8.0, and
adotenv-lint 0.3.0). Tracking issues:
#248 (adotenv-lsp 0.6.0
stabilization, closed), #249
(adotenv 1.8.0 additive core APIs, closed),
#250 (remaining After-1.0 edge
cases, closed), and #251
(adotenv-lint 0.3.0, closed).
This cycle has three coordinated tracks:
- Graduate
adotenv-lspout of unstable prototype status into a semver-checked0.6.xline. - Ship additive
1.8.0lockstep capabilities inadotenv,adotenv-processandadotenv-cliwhile keeping the coreno_std, dependency-free, Rust 1.81 compatible and semver-compatible with 1.x. - Follow up with
adotenv-lint 0.3.0on top ofadotenv 1.8.0for schema rules and bounded fix application.
Track 1: adotenv-lsp 0.6.0 stabilization (#248)
Section titled “Track 1: adotenv-lsp 0.6.0 stabilization (#248)”Version-line policy
Section titled “Version-line policy”adotenv-lsp stays on its own 0.x line (starting with 0.6.0 as the first
semver-checked release) rather than jumping to 1.0.0. Its public library API
exposes lsp-types 0.x directly, so following the same rule used by
adotenv-config and adotenv-figment, an upstream lsp-types minor bump
remains a 0.x minor release of adotenv-lsp instead of causing major-version
churn.
Non-breaking groundwork landed ahead of 0.6.0
Section titled “Non-breaking groundwork landed ahead of 0.6.0”- Monotonic position mapping when a diagnostic span lands between
\rand\nof a CRLF line ending (such as an unknown escape"\\\r\n"), plus full UTF-16 surrogate-pair width when anchoring stripped BOM diagnostics. - Accurate
BomPolicy::Errorcolumn mapping and zero-width BOM diagnostics on BOM-only or BOM+newline inputs. - Recovering parse in
rename_with_options(preserving parse-limit errors while allowing renames in files with unrelated syntax errors) and single-entry narrowing inreference_at. - Multiline, backtick, Compose colon, Python escaped-single-quote, raw-value, escaped-dollar and braced dotted-reference fixes in completion, plus multiline key escaping in Markdown hover output.
- LSP 3.17 protocol compliance in the stdio binary:
serverInfoininitialize, documentversionintextDocument/publishDiagnostics, non-zero exit whenexitarrives beforeshutdown, rejection ofdidChangeon unopened URIs, explicit transport-error propagation, scheme-aware and Windows drive-letter URI ignore matching, and CLI--dialect,--max-itemsand--max-diagnosticsflags. - Additive library polish:
EditErrorandBomPolicyre-exports,LspOptions::without_lint_options,Clone/PartialEq/EqonRenameError, and runnable crate and README doctests.
Freeze criteria for 0.6.0 (published 2026-11-27)
Section titled “Freeze criteria for 0.6.0 (published 2026-11-27)”- Public API symmetry and session handle: unified all 12 stateless free
functions to take
&LspOptionsconsistently (removing the seven_with_optionsduplicates) and exposed statefulParsedDocumentandSessionhandles so both library embedders and the stdio binary parse and line-index each document once per open/change. - Protocol semantics decisions: adopted LSP 3.17 §3.1.1 column clamping
(
character > line_lenclamps to line end while out-of-bounds lines, inverted ranges, split UTF-16 surrogates and mid-character UTF-8 bytes returnNone), and narrowedreferenceslocations toreference.nameidentifier spans (matchingdefinition,prepareRenameandrename). - Bounded transport and dependency hygiene:
- Replaced
lsp-serverwith a synchronous, zero-unsafe, bounded JSON-RPC 2.0Content-Lengthstdio transport (8 KiBheader-line cap,32header cap,16 MiBdefault payload cap configurable via--max-message-bytes) that rejects oversized frames before allocating payload buffers. - Gated the stdio binary behind the default-on
stdiofeature ([[bin]] name = "adotenv-lsp" required-features = ["stdio"]) with optionalserde/serde_jsondependencies so library embedders usingdefault-features = falsebuild only the transport-free library. - Relaxed
lsp-types = "0.97", bumped dependency floors toadotenv 1.7.3andadotenv-lint 0.2.3, and loweredadotenv-lspMSRV to Rust 1.81 (matchingadotenvafter removing edition-2024lsp-server).
- Replaced
- Editor capabilities: added
textDocument/prepareRename,textDocument/formatting(Document::format),textDocument/codeAction(adotenv-lintquick fixes and BOM-preservingsource.fixAll), LSP 3.17positionEncodingnegotiation (utf-16,utf-8,utf-32), and workspace-folder (workspaceFolders->rootUri-> cwd) discovery for--discover-lint-config. - CI and documentation graduation: bumped
adotenv-lspto0.6.0, added--package adotenv-lsptocargo semver-checks check-releasein CI, foldedadotenv-lsp(default and--no-default-features) into the required Rust 1.81 MSRV check, documented whyminimal-versionsstill excludesadotenv-lsp(lsp-types0.97’s 2018-era minimums), and removed prototype caveats across the README, Language server, Quality, Feature decisions, Architecture,RELEASING.mdandROADMAP.md.
Track 2: adotenv 1.8.0 lockstep additions (#249, #250)
Section titled “Track 2: adotenv 1.8.0 lockstep additions (#249, #250)”All core additions stay additive and preserve 1.x semver compatibility,
no_std builds and the Rust 1.81 MSRV:
CompactEntriesloaders and process helpers (#249, landed):- Added
load_cascade_entries_compact,load_cascade_entries_compact_with,load_cascade_entries_compact_with_options,load_entries_compactandload_entries_compact_with_optionsunder theloadfeature, using value-preserving cascade merge while keeping bare declarations. - Added
adotenv-process::{validate_compact_entries, apply_compact_entries}skipping bareNoneentries and validating/setting assigned entries.
- Added
- Bounded edit, format and sort helpers (
#249, landed):- Added
Document::{comment,uncomment,set_export}_with_optionsacceptingEditOptions, plusEditOptions::max_references/LimitKind::Referencesfor bounded reference scanning inrename_with_references_with_optionsandsort_with_options. - Added
Document::format_with_options(&FormatOptions, EditOptions)andDocument::sort_with_options(EditOptions)returningEditErrorwith pre-allocation byte and line caps and bounded verification/reference scanning (closing theAUD-9caveat in 1.1 audit).
- Added
- Multi-BOM support on
LineIndexand CLI wiring (#249, landed):- Added
LineIndex::with_bom_policy(BomPolicy)supportingBomPolicy::Strip,BomPolicy::StripAll,BomPolicy::KeepandBomPolicy::Error. - Wired
adotenv-clitoLineIndex::with_bom_policyincheck,CompactValuesinget/load/run, global--max-items/--max-diagnostics, and boundedfmt(sort_with_optionsandformat_with_optionswith--max-output-bytes,--max-output-linesand--max-references), and bumpedadotenv,adotenv-processandadotenv-cliin lockstep to1.8.0(published 2026-11-28). Independent companion crates (adotenv-lint,adotenv-lsp) adoptadotenv 1.8.0in their own follow-up releases.
- Added
- Remaining After-1.0 edge cases (
#250, landed):- Fixed formatting idempotence under
LineBreaks::Lf(with and without customline_byte_limit) when quote normalization interacts with trailing whitespace trimming orFinalNewline::Remove, preserved native\u{feff}keys inQuotedTail::Appendencoding, and added Python\u{feff}exportand capped LF-only regression/fuzz coverage (see 1.0 fix round). - Parsed non-string scalar Serde map keys (
BTreeMap<u16, String>,bool,char, integers, floats, newtypes, bytes,Option) with the same rules as values, and documented the#[serde(deserialize_with = ...)]pattern for typed non-string fields inside#[serde(flatten)](preserving flattenedStringfields andBTreeMap<String, String>compatibility). - Updated
Document::exampleto emit bare text following a Compose closing quote on the same physical line as a#comment while preserving explicit second assigned declarations.
- Fixed formatting idempotence under
Track 3: adotenv-lint 0.3.0 follow-up (#251, landed)
Section titled “Track 3: adotenv-lint 0.3.0 follow-up (#251, landed)”- Added opt-in schema and
.env.examplepresence-and-shape rules (Rule::{MissingKey,UnknownKey,EmptyValue,InvalidValue},Schema,KeySchema,ValueShape,lint_with_schema,[schema]TOML config,--example,--no-unknown-keys,--no-empty-values), keeping parser core policy-free (see Feature decisions). - Wired
lint_with_options,apply_fix_with_options,apply_fixes_with_options,apply_batch_with_options(with two-passQuoteStyle::Unquotedconvergence),adotenv-lintCLI limit flags, andadotenv-lspformatting/code-actions toadotenv 1.8.0’s boundededit_with_options,format_with_options, andsort_with_options.
Release verification checklist
Section titled “Release verification checklist”Completed for adotenv-lsp 0.6.0, v1.8.0, and adotenv-lint 0.3.0:
- Pass all CI jobs (
fmt,clippy,docs,supply chain,public API semverincludingadotenv-lsp, cross-platform tests,MSRV1.81 / 1.88,minimal versions,package,benchmark smoke,deterministic perf,alloc-only core,conformanceandDocsheadless-browser smoke). - Run focused
--in-diffmutation sweeps on the dedicated remote validation host (one worker, 8 GiB cap; see Heavy validation) and close all genuine test gaps. - Run four clean seven-target
fuzz.ymlworkflow runs on the release commit when core parser, edit, format, encoding or limit code changes. - Record clean-SHA memory and speed benchmark matrices on the reference host through its single-slot serialized queue and publish RESULTS-1.8.0.md.
- Verify crates.io, docs.rs, GitHub Release SHA-256 checksums and Sigstore build-provenance attestations for every published crate.