• Basil v2026.01.002 - Critical Bug Fix Release
    Some checks failed
    Basil CI/CD Pipeline / Code Linting (push) Successful in 1m12s
    Basil CI/CD Pipeline / Shared Package Tests (push) Successful in 1m28s
    Basil CI/CD Pipeline / API Tests (push) Successful in 2m1s
    Basil CI/CD Pipeline / Web Tests (push) Successful in 1m40s
    Basil CI/CD Pipeline / Security Scanning (push) Successful in 1m22s
    Basil CI/CD Pipeline / Build All Packages (push) Successful in 1m29s
    Basil CI/CD Pipeline / E2E Tests (push) Has been skipped
    Basil CI/CD Pipeline / Trigger Deployment (push) Has been cancelled
    Basil CI/CD Pipeline / Build & Push Docker Images (push) Has been cancelled
    Stable

    pkartch released this 2026-01-17 06:41:02 +00:00 | 26 commits to main since this release

    🚨 Critical Bug Fix

    This release fixes a critical production bug where adding quick tags to recipes would delete all ingredients and instructions.

    What's Fixed

    Critical Bug Fix - Recipe Update Endpoint

    • Fixed: Adding tags via quick tag feature no longer deletes ingredients and instructions
    • Root Cause: PUT /recipes/:id endpoint was deleting ALL relations before updating, even when only tags were being modified
    • Solution: Changed endpoint to only delete relations that are explicitly included in the update request
    • Impact: Recipes that lost data will need to be manually restored from backups

    Test Updates

    • Updated recipe update tests to validate new patch-like behavior
    • Tests now verify that only specified relations are deleted during updates

    Version Policy Changes

    Implemented consistent version numbering policy:

    • Format: YYYY.MM.PPP (e.g., 2026.01.002)
    • Policy: Version increments with every production deployment
    • Documentation: Added comprehensive version management section to CLAUDE.md

    Technical Details

    Changed Files:

    • packages/api/src/routes/recipes.routes.ts - Fixed update endpoint logic
    • packages/api/src/routes/recipes.routes.real.test.ts - Updated tests
    • packages/api/src/version.ts - Version bump to 2026.01.002
    • packages/web/src/version.ts - Version bump to 2026.01.002
    • CLAUDE.md - Documented version policy

    Commits:

    • c8ecda6: hotfix: only delete recipe relations that are being updated
    • 7df625b: test: update recipe update test for new behavior
    • 0480f39: chore: bump version to 2026.01.002 and document version policy

    Upgrade Notes

    This is a critical hotfix and should be deployed immediately. No database migrations required.

    Contributors

    Previous Version: v2026.01.001

    Downloads