Skip to content

Conversation

@mortonatfb
Copy link

Migrate from tablewriter v0.0.5 to v1.0.7 which includes breaking API changes. The new version uses a functional options pattern and renderer abstraction instead of method chaining.

Key changes:

  • Use NewTable() with WithConfig() and WithRenderer() options
  • Configure ASCII style via renderer.NewBlueprint with tw.StyleASCII
  • Use tw.State and tw.Wrap* constants for formatting options
  • Update header slice type from []string to []any

What this PR does / why we need it: one of the dependencies have updated with breaking API changes

Which issue(s) this PR fixes: N/A

Special notes for your reviewer:

@CLAassistant
Copy link

CLAassistant commented Jan 30, 2026

CLA assistant check
All committers have signed the CLA.

@mortonatfb mortonatfb marked this pull request as ready for review January 30, 2026 21:53
@mortonatfb mortonatfb requested review from a team as code owners January 30, 2026 21:53
@grafana-plugins-platform-bot grafana-plugins-platform-bot bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Jan 30, 2026
Migrate from tablewriter v0.0.5 to v1.0.7 which includes breaking API
changes. The new version uses a functional options pattern and renderer
abstraction instead of method chaining.

Key changes:
- Use NewTable() with WithConfig() and WithRenderer() options
- Configure ASCII style via renderer.NewBlueprint with tw.StyleASCII
- Use tw.State and tw.Wrap* constants for formatting options
- Update header slice type from []string to []any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔬 In review

Development

Successfully merging this pull request may close these issues.

3 participants