Skip to content

Releases: StrategicProjects/DT2

DT2 0.1.2

13 Jun 23:43
ee47dc3

Choose a tag to compare

Patch release with two bug fixes and several robustness/documentation improvements. DT2 0.1.1 is on CRAN; this is a maintenance update.

🐛 Bug fixes

  • dt2_cols_escape() now actually escapes HTML when escape = TRUE (the default). Previously both branches produced the same identity renderer, so content was always inserted as raw HTML.
  • Server-side processing (dt2_ssp_handler() / dt2_bind_server()) now URL-decodes query-string keys, so global search and column ordering are applied — previously only pagination worked because encoded keys like search%5Bvalue%5D were never matched.

✨ Improvements

  • dt2() fills options$columns from the data when not supplied.
  • Name-based column helpers warn informatively when a column name can't be resolved (instead of silently producing an invalid target).
  • Number/date format helpers build their JavaScript with properly quoted/escaped string literals (fixes breakage when a prefix/suffix/format contains a quote).
  • print() for dt2_theme shows the class field.

📚 Docs & infrastructure

  • New testthat suite covering the fixes.
  • GitHub Actions R-CMD-check workflow.
  • Grouped pkgdown reference index, new examples, dt2_buttons()/dt2_use_buttons() cross-links, options$columns notes in the vignettes, new logo.

Full changelog: https://strategicprojects.github.io/DT2/news/