Skip to content

CHANGELOG

v0.19.4 (2025-05-22)

Bug Fixes

  • Incorrect tox placement in pyproject.toml (#79, 5036905)

v0.19.3 (2025-05-22)

Bug Fixes

v0.19.2 (2025-05-22)

Bug Fixes

  • gen: Gracefully handle missing ruff during code generation (#77, cec7784)

  • fix(gen): Gracefully handle missing ruff during code generation

The format_with_ruff utility now catches FileNotFoundError if the ruff executable is not found in the environment. Instead of crashing, it prints a warning and skips the formatting step.

This allows the sb-pydantic gen command to complete successfully even when ruff (a dev dependency) is not installed, improving robustness for users who install supabase-pydantic as a library.

  • refactor: Add RuffNotFoundError for catching in parent

  • fix(cli): resolve configuration loading and CLI test failures

  • Improve configuration loading to locate pyproject.toml in parent directories - Modify option defaults to avoid Click initialization errors - Fix clean command to handle configuration properly

  • Ensure CLI returns expected exit codes when invoked without commands - Restore expected output messages for test compatibility

v0.19.1 (2025-04-30)

Bug Fixes

v0.19.0 (2025-04-30)

Features

  • cicd: Integrate tox for py3.{10,11,12,13} validation in cicd (#75, efe0c88)

  • refactor: rm .python-version

  • chore: Remove poc

  • feat: Integrate tox for multiple Python versions

  • feat(cicd): Add tox action(s) for testing with multiple versions

  • fix: Potential fix for code scanning alert no. 6: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI 62310815+github-advanced-security[bot]@users.noreply.github.com

Signed-off-by: kmbhm1 kmbhm1@gmail.com

  • fix: Failing dependency install

  • fix: Remove dev dependency installation from multi-version tests

  • fix: Quotes in pip instal

  • chore: Update poetry lock


v0.18.3 (2025-04-28)

Bug Fixes

  • security: Limit GitHub Actions workflow permissions (#74, 7465830)

Adds explicit read-only permissions to the build job in python-publish.yml to follow least privilege principle and address GitHub security alert.

v0.18.2 (2025-04-28)

Bug Fixes

  • Bug Annotated imported incorrectly (#73, 41f911c)

  • fix: Incorrect Annotated addition * test: Add test for condition

v0.18.1 (2025-04-19)

Documentation

v0.18.0 (2025-04-17)

Features

  • Add enum types for BaseModels (#70, b4c060e)

  • feat: Add enum types for BaseModels * feat: Add --no-enums cli argument * feat: Add enum example article * test: Add testing for enum generation * refactor: typing issues * fix: Type check error

v0.17.4 (2025-03-15)

Bug Fixes

  • deps: Update Jinja2 to ^3.1.6 to resolve security vulnerabilities (#68, 7a263bc)

v0.17.3 (2025-03-07)

Bug Fixes

  • Update Jinja2 to ^3.1.6 to address security vulnerability (#67, add28df)

v0.17.2 (2025-02-21)

Bug Fixes

  • types: Generate correct types for ONE_TO_ONE relationships (#66, e889eb3)

  • fix: Debug logging * feat(marshalers): improve foreign key analysis and cross-schema handling

  • Add comprehensive test suite for add_foreign_key_info_to_table_details - Enhance debug logging with guidance for cross-schema references - Keep foreign keys even when target table is in another schema - Ensure proper relationship type detection for Pydantic model generation

This improves support for cross-schema relationships (e.g., public.users -> auth.users) while maintaining correct type generation in Pydantic models.

v0.17.1 (2025-02-21)

Bug Fixes

  • models: Correct foreign key relationship types and field names (#65, 368b557)

Generate appropriate types for relationship fields based on cardinality: - ONE_TO_ONE -> single instance (Type | None) - ONE_TO_MANY -> list of instances (list[Type] | None) - MANY_TO_MANY -> list of instances (list[Type] | None)

This fixes issues where: - All relationships were incorrectly generated as lists - Field names were incorrectly using 'ids' suffix - Multiple fields had naming collisions - Referenced table names were inconsistently included

refactor: consolidate tooling and improve logging - Replace isort with ruff for import sorting - Enhance CLI logging with proper configuration - Improve Makefile documentation and organization

v0.17.0 (2025-02-16)

Features

  • Differentiate between insert, update, and select models (#63, 372aaad)

  • refactor(pydantic): improve foreign key and relationship field generation

  • Keep original column names for foreign keys (e.g., author_id: User) - Use inflection library for proper pluralization in many relationships - Fix handling of tables with relationships but no foreign keys - Add comprehensive tests for pluralization cases


... and so on. For the full changelog, please see the releases page.