Skip to content

Releases: Senarc-Studios/Cool-Utils

Release 1.3.2 (The All Around Update!)

08 May 16:05
Compare
Choose a tag to compare

Summery

This version has faster and better optimised code and fixes some minor bugs whilst enhancing new features and improving existing code! This version will also have more reliable Link Censors and Link Checks, it even implements a feature to add whitelists to link checks and censors.

New Features

  • Implemented strict mode in censor in Links class. (blocks bypassing links by censoring TLDs)
  • Added Colour function to Terminal class to enable RGB Colours to Terminal Text.
  • Added whitelist lists to Links class that makes links not get detected when found.

Breaking Changes

  • Only allowing int values on indent argument on JSON class.
  • Changed get_data function to get in JSON and GlobalJSON classes.
  • Outputting Runtime Errors on write function on JSON and GlobalJSON classes.

Minor Changes

  • Changed indent behaviour in format function on JSON and GlobalJSON classes.

Other Changes

  • Reimplemented how Link classes work to make it more reliable.

Full In-dept Code Changelog: v1.3.0...v1.3.2

Release v1.3.0

18 Apr 13:41
Compare
Choose a tag to compare

Summary

Today, Proguy, Senarc's current CTO has contributed to code and help out Cool-Utils, he helped us a lot, please thank him with his hard work, and for a overview of all the changes, as of version 1.3.0, there is GlobalCache and GlobalJSON that is different than normal Cache and JSON, we also enforced PEP 8 and PEP 252. There is a lot of changes in the background that make this library more efficient and better than before even when there might not be changes visible. The bug causing the Colour to leak after ending Terminal has been fixed now.

New Features

  • Added Separate Global and Local Cache.
  • Added default parameter in load function in GlobalCache and Cache classes.
  • Added GlobalJSON class.
  • Added write and _check_file method to JSON class.
  • Added more characters to characters in Links.check.
  • Added Proguy to contributor list.

Changes

  • Enforcing PEP 8 and PEP 252
  • Use typing overload to improve type checking and linters.
  • Change startwith to startswith and endwith to endswith (spelling) in Compile class for the following methods:
    • Compile.string
    • Compile.to_string
    • Compile.numbers
  • Change windows commands in os.py file:
    • From python3 to py
    • From pip to py -m pip
  • Change OPTION to OPTIONS (spelling).
  • Add staticmethod-s in Terminal class.
  • Use is instead of == and is not instead of != when comparing to None.
  • Simplified file variable in Terminal class.
  • Changed size to _size in cache.

Bug Fixes

  • Fixed Colour leak on Terminal.
  • Using proper MISSING instead of Constants.

Release v1.2.1.4

02 Apr 13:32
Compare
Choose a tag to compare

Breaking Changes

  • Changed the way Mongo class works.

Bug Fixes

  • Fixed issues with simple-chalk by re-implementing Terminal colours.
  • Made Mongo class mostly async.

Minor Changes

  • Removed unused variables
  • Removed unused libraries from requirements.txt.

Release v1.2.1.3

27 Mar 12:02
Compare
Choose a tag to compare

New Features

  • Added Array implementations.
  • Added Dates to default time format in Terminal output functions.

Bug Fixes

  • Errors caused by discord libraries
  • Fixed errors on output by parsing Terminal output variables as strings.
  • Syntax errors with Mongo
  • Fixed import typo.

Breaking Changes

  • Made variables in Cache functions to accept any variable type.
  • Made variables in JSON functions to accept any variable type.
  • Removed get_env function.
  • Removed discord utils.

Release 1.2.1.0.9

22 Jan 15:21
Compare
Choose a tag to compare
Release 1.2.1.0.9 Pre-release
Pre-release

Breaking Changes

  • Removed discord.py utils due to import issues.
  • Removed get_env due to it not working properly.

Changes

  • Shortened and improved get_command function.
  • Added on_error handler for errors in terminal.
  • Added dates to default terminal log format.
  • Fixed issues with Mongo.

Release 1.2.0

28 Nov 07:08
Compare
Choose a tag to compare

Breaking Changes

  • Renamed all the json_utils functions to start with cool_utils.JSON
  • You have to open the file before getting data or writing data to it with cool_utils.JSON.open()

New Features

  • Added cool_utils.JSON.build()
  • Added cool_utils.Terminal.set_format()
  • Added cool_utils.Terminal.start_log()
  • Added cool_utils.Terminal.stop_log()
  • Added cool_utils.Terminal.display()
  • Added cool_utils.Terminal.warn()
  • Added cool_utils.Terminal.error()
  • Added cool_utils.Terminal.clear()
  • Added cool_utils.Mongo.connect()
  • Added cool_utils.Mongo.set_collection()
  • Added await cool_utils.Mongo.insert()
  • Added cool_utils.Mongo.find()
  • Added await cool_utils.Mongo.find_one()
  • Added await cool_utils.Mongo.update()
  • Added await cool_utils.Mongo.delete()

Release 1.1.9

20 Nov 11:08
Compare
Choose a tag to compare

New Features

  • cool_utils.Links.check()
  • cool_utils.Links.censor()
  • cool_utils.Links.find()

Breaking Changes

  • utils is renamed to cool_utils

Added Cache

16 Nov 23:42
Compare
Choose a tag to compare

Summery
You can now store, load, and delete cache with Cool-Utils!

New Functions

  • utils.Cache.store()
  • utils.Cache.remove()
  • utils.Cache.size()
  • utils.Cache.clear()

Cool Utils 1.1.0

23 Oct 13:58
Compare
Choose a tag to compare

New Features:

  • utils.Compile.all_possible_cases()

Cool Utils 1.0.9

23 Oct 11:50
Compare
Choose a tag to compare

New Features:

  • utils.get_command

Changes:

  • Updated requirements.txt
  • Fixed logging in Discord Utils.