Skip to content

Commit 8fe3ad2

Browse files
author
Christian Kolb
committed
Updated docs
1 parent 427a6d3 commit 8fe3ad2

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.14.0
4+
5+
- Added class for `Day`.
6+
- Added class for `Days`.
7+
- **[Breaking change](./UPGRADE.md#day-as-part-of-month)**: Updated `$day` value of `Month` to be a `Day` instead of an `int`.
8+
9+
## 0.13.1
10+
11+
- Fixed version constraint of `digital-craftsman/self-aware-normalizers`.
12+
313
## 0.13.0
414

515
- Updated registration to auto registration for doctrine types.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ It's only a thin wrapper over `DateTime` and uses it internally for all modifica
1818

1919
Additionally, the package provides a streamlined way to have the system running in `UTC` but still do the modifications in the relevant timezone. The internal `DateTime` is always in `UTC` and only internally converted to the relevant timezone for modifications. This way you can be sure that you're not missing or receiving an hour due to a switch of summer-time to winter-time in the relevant timezone.
2020

21+
Included as are classes for `Day` or `Weekday` and collections like `Days` or `Weekdays`.
22+
2123
This Symfony bundle includes Symfony normalizers for automatic normalization and denormalization and Doctrine types to store the objects directly in the database.
2224

2325
As it's a central part of an application, it's tested thoroughly (including mutation testing). Currently, more than 80% of the lines of code in this repository are tests.
2426

25-
[![Latest Stable Version](https://img.shields.io/badge/stable-0.13.1-blue)](https://packagist.org/packages/digital-craftsman/date-time-precision)
27+
[![Latest Stable Version](https://img.shields.io/badge/stable-0.14.0-blue)](https://packagist.org/packages/digital-craftsman/date-time-precision)
2628
[![PHP Version Require](https://img.shields.io/badge/php-8.4|8.5-5b5d95)](https://packagist.org/packages/digital-craftsman/date-time-precision)
2729
[![codecov](https://codecov.io/gh/digital-craftsman-de/date-time-precision/branch/main/graph/badge.svg?token=vZ0IvKPj2f)](https://codecov.io/gh/digital-craftsman-de/date-time-precision)
2830
![Packagist Downloads](https://img.shields.io/packagist/dt/digital-craftsman/date-time-precision)
@@ -36,7 +38,7 @@ Install package through composer:
3638
composer require digital-craftsman/date-time-precision
3739
```
3840

39-
> ⚠️ This bundle can be used (and is being used) in production, but hasn't reached version 1.0 yet. Therefore, there will be breaking changes between minor versions. I'd recommend that you require the bundle only with the current minor version like `composer require digital-craftsman/date-time-precision:0.13.*`. Breaking changes are described in the releases and [the changelog](./CHANGELOG.md). Updates are described in the [upgrade guide](./UPGRADE.md).
41+
> ⚠️ This bundle can be used (and is being used) in production, but hasn't reached version 1.0 yet. Therefore, there will be breaking changes between minor versions. I'd recommend that you require the bundle only with the current minor version like `composer require digital-craftsman/date-time-precision:0.14.*`. Breaking changes are described in the releases and [the changelog](./CHANGELOG.md). Updates are described in the [upgrade guide](./UPGRADE.md).
4042
4143
## When would I need that?
4244

UPGRADE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Upgrade guide
22

3+
## From 0.13.* to 0.14.0
4+
5+
### Day as part of month
6+
7+
A construction of `new Month` used `int $day` as parameter and now has `Day $day`. Replace all instances where you used the default constructor.
8+
39
## From 0.12.* to 0.13.0
410

511
### Switch to automatic doctrine types

0 commit comments

Comments
 (0)