Skip to content

Bump @cap-js/attachments from 3.8.0 to 3.11.0#241

Open
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/npm_and_yarn/cap-js/attachments-3.11.0
Open

Bump @cap-js/attachments from 3.8.0 to 3.11.0#241
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/npm_and_yarn/cap-js/attachments-3.11.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Apr 8, 2026

Bumps @cap-js/attachments from 3.8.0 to 3.11.0.

Release notes

Sourced from @​cap-js/attachments's releases.

v3.11.0

Added

  • Support for controlling content overwrite behavior via @Capabilities.UpdateRestrictions.NonUpdateableProperties. By default, content is listed as non-updateable, preventing overwrites with a 409 error. Setting the annotation to an empty array ([]) on a specific attachment composition allows content to be overwritten.

Fixed

  • When cds.env.fiori.bypass_draft was enabled attachments were wrongfully deleted

v3.10.0

Added

  • Emit the following security events on the attachments service: - AttachmentDownloadRejected, AttachmentSizeExceeded AttachmentUploadRejected.
  • If @cap-js/audit-logging is installed automatically trigger audit logs for the security events.
  • Duplicate file names to a single attachment entity are automatically assigned a distinguishing suffix.
  • Local testing using a Postgres database now possible.
  • Native server-side copy() method on AttachmentsService for copying attachments between entities without transferring binary data through the application. Supports all storage backends (DB, AWS S3, Azure Blob Storage, GCP Cloud Storage) with backend-native copy operations.

Fixed

  • Fixed bug where deeply nested attachments were not properly handled.
  • Fixed bug to allow navigation of self-referencing entities.
  • Fix that POST requests for attachments did not have a response when the plugin is used with an object store.

v3.9.0

Fixed

  • Fixed security vulnerability where @Core.AcceptableMediaTypes validation could be bypassed during content upload by manipulating the Content-Type header. The mimeType is now validated against the value stored in the database (derived from filename extension) rather than the request header.
  • Relaxed requirement for Content-Length header; stream length validation is now used as an additional check to leverage support for chunked uploads.
  • Fixed bug where self-referencing entities caused overflow error due to infinite looping.
  • Fixed bug in which discarded drafts would save files to database.
  • Now allows for downloading files while in draft mode.
Changelog

Sourced from @​cap-js/attachments's changelog.

Version 3.11.0

Added

  • Support for controlling content overwrite behavior via @Capabilities.UpdateRestrictions.NonUpdateableProperties. By default, content is listed as non-updateable, preventing overwrites with a 409 error. Setting the annotation to an empty array ([]) on a specific attachment composition allows content to be overwritten.

Fixed

  • When cds.env.fiori.bypass_draft was enabled attachments were wrongfully deleted

Version 3.10.0

Added

  • Emit the following security events on the attachments service: - AttachmentDownloadRejected, AttachmentSizeExceeded AttachmentUploadRejected.
  • If @cap-js/audit-logging is installed automatically trigger audit logs for the security events.
  • Duplicate file names to a single attachment entity are automatically assigned a distinguishing suffix.
  • Local testing using a Postgres database now possible.
  • Native server-side copy() method on AttachmentsService for copying attachments between entities without transferring binary data through the application. Supports all storage backends (DB, AWS S3, Azure Blob Storage, GCP Cloud Storage) with backend-native copy operations.

Fixed

  • Fixed bug where deeply nested attachments were not properly handled.
  • Fixed bug to allow navigation of self-referencing entities.
  • Fix that POST requests for attachments did not have a response when the plugin is used with an object store.

Version 3.9.0

Fixed

  • Fixed security vulnerability where @Core.AcceptableMediaTypes validation could be bypassed during content upload by manipulating the Content-Type header. The mimeType is now validated against the value stored in the database (derived from filename extension) rather than the request header.
  • Relaxed requirement for Content-Length header; stream length validation is now used as an additional check to leverage support for chunked uploads.
  • Fixed bug where self-referencing entities caused overflow error due to infinite looping.
  • Fixed bug in which discarded drafts would save files to database.
  • Now allows for downloading files while in draft mode.
Commits
Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 8, 2026
Bumps [@cap-js/attachments](https://github.com/cap-js/attachments) from 3.8.0 to 3.11.0.
- [Release notes](https://github.com/cap-js/attachments/releases)
- [Changelog](https://github.com/cap-js/attachments/blob/main/CHANGELOG.md)
- [Commits](cap-js/attachments@v3.8.0...v3.11.0)

---
updated-dependencies:
- dependency-name: "@cap-js/attachments"
  dependency-version: 3.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/cap-js/attachments-3.11.0 branch from 1318849 to 25a692f Compare April 13, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants