Skip to content

Releases: fedi-libs/apmodel

0.5.4

28 Jan 05:59
9422497

Choose a tag to compare

Full Changelog: 0.5.3...0.5.4

0.5.3

28 Jan 04:46
be49495

Choose a tag to compare

What's Changed

Full Changelog: 0.5.2...0.5.3

0.5.2

31 Dec 09:55
9a0fe48

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.1...0.5.2

0.5.1

23 Dec 07:46
9a9c00f

Choose a tag to compare

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

23 Dec 05:14
26f40ca

Choose a tag to compare

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 @context is 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

28 Nov 07:18
97021e6

Choose a tag to compare

0.4.4

04 Oct 00:01

Choose a tag to compare

🐛 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

14 Sep 16:53
1dd20a1

Choose a tag to compare

Full Changelog: 0.4.2...0.4.3

0.4.2

12 Sep 18:18
265db7f

Choose a tag to compare

fix: re re fix: #2

to me: 2回ともForce Pushで消失してたぞ

0.4.1

12 Sep 16:07

Choose a tag to compare

🚀 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