Skip to content

Commit

Permalink
Merge pull request #24 from Crell/v2
Browse files Browse the repository at this point in the history
Tukio v2
  • Loading branch information
Crell authored Apr 14, 2024
2 parents 64aa515 + 954ac17 commit a216d8d
Show file tree
Hide file tree
Showing 86 changed files with 2,283 additions and 1,201 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/phpstan.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/quality-assurance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Quality assurance
on:
push:
branches: ['master']
pull_request: ~

jobs:
phpunit:
name: PHPUnit tests on ${{ matrix.php }} ${{ matrix.composer-flags }}
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2', '8.3' ]
composer-flags: [ '' ]
phpunit-flags: [ '--coverage-text' ]
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
tools: composer:v2
- run: composer install --no-progress ${{ matrix.composer-flags }}
- run: vendor/bin/phpunit ${{ matrix.phpunit-flags }}
phpstan:
name: PHPStan checks on ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2', '8.3' ]
composer-flags: [ '' ]
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
tools: composer:v2
- run: composer install --no-progress ${{ matrix.composer-flags }}
- run: vendor/bin/phpstan
24 changes: 0 additions & 24 deletions .github/workflows/testing.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ build
composer.lock
vendor
.phpunit.result.cache
.phpunit.cache
/vendor-bin/**/vendor
.env
.idea
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@ All notable changes to `Tukio` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 2.0.0 - YYYY-MM-DD

### Added
- Major internal refactoring.
- There is now a `listener()` method on the Provider and Compiler classes that allows specifying multiple before/after rules at once, in addition to priority. It is *recommended* to use this method in place of the older ones.
- Similarly, there is a `listenerService()` method for registering any service-based listener.
- Upgraded to OrderedCollection v2, and switched to a Topological-based sort. The main advantage is the ability to support multiple before/after rules. However, this has a side effect that the order of listeners that had no relative order specified may have changed. This is not an API break as that order was never guaranteed, but may still affect some order-sensitive code that worked by accident. If that happens, and you care about the order, specify before/after orders as appropriate.
- Attributes are now the recommended way to register listeners.
- Attributes may be placed on the class level, and will be inherited by method-level listeners.

### Deprecated
- `SubscriberInterface` is now deprecated. It will be removed in v3.
- the `addListener`, `addListenerBefore`, `addListenerAfter`, `addListenerService`, `addListenerServiceBefore`, and `addListenerServiceAfter` methods have been deprecated. They will be removed in v3. Use `listener()` and `listenerService()` instead.

### Fixed
- Nothing

### Removed
- Nothing

### Security
- Nothing


## 1.5.0 - 2023-03-25

### Added
Expand Down
Loading

0 comments on commit a216d8d

Please sign in to comment.