Remove unused paragonie/random_compat dependency and fix version bump script

- Remove paragonie/random_compat from composer.json require (PHP 5 polyfill, unnecessary on PHP 8.2+)
- Fix bin/bump to also update root package.json version (was only updating src/ files)
- Fix root package.json version from 2.1.5 to 2.5.1
This commit is contained in:
Younes ENNAJI
2026-03-29 22:56:57 +01:00
parent 58123f259c
commit 2bf87f7ae9
4 changed files with 17 additions and 16 deletions
+5
View File
@@ -172,6 +172,11 @@ update_version() {
update_package_file "$file" "$current_version" "$new_version" update_package_file "$file" "$current_version" "$new_version"
done done
# Update root package.json
if [ -f "package.json" ]; then
update_package_file "package.json" "$current_version" "$new_version"
fi
echo -e "\n ${SUCCESS} Version bump complete!\n" echo -e "\n ${SUCCESS} Version bump complete!\n"
} }
-1
View File
@@ -27,7 +27,6 @@
"illuminate/support": "^11.0|^12.0|^13.0", "illuminate/support": "^11.0|^12.0|^13.0",
"laravel/octane": "^2.3", "laravel/octane": "^2.3",
"livewire/livewire": "^3.0", "livewire/livewire": "^3.0",
"paragonie/random_compat": "^2.0",
"psr/container": "^1.1|^2.0", "psr/container": "^1.1|^2.0",
"symfony/config": "^7.0|^8.0", "symfony/config": "^7.0|^8.0",
"symfony/console": "^7.0|^8.0", "symfony/console": "^7.0|^8.0",
Generated
+11 -14
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "75c6ad2f4921d2b29ebfc9c3e2a067be", "content-hash": "bae119fc55afe5c607e35e693f3e8c59",
"packages": [ "packages": [
{ {
"name": "brick/math", "name": "brick/math",
@@ -2624,33 +2624,29 @@
}, },
{ {
"name": "paragonie/random_compat", "name": "paragonie/random_compat",
"version": "v2.0.0", "version": "v9.99.100",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/paragonie/random_compat.git", "url": "https://github.com/paragonie/random_compat.git",
"reference": "321a59fed499a5624b0e40cb5c824ae6116e0c18" "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/321a59fed499a5624b0e40cb5c824ae6116e0c18", "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a",
"reference": "321a59fed499a5624b0e40cb5c824ae6116e0c18", "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.2.0" "php": ">= 7"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "4.*|5.*" "phpunit/phpunit": "4.*|5.*",
"vimeo/psalm": "^1"
}, },
"suggest": { "suggest": {
"ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
}, },
"type": "library", "type": "library",
"autoload": {
"files": [
"lib/random.php"
]
},
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
"MIT" "MIT"
@@ -2665,6 +2661,7 @@
"description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
"keywords": [ "keywords": [
"csprng", "csprng",
"polyfill",
"pseudorandom", "pseudorandom",
"random" "random"
], ],
@@ -2673,7 +2670,7 @@
"issues": "https://github.com/paragonie/random_compat/issues", "issues": "https://github.com/paragonie/random_compat/issues",
"source": "https://github.com/paragonie/random_compat" "source": "https://github.com/paragonie/random_compat"
}, },
"time": "2016-03-18T17:17:33+00:00" "time": "2020-10-15T08:29:30+00:00"
}, },
{ {
"name": "phpoption/phpoption", "name": "phpoption/phpoption",
@@ -11389,7 +11386,7 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"stability-flags": {}, "stability-flags": {},
"prefer-stable": true, "prefer-stable": true,
"prefer-lowest": true, "prefer-lowest": false,
"platform": { "platform": {
"php": ">=8.2", "php": ">=8.2",
"ext-intl": "*" "ext-intl": "*"
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@flasher/php-flasher", "name": "@flasher/php-flasher",
"type": "module", "type": "module",
"version": "2.1.5", "version": "2.5.1",
"description": "A powerful and flexible flash notification system for PHP applications", "description": "A powerful and flexible flash notification system for PHP applications",
"license": "MIT", "license": "MIT",
"author": "Younes ENNAJI <younes.ennaji.pro@gmail.com>", "author": "Younes ENNAJI <younes.ennaji.pro@gmail.com>",