Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 5, 2025

Bumps github.com/vapor/leaf from 4.4.1 to 4.5.1.

Release notes

Sourced from github.com/vapor/leaf's releases.

4.5.1 - Refactor encoder property to weak reference in KeyedContainerImpl and UnkeyedContainerImpl to prevent retain cycles

What's Changed

Refactor encoder property to weak reference in KeyedContainerImpl and UnkeyedContainerImpl to prevent retain cycles by @​makoni in #239

I’ve noticed memory usage growth in my project that is described in vapor/leaf#238

After adding some tests and running leaks, I found that currently there are retain cycles. That PR fixes them.

  4 (352 bytes) ROOT CYCLE: <EncoderImpl 0x1572270d0> [80]
     3 (272 bytes) storage --> ROOT CYCLE: <Leaf.LeafEncoder.(KeyedContainerImpl in _30C79F4310B915184892E56903FC555A)<CodingKeys in Foo [#1](https://github.com/vapor/leaf/issues/1) in closure [#1](https://github.com/vapor/leaf/issues/1) (Vapor.Application) async throws -> () in LeafTests.LeafMemoryGrowthTests.testRepeatedRenderMemoryGrowth() async throws -> ()> 0x157227120> [48]
        __strong encoder --> CYCLE BACK TO <EncoderImpl 0x1572270d0> [80]
        2 (224 bytes) __strong data._variant --> <Swift._DictionaryStorage<Swift.String, Leaf.(LeafEncodingResolvable in _30C79F4310B915184892E56903FC555A)> 0x157227170> [192]  item count: 1
           1 (32 bytes) <Closure context 0x157227150> [32]
2 (128 bytes) ROOT CYCLE: <EncoderImpl 0x156710ad0> [80]
1 (48 bytes) storage --> ROOT …

This patch was released by @​gwynne

Full Changelog: vapor/leaf@4.5.0...4.5.1

4.5.0 - General cleanup

What's Changed

General cleanup by @​gwynne in #237

Herein we bump the minimum Swift version to 5.10, fix a lingering Sendable issue, update the README and API docs, add Android and Musl CI, fix the tests to not require deterministic hashing, make the tests async, and do some code formatting.

While it isn’t required for this PR to build, it will not be warnings-free and the Android CI won’t pass until vapor/leaf-kit#135 is merged.

This patch was released by @​gwynne

Full Changelog: vapor/leaf@4.4.1...4.5.0

Commits
  • b70a610 Refactor encoder property to weak reference in KeyedContainerImpl and Unkeyed...
  • d469584 General cleanup (#237)
  • See full diff 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [github.com/vapor/leaf](https://github.com/vapor/leaf) from 4.4.1 to 4.5.1.
- [Release notes](https://github.com/vapor/leaf/releases)
- [Commits](vapor/leaf@4.4.1...4.5.1)

---
updated-dependencies:
- dependency-name: github.com/vapor/leaf
  dependency-version: 4.5.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file swift_package_manager Pull requests that update swift_package_manager code labels Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file swift_package_manager Pull requests that update swift_package_manager code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant