Django-components

Latest version: v0.101

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

Scan your dependencies

Page 4 of 6

0.81

What's Changed

BREAKING CHANGE

- Function signature for `Component.render_to_response` has changes JuroOravec in https://github.com/EmilStenstrom/django-components/pull/521

Feat

- `Component.render` method is now public and documented. `render` and `render_to_response` have been reworked and both allow to specify args, kwargs, slots, and context.
- When passing slots to `render` or `render_to_response`, you can define slots as a string, or as a function.

**Full Changelog**: https://github.com/EmilStenstrom/django-components/compare/0.80...0.81

0.80

What's Changed

Feat
* feat: dependency injection with inject/provide by JuroOravec in https://github.com/EmilStenstrom/django-components/pull/506


**Full Changelog**: https://github.com/EmilStenstrom/django-components/compare/0.79...0.80

0.79

What's Changed

Breaking change
* refactor: change context_behavior default to "django" by JuroOravec in https://github.com/EmilStenstrom/django-components/pull/515
- Default value for the `COMPONENTS.context_behavior` setting was changes from `"isolated"` to `"django"`. If you did not set this value explicitly before, this may be a breaking change. See the rationale for change https://github.com/EmilStenstrom/django-components/issues/498.


**Full Changelog**: https://github.com/EmilStenstrom/django-components/compare/0.78...0.79

0.78

What's Changed
Fix
* fix: typo in html_attrs defaults dict fetching by zachbellay in https://github.com/EmilStenstrom/django-components/pull/513
* fix: compat with block tag in django mode by JuroOravec in https://github.com/EmilStenstrom/django-components/pull/511

Chore
* Better tests coverage via "tests: Split test files and run template tests under both context behavior modes" by JuroOravec in https://github.com/EmilStenstrom/django-components/pull/509

New Contributors
* zachbellay made their first contribution in https://github.com/EmilStenstrom/django-components/pull/513

**Full Changelog**: https://github.com/EmilStenstrom/django-components/compare/0.77...0.78

0.77

What's Changed
Breaking changes
* refactor: change fill alias from "as var" to default=var by JuroOravec in https://github.com/EmilStenstrom/django-components/pull/504


**Full Changelog**: https://github.com/EmilStenstrom/django-components/compare/0.76...0.77

0.76

What's Changed

Feat
* feat: Scoped slots + Updated docs by JuroOravec in https://github.com/EmilStenstrom/django-components/pull/495

Chore
* build(deps-dev): bump pytest from 8.2.0 to 8.2.1 by dependabot in https://github.com/EmilStenstrom/django-components/pull/501


**Full Changelog**: https://github.com/EmilStenstrom/django-components/compare/0.75...0.76

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.