Skip to content

chore(deps): bump hjkl-bonsai from 0.5.2 to 0.6.2#48

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/hjkl-bonsai-0.6.2
Open

chore(deps): bump hjkl-bonsai from 0.5.2 to 0.6.2#48
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/hjkl-bonsai-0.6.2

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github May 12, 2026

Bumps hjkl-bonsai from 0.5.2 to 0.6.2.

Changelog

Sourced from hjkl-bonsai's changelog.

[0.6.2] - 2026-05-12

Performance

  • Highlighter now caches child highlighters across highlight_range_with_injections and highlight_with_injections calls. Keys are (language_name, content_range_start, content_range_end) with a content hash for drift detection: if the source slice at a given range changes, the entry is evicted and rebuilt; if it is unchanged the parse tree and highlight query are reused at zero parse cost. Stale entries (code blocks that have been deleted or scrolled out of view) are evicted after each call. For a markdown file with N fenced code blocks, this reduces child parse cost from O(N × frames) to O(N) after the first render frame. Resolves hjkl#65.

[0.6.1] - 2026-05-10

Changed

  • Replaced inlined XDG resolver in src/runtime/xdg.rs with hjkl-xdg = "0.1" dep. xdg::data_home() and xdg::cache_home() retain the same callable shape via pub use.

[0.6.0] - 2026-05-09

Added

  • Predicate/directive dispatcher giving helix + nvim-treesitter parity over stock tree-sitter without forking the parser. New module predicate exposes the MatchContext, Predicate, Directive, MatchMetadata, MetaValue, PredicateArg, and PredicateRegistry types, plus predicate_fn / directive_fn closure sugar so consumers register handlers without naming a struct.
  • New module builtins ships parser-agnostic implementations of contains?, has-ancestor?, has-parent? (predicates) and set! (literal + capture-target forms), offset!, trim!, gsub! (directives). Builtins are pre-registered by PredicateRegistry::with_builtins.
  • Highlighter::with_registry(grammar, registry) constructor for consumers that want to extend the default registry. Highlighter::new is unchanged and uses with_builtins internally.
  • HighlightSpan gains a metadata: HashMap<String, MetaValue> field carrying per-capture metadata produced by directives. The pre-existing byte_range and capture fields are unchanged.
  • query_sanitize::extract_capture_set_directives — pre-extracts (#set! @cap key val) forms (which stock tree-sitter rejects at compile) into Vec<CaptureSetDirective> keyed by pattern index, returning the rewritten compilable query alongside the extracted directives. The highlighter re-applies them at match-iteration time so the directive semantics are preserved instead of dropped. Resolves hjkl-bonsai#4.

... (truncated)

Commits
  • a417ebc chore: bump version
  • 664525f perf(highlighter): cache child highlighters across injection passes
  • c875bb3 chore: bump version
  • dd475f4 refactor(xdg): replace inlined resolver with hjkl-xdg dep
  • d38b940 chore: complete 0.6.0 manifest bump
  • ee290a8 chore: bump version
  • 438a141 feat(query): predicate/directive dispatcher with extension registry
  • 8ef750a fix(query): paren-balanced excision of #set! @​capture forms
  • dce0a59 fix(highlighter): sanitize invalid query predicates
  • 855f034 Merge pull request #1 from kryptic-sh/dependabot/cargo/libloading-0.9
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [hjkl-bonsai](https://github.com/kryptic-sh/hjkl-bonsai) from 0.5.2 to 0.6.2.
- [Changelog](https://github.com/kryptic-sh/hjkl-bonsai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kryptic-sh/hjkl-bonsai/compare/v0.5.2...v0.6.2)

---
updated-dependencies:
- dependency-name: hjkl-bonsai
  dependency-version: 0.6.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants