From 881468ac267d8bbcb04bc70a21f1a3d5d7b5b56e Mon Sep 17 00:00:00 2001
From: Younes ENNAJI
Date: Sun, 29 Mar 2026 23:07:04 +0100
Subject: [PATCH] Fix documentation issues: outdated CDN versions, LICENSE
years, and broken links
- Update CDN references from @2.2.0 to @2.5.1 in docs/pages/javascript.md
- Fix LICENSE badge link in README.md to point to correct repo (php-flasher/php-flasher)
- Update copyright year to 2024-present across all 16 LICENSE files
- Fix docs/package.json version from 2.1.0 to 2.5.1
- Update sub-package READMEs to reference PHPFlasher ^2.5.1
- Add docs/package.json to bin/bump update targets
- Remove commented-out dead code in ResponseExtension.php
---
LICENSE | 2 +-
README.md | 2 +-
bin/bump | 5 +++++
docs/package.json | 2 +-
docs/pages/javascript.md | 8 ++++----
src/Laravel/LICENSE | 2 +-
src/Noty/Laravel/LICENSE | 2 +-
src/Noty/Prime/LICENSE | 2 +-
src/Noty/Prime/README.md | 2 +-
src/Noty/Symfony/LICENSE | 2 +-
src/Notyf/Laravel/LICENSE | 2 +-
src/Notyf/Prime/LICENSE | 2 +-
src/Notyf/Prime/README.md | 2 +-
src/Notyf/Symfony/LICENSE | 2 +-
src/Prime/Http/ResponseExtension.php | 1 -
src/Prime/LICENSE | 2 +-
src/SweetAlert/Laravel/LICENSE | 2 +-
src/SweetAlert/Prime/LICENSE | 2 +-
src/SweetAlert/Prime/README.md | 2 +-
src/SweetAlert/Symfony/LICENSE | 2 +-
src/Symfony/LICENSE | 2 +-
src/Toastr/Laravel/LICENSE | 2 +-
src/Toastr/Prime/LICENSE | 2 +-
src/Toastr/Prime/README.md | 2 +-
src/Toastr/Symfony/LICENSE | 2 +-
25 files changed, 31 insertions(+), 27 deletions(-)
diff --git a/LICENSE b/LICENSE
index cf3a76d6..a1afee43 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2024 PHPFlasher
+Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index c3cf940a..912b8820 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@
-
+
diff --git a/bin/bump b/bin/bump
index 25b0019a..fd155fe9 100755
--- a/bin/bump
+++ b/bin/bump
@@ -177,6 +177,11 @@ update_version() {
update_package_file "package.json" "$current_version" "$new_version"
fi
+ # Update docs package.json
+ if [ -f "docs/package.json" ]; then
+ update_package_file "docs/package.json" "$current_version" "$new_version"
+ fi
+
echo -e "\n ${SUCCESS} Version bump complete!\n"
}
diff --git a/docs/package.json b/docs/package.json
index 2f062afa..cd1be6f3 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,6 +1,6 @@
{
"name": "@flasher/docs",
- "version": "2.1.0",
+ "version": "2.5.1",
"license": "MIT",
"scripts": {
"build": "cross-env NODE_ENV=production encore production --progress",
diff --git a/docs/pages/javascript.md b/docs/pages/javascript.md
index 0605f97f..13a998b1 100644
--- a/docs/pages/javascript.md
+++ b/docs/pages/javascript.md
@@ -26,7 +26,7 @@ To pull in the PHP
+
```
---
@@ -55,7 +55,7 @@ flasher.info("Welcome back");
or if you are using a cdn like this:
```html
-
+
-
+
+