Skip to content

Commit

Permalink
Merge pull request #23 from laravel-shift/l12-compatibility
Browse files Browse the repository at this point in the history
Laravel 12.x Compatibility
  • Loading branch information
rawilk authored Feb 25, 2025
2 parents 32f7fd5 + 3169d7c commit 19d3840
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 97 deletions.
116 changes: 59 additions & 57 deletions .github/workflows/pest.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,64 @@
name: Tests

on:
push:
paths:
- '**.php'
- phpunit.xml.dist
- .github/workflows/pest.yml
- composer.json
pull_request:
branches:
- main
push:
paths:
- **.php
- phpunit.xml.dist
- .github/workflows/pest.yml
- composer.json
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.1]
laravel: ['10.*', '11.*']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
filament: ^3.2.6
- laravel: 11.*
testbench: 9.*
filament: ^3.2.6
exclude:
- laravel: 11.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "filament/filament:${{ matrix.filament }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/pest --stop-on-failure --parallel --display-skipped
test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.1]
laravel: ['10.*', '11.*', '12.*']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
filament: ^3.2.6
- laravel: 11.*
testbench: 9.*
filament: ^3.2.6
exclude:
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "filament/filament:${{ matrix.filament }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/pest --stop-on-failure --parallel --display-skipped
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ All notable changes to `filament-password-input` will be documented in this file

### What's Changed

* Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in https://github.com/rawilk/filament-password-input/pull/15
* Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in https://github.com/rawilk/filament-password-input/pull/16
* Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in https://github.com/rawilk/filament-password-input/pull/17
* Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/rawilk/filament-password-input/pull/19
* Adds Brazilian Portuguese translation by @patriciomartinns in https://github.com/rawilk/filament-password-input/pull/18
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in https://github.com/rawilk/filament-password-input/pull/15
- Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in https://github.com/rawilk/filament-password-input/pull/16
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in https://github.com/rawilk/filament-password-input/pull/17
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/rawilk/filament-password-input/pull/19
- Adds Brazilian Portuguese translation by @patriciomartinns in https://github.com/rawilk/filament-password-input/pull/18

### New Contributors

* @patriciomartinns made their first contribution in https://github.com/rawilk/filament-password-input/pull/18
- @patriciomartinns made their first contribution in https://github.com/rawilk/filament-password-input/pull/18

**Full Changelog**: https://github.com/rawilk/filament-password-input/compare/v2.0.1...v2.0.2

## v2.0.1 - 2024-03-05

### What's Changed

* Laravel 11.x Compatibility by @laravel-shift in https://github.com/rawilk/filament-password-input/pull/13
* Bump ramsey/composer-install from 2 to 3 by @dependabot in https://github.com/rawilk/filament-password-input/pull/14
- Laravel 11.x Compatibility by @laravel-shift in https://github.com/rawilk/filament-password-input/pull/13
- Bump ramsey/composer-install from 2 to 3 by @dependabot in https://github.com/rawilk/filament-password-input/pull/14

### New Contributors

* @laravel-shift made their first contribution in https://github.com/rawilk/filament-password-input/pull/13
- @laravel-shift made their first contribution in https://github.com/rawilk/filament-password-input/pull/13

**Full Changelog**: https://github.com/rawilk/filament-password-input/compare/v2.0.0...v2.0.1

Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
`filament-password-input` is a package built for [Filament](https://filamentphp.com) that provides an enhanced password input form component that offers you the ability to add the following
features to your password inputs:

- Reveal password toggle
- Copy to clipboard
- Generate new password button
- Reveal password toggle
- Copy to clipboard
- Generate new password button

## Installation

Expand Down Expand Up @@ -238,10 +238,10 @@ The icons for used in the actions on this component can be customized in a servi

Here are the aliases required to modify each icon:

- `filament-password-input::copy` - copy to clipboard action
- `filament-password-input::regenerate` - regenerate password action
- `forms::components.text-input.actions.show-password` - show password reveal button
- `forms::components.text-input.actions.hide-password` - hide password reveal button
- `filament-password-input::copy` - copy to clipboard action
- `filament-password-input::regenerate` - regenerate password action
- `forms::components.text-input.actions.show-password` - show password reveal button
- `forms::components.text-input.actions.hide-password` - hide password reveal button

## Kitchen Sink Example

Expand Down Expand Up @@ -320,13 +320,13 @@ Please review [my security policy](https://github.com/rawilk/filament-password-i

## Credits

- [Randall Wilk](https://github.com/rawilk)
- [All Contributors](https://github.com/rawilk/filament-password-input/graphs/contributors)
- [Randall Wilk](https://github.com/rawilk)
- [All Contributors](https://github.com/rawilk/filament-password-input/graphs/contributors)

## Alternatives

- [papalardo/filament-password-input](https://github.com/papalardo/filament-password-input)
- [phpsa/filament-password-reveal](https://github.com/phpsa/filament-password-reveal)
- [papalardo/filament-password-input](https://github.com/papalardo/filament-password-input)
- [phpsa/filament-password-reveal](https://github.com/phpsa/filament-password-reveal)

## License

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
"require": {
"php": "^8.1|^8.2|^8.3",
"filament/forms": "^3.2",
"illuminate/contracts": "^10.0|^11.0",
"illuminate/contracts": "^10.0|^11.0|^12.0",
"spatie/laravel-package-tools": "^1.14"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.9|^8.0",
"larastan/larastan": "^2.6",
"orchestra/testbench": "^8.8|^9.0",
"pestphp/pest": "^2.20",
"pestphp/pest-plugin-laravel": "^2.2",
"pestphp/pest-plugin-livewire": "^2.1",
"orchestra/testbench": "^8.8|^9.0|^10.0",
"pestphp/pest": "^2.20|^3.7",
"pestphp/pest-plugin-laravel": "^2.2|^3.1",
"pestphp/pest-plugin-livewire": "^2.1|^3.0",
"spatie/laravel-ray": "^1.31"
},
"autoload": {
Expand Down
30 changes: 15 additions & 15 deletions upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ In 2.0, I've removed my custom action for revealing the password in favor of fil

The following methods for revealing password functionality have either changed or been removed in 2.0:

- `canRevealPassword` is now `revealable`
- `showPasswordIcon` is removed
- `hidePasswordIcon` is removed
- `showPasswordText` is removed
- `hidePasswordText` is removed
- `passwordInitiallyHidden` is removed
- `canRevealPassword` is now `revealable`
- `showPasswordIcon` is removed
- `hidePasswordIcon` is removed
- `showPasswordText` is removed
- `hidePasswordText` is removed
- `passwordInitiallyHidden` is removed

## Copy password

Expand All @@ -48,9 +48,9 @@ Password::make()

The following methods have either changed or been removed:

- `copyIcon` is removed - use icon aliases instead
- `copyIconColor` is removed - see [Copyable Method](#copyable-method)
- `copyTooltip` is removed - modify language lines instead now
- `copyIcon` is removed - use icon aliases instead
- `copyIconColor` is removed - see [Copyable Method](#copyable-method)
- `copyTooltip` is removed - modify language lines instead now

### Customization

Expand Down Expand Up @@ -80,12 +80,12 @@ Password::make()

The following methods have either changed or been removed:

- `generatePasswordUsing` is removed - see [Regenerate Method](#regenerate-method)
- `regeneratePasswordIcon` is removed - use icon aliases instead
- `regeneratePasswordIconColor` is removed - see [Regenerate Method](#regenerate-method)
- `regeneratePasswordTooltip` is removed - modify language lines instead now
- `notifyOnPasswordRegenerate` is removed - see [Regenerate Method](#regenerate-method)
- `passwordRegeneratedMessage` is removed - modify language lines instead now
- `generatePasswordUsing` is removed - see [Regenerate Method](#regenerate-method)
- `regeneratePasswordIcon` is removed - use icon aliases instead
- `regeneratePasswordIconColor` is removed - see [Regenerate Method](#regenerate-method)
- `regeneratePasswordTooltip` is removed - modify language lines instead now
- `notifyOnPasswordRegenerate` is removed - see [Regenerate Method](#regenerate-method)
- `passwordRegeneratedMessage` is removed - modify language lines instead now

### Customization

Expand Down

0 comments on commit 19d3840

Please sign in to comment.