Skip to contents

artcore 1.0.0

Breaking Changes

  • Environment variables simplified - Removed ART_USE_CONFIG and environment-specific suffixes (_PROD, _DEV, _SITE). Each deployment now sets variables directly:

    • ART_PGHOST (was ART_PGHOST_PROD, ART_PGHOST_DEV, etc.)
    • ART_PGPORT (was ART_PGPORT_PROD, etc.)
    • ART_PGUSER (was ART_PGUSER_PROD, etc.)
    • ART_PGPASS (was ART_PGPASS_PROD, etc.)
    • ART_PGDATA (new - database name, was hardcoded per config)
  • Removed rpgconn dependency - Database connections now use DBI::dbConnect() directly with RPostgres. Simpler, fewer dependencies.

  • ..dbc() signature changed - No longer accepts cfg parameter. Reads credentials directly from environment.

New Features

  • Test setup validation - tests/testthat/setup.R validates required environment variables before running tests. Fails fast with clear message listing missing variables instead of cryptic downstream errors.

  • Live database test - Added test-database.R to verify database connectivity with actual credentials.

Documentation

  • Centralized environment variable docs - All env var documentation now in README.md. Other files reference it instead of documenting inline.

  • Simplified AGENTS.md - Reduced from 300+ lines to ~70 lines. References README.md for env vars.

  • Roxygen2 examples - All exported functions now have examples wrapped in \dontrun{}.

  • Documentation focus - Updated docs to explain WHY (purpose) rather than WHAT/HOW (implementation details).

Internal

  • Removed inst/db-config.yaml (no longer needed)
  • Removed duplicate test file test-cdn-delete-hard.R
  • Removed tests for internal functions (.keys_exist, .guess_mime)
  • Removed defensive skip_on_ci() and skip_if_not() from tests
  • Test coverage: 81.51%