Releases: Senarc-Studios/Cool-Utils
Release 1.3.2 (The All Around Update!)
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 incensor
inLinks
class. (blocks bypassing links by censoring TLDs) - Added
Colour
function toTerminal
class to enable RGB Colours to Terminal Text. - Added
whitelist
lists toLinks
class that makes links not get detected when found.
Breaking Changes
- Only allowing
int
values onindent
argument onJSON
class. - Changed
get_data
function toget
inJSON
andGlobalJSON
classes. - Outputting Runtime Errors on
write
function onJSON
andGlobalJSON
classes.
Minor Changes
- Changed indent behaviour in
format
function onJSON
andGlobalJSON
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
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 inload
function inGlobalCache
andCache
classes. - Added
GlobalJSON
class. - Added
write
and_check_file
method toJSON
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
tostartswith
andendwith
toendswith
(spelling) in Compile class for the following methods:Compile.string
Compile.to_string
Compile.numbers
- Change windows commands in
os.py
file:- From
python3
topy
- From
pip
topy -m pip
- From
- Change
OPTION
toOPTIONS
(spelling). - Add staticmethod-s in
Terminal
class. - Use
is
instead of==
and is not instead of!=
when comparing toNone
. - 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
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
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
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
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
New Features
cool_utils.Links.check()
cool_utils.Links.censor()
cool_utils.Links.find()
Breaking Changes
utils
is renamed tocool_utils
Added Cache
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
New Features:
utils.Compile.all_possible_cases()
Cool Utils 1.0.9
New Features:
utils.get_command
Changes:
- Updated
requirements.txt
- Fixed logging in Discord Utils.