Skip to content

chore: Update win32 to 6.x in serverpod_shared - #5265

Merged
FXschwartz merged 2 commits into
serverpod:mainfrom
FXschwartz:5224-update-win32
Jun 2, 2026
Merged

FXschwartz merged 2 commits into
serverpod:mainfrom
FXschwartz:5224-update-win32

Conversation

@FXschwartz

Copy link
Copy Markdown
Collaborator

Bump win32 from ^5.13.0 to ^6.0.0 so serverpod_shared no longer conflicts with packages that already require win32 6.x.

Fixed #5224

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

Breaking changes

No breaking changes to public API

@FXschwartz
FXschwartz requested review from a team and marcelomendoncasoares June 1, 2026 21:02
@FXschwartz FXschwartz self-assigned this Jun 1, 2026
Copilot AI review requested due to automatic review settings June 1, 2026 21:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bumps the win32 dependency from ^5.13.0 to ^6.0.0 in serverpod_shared (and its template) to avoid version conflicts with consumers already on win32 6.x, and migrates the only usage site (process_alive.dart) to the 6.x API.

Changes:

  • Update win32 constraint to ^6.0.0 in both the package and template pubspec.yaml.
  • Migrate _readWindowsImagePath to use PWSTR, PROCESS_NAME_WIN32, and the new Win32Result return shape from QueryFullProcessImageName.
  • Migrate _withProcessHandle to use HANDLE, Win32Result, the boolean bInheritHandle parameter, and handle.isValid for OpenProcess.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/serverpod_shared/pubspec.yaml Bumps win32 from ^5.13.0 to ^6.0.0.
templates/pubspecs/packages/serverpod_shared/pubspec.yaml Mirrors the dependency bump in the template pubspec.
packages/serverpod_shared/lib/src/utils/process_alive.dart Migrates OpenProcess and QueryFullProcessImageName calls to the win32 6.x API (PWSTR, HANDLE, Win32Result, isValid).

@FXschwartz
FXschwartz force-pushed the 5224-update-win32 branch from d0812a6 to 9fdcd7c Compare June 1, 2026 23:45

@marcelomendoncasoares marcelomendoncasoares left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that everything is still working as expected, LGTM! 🪟

@FXschwartz
FXschwartz merged commit 4895908 into serverpod:main Jun 2, 2026
88 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[serverpod_shared] Update win32 to 6.x.x

3 participants