Merge branch 'master' into docs-Add-Select-class-migration-guide

This commit is contained in:
Roman Kelesidis 2025-06-18 09:38:42 +03:00 committed by GitHub
commit 288b2d9da6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 2 deletions

View file

@ -37,5 +37,5 @@ jobs:
git config --local user.email 'roman25052006.kelesh@gmail.com'
set +e
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md 📖"
git commit -m "changelog: Update CHANGELOG.md 📖"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git master

View file

@ -4,10 +4,23 @@
## [nightly](https://nightly.link/torrentpier/torrentpier/workflows/ci/master/TorrentPier-master)
### 🚀 Features
- [**breaking**] Implement centralized Config class to replace global $bb_cfg array ([#1953](https://github.com/torrentpier/torrentpier/pull/1953)) - ([bf9100f](https://github.com/torrentpier/torrentpier/commit/bf9100fbfa74768edb01c62636198a44739d9923))
### 🐛 Bug Fixes
- *(installer)* Strip protocol from TP_HOST to keep only hostname ([#1952](https://github.com/torrentpier/torrentpier/pull/1952)) - ([81bf67c](https://github.com/torrentpier/torrentpier/commit/81bf67c2be85d49e988b7802ca7e9738ff580031))
- *(sql)* Resolve only_full_group_by compatibility issues in tracker cleanup ([#1951](https://github.com/torrentpier/torrentpier/pull/1951)) - ([37a0675](https://github.com/torrentpier/torrentpier/commit/37a0675adfb02014e7068f4aa82301e29f39eab6))
### 📦 Dependencies
- *(deps)* Bump filp/whoops from 2.18.2 to 2.18.3 ([#1948](https://github.com/torrentpier/torrentpier/pull/1948)) - ([b477680](https://github.com/torrentpier/torrentpier/commit/b4776804a408217229caa327c79849cf13ce2aa5))
### 🚜 Refactor
- *(config)* [**breaking**] Encapsulate global $bb_cfg array in Config class ([#1950](https://github.com/torrentpier/torrentpier/pull/1950)) - ([5842994](https://github.com/torrentpier/torrentpier/commit/5842994782dfa62788f8427c55045abdbfb5b8e9))
### ⚙️ Miscellaneous
- *(_release.php)* Finally! Removed some useless params ([#1947](https://github.com/torrentpier/torrentpier/pull/1947)) - ([9c7d270](https://github.com/torrentpier/torrentpier/commit/9c7d270598c0153fb82f4b7ad96f5b59399b2159))

View file

@ -6,7 +6,10 @@ This guide helps you upgrade your TorrentPier installation to the latest version
- [Configuration System Migration](#configuration-system-migration)
- [Censor System Migration](#censor-system-migration)
<<<<<<< docs-Add-Select-class-migration-guide
- [Select System Migration](#select-system-migration)
=======
>>>>>>> dev/005
- [Development System Migration](#development-system-migration)
- [Breaking Changes](#breaking-changes)
- [Best Practices](#best-practices)
@ -162,6 +165,7 @@ When you update censored words in the admin panel, the system now automatically:
2. Reloads the singleton instance with fresh words
3. Applies changes immediately without requiring page refresh
<<<<<<< docs-Add-Select-class-migration-guide
## 📋 Select System Migration
The Select class has been moved and reorganized for better structure and consistency within the legacy system organization.
@ -230,6 +234,8 @@ use TorrentPier\Legacy\Select;
use TorrentPier\Legacy\Common\Select;
```
=======
>>>>>>> dev/005
## 🛠️ Development System Migration
The development and debugging system has been refactored to use a singleton pattern, providing better resource management and consistency across the application.
@ -333,7 +339,10 @@ $environment = [
- Direct `$wordCensor` access → Use `censor()` methods
- `new TorrentPier\Dev()` → Use `dev()` global function
- Static `Dev::` methods → Use `dev()` instance methods
<<<<<<< docs-Add-Select-class-migration-guide
- `\TorrentPier\Legacy\Select::` → Use `\TorrentPier\Legacy\Common\Select::`
=======
>>>>>>> dev/005
### File Structure Changes
- New `/src/` directory for modern PHP classes
@ -380,6 +389,7 @@ function processUserInput(string $text): string {
$censoredText = censor()->censorString($input);
```
<<<<<<< docs-Add-Select-class-migration-guide
### Select Usage
```php
// ✅ Use the new namespace consistently
@ -397,6 +407,8 @@ class AdminPanel {
}
```
=======
>>>>>>> dev/005
### Development and Debugging
```php
// ✅ Use instance methods for debugging

View file

@ -105,7 +105,7 @@ commit_parsers = [
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^ignore|^release", skip = true },
{ message = "^ignore|^release|^changelog", skip = true },
{ message = "^chore|^ci|^misc", group = "<!-- 7 -->⚙️ Miscellaneous" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },