Django-idom

Latest version: v3.0.1

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

Scan your dependencies

Page 2 of 3

2.2.0

Added

- Add `options: QueryOptions` parameter to `use_query` to allow for configuration of this hook.

Changed

- By default, `use_query` will recursively prefetch all many-to-many or many-to-one relationships to prevent `SynchronousOnlyOperation` exceptions.

Removed

- `django_idom.hooks._fetch_lazy_fields` has been deleted. The equivalent replacement is `django_idom.utils.django_query_postprocessor`.

2.1.0

Changed

- Minimum `channels` version is now `4.0.0`.

Fixed

- Change type hint on `view_to_component` callable to have `request` argument be optional.
- Change type hint on `view_to_component` to represent it as a decorator with paranthesis (ex `view_to_component(compatibility=True)`)

Security

- Add note to docs about potential information exposure via `view_to_component` when using `compatibility=True`.

2.0.1

Fixed

- Ability to use `key=...` parameter on all prefabricated components

2.0.0

Added

- `use_origin` hook for returning the browser's `location.origin`.

Changed

- `view_to_component` now returns a `Callable`, instead of directly returning a `Component`. Check the docs for new usage info.
- `use_mutation` and `use_query` will now log any query failures.

Fixed

- Allow `use_mutation` to have `refetch=None`, as the docs suggest is possible.
- `use_query` will now prefetch all fields to prevent `SynchronousOnlyOperation` exceptions.
- `view_to_component`, `django_css`, and `django_js` type hints will now display like normal functions.
- IDOM preloader no longer attempts to parse commented out IDOM components.
- Tests are now fully functional on Windows

1.2.0

Added

- `auth_required` decorator to prevent your components from rendering to unauthenticated users.
- `use_query` hook for fetching database values.
- `use_mutation` hook for modifying database values.
- `view_to_component` utility to convert legacy Django views to IDOM components.

Changed

- Bumped the minimum IDOM version to 0.40.2
- Testing suite now uses `playwright` instead of `selenium`

Fixed

- IDOM preloader is no longer sensitive to whitespace within template tags.

1.1.0

Added

- `django_css` and `django_js` components to defer loading CSS & JS files until needed.

Changed

- Bumped the minimum IDOM version to 0.39.0

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.