This document describes breaking changes and migration steps between versions of scolta-php.
No breaking API changes from 0.3.x to 1.0.0. All 0.3.x public APIs are preserved in 1.0.0.
The following defaults were updated to improve out-of-the-box search quality. If you relied on the old defaults without explicitly setting them, your search behavior will change:
| Property | Old Default (0.3.x) | New Default (1.0.0) | Notes |
|---|---|---|---|
ai_summary_top_n |
5 |
10 |
AI summaries now consider more results, improving quality |
ai_summary_max_chars |
2000 |
4000 |
AI summaries receive more context per result |
expand_primary_weight |
0.7 |
0.5 |
Expanded results now have equal weight with original results |
If you want to preserve the old behavior, set these values explicitly in your platform config.
The WASM binary filename is scolta_core_bg.wasm (not scolta.wasm). Platform adapters handle this automatically. If you have custom asset serving rules, update the filename.
All public methods now carry @stability stable annotations. Going forward, semantic versioning guarantees apply:
- Patch releases (1.0.x): Bug fixes only.
- Minor releases (1.x.0): New features, deprecations. No breaking changes to stable APIs.
- Major releases (x.0.0): Breaking changes. Coordinated across all Scolta packages. This is the only release that requires all packages to bump together; minor and patch versions are released independently per package.
- Read the CHANGELOG.md entry for the target version.
- Search your codebase for any deprecated methods.
- Update
composer.jsonconstraint:"tag1/scolta-php": "^1.0". - Run
composer update tag1/scolta-php. - Run
php artisan scolta:check-setup(Laravel),drush scolta:check-setup(Drupal), orwp scolta check-setup(WordPress) to verify the environment. - Run your test suite.
- Verify the WASM binary asset is served correctly —
scolta_core_bg.wasmmust be publicly accessible from your platform's static asset path.