Skip to content

chore(deps): update aura/filter requirement from ^2.3|3.x-dev to ^7.0.1 - #41

Closed
dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/aura/filter-tw-7.0.1
Closed

dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/aura/filter-tw-7.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 29, 2026

Copy link
Copy Markdown

Updates the requirements on aura/filter to permit the latest version.

Release notes

Sourced from aura/filter's releases.

7.0.1

Fixes

  • FIX: FailureCollection::getNestedMessages() now returns correct nested messages for numeric field paths such as items.0.name and items.1.name. Previously the second path could move the first entry under a _messages key (#175).
  • FIX: getNestedMessages() now orders numeric keys ascending at every level, including the top level (e.g. 0.name, 1.name), whatever order the failures were added in (#175, #176).
  • FIX: getNestedMessages() no longer throws a TypeError when a field name is purely numeric (e.g. add('1', ...)) (#176).

Notes

  • Numeric keys in getNestedMessages() keep the original row index; they are never renumbered. When the failing indexes are exactly 0, 1, 2, … the result is a PHP list and json_encode() produces a JSON array. When there are gaps (for example only row 1 failed), it produces a JSON object such as {"1": {"name": [...]}}. Clients should look up per-row errors by index (errors[i], or Object.entries(errors) in JavaScript) rather than relying on array methods like .length or .map().
Changelog

Sourced from aura/filter's changelog.

7.0.1

Fixes

  • FIX: FailureCollection::getNestedMessages() now returns correct nested messages for numeric field paths such as items.0.name and items.1.name. Previously the second path could move the first entry under a _messages key (#175).
  • FIX: getNestedMessages() now orders numeric keys ascending at every level, including the top level (e.g. 0.name, 1.name), whatever order the failures were added in (#175, #176).
  • FIX: getNestedMessages() no longer throws a TypeError when a field name is purely numeric (e.g. add('1', ...)) (#176).

Notes

  • Numeric keys in getNestedMessages() keep the original row index; they are never renumbered. When the failing indexes are exactly 0, 1, 2, … the result is a PHP list and json_encode() produces a JSON array. When there are gaps (for example only row 1 failed), it produces a JSON object such as {"1": {"name": [...]}}. Clients should look up per-row errors by index (errors[i], or Object.entries(errors) in JavaScript) rather than relying on array methods like .length or .map().

7.0.0

Breaking Changes

  • PHP 8.4+ is now required (up from PHP 5.4+ in 2.x).
  • License changed from BSD to MIT.
  • Removed Aura.Di integration (config/Common.php and autoload.php).
  • Removed tests/ContainerTest.php and config/Common.php; the library is now DI-container-agnostic.
  • SubjectFilter::__invoke(array|object &$subject) still mutates the subject: on success it writes the sanitized values back into $subject; on failure it throws FilterFailed. Use the new apply() instead to leave the subject untouched and receive a FilterResultInterface with the sanitized copy and failures.
  • SubjectFilter::assert() now accepts array|object and throws FilterFailed on failure (unchanged signature, but now typed).
  • Failure now implements Aura\Filter_Interface\FailureInterface instead of JsonSerializable directly (it still serializes to JSON via the interface).
  • SubjectFilter now implements Aura\Filter_Interface\SubjectFilterInterface.
  • FilterFactory::newSubjectFilter() now returns SubjectFilterInterface instead of the concrete class.
  • All classes now use declare(strict_types=1) and full PHP 8+ type declarations throughout.
  • Removed libxml dependency (was not used internally).
  • CI moved from Travis CI to GitHub Actions.

New Features

  • ADD: SubjectFilter::apply() — immutable filter application that returns a FilterResultInterface containing the sanitized subject copy and any FailureCollection, without mutating the original subject.
  • ADD: SubjectFilter::subfilter(string $field, string $subClass = '') — compose nested SubjectFilter instances for validating and sanitizing sub-objects and sub-arrays (multidimensional support). Sub-filter values that are objects (DTOs) are correctly preserved; arrays are round-tripped through stdClass so only stdClass nodes are converted, not plain array fields.
  • ADD: Spec\SubSpec and Spec\SubSpecFactory — internal classes supporting nested sub-filter specifications.
  • ADD: SanitizeSpec::useBlankField(string $field_name) — when the target field is blank, use the value from a different field as the replacement value.
  • ADD: Rule\Validate\UploadedFile — validates a PSR-7 UploadedFileInterface value with configurable rules: required, fileExtension, fileMedia, sizeMax, sizeMin.
  • ADD: Rule\Sanitize\UploadedFileOrNull — sanitizes a value to null if it is not a valid PSR-7 uploaded file (i.e. not an UploadedFileInterface or upload error is not UPLOAD_ERR_OK).
  • ADD: SubjectFilter::useFieldMessage(string $field, string $message) — set a custom failure message for a specific field, overriding all per-rule messages.
  • ADD: PHP 8.4, 8.5 support added to CI test matrix.
  • ADD: aura/filter-interface package dependency introducing SubjectFilterInterface, FilterResultInterface, FilterResult, and FailureInterface.

Fixes

  • FIX: PHP 8.4 deprecation — explicit nullable type added to substr $length parameter in AbstractStrlen.
  • FIX: PHP 8.1 deprecation — replaced deprecated utf8_decode() with mb_convert_encoding().
  • FIX: idn_to_ascii() deprecation — updated email validator to stop using INTL_IDNA_VARIANT_2003.
  • FIX: Email validation now gracefully handles missing domain parts instead of raising errors.
  • FIX: Type declarations and formatting corrected in AbstractStrlen.
  • FIX: Missing property declarations added throughout rule classes to fix PHP 8.2 dynamic-property deprecation warnings.
  • FIX: Array-type checks added where subjects could be passed as arrays to rule __invoke() methods.

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [aura/filter](https://github.com/auraphp/Aura.Filter) to permit the latest version.
- [Release notes](https://github.com/auraphp/Aura.Filter/releases)
- [Changelog](https://github.com/auraphp/Aura.Filter/blob/7.x/CHANGELOG.md)
- [Commits](https://github.com/auraphp/Aura.Filter/commits/7.0.1)

---
updated-dependencies:
- dependency-name: aura/filter
  dependency-version: 7.0.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Nov 29, 2026
@koriym

koriym commented Nov 29, 2026

Copy link
Copy Markdown
Member

Closing: Aura 7 requires PHP ^8.4, while 1.x supports PHP 8.0+. Replacing the constraint drops PHP 8.0–8.3, and aura/input 7 and aura/filter 7 also change APIs this package depends on. Aura 7 support will be handled together in a single 2.0 PR.

@koriym koriym closed this Nov 29, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 29, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/composer/aura/filter-tw-7.0.1 branch November 29, 2026 03:35
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 php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant