Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to `initphp/events` are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [3.0.0] - 2026-11-22

### Breaking changes

Expand Down Expand Up @@ -140,5 +140,5 @@ Pre-1.0.2 history was not maintained in a `CHANGELOG.md`. Refer to the
Git log for individual fix commits (`git log src/Event.php`,
`git log src/Events.php`).

[Unreleased]: https://github.com/InitPHP/Events/compare/v1.0.2...HEAD
[3.0.0]: https://github.com/InitPHP/Events/compare/2.1.0...3.0.0
[1.0.2]: https://github.com/InitPHP/Events/releases/tag/v1.0.2
2 changes: 1 addition & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ instance unless your runtime serialises access.

## What PHP versions are supported?

The current `main` branch requires **PHP 8.2+**, and CI runs the full PHPUnit
Version 3.0.0 and later require **PHP 8.2+**, and CI runs the full PHPUnit
suite on PHP 8.2, 8.3, 8.4 and 8.5. Releases up to and including 2.1.0 declared
`php >=5.6`; if you are on an older PHP, lock to `^2.1` (see
[Installation](Installation.md#composer-constraint-examples)).
Expand Down
6 changes: 3 additions & 3 deletions docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ composer update initphp/events
```json
{
"require": {
"initphp/events": "^2.0"
"initphp/events": "^3.0"
}
}
```

If you are on a PHP version older than 8.2, the newest release that supports it
is 2.1.0 (its `composer.json` requires PHP `>=5.6`); the release that raises the
minimum to PHP 8.2 is a breaking change (see the
is 2.1.0 (its `composer.json` requires PHP `>=5.6`); 3.0.0 raises the
minimum to PHP 8.2 and is a breaking change (see the
[Changelog](https://github.com/InitPHP/Events/blob/main/CHANGELOG.md)). Lock to
the 2.1 line with:

Expand Down
5 changes: 3 additions & 2 deletions docs/Migration-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ This guide covers three migrations:
2. **From `initphp/events:^1.0` → `initphp/events:^2.0`** — the same
high-level `Events` facade, now bundling the low-level `EventEmitter`
primitive.
3. **From `initphp/events` 2.x → the next release** — the PHP minimum
3. **From `initphp/events` 2.x → 3.0.0** — the PHP minimum
moves to 8.2.

In the first two cases the upgrade path is intentionally gentle: your
existing code keeps compiling.

## From 2.x → the next release (unreleased)
## From 2.x → 3.0.0

| Before | After |
| --- | --- |
Expand All @@ -31,6 +31,7 @@ project's code style also moved to PER-CS, which affects contributors only.
| --- | --- |
| `2.0.0` | Merged the standalone `initphp/event-emitter` package: bundled `EventEmitter` and `EventEmitterInterface`, `replace` declaration, BC aliases. |
| `2.1.0` | Priority order is honoured; `Event::on()` default priority is `PRIORITY_NORMAL`; once-listeners fire at most once through `Event`; new `Event::once()` / `off()` / `removeAllListeners()` / `clearDebug()` / `getEmitter()`; new `Events::reset()` / `setInstance()`, public `Events::getInstance()`; `EventEmitterInterface::clearOnceListeners()`. |
| `3.0.0` | PHP minimum raised to `^8.2`, code style moved to PER-CS; API unchanged (see [From 2.x → 3.0.0](#from-2x--300)). |

The changelog entry for 2.1.0 covers the whole 2.x line, because 2.0.0
shipped without a changelog.
Expand Down
Loading