Releases: feluxe/sty
v1.0.5
Code Changes:
- Add py.typed file for better typing support. Thanks! @Eisfunke
- Use explicit imports: from .lib import is now from sty.lib import.
- More and better doc-strings. help(x) should be much more useful now.
Other:
- Add svg logo. Thanks! @kubinka0505
- Replace pipenv with poetry.
- Remove make.py build system.
- Remove all dev dependencies.
v1.0.4
This is not really a software release. The only thing which changed is the README.rst within the pypi package in order to render correctly on https://pypi.org/project/sty/
v1.0.3
This is not really a software release. The only thing which changed is the README.rst within the pypi package in order to render correctly on https://pypi.org/project/sty/
v1.0.2
This is not really a software release. The only thing which changed is the README.rst within the pypi package in order to render correctly on https://pypi.org/project/sty/
v1.0.1
This is not really a software release. The only thing which changed is the README.rst within the pypi package in order to render correctly on https://pypi.org/project/sty/
v1.0.0
Sty v1.0.0 released 🎉
At this point sty can be considered stable.
The "release candidate" phase was given a lot of time and nothing critical was reported for a while.
All features that are planned for the future are compatible with the existing interfaces.
Nothing changed since rc.2
.
1.0.0-rc.2
This release fixes a nasty typo within the reset
register. (Thanks a lot @technikian for fixing this!)
Unfortunately this introduces a minor breaking change....
Breaking Changes
- Renamed
sty.rs.rs
intosty.rs.ef
.
1.0.0-rc.1
This should be the last breaking change for any version which starts with 1.
Breaking Changes
- Deprecated methods
.set_style(...)
and.get_style(...)
were finally removed.
Non Breaking Changes
- sty is now fully typed.
1.0.0-rc.0
Sty version 1.0.0
is now feature complete.
- I'm going to support Python version
>=3.7
indefinitely. - Sty will follow
semver
so there won't be any breaking changes for version1.x.x
after 1.0.0 was released. - This is a pre-release (
rc.0
). I'll release1.0.0
in a couple of month if no major bugs are reported.
Breaking Changes
The grey palette changed from:
li_black = Rule(Render.sgr, 90)
black = Rule(Render.sgr, 30)
da_black = Rule(Render.eightbit_fg, 0)
li_white = Rule(Render.sgr, 97)
white = Rule(Render.sgr, 37)
da_white = Rule(Render.eightbit_fg, 249)
to:
black = Rule(Render.sgr, 30)
da_grey = Rule(Render.sgr, 90)
grey = Rule(Render.eightbit_fg, 249)
li_grey = Rule(Render.sgr, 37)
white = Rule(Render.sgr, 97)
Which means:
li_black
is nowda_grey
black
remainsblack
da_black
is nowblack
li_white
is nowwhite
white
is nowli_grey
da_white
is nowgrey
Non Breaking Changes
The effect-register and the reset-register now have a ef.rs
and a rs.ef
attribute, these can be used for resetting all effects in one go. E.g.:
a = f"{ef.bold}{ef.italic}hello world{ef.rs}"
1.0.0-beta.12
Release 1.0.0b12. Multiple changes:
- Implement
Style()
type: This changes the way in which Sty'sRegister()
class sets, reads and renders styling rules. This allows for a more Pythonic customization interface.
This change obsoletesset_style()
andget_style()
, thus the two methods are now deprecated. - Change yapf line-length to 88.
Documentation will be update with the next commits.
Breaking Changes
There are two breaking changes within the customization interface, which are easy to fix:
sty.Base
was renamed tosty.Register
.sty.Render
was renamed tosty.RenderType
.