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"
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"
}
-1
View File
@@ -27,7 +27,6 @@
"illuminate/support": "^11.0|^12.0|^13.0",
"laravel/octane": "^2.3",
"livewire/livewire": "^3.0",
"paragonie/random_compat": "^2.0",
"psr/container": "^1.1|^2.0",
"symfony/config": "^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",
"This file is @generated automatically"
],
"content-hash": "75c6ad2f4921d2b29ebfc9c3e2a067be",
"content-hash": "bae119fc55afe5c607e35e693f3e8c59",
"packages": [
{
"name": "brick/math",
@@ -2624,33 +2624,29 @@
},
{
"name": "paragonie/random_compat",
"version": "v2.0.0",
"version": "v9.99.100",
"source": {
"type": "git",
"url": "https://github.com/paragonie/random_compat.git",
"reference": "321a59fed499a5624b0e40cb5c824ae6116e0c18"
"reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/321a59fed499a5624b0e40cb5c824ae6116e0c18",
"reference": "321a59fed499a5624b0e40cb5c824ae6116e0c18",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a",
"reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a",
"shasum": ""
},
"require": {
"php": ">=5.2.0"
"php": ">= 7"
},
"require-dev": {
"phpunit/phpunit": "4.*|5.*"
"phpunit/phpunit": "4.*|5.*",
"vimeo/psalm": "^1"
},
"suggest": {
"ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
},
"type": "library",
"autoload": {
"files": [
"lib/random.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
@@ -2665,6 +2661,7 @@
"description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
"keywords": [
"csprng",
"polyfill",
"pseudorandom",
"random"
],
@@ -2673,7 +2670,7 @@
"issues": "https://github.com/paragonie/random_compat/issues",
"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",
@@ -11389,7 +11386,7 @@
"minimum-stability": "dev",
"stability-flags": {},
"prefer-stable": true,
"prefer-lowest": true,
"prefer-lowest": false,
"platform": {
"php": ">=8.2",
"ext-intl": "*"
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@flasher/php-flasher",
"type": "module",
"version": "2.1.5",
"version": "2.5.1",
"description": "A powerful and flexible flash notification system for PHP applications",
"license": "MIT",
"author": "Younes ENNAJI <younes.ennaji.pro@gmail.com>",