From e6ccd5128bb08deee9914fd9f00c948d7735c6d3 Mon Sep 17 00:00:00 2001 From: Arjay Angeles Date: Wed, 26 Feb 2025 15:00:35 +0800 Subject: [PATCH 1/2] feat: Laravel 12 --- README.md | 7 ++++--- composer.json | 20 ++++++++++---------- phpstan.neon.dist | 14 ++++++++++++-- 3 files changed, 26 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 23dca14..fb669a2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Laravel DataTables Buttons Plugin -[![Laravel 11.x](https://img.shields.io/badge/Laravel-11.x-orange.svg)](http://laravel.com) +[![Laravel 12.x](https://img.shields.io/badge/Laravel-12.x-orange.svg)](http://laravel.com) [![Latest Stable Version](https://img.shields.io/packagist/v/yajra/laravel-datatables-buttons.svg)](https://packagist.org/packages/yajra/laravel-datatables-buttons) [![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yajra/laravel-datatables-buttons) @@ -14,7 +14,7 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave ## Requirements - [PHP >= 8.2](http://php.net/) -- [Laravel 11.x](https://github.com/laravel/framework) +- [Laravel 12.x](https://github.com/laravel/framework) - [Laravel DataTables](https://github.com/yajra/laravel-datatables) - [jQuery DataTables v1.10.x](http://datatables.net/) - [jQuery DataTables Buttons Extension](https://datatables.net/reference/button/) @@ -31,10 +31,11 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave | 9.x | 9.x | | 10.x | 10.x | | 11.x | 11.x | +| 12.x | 12.x | ## Quick Installation -`composer require yajra/laravel-datatables-buttons:^11` +`composer require yajra/laravel-datatables-buttons:^12` #### Service Provider (Optional on Laravel 5.5) diff --git a/composer.json b/composer.json index a9dbc7d..00654c9 100644 --- a/composer.json +++ b/composer.json @@ -16,17 +16,17 @@ ], "require": { "php": "^8.2", - "yajra/laravel-datatables-oracle": "^11", - "yajra/laravel-datatables-html": "^11", - "illuminate/console": "^11" + "yajra/laravel-datatables-oracle": "^12", + "yajra/laravel-datatables-html": "^12", + "illuminate/console": "^12" }, "require-dev": { - "larastan/larastan": "^2.9.2", - "orchestra/testbench": "^9", - "laravel/pint": "^1.14", - "rector/rector": "^1.0.2", - "maatwebsite/excel": "^3.1.55", - "rap2hpoutre/fast-excel": "^5.4" + "larastan/larastan": "^3.1", + "orchestra/testbench": "^10", + "laravel/pint": "^1.21", + "rector/rector": "^2.0", + "maatwebsite/excel": "^3.1.64", + "rap2hpoutre/fast-excel": "^5.6" }, "autoload": { "psr-4": { @@ -40,7 +40,7 @@ }, "extra": { "branch-alias": { - "dev-master": "11.0-dev" + "dev-master": "12.x-dev" }, "laravel": { "providers": [ diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 5dafebc..7822d95 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -10,7 +10,17 @@ parameters: ignoreErrors: - '#Unsafe usage of new static\(\).#' - - identifier: missingType.generics - - identifier: missingType.iterableValue + - identifier: missingType.generics + - identifier: missingType.iterableValue + - identifier: argument.type + - identifier: method.nonObject + - identifier: foreach.nonIterable + - identifier: assign.propertyType + - identifier: return.type + - identifier: offsetAccess.nonOffsetAccessible + - identifier: property.defaultValue + - identifier: binaryOp.invalid + - identifier: encapsedStringPart.nonString + - identifier: return.missing excludePaths: From 85ad04b9cca14630a2ee1ea36e8855aded4dbc64 Mon Sep 17 00:00:00 2001 From: Arjay Angeles Date: Wed, 26 Feb 2025 15:08:07 +0800 Subject: [PATCH 2/2] docs: v12 changelog --- CHANGELOG.md | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81724aa..cf6e66f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,22 +1,5 @@ # Laravel DataTables Buttons Plugin CHANGELOG. -## v11.2.2 - 2025-01-18 +## v12.0.0 - 2025-02-26 -- Fix: Avoid redundant call to buildExcelFile in csv method #191 -- Fixes #192 - -## v11.2.1 - 2024-09-14 - -- fix: fast-excel exporting of related models #189 - -## v11.2.0 - 2024-09-03 - -- feat: fast-excel export via Column's exportRender() #187 - -## v11.1.0 - 2024-09-02 - -- feat: fast-excel export cell styling via exportFormat #186 - -## v11.0.0 - 2024-03-14 - -- Laravel 11.x support +- Laravel 12.x support