Skip to contents

artcore 1.4.1

New features

  • [is_valid_uuid()] provides boolean UUID validation for conditional logic. Returns TRUE/FALSE instead of throwing errors like [validate_uuid()]. Use when checking UUID validity in if statements or validation flows.

artcore 1.4.0

New Features

  • API Utilities - Added shared HTTP request utilities for API client packages:
  • Configuration Utilities - Added helpers for API configuration management:
    • api_config() - Retrieve API configuration from environment variables using standardized prefix pattern
    • api_key_required() - Validate required API keys with informative error messages
  • Operators - Added null coalescing operator:
    • `%||%` - Return first non-NULL value (common pattern across API packages)
  • Image Utilities - Added image processing utilities:
    • b64EncodeImage() - Encode images to base64 PNG strings for AI vision APIs
      • Supports local files and HTTP/HTTPS URLs
      • Automatic resizing to configurable max width (default 1000px)
      • URL reachability validation before processing

Dependencies

  • Added to Imports: base64enc, magick
  • Dependencies alphabetized for consistency

Purpose

These utilities consolidate common patterns from API client packages (artgemini, artopenai, artsend, artopensea) into artcore, eliminating code duplication and ensuring consistent behavior across the platform.


artcore 1.3.0

Breaking Changes

  • Deprecated function aliases removed - The following camelCase function stubs that threw errors directing users to snake_case equivalents have been removed entirely:

Removed

  • R/deprecate.R - All deprecated function stubs removed
  • R/utils.R - Development helpers (dev_artist(), dev_artwork()) migrated to arthelpers package

artcore 1.2.0

Breaking Changes

  • Function renames to snake_case - All functions now follow snake_case naming convention:
  • Deprecated functions error immediately - Old function names are still exported but now throw an error directing users to the new names.