Skip to content

Rebrand the bundle from Fp to Svaroh - #1

Merged
66Ton99 merged 1 commit into
masterfrom
rebrand/svaroh-2.0
Aug 21, 2026
Merged

Rebrand the bundle from Fp to Svaroh#1
66Ton99 merged 1 commit into
masterfrom
rebrand/svaroh-2.0

Conversation

@66Ton99

@66Ton99 66Ton99 commented Aug 21, 2026

Copy link
Copy Markdown

Makes this repository a new home for the bundle and renames every public
Fp/fp identifier to Svaroh/svaroh.

svaroh/jsformvalidator-bundle is a new Composer package versioned from
1.0
. It is not a 2.0 of fp/jsformvalidator-bundle and does not continue
its version numbers, so the master branch alias is 1.0-dev.

formapro/JsFormValidatorBundle keeps the fp/jsformvalidator-bundle package.
A companion PR there announces the move.

What Was Renamed

fp/jsformvalidator-bundle svaroh/jsformvalidator-bundle
PHP namespace Fp\JsFormValidatorBundle Svaroh\JsFormValidatorBundle
Bundle class FpJsFormValidatorBundle SvarohJsFormValidatorBundle
DI alias / config key fp_js_form_validator svaroh_js_form_validator
Service ids, parameters fp_js_form_validator.* svaroh_js_form_validator.*
Route name fp_js_form_validator.check_unique_entity svaroh_js_form_validator.check_unique_entity
Published assets bundles/fpjsformvalidator/ bundles/svarohjsformvalidator/
JS globals FpJs* SvarohJs*
JS files FpJsFormValidator.js, FpJsFormValidatorWithJqueryInit.js, jquery.fpjsformvalidator.js Svaroh* equivalents

The UniqueEntity JavaScript global changes as a consequence of the namespace
rename, because globals are resolved by stripping backslashes from the PHP
FQCN. Custom App\... constraints and transformers are unaffected.

What Did Not Change

Behaviour is identical. These keep their names, so applications do not have to
touch them:

  • Twig functions init_js_validation() and js_validator_config()
  • The jQuery plugin method $(form).jsFormValidator(...)
  • The js_validation form option and its per-form/per-field behaviour
  • Rendered DOM markup, CSS classes, and error element structure

Docs

  • README.md explains the split between this repository and formapro, states
    that versioning starts fresh at 1.0, and points existing users at
    fp/jsformvalidator-bundle:^1.8.
  • composer.json and docker-compose.yml set the dev version to 1.0-dev
    instead of the inherited 2.0-dev.
  • AGENTS.md keeps the pre-move history attributed to formapro/master.

Licensing

LICENSE keeps the original Copyright (C) 2014 by Forma-Pro line and adds
Copyright (C) 2026 by Svaroh. The original copyright holder is not removed.

Verification

Run locally in the Nix dev shell (PHP 8.5.6, Node 24.16.0):

  • composer validate --strict — valid
  • composer test — 27 tests, 92 assertions, OK
  • composer phpstan — no errors, including a successful Symfony test-container
    warmup with the new bundle class and DI alias
  • npx jest — 31 suites, 233 tests passed

🤖 Generated with Claude Code

@66Ton99
66Ton99 force-pushed the rebrand/svaroh-2.0 branch 3 times, most recently from 4c6f07a to 5f56507 Compare August 21, 2026 14:38
@66Ton99 66Ton99 changed the title Rebrand the bundle from Fp to Svaroh for the 2.0 line Rebrand the bundle from Fp to Svaroh Aug 21, 2026
This repository is a new home for the bundle, maintained by Svaroh.
formapro/JsFormValidatorBundle keeps the fp/jsformvalidator-bundle package.

svaroh/jsformvalidator-bundle is a new Composer package versioned from 1.0. It
does not continue the fp/jsformvalidator-bundle version numbers and is not a
2.0 of it, so the master branch alias is 1.0-dev.

Renames every public identifier from Fp/fp to Svaroh/svaroh:

- Composer package fp/jsformvalidator-bundle -> svaroh/jsformvalidator-bundle
- PHP namespace Fp\JsFormValidatorBundle -> Svaroh\JsFormValidatorBundle
- Bundle class FpJsFormValidatorBundle -> SvarohJsFormValidatorBundle
- DI extension, alias, service ids and parameters fp_js_form_validator.*
  -> svaroh_js_form_validator.*
- Route name fp_js_form_validator.check_unique_entity
  -> svaroh_js_form_validator.check_unique_entity
- Published asset directory bundles/fpjsformvalidator
  -> bundles/svarohjsformvalidator
- JavaScript globals FpJs* -> SvarohJs*, including the UniqueEntity constraint
  global, which is derived from the PHP FQCN
- JavaScript files FpJsFormValidator.js, FpJsFormValidatorWithJqueryInit.js and
  jquery.fpjsformvalidator.js -> Svaroh* equivalents

Behaviour is unchanged. The Twig functions init_js_validation() and
js_validator_config(), the jQuery plugin method jsFormValidator(), the
js_validation option, and the rendered DOM markup all keep their names.

Applications switching from fp/jsformvalidator-bundle must rename the package,
bundle class, config key, route import, service references, JavaScript imports
and globals.

The MIT notice keeps the original Forma-Pro copyright line and adds Svaroh.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@66Ton99
66Ton99 force-pushed the rebrand/svaroh-2.0 branch from 5f56507 to 7e8656b Compare August 21, 2026 14:41
@66Ton99
66Ton99 merged commit 3afde47 into master Aug 21, 2026
@66Ton99
66Ton99 deleted the rebrand/svaroh-2.0 branch August 21, 2026 14:50
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