derailed-archive / derailed-legacy

One Platform For Any Post.
https://derailed.one
GNU Affero General Public License v3.0
2 stars 0 forks source link

chore(deps): Bump msgspec from 0.14.1 to 0.16.0 #94

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps msgspec from 0.14.1 to 0.16.0.

Release notes

Sourced from msgspec's releases.

Version 0.16.0

  • Deprecate msgspec.from_builtins in favor of msgspec.convert. The new convert function provides a superset of the functionality available in the old from_builtins function. See the converters docs for more information (#431).
  • Add a from_attributes argument to msgspec.convert for allowing conversion between object types with matching attribute names. One use case for this is converting ORM objects to Struct or dataclasses types (#419).
  • Support passing generic Mapping objects as inputs to msgspec.convert. These may be coerced to dict/Struct/dataclasses/attrs types (#427).
  • Add a new strict keyword argument to all decode functions, Decoder classes, as well as msgspec.convert. This defaults to True, setting it to false enables a wider set of coercion rules (e.g. coercing a str input to an int). See "Strict" vs "Lax" Mode for more information (#434).
  • Allow any of msgspec's supported types as inputs to msgspec.convert (#431, #418).
  • Passthrough input unchanged when coercing to typing.Any type in msgspec.convert (#435).
  • Support parametrizing Decoder types at runtime (#415).
  • Support encoding subclasses of UUID (#429).

Version 0.15.1

  • Fix a reference counting bug introduced in 0.15.0 when decoding naive (no timezone) datetime/time objects in both the msgpack and json decoders (#409).
  • Work around an upstream bug in CPython to properly support Required/NotRequired in TypedDict when __future__.annotations is enabled (#410).

Version 0.15.0

  • Add support for Generic Struct types (#386, #393).
  • Add support for Generic dataclasses and attrs types (#396).
  • Add support for Generic typing.TypedDict and typing.NamedTuple types (#398).
  • BREAKING: No longer normalize timezones to UTC when decoding datetime objects from JSON (#391).
  • Support decoding unhyphenated UUIDs (#392).
  • A few type annotation fixups (#383, #387).
  • Dedent docstrings for descriptions when generating JSON schemas (#397).
  • Use a variant of __qualname__ when auto-generating Struct tags rather than __name__ (#399).
  • Fix bug when handling typing.Literal types containing a literal None (#400).
  • Make all Encoder/Decoder methods threadsafe (#402).
  • BREAKING: Drop the write_buffer_size kwarg to Encoder (#402).

Version 0.14.2

  • Remove __del__ trashcan usage for structs with gc=False (#369).
  • Support overriding __setattr__ in Struct types (#376).
  • Support encoding large integers in JSON (#378).
  • Fix a memory leak when msgpack decoding variable length tuples with more than 16 elements (#380).
  • Remove JSON compatibility checks when constructing a msgspec.json.Decoder. Trying to decode messages into types that JSON doesn't support will now error at decode time, rather than when the decoder is constructed (#381).
Commits
  • 10480b5 Update changelog for 0.16.0
  • be34add Add zero to used-by
  • 31c0f9f Add StrEnum to list of supported types
  • 061577c Document convert
  • 49dae17 Passthrough input unchanged for convert to Any type
  • e93128a Python 3.8 compatibility
  • 61169a5 Update benchmarks - from_builtins -> convert
  • 935a067 Document strict=False
  • b458440 Fixup strict type annotations, add tests
  • 7e214cb Add strict option to YAML decoder
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2023 11:02pm
dependabot[bot] commented 1 year ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.