Skip to content

Conversation

@gwleuverink
Copy link
Collaborator

@gwleuverink gwleuverink commented Oct 21, 2025

Fixes #20
Fixes #21

Turns out Electron removed some properties we missed in the update:

https://www.electronjs.org/docs/latest/breaking-changes#removed-isdefault-and-status-properties-on-printerinfo

I've removed these properties from the Printer value object. This might be breaking though. Should I retroactively add it to the upgrade guide @simonhamp ?

@gwleuverink gwleuverink self-assigned this Oct 21, 2025
@gwleuverink gwleuverink added the bug Something isn't working label Oct 21, 2025
@gwleuverink gwleuverink changed the base branch from main to dependabot/github_actions/actions/setup-node-6 October 21, 2025 13:14
@gwleuverink gwleuverink changed the base branch from dependabot/github_actions/actions/setup-node-6 to main October 21, 2025 13:14
@gwleuverink
Copy link
Collaborator Author

Changes to the upgrade guide can be found here:

NativePHP/nativephp.com#224

@simonhamp
Copy link
Member

Couldn't we just make the parameters optional for now?

@gwleuverink
Copy link
Collaborator Author

We could. They would always be null, so peoples code would not error.

However if they rely on those properties their code would likely stop to work as intended.

If it was me I’d rather see an error. Or alternatively a obvious warning.

@simonhamp
Copy link
Member

I mean so that it's not breaking now. We could deprecate, and then pull them out in the next major version?

@gwleuverink
Copy link
Collaborator Author

We could do that, but pardon my confusion. Wouldn't a deprecation mean the feature should keep working?

Because if I set these values to null now, it would not mean the userland code keeps working like before.

@simonhamp
Copy link
Member

Because if I set these values to null now, it would not mean the userland code keeps working like before.

Maybe I'm missing something... from the linked issues it sounds like this isn't working right now?

I'm just thinking that removing these would almost certainly cause a BC break for folks relying on them.

But maybe this is only an internal data object and isn't used publicly? Or maybe its usage is minimal (hard to know)?

Just thinking what's the path that lets us avoid a breaking change?

@gwleuverink
Copy link
Collaborator Author

But maybe this is only an internal data object and isn't used publicly? Or maybe its usage is minimal (hard to know)?

It's def a publicly used class

Just thinking what's the path that lets us avoid a breaking change?

I might have a solution based on what @PeteBishwhip suggested 👍🏻 Let me try that right now

@gwleuverink gwleuverink merged commit d5b6179 into main Oct 28, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System::Print RAM consuming System::printers() not working in V2

5 participants