Qtgql

Latest version: v0.139.0

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

Scan your dependencies

Page 12 of 17

0.113.4

--------------------

fix mypy plugin.

I couldn't fix mypy for itemsystem `get_base_type()` ATM.

0.113.3

--------------------

This release fixes a bug that `completed` and `operationOnFlight` wouldn't be updated
correctly.

Contributed by [ניר](https://github.com/nrbnlulu) via [PR #164](https://github.com/nrbnlulu/qtgql/pull/164/)

0.113.2

--------------------

This release adds support for operation errors hooks.
i.e
python
from qtgqlcodegen.py.runtime.queryhandler import BaseOperationHandler
from qtgqlcodegen.tools import slot

from PySide6.QtCore import QObject

class Foo(QObject):
def __init__(self, parent=None):
super().__init__(parent)
operation: BaseOperationHandler
operation.error.connect(self.on_error)

slot
def on_error(self, err: list[dict]) -> None:
print(err)


Contributed by [ניר](https://github.com/nrbnlulu) via [PR #162](https://github.com/nrbnlulu/qtgql/pull/162/)

0.113.1

--------------------

This release fixes an edge case where root types with no id fields
would cause errors on updates.

Contributed by [ניר](https://github.com/nrbnlulu) via [PR #160](https://github.com/nrbnlulu/qtgql/pull/160/)

0.113.0

--------------------

This release adds initial support for mutations.

- [x] Mutation handler (on par with query handler).
- [x] commit slot. - on par with `refetch()` / `fetch()`
- [x] Support variables
Every operation would generate <OperationName>Variables type, this type would be the property
The commit slot would have the types arguments on it, and for every type is not a plain JS type
we would generate a factory slot (accessible from QML), those types would be transformed to dictionaries and further on to JSON.

- [x] scalars
- [x] CustomScalars
- [x] objectTypes
- [x] Should have a `property` for `operationOnFlight` (maybe queries as well)

- [x] Test usage from QML Already covered by query tests, all operations use the same base class.
- [ ] <s>Update docs.</s> Would update in a separate PR when updating major version.
- [x] if there are variables for an operation than it shouldn't auto fetch itself (when used in QML)
we should provide something like `property bool autofetch: false`

Notes:
- This release also made `BaseQueryHandler` not a singleton, because you could have different
filters (on different handlers). Instead of `UseQuery{operationName: '...'}`
- There would be `Consume<operationName>{}` QQuickItem that would internally use
the generated <operationName> handler. By using this Item you declare that as long as this component lives
the data it retains wouldn't be gc'eed.
- This release changed the data property on operation handlers to handlerData.

Contributed by [ניר](https://github.com/nrbnlulu) via [PR #147](https://github.com/nrbnlulu/qtgql/pull/147/)

0.112.1

--------------------

This release adds support for queries refetching.

Contributed by [ניר](https://github.com/nrbnlulu) via [PR #143](https://github.com/nrbnlulu/qtgql/pull/143/)

Page 12 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.