Releases: fedi-libs/apmodel
Releases · fedi-libs/apmodel
0.5.4
Full Changelog: 0.5.3...0.5.4
0.5.3
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #21
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #22
- fix(object): Mention should can add to tag
Full Changelog: 0.5.2...0.5.3
0.5.2
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #19
New Contributors
- @pre-commit-ci[bot] made their first contribution in #19
Full Changelog: 0.5.1...0.5.2
0.5.1
What's Changed
- feat(actor): Add key retrieval functionality to Actor class by @AmaseCocoa in #16
Full Changelog: 0.5.0...0.5.1
0.5.0 - next
apmodel 0.5.0 ("Next")
This release introduces a major migration to Pydantic, enhancing data validation and serialization. It also includes several new features, bug fixes, and significant improvements to the testing framework and documentation.
💥 Breaking Changes
- The underlying model implementation has been migrated from dataclasses to Pydantic. This is a significant change that may affect how models are instantiated and manipulated. Please
review the documentation for details on the new Pydantic-based models.
✨ Features
- Pydantic Integration: All models are now based on Pydantic, providing robust data validation, serialization, and type hinting.
- Actor Endpoints: Added endpoints field to the Actor model to store a dictionary of endpoint URLs (e.g., proxyUrl, oauthTokenEndpoint).
- Likes and Shares: The base Object model now includes likes and shares fields, allowing for easy access to these common collections.
- LitePub Support: Added support for the EmojiReact object from the LitePub vocabulary.
to_dict()Method: A new to_dict() method has been added to models for easy conversion to a dictionary.- Performance Improvements:
- Implemented lazy loading for the ModelRegistry to improve initial import times.
- Core models are now preloaded for faster resolution.
🐛 Bug Fixes
- JSON-LD Context: The
@contextis now always serialized as a list to improve compatibility. - Multibase Encoding: Fixed an issue with public key encoding format to use PKCS#8.
- Collection Handling: Correctly load OrderedCollectionPage and its items.
- Numerous type annotation fixes to improve static analysis and developer experience.
🧪 Testing
- Increased Coverage: Expanded test coverage, especially for model properties and serialization.
- Real-World Data: Added new tests using real-world data from Akkoma, Mastodon, and Misskey to ensure compatibility.
- Registry Tests: Implemented comprehensive tests for the ModelRegistry.
📚 Documentation
- New Documentation Site: A new documentation site has been created with mkdocs.
- Updated README: The project's README.md has been overhauled with more detailed information.
- API Documentation: Added detailed API documentation for models, functions, and the registry.
⚙️ Internal
- Developer Environment:
- Introduced pre-commit hooks to automate dependency synchronization and code analysis with pyrefly.
- CI workflows have been updated and improved.
0.4.5
0.4.4
🐛 Bug Fixes
- (text) Assert with str
- Object compression should be performed after conversion to dict
- Mastodon not provide type field of publicKey
- Remove CryptographicKey from legacy loader list
0.4.3
Full Changelog: 0.4.2...0.4.3
0.4.2
fix: re re fix: #2 to me: 2回ともForce Pushで消失してたぞ
0.4.1
🚀 Features
- (actor) Add extension field
- Auto convert to LDContext
- Auto convert actor/object to id
🐛 Bug Fixes
- Set SETUPTOOLS_SCM_PRETEND_VERSION env variable
- Add assertionMethod to dynamic_context
- Don't use Undefined for assertionMethod field
- Remove Union from assertionMethod
Full Changelog: 0.4.0...0.4.1