Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 8, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/puzpuzpuz/xsync/v3 v3.5.1 -> v4.1.0 age confidence

Warning

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

⚠️ MAJOR VERSION UPDATE ⚠️ - please manually update this package


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 - "on tuesday" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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 requested a review from a team as a code owner April 8, 2025 14:10
@renovate renovate bot added the dependency-major-update Indicates a dependency major version bump label Apr 8, 2025
@renovate renovate bot requested a review from bogdandrutu April 8, 2025 14:10
Copy link
Contributor Author

renovate bot commented Apr 8, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: processor/deltatocumulativeprocessor/go.sum
Command failed: go get -d -t ./...
go: -d flag is deprecated. -d=true is a no-op
go: module github.com/puzpuzpuz/xsync/[email protected] requires go >= 1.24; switching to go1.24.4
go: downloading go1.24.4 (linux/amd64)
go: download go1.24.4: golang.org/[email protected]: verifying module: checksum database disabled by GOSUMDB=off

@github-actions github-actions bot requested review from RichieSams and tombrk April 8, 2025 14:16
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 Apr 10, 2025
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Apr 11, 2025
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from ed685d3 to 2f65fb3 Compare April 14, 2025 22:44
@tombrk
Copy link
Member

tombrk commented Apr 15, 2025

dependency requires go 1.24 #38970

@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from 2f65fb3 to add9f90 Compare April 15, 2025 22:43
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 Apr 24, 2025
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Apr 24, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 Apr 24, 2025
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from add9f90 to d7f710d Compare April 28, 2025 21:20
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from d7f710d to 654bf34 Compare May 3, 2025 05:30
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 May 6, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 May 6, 2025
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 May 7, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 May 9, 2025
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 May 13, 2025
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from 654bf34 to 1b05ade Compare May 13, 2025 18:17
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 May 15, 2025
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 May 20, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 May 22, 2025
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 May 23, 2025
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from 1b05ade to 4097eb9 Compare May 26, 2025 21:36
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 Jun 6, 2025
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from 4097eb9 to 4174971 Compare June 9, 2025 17:47
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Jun 12, 2025
@renovate renovate 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 Jun 16, 2025
@renovate renovate bot closed this Jun 16, 2025
@renovate renovate bot deleted the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch June 16, 2025 15:50
@renovate renovate 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 Jun 17, 2025
@renovate renovate bot reopened this Jun 17, 2025
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from 168cd54 to 4174971 Compare June 17, 2025 15:11
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 Jun 23, 2025
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Jun 26, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Update module github.com/puzpuzpuz/xsync/v3 to v4 Jun 30, 2025
@renovate renovate bot force-pushed the renovate/g.yxqyang.asia-puzpuzpuz-xsync-v3-4.x branch from 4174971 to 410ee85 Compare June 30, 2025 14:34
@renovate renovate bot changed the title Update module github.com/puzpuzpuz/xsync/v3 to v4 fix(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants