Skip to content

Commit e7d046e

Browse files
docs: add changelog for recent changes (#12)
1 parent b7d3e0d commit e7d046e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ChangeLog
2+
3+
## v1.1.0 - 2025-12-09
4+
### Added
5+
- Implemented `__toString()` method for the `Result` class, allowing instances to be converted to strings (e.g. `"$result"` now returns the calculated value). (PR #1)
6+
- Added new `stop()` method to the timer, supporting stopping: (PR #2)
7+
- a specific timer by ID
8+
- **or** the **most recently started timer** when no ID is provided.
9+
- Added new `watch()` static method to replace `run()` for executing and timing callbacks. (PR #4)
10+
- Added new timer utility methods `isStarted()`, `isStopped()`, and `getActiveTimers()` in `TimeTracker` to inspect active and completed timers. (PR #7)
11+
- Added new timer utility methods `lap()`, `getLaps()`, `pause()`, `resume()`, and `inspect()` in `TimeTracker`. (PR #9)
12+
13+
### Changed
14+
- Replaced `ramsey/uuid` with native PHP functions (`bin2hex(random_bytes(16))`) for generating random IDs. (PR #3)
15+
- Removed the `ramsey/uuid` dependency as it is no longer required. (PR #3)
16+
- Replaced `STATUS_*` string constants with a dedicated `TimerStatus` enum. (PR #5)
17+
18+
### Fixed
19+
- Prevent duplicate `stop()` calls in `watch()` by adding an `isStopped()` check in the `finally` block. (RP #8)
20+
21+
### Deprecated
22+
- Marked `end()` as deprecated. It still works for backward compatibility but will be removed in a future major release. (PR #2)
23+
- Marked `run()` as deprecated. It still works for backward compatibility but will be removed in a future major release. (PR #4)

0 commit comments

Comments
 (0)