Skip to contents

artopensea 0.8.0

Breaking Changes

  • HTTP client migration: Replaced httr with httr2 for all API requests. This is an internal change with no user-facing API modifications, but may

    affect users who were extending or modifying request behavior.

New Features

  • httptest2 integration: Added comprehensive test fixtures for offline testing. All 4 API endpoints now have recorded mock responses enabling reliable CI/CD testing without live API calls.

  • Expanded documentation: README.md now includes complete environment variable documentation, installation instructions, usage examples, and

    links to OpenSea API reference.

Improvements

  • Test coverage: Increased from ~43% to 98.33%, exceeding the 80% target. All 21 tests now run (previously 4 were skipped).

  • Code quality:

    • Fixed string handling to use stringr::str_split_1() instead of base R strsplit() per project standards
    • Removed defensive placeholder key logic from test setup (violates “No Defensive Skips” principle)
    • Added concise package-specific AGENTS.md for agent tooling
  • URL building: API functions now use httr2::req_url_path_append() for cleaner, more maintainable URL construction.

Bug Fixes

  • parseOpenseaURL(): Fixed path index extraction. Previously used incorrect indices when parsing /assets/{chain}/{contract}/{id} URLs.

Internal

  • Added httptest2 redactor to strip API keys from recorded fixtures
  • Test helper functions use abbreviated names (.d_mocks, .d_extra)
  • Fixtures organized by endpoint under tests/testthat/fixtures/mock/