Skip to content

Commit

Permalink
Release v0.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Bunn <[email protected]>
  • Loading branch information
stephen-bunn committed Jan 7, 2021
1 parent 6b8ccdd commit fd56e69
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,36 @@ Changelog
.. towncrier release notes start
`0.5.0 <https://github.com/stephen-bunn/chalky/releases/tag/v0.5.0>`_ (*2021-01-07*)
====================================================================================

Features
--------

- Automatically casting values applied to :class:`~chalky.chalk.Chalk` to strings.
This will fix issues where the user wants to easily use an instance of some class in a
templated string without having to cast it to a string themselves.

.. code-block:: python
:linenos:
from chalky import fg
class MyObject:
def __str__(self) -> str:
return f"{self.__class__.__qualname__!s}()"
print(fg.green | MyObject())
`0.4.0 <https://github.com/stephen-bunn/chalky/releases/tag/v0.4.0>`_ (*2020-12-28*)
====================================================================================

Features
--------

- Consuming the current chain's styles and colors if :method:`~.chain.Chain.chalk` is consumed.
- Consuming the current chain's styles and colors if :meth:`~.chain.Chain.chalk` is consumed.
This helps with constructing reusable styles with the chaining syntax:

.. code-block:: python
Expand Down
3 changes: 0 additions & 3 deletions changes/casting-values-to-string-automatically.feature

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "chalky"
version = "0.4.0"
version = "0.5.0"
description = "Simple ANSI terminal text coloring"
authors = ["Stephen Bunn <[email protected]>"]
maintainers = []
Expand Down

0 comments on commit fd56e69

Please sign in to comment.