Skip to content

Finish 0.8.0: stale deprecation fix + deprecate split_at / add split_at_offset - #123

Merged
asmello merged 2 commits into
mainfrom
release/0.8.0-finish
Jul 26, 2026
Merged

Finish 0.8.0: stale deprecation fix + deprecate split_at / add split_at_offset#123
asmello merged 2 commits into
mainfrom
release/0.8.0-finish

Conversation

@asmello

@asmello asmello commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Completes the 0.8.0 release prep. #122 was merged early and only captured its first commit (the CI unblock + version bump), leaving two follow-up commits stranded on the merged branch. This lands them on main before 0.8.0 is tagged/published.

Changes

  • Fix stale deprecation version. The ResolveError alias was marked #[deprecated(since = "0.7.2")], but 0.7.2 was never published (0.7.0 [yanked] → 0.7.1 → 0.8.0). Corrected to 0.8.0.
  • Deprecate Pointer::split_at, add Pointer::split_at_offset — folds in the substance of Deprecates Pointer::split_at, adds Pointer::split_at_offset #89 (originally by @chanced), rebased onto current main:
    • split_at is offset-based, but the rest of the API (get, …) is index-based. The offset-based split is renamed to split_at_offset; split_at is deprecated and its name reserved to be reintroduced as an index-based split by 1.0.
    • Internal caller repointed to split_at_offset so the crate doesn't warn on its own deprecation.
    • Added unit tests (separator / non-separator / out-of-bounds offsets, plus a delegation test) — covering the lines Deprecates Pointer::split_at, adds Pointer::split_at_offset #89 left untested — and fixed the doctest Deprecates Pointer::split_at, adds Pointer::split_at_offset #89 left calling the deprecated method.

After merge

Supersedes #89.

asmello added 2 commits July 26, 2026 11:37
The `ResolveError` alias was annotated `#[deprecated(since = "0.7.2")]`, but
0.7.2 was never published (the releases went 0.7.0 [yanked] -> 0.7.1 -> 0.8.0).
It first ships deprecated in 0.8.0, so correct the `since`.

Claude-Session: https://claude.ai/code/session_01XGvHsB4a2dxDVUQDGBScnW
Folds in the substance of #89 (authored by chanced), rebased onto current
main and finished off:

- `split_at` is offset-based, but the rest of the API (`get`, etc.) is
  index-based. Rename the offset-based split to `split_at_offset` and deprecate
  `split_at`, reserving that name to be reintroduced as an index-based split by
  1.0.
- Point the internal `strip`/parent caller at `split_at_offset` so the crate
  doesn't warn on its own deprecation.
- Add unit tests for `split_at_offset` (separator and non-separator offsets,
  plus out-of-bounds offsets that must return None rather than panic) and a
  test confirming the deprecated `split_at` still delegates. These cover the
  lines #89 left untested.
- Fix the doctest that #89 left calling the deprecated `split_at`.

Claude-Session: https://claude.ai/code/session_01XGvHsB4a2dxDVUQDGBScnW
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.6%. Comparing base (d7f0498) to head (7e08ec3).

Additional details and impacted files
Files with missing lines Coverage Δ
src/pointer.rs 95.8% <100.0%> (+<0.1%) ⬆️
src/resolve.rs 92.4% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@asmello
asmello merged commit c96d8dd into main Jul 26, 2026
21 checks passed
@asmello
asmello deleted the release/0.8.0-finish branch July 26, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants