Skip to content

chore: update to pnpm v12 - #1869

Merged
Koenkk merged 5 commits into
masterfrom
pnpm-v12
Sep 11, 2026
Merged

Koenkk merged 5 commits into
masterfrom
pnpm-v12

Conversation

@Nerivec

@Nerivec Nerivec commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

Looks like patching is broken, won't work when deletes are present 😰
@Koenkk I'm thinking it might be easier to use a git source with a fork of bindings-cpp (can specify a tarball URL from GH release of fork - no npm pub needed)?

@Nerivec
Nerivec marked this pull request as draft September 10, 2026 01:33
@Koenkk

Koenkk commented Sep 10, 2026

Copy link
Copy Markdown
Owner

The git source sounds easier indeed

@DragonWork

DragonWork commented Sep 10, 2026 •

Copy link
Copy Markdown

@Koenkk Yeah, just like I suggested two weeks ago. serialport/bindings-cpp#239 (comment)

@Nerivec, for the bindings part of this, I’ve now published @dragonwork/[email protected] until the upstream fixes land.

It includes the Unix and Windows callback fixes and rebuilt native binaries. I updated some dependencies because GitHub Actions would fail otherwise. It’s built and published directly through GitHub Actions/OIDC with verified provenance. GitHub release immutability is enabled too, and the commit and tag are SSH-signed. (You can verify the provenance at https://www.npmjs.com/package/@dragonwork/serialport-bindings-cpp at the end of the page. I find this important because it ships prebuilt binaries for all supported platforms.)

Alongside the pnpm v12 update, you could replace its existing dependency with:

"@serialport/bindings-cpp": "npm:@dragonwork/[email protected]"

Then remove the old bindings patch and refresh the lockfile. The dependency alias carries through to Zigbee2MQTT without relying on downstream patch application then.

@Nerivec

Nerivec commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator Author

@DragonWork this is not the road we want to take; this would split the development, we only want to patch until upstream is fixed. Also Koenkk will own the repository for this.

@DragonWork

DragonWork commented Sep 10, 2026 •

Copy link
Copy Markdown

@DragonWork this is not the road we want to take. Also Koenkk will own the repository for this.

Alright. Just wanted to help. It was thought as a temporary fix anyways (you wouldn’t depend on that package but add an npm alias until upstream is fixed). It stays published from my side and with a fully transparent and verifiable build pipeline. You decide. 🫶🏻

@Nerivec
Nerivec marked this pull request as ready for review September 10, 2026 21:01
@Koenkk
Koenkk merged commit 8f46192 into master Sep 11, 2026
4 checks passed
@Koenkk
Koenkk deleted the pnpm-v12 branch September 11, 2026 18:37
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.

3 participants