Cha
1.17.0 - 2026-05-21
v1.17.0
May 21 2026 at 17:46 UTC
Added
project_query::function_at(path, line, col)— new host import returning theFunctionInfowhose body contains the given position. Useful for tree-query–driven detectors that need to disambiguate which declared function a queried position belongs to.WasmPluginTest::option_list / option_bool / option_int / option_float— list and typed option setters in the test harness, replacing the previous string-onlyoption().
Changed (breaking for WASM plugins)
tree_query::QueryMatch.start_line/end_lineare now 1-based (was 0-based). Aligns withFunctionInfo/ClassInfo/CommentInfoline numbering — no more per-plugin off-by-one conversion. Inputs tonode_at(line, col)andnodes_in_range(start, end)are likewise 1-based now.- Existing plugins compiled against the pre-1.17 WIT will need to be rebuilt against the new SDK; instantiation will fail loudly otherwise.
Fixed
react-hooksexample plugin — false positives onhook_after_early_return(in sibling components and inside return expressions likereturn useState()) eliminated by switching toproject_query::function_atfor host-function disambiguation. Now reports 5 true positives / 0 false positives on the 6-component .tsx fixture (was 5 / 2).
Documentation
docs/plugin-development.md: added Line/Column convention note, Project Query API section, WASM Compatibility Cheatsheet (regex panics, no clock, no FS),cha plugin buildvscargo builddistinction, and new option helpers in Testing.