Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 31, 2025

This PR contains the following updates:

Package Update Change
vapor/leaf patch from: "4.5.0" -> from: "4.5.1"

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

vapor/leaf (vapor/leaf)

v4.5.1: - Refactor encoder property to weak reference in KeyedContainerImpl and UnkeyedContainerImpl to prevent retain cycles

Compare Source

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 #&#8203;1 in closure #&#8203;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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot merged commit 60fdbf8 into main Jul 31, 2025
3 checks passed
@renovate renovate bot deleted the renovate/vapor-leaf-4.x branch July 31, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants