diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6b1ba05ea..4cd309252 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['8.3', '8.4', '8.5', '8.6'] + php: ['8.4', '8.5', '8.6'] fail-fast: false @@ -35,7 +35,7 @@ jobs: - uses: actions/checkout@v7 - uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: 8.4 coverage: none - run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable @@ -49,7 +49,7 @@ jobs: - uses: actions/checkout@v7 - uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: 8.4 coverage: pcov - run: composer install --no-progress --prefer-dist diff --git a/AGENTS.md b/AGENTS.md index e81a88945..30a4af6c9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,7 +26,7 @@ is extended at release time from the git history. Nette Forms (since 2004) creates, validates, and processes web forms with **both** server-side (PHP) and client-side (`netteForms.ts`) validation kept in sync. -- **PHP Version**: 8.3 - 8.6 +- **PHP Version**: 8.4 - 8.6 - **Package**: `nette/forms` - **Dependencies**: nette/component-model, nette/http, nette/utils; Latte 3.1.5+. diff --git a/composer.json b/composer.json index 2e8651c0a..f5a5928e7 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ } ], "require": { - "php": "8.3 - 8.6", - "nette/component-model": "^3.2 || ^4.0", + "php": "8.4 - 8.6", + "nette/component-model": "^4.0", "nette/http": "^3.4", "nette/utils": "^4.1" }, @@ -45,7 +45,7 @@ }, "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "4.0-dev" } }, "config": { diff --git a/docs/internals/client-side.md b/docs/internals/client-side.md index 390f4d1e4..37afb1788 100644 --- a/docs/internals/client-side.md +++ b/docs/internals/client-side.md @@ -4,7 +4,7 @@ The TypeScript sources in `src/assets/` re-implement the server's rule evaluatio in the browser. `formValidator.ts` is the engine (`FormValidator` class: evaluation, toggles, form wiring), `validators.ts` holds the rule twins (`Validators` class, one method per op), `index.umd.ts` glues them into the -exported `Nette` object (plus `version` and `webalize`). The Rollup build's +exported `Nette` object (plus `version`). The Rollup build's `fix()` plugin rewrites the UMD banner so the built file **auto-runs `initOnLoad()`** unless the page pre-sets `Nette = {noInit: true}`. @@ -37,7 +37,8 @@ rules with a `{value}` **ref object**; normalizing validators (`url`, `integer`, ## Form wiring (`initForm`) -Forms without any `data-nette-rules` element are left alone. Otherwise the +Forms without any `data-nette-rules` element are left alone, unless they contain +a repeater (whose validated fields may exist only in its `