Skip to content

v0.2.0

Choose a tag to compare

@MysticalDevil MysticalDevil released this 14 Mar 19:05
· 88 commits to main since this release

ts-inject.nvim v0.2.0

This release closes the 0.2 milestone and builds on v0.1.0 by introducing a generated-query framework, host-level rule overrides, and stronger runtime diagnostics while preserving 0.1 compatibility.

Changelog (v0.1.0 -> v0.2.0)

Core framework

  • Added an internal generated-query framework with host builders and normalized rule/config plumbing.
  • Kept static compatibility behavior for non-generated hosts.
  • Added runtime query regeneration and lifecycle support through:
    • :TSInjectReload
    • :TSInjectHealth

Generated hosts and migration

  • Added generated-query runtime support for:
    • python
    • javascript
    • typescript
    • lua
    • ruby
  • Migrated lua and ruby from static runtime loading to generated runtime loading.
  • Archived generated-host static snapshots under archive/scm-generated/ as reference-only artifacts.

Rules and host behavior

  • Added experimental host-level rule overrides for configurable generated hosts (python, javascript, typescript):
    • rules.<host>.builtin = false to disable builtin rules for that host
    • rules.<host>.items = { ... } for user rules
  • Kept backward compatibility with legacy list-form rules.
  • Added optional per-host query mode selection:
    • query_mode.<host> = "generated" | "static"
    • default remains generated for generated-capable hosts
    • static mode is supported as a legacy path and is not recommended for generated-capable hosts

Health/debug improvements

  • Expanded :TSInjectHealth reporting with:
    • generated vs static host classification
    • generated query file presence
    • builtin/user rule counts for generated hosts
    • legacy-static host section
    • normalized runtime warnings
  • Kept :TSInjectDebug as the per-buffer inspection workflow.

Shell injections

  • Added built-in delimiter-driven shell heredoc injections (bash/sh):
    • SQL, PY, LUA, JS, TS

Tests and verification

  • Expanded smoke coverage for 0.2 behavior:
    • TSInjectReload
    • TSInjectHealth
    • generated-host paths including Ruby/Lua migration
    • builtin=false override behavior
    • legacy static mode behavior on generated-capable hosts
  • Continued support for local validation via tmp/verify-nvim-mini.sh language examples.

Documentation

  • Updated README.md, doc/ts-inject.txt, and PLAN.md for:
    • generated/static host split
    • experimental rules model
    • query_mode legacy path
    • 0.2 closeout checklist

Commits in this release

  • 520e0c1 feat: add 0.2 query generation framework
  • 5e5070f docs: document 0.2 experimental features
  • c62602c feat: migrate lua to generated queries
  • 500c069 docs: update generated host status for lua
  • 6f1ee7a feat: add ruby generated host and rule overrides
  • 8a5454f docs: document ruby generation and builtin overrides
  • 34acd3c chore: archive static queries for generated hosts
  • ecf3db9 docs: align 0.2 closeout guidance
  • b8d3b60 feat: add legacy static query mode override
  • ea52801 docs: document query_mode and legacy static path