Skip to content

Releases: miyasuta/cds-softdelete-plugin

v1.0.2

Choose a tag to compare

@miyasuta miyasuta released this 12 Dec 21:01

What's Changed

  • Added physical deletion test case (DEL-09) to verify entities without @softdelete.enabled are physically deleted

Installation

npm install cds-softdelete-plugin

Links


Full Changelog: v1.0.1...v1.0.2

v1.0.1

Choose a tag to compare

@miyasuta miyasuta released this 12 Dec 00:05

What's Changed

  • Added navigation path deletion test cases (DEL-03-nav, DEL-05-nav, DEL-07-nav)
  • Added grandchild cascade deletion test cases (DEL-03-extended, DEL-05-extended)
  • Improved test coverage for composition hierarchy deletion scenarios

Installation

npm install cds-softdelete-plugin

Links


Full Changelog: v1.0.0...v1.0.1

v1.0.0 - First Stable Release

Choose a tag to compare

@miyasuta miyasuta released this 05 Dec 21:40

🎉 First Stable Release

Production-ready soft delete plugin for SAP CAP applications.

What's New in v1.0.0

  • ✅ 100% Test Coverage: 38 test cases covering all scenarios
  • 📖 Complete Documentation: Detailed specification and CHANGELOG
  • 🛡️ Field Protection: @readonly annotation on soft delete fields
  • 🔄 Idempotent Delete: Safe to delete already-deleted records
  • ⚡ Improved README: Simplified and user-focused

Breaking Changes

None - this is the first stable release.

Installation

npm install cds-softdelete-plugin

Links


Full Changelog: v0.3.5...v1.0.0

v0.1.0

Choose a tag to compare

@miyasuta miyasuta released this 09 Nov 20:50

What's Changed

New Features

  • By-key access support: When accessing entities by key (e.g., GET /Books(ID)), the plugin now skips the isDeleted filter, allowing retrieval of soft-deleted records by their ID. This is useful for auditing and recovery scenarios.

Improvements

  • Validation on startup: The plugin now validates that entities with @softdelete.enabled annotation have all required fields (isDeleted, deletedAt, deletedBy). If any fields are missing, the server will fail to start with a clear error message, helping catch configuration issues early.

Full Changelog: v0.0.4...v0.1.0