Skip to content

Pre-release 4.2.107 → 4.2.106 — task 4.3 validation swap (illuminate/validation v13) - #78

Open
agissept wants to merge 1 commit into
pre-release/4.2.106from
pre-release/4.2.107
Open

agissept wants to merge 1 commit into
pre-release/4.2.106from
pre-release/4.2.107

Conversation

@agissept

Copy link
Copy Markdown
Member

Task 4.3 (L2 per-unit): swap illuminate/validation → ^13 (flip-only, wholesale). Stacked di atas #77 (4.2.106 hashing).

Perubahan

  • composer: illuminate/validation replace → require ^13 (v13.33.0; egulias/email-validator + brick/math sudah di floor). v13 Validation\* shadow tree fork (PSR-4 seed).
  • v13 pertahankan surface app (make/passes/fails/messages) tapi pecah Validator monolitik → Concerns traits + Rules/, kontrak pindah ke Contracts\Validation\Validator.
  • Container alias 'validator'→Illuminate\Validation\Factory (v13) tak berubah.
  • Drop tests/Validation/{ValidationValidatorTest,ValidationFactoryTest,ValidationDatabasePresenceVerifierTest} (vendored-behavior; assert internal fork — each()/monolitik — hilang di v13).

Fork suite 461 hijau.

App matched-pair: dicoding#5916 (memuat L4.2-compat layer global — v13 memperketat beberapa semantik rule).

Flip-only wholesale replace: v13 keeps the app-facing surface (make/passes/fails/
messages/errors/sometimes) but splits the monolithic 4.2 Validator (44 inline validateXxx)
into Concerns traits + Rules/ classes, moves the contract to Contracts\Validation\Validator,
and adds UncompromisedVerifier via Http\Client. v13 Validation\* shadows the fork tree via
the PSR-4 seed mechanism (egulias/email-validator + brick/math already on floor).

- composer: illuminate/validation self.version -> ^13 (v13.33.0).
- Drop tests/Validation/{ValidationValidatorTest,ValidationFactoryTest,
  ValidationDatabasePresenceVerifierTest} (vendored behavior; they assert the fork Validator
  internals — each()/monolithic layout — gone in v13).
- Container alias 'validator' -> Illuminate\Validation\Factory unchanged (v13 Factory).

Fork suite 461 green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant