Skip to content

Releases: feluxe/sty

v1.0.5

25 Nov 05:46
Compare
Choose a tag to compare

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

05 Feb 13:29
Compare
Choose a tag to compare

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

05 Feb 13:29
Compare
Choose a tag to compare

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

05 Feb 13:28
Compare
Choose a tag to compare

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

05 Feb 13:27
Compare
Choose a tag to compare

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

05 Feb 13:22
Compare
Choose a tag to compare

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

28 Aug 12:33
Compare
Choose a tag to compare
1.0.0-rc.2 Pre-release
Pre-release

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 into sty.rs.ef.

1.0.0-rc.1

31 Jan 21:23
Compare
Choose a tag to compare
1.0.0-rc.1 Pre-release
Pre-release

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

08 Jan 18:19
Compare
Choose a tag to compare
1.0.0-rc.0 Pre-release
Pre-release

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 version 1.x.x after 1.0.0 was released.
  • This is a pre-release (rc.0). I'll release 1.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 now da_grey
  • black remains black
  • da_black is now black
  • li_white is now white
  • white is now li_grey
  • da_white is now grey

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

10 Sep 15:18
Compare
Choose a tag to compare
1.0.0-beta.12 Pre-release
Pre-release

Release 1.0.0b12. Multiple changes:

  • Implement Style() type: This changes the way in which Sty's Register() class sets, reads and renders styling rules. This allows for a more Pythonic customization interface.
    This change obsoletes set_style() and get_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 to sty.Register.
  • sty.Render was renamed to sty.RenderType.