Skip to content

v2.0.0

Choose a tag to compare

@dmmulroy dmmulroy released this 15 Nov 20:10
· 4 commits to main since this release
d792813

v2.0.0 - Complete Rewrite

Complete rewrite with improved architecture, parsing accuracy, and test coverage.

Highlights

  • Fixed parsing errors - Full parity w/ Matt Pocock's VSCode extension (67 error translations)
  • Better architecture - Modular design: parser, matcher, diagnostic, lru cache, utils
  • Performance - O(1) error code lookup via generated db.lua, LRU cache for translations
  • Test coverage - Comprehensive test suite with plenary.nvim, CI/CD on Ubuntu/macOS
  • vim.diagnostic integration - Automatic LSP diagnostic translation

Breaking Changes

  • auto_override_publish_diagnostics deprecated, use auto_attach instead
  • New servers config option to specify LSP server names:
require("ts-error-translator").setup({
  auto_attach = true,
  servers = { "ts_ls", "vtsls", "astro", "svelte", "typescript-tools", "volar" }
})

New Features

  • Build system: make build generates db.lua from tsErrorMessages.json + markdown files
  • Test suite: make test runs full test suite
  • GitHub Actions CI/CD testing stable/nightly Neovim
  • Updated README with API examples, configuration docs, architecture overview

Migration Guide

Replace auto_override_publish_diagnostics with auto_attach in your config:

-- Before
require("ts-error-translator").setup({
  auto_override_publish_diagnostics = true
})

-- After
require("ts-error-translator").setup({
  auto_attach = true
})

Full Changelog: v1.3.0...v2.0.0