Jklib

Latest version: v5.2.0

Safety actively analyzes 632246 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

5.2.0

- [dj] Removed `AssertionTestCase.assertMockCalls` as it can be replaced by `assert_called_with` and `assert_has_calls`
- [others] Replaced `black`, `isort`, and `flake8` with `ruff`
- [others] Replaced `pre-commit` with git hooks from the `.githooks` folder
- [others] Added a QA pipeline in the CICD

5.1.1

- [meili] Sleep time for indexer tests is now a class variable that defaults to 0.1s

5.1.0

- [dj] Added new test assertions in `ImprovedTestCase`
- [dj] Added `ImprovedModel` with pre/post save/delete hooks
- [meili] Added the `meili` folder with utilities to interact with MeiliSearch. Includes:
- types
- search utils
- Model indexer and serializers for Django (with test utils)

5.0.2

- [dev] Updated linters and pre-commits
- [dj] Added new assertions to `ImprovedTestCase`
- [dj] Replaced `NoBulkManager` with `ImprovedManager` which provides more flexibility
- Can use `ImprovedManager(allow_bulk=False)` to disable bulk operations
- [dj] Added `generate_json_streaming_content` to `ImprovedViewSet` to stream JSON response
- Added `parse_streaming_response` in test utils to handle streaming responses in unittests
- Updated `APITestCase.build_url` to use the endpoint's name like `reverse` and also handle query params

Breaking changes
- [dj] Removed `LifeCycleAbstractModel`

---

4.0.0

- Update local development configuration (pre-commits, requirements, etc.)
- Removal of most packages, and kept only **std** and **django_utils**
- Renamed **django_utils** package as **dj**
- Added new functions in both **dj** and **std** packages

---

3.2.2

Added
N/A

Changed
- [Django] Emails now have a default subject which can be overriden when calling `Email.send`

Fixed
- [Django] Fixed emails not being sent when using the `cc` and `to` parameters

Removed
- [Django] Removed the `commands` and the `operations` utilities

---

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.