Skip to content

fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4#1351

Merged
USA-RedDragon merged 1 commit intomainfrom
renovate/github.com-puzpuzpuz-xsync-v3-4.x
Aug 26, 2025
Merged

fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4#1351
USA-RedDragon merged 1 commit intomainfrom
renovate/github.com-puzpuzpuz-xsync-v3-4.x

Conversation

@usa-reddragon-renovate-ce
Copy link
Copy Markdown
Contributor

@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot commented Apr 2, 2025

This PR contains the following updates:

Package Type Update Change
github.com/puzpuzpuz/xsync/v3 require major v3.5.1 -> v4.1.0

Release Notes

puzpuzpuz/xsync (github.com/puzpuzpuz/xsync/v3)

v4.1.0

Compare Source

  • New data structure: UMPSCQueue #​168
  • Speed up LoadAndDelete and Delete in case of non-existing Map key #​167
  • Parallel Map resize #​170

UMPSCQueue is meant to serve as a replacement for a channel. However, crucially, it has infinite capacity. This is a very bad idea in many cases as it means that it never exhibits backpressure. In other words, if nothing is consuming elements from the queue, it will eventually consume all available memory and crash the process. However, there are also cases where this is desired behavior as it means the queue will dynamically allocate more memory to store temporary bursts, allowing producers to never block while the consumer catches up.

From now on, Map spawns additional goroutines to speed up resizing the hash table. This can be disabled when creating a Map with the new WithSerialResize setting:

m := xsync.NewMap[int, int](xsync.WithSerialResize())
// resize will take place on the current goroutine only
for i := 0; i < 10000; i++ {
	m.Store(i, i)
}

Thanks @​PapaCharlie and @​llxisdsh for the contributions!

v4.0.0

Compare Source

  • Minimal Golang version is now 1.24.
  • All non-generic data structures are now removed. Generic versions should be used instead - they use the old names, but type aliases are present to simplify v3-to-v4 code migration.
  • MapOf's hasher API is gone. The default and only hash function is now based on maphash.Comparable.
  • Map's Compute API now supports no-op (cancel) compute operation.

Thanks @​PapaCharlie for making this release happen

Migration notes
  • The old *Of types are kept as type aliases for the renamed data structures to simplify the migration, e.g. MapOf is an alias for Map.
  • NewMapOfPresized function is gone. NewMap combined with WithPresize should be used instead.
  • Map.Compute method now expects valueFn to return a ComputeOp value instead of a boolean flag. That's to support compute operation cancellation, so that the call does nothing.
  • Map.LoadOrTryCompute method is renamed to LoadOrCompute. The old LoadOrCompute method is removed as it was redundant.

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 has been generated by Renovate Bot.

@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code major labels Apr 2, 2025
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot force-pushed the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch 2 times, most recently from a2a9d17 to 48386ef Compare April 3, 2025 08:08
@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 3, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgolang/​github.com/​puzpuzpuz/​xsync/​v4@​v4.1.0100100100100100

View full report

@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot force-pushed the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch 3 times, most recently from 6fe26e7 to e4f3075 Compare April 5, 2025 16:30
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.78%. Comparing base (9e8b428) to head (165194a).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1351      +/-   ##
==========================================
+ Coverage   18.71%   18.78%   +0.07%     
==========================================
  Files          76       76              
  Lines        8454     8454              
==========================================
+ Hits         1582     1588       +6     
+ Misses       6872     6866       -6     
Flag Coverage Δ
backend 18.78% <ø> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot force-pushed the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch 4 times, most recently from 82eff37 to 94cedb1 Compare April 9, 2025 03:36
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 - autoclosed Apr 28, 2025
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot deleted the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch April 28, 2025 04:25
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 - autoclosed fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Apr 28, 2025
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot force-pushed the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch 2 times, most recently from 94cedb1 to 9741391 Compare May 3, 2025 05:48
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 - autoclosed Aug 20, 2025
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 - autoclosed fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Aug 20, 2025
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot force-pushed the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch 4 times, most recently from 2c3d67b to 027cf42 Compare August 25, 2025 17:04
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot force-pushed the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch 27 times, most recently from 6a1dce2 to d06fcef Compare August 26, 2025 03:27
Signed-off-by: usa-reddragon-renovate-ce[bot] <156608365+usa-reddragon-renovate-ce[bot]@users.noreply.github.com>
@usa-reddragon-renovate-ce usa-reddragon-renovate-ce bot force-pushed the renovate/github.com-puzpuzpuz-xsync-v3-4.x branch from d06fcef to 165194a Compare August 26, 2025 17:32
@USA-RedDragon USA-RedDragon merged commit b0d20df into main Aug 26, 2025
32 checks passed
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 go Pull requests that update Go code major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant