Releases: Indicio-tech/pydid
0.5.3
What's Changed
New Contributors
Summary of Changes
-
Dependency & Environment Updates:
- Modified pyproject.toml to raise the minimum Python version from 3.7 to 3.10, as 3.9 is EOL and key testing libraries have dropped support.
- Updated version constraints for
pydanticto>=2.7.0and adjusted other development dependencies likepytest.
-
Explicit DIDComm V1 and V2 Service Builders:
- In builder.py, the generic
add_didcommmethod has been superseded by two new explicit methods:add_didcomm_v1andadd_didcomm_v2. It still does automatic matching, but I have added a deprecation notice and replaced any use of it in the testing withadd_didcomm_v1. add_didcomm_v1creates aDIDCommV1Service, handlingrecipient_keys,routing_keys, andpriority.add_didcomm_v2creates aDIDCommV2Servicewith a compliantDIDCommV2ServiceEndpoint.- This change provides a clear and unambiguous API for developers to build the exact service type they need.
- Tests have been updated across the suite to align with the new builder logic.
- In builder.py, the generic
-
Backwards Compatibility:
- To avoid immediately breaking existing integrations,
ServiceBuilder.add_didcommis preserved as a compatibility wrapper. - It now emits a
DeprecationWarningand delegates to either the V1 or V2 builder. Version detection is based on theacceptheader or an explicitversionargument, defaulting to V1 to maintain old behavior.
- To avoid immediately breaking existing integrations,
-
Model Extensions:
- In service.py, the
typeattribute forDIDCommV1ServiceandDIDCommV2Servicenow supports aList[str], as noted in #83 allowing for service type arrays. - init.py has been updated to export the new service symbols (
DIDCommV1Service,DIDCommV2Service,DIDCommV2ServiceEndpoint) for direct use.
- In service.py, the
Breaking Changes
- Python Version: The minimum required Python version is now 3.10. This is a breaking change for users on Python 3.7, 3.8, or 3.9, and will break the 3.9 test.
- Deprecation:
ServiceBuilder.add_didcommis now deprecated and will be removed in a future release. Developers should migrate to usingadd_didcomm_v1oradd_didcomm_v2explicitly.
Full Changelog: v0.5.2...v0.5.3
v0.5.2
What's Changed
The majority of changes in this release are just minor version bumps. The most exciting addition and the one triggering this patch release is #182 which adds support for blockchainAccountId.
- chore(deps-dev): Bump ruff from 0.4.7 to 0.5.3 by @dependabot in #134
- chore(deps-dev): Bump ruff from 0.5.3 to 0.5.4 by @dependabot in #135
- chore(deps-dev): Bump pytest from 8.2.2 to 8.3.1 by @dependabot in #136
- chore(deps-dev): Bump pytest-asyncio from 0.23.7 to 0.23.8 by @dependabot in #133
- chore(deps-dev): Bump ruff from 0.5.4 to 0.6.3 by @dependabot in #147
- chore(deps-dev): Bump coverage from 7.5.3 to 7.6.1 by @dependabot in #141
- chore(deps-dev): Bump aiohttp from 3.9.5 to 3.10.6 by @dependabot in #151
- chore(deps-dev): Bump the dev group with 5 updates by @dependabot in #152
- chore(deps): Bump psf/black from 24.4.2 to 24.8.0 in the all-actions group by @dependabot in #140
- chore(deps): Bump typing-extensions from 4.12.1 to 4.12.2 in the minor group by @dependabot in #153
- chore(deps-dev): Bump aiohttp from 3.10.6 to 3.10.8 in the dev group by @dependabot in #155
- chore(deps-dev): Bump the dev group with 3 updates by @dependabot in #156
- chore(deps-dev): Bump the dev group across 1 directory with 5 updates by @dependabot in #161
- chore(deps): Bump psf/black from 24.8.0 to 24.10.0 in the all-actions group by @dependabot in #157
- chore(deps-dev): Bump the dev group across 1 directory with 5 updates by @dependabot in #166
- chore: ruff in gha by @dbluhm in #167
- ci: test python 3.11 by @dbluhm in #168
- ci: test python 3.12 by @dbluhm in #169
- chore(deps-dev): Bump the dev group across 1 directory with 4 updates by @dependabot in #172
- Adding the attribute "blockchainAccountId" by @thiagoromanos in #182
New Contributors
- @thiagoromanos made their first contribution in #182
Full Changelog: v0.5.1...v0.5.2
v0.5.1
What's Changed
- chore(deps-dev): Bump ruff from 0.4.3 to 0.4.7 by @dependabot in #120
- 🎨 Fix Pydantic warning and ⬆️ upgrade dependencies by @ff137 in #123
Full Changelog: v0.5.0...v0.5.1
v0.5.0
This release largely consists of updates to dependencies, the biggest of which is the upgrade to using Pydantic v2. Thank you to @ff137 for putting in the effort to make that happen!
The new Pydantic version may conflict with other dependencies that may still be using Pydantic v1. Bearing this in mind, this is a pre-1.0.0 minor version bump meaning projects pinning to ^0.4.3 will not automatically update to this version. However, there should be no API differences between 0.5.0 and the 0.4.3 release. Projects may update at their discretion without missing out on other improvements. If there is appetite for it, if there are fixes that come in, we may consider also releasing a patch or two for 0.4.x as a courtesy.
What's Changed
- ⬆️ update
blackandruffand 🎨 apply formatting by @ff137 in #86 - 🎨 fix typos by @ff137 in #84
- 👷 Configure dependabot workflow by @ff137 in #85
- 👷 Fix dependabot config by @ff137 in #87
- chore(deps): Bump the all-actions group with 2 updates by @dependabot in #88
- chore(deps): Bump typing-extensions from 4.10.0 to 4.11.0 by @dependabot in #93
- chore(deps-dev): Bump pytest-asyncio from 0.21.1 to 0.23.6 by @dependabot in #90
- chore(deps-dev): Bump pytest from 7.4.4 to 8.1.1 by @dependabot in #89
- chore(deps-dev): Bump aiohttp from 3.9.3 to 3.9.5 by @dependabot in #99
- chore(deps-dev): Bump black from 24.3.0 to 24.4.0 by @dependabot in #98
- chore(deps): Bump psf/black from 24.3.0 to 24.4.0 in the all-actions group by @dependabot in #97
- chore(deps-dev): Bump ruff from 0.3.4 to 0.3.7 by @dependabot in #96
- chore(deps-dev): Bump ruff from 0.3.7 to 0.4.0 by @dependabot in #100
- chore(deps-dev): Bump ruff from 0.4.0 to 0.4.1 by @dependabot in #101
- chore(deps-dev): Bump coverage from 7.4.4 to 7.5.0 by @dependabot in #102
- chore(deps-dev): Bump ruff from 0.4.1 to 0.4.3 by @dependabot in #111
- chore(deps-dev): Bump coverage from 7.5.0 to 7.5.1 by @dependabot in #110
- ⬆️ Upgrade pydantic to v2 by @ff137 in #72
- chore(deps): Bump psf/black from 24.4.0 to 24.4.2 in the all-actions group by @dependabot in #108
New Contributors
- @dependabot made their first contribution in #88
Full Changelog: v0.4.3...v0.5.0
v0.4.3
What's Changed
- Allow list or string as service type + test cases by @PatStLouis in #82
New Contributors
- @PatStLouis made their first contribution in #82
Full Changelog: v0.4.2...v0.4.3