Skip to content
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

Support builds for Electron v32 #1226

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

neoxpert
Copy link
Contributor

With the release of Electron v32 some classes and functions marked as deprecated have been removed and require adjustments. Also c++20 is now required by v8.

@neoxpert neoxpert requested a review from a team as a code owner July 15, 2024 18:55
Copy link
Member

@mceachen mceachen left a comment

Choose a reason for hiding this comment

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

Nice! Thanks!

@mceachen
Copy link
Member

mceachen commented Jul 23, 2024

@JoshuaWise if you could review this that would be great.

@@ -1,2165 +1,2165 @@
// better_sqlite3.cpp
Copy link
Contributor

Choose a reason for hiding this comment

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

What's causing every line in this file to change? Is it a line ending issue?

Seems to have been introduced in 113e8bd.

Same for better_sqlite3.hpp.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aye .. looks like the system i pushed the changes from had different line endings set up :-/ ..

In the end this is ugly, but those .cpp and .hpp files are auto generated by lzz anyway. Maybe it would help if the line ending to be used is setup within the .gitattributes.

Copy link
Contributor

Choose a reason for hiding this comment

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

No worries, happens to everyone at some point. The .gitattributes idea sounds good to me. Also, I didn't know those files were auto generated.

@nikwen
Copy link
Contributor

nikwen commented Aug 2, 2024

Thank you very much for the patch, by the way!

@rvion
Copy link

rvion commented Aug 4, 2024

can't wait to have this; recent electron fix critical issues on linux, and I'm currently locked out of those fixes because of this. I'm not the best C dev, but happy to help if I can to move that forward

@nikwen
Copy link
Contributor

nikwen commented Aug 4, 2024

@rvion This should make it work:

  1. npm install -D electron@v32.0.0-beta.3
  2. npm install neoxpert/better-sqlite3#fix_electron32_build
  3. ./node_modules/.bin/electron-rebuild

@mceachen mceachen merged commit 6eb32eb into WiseLibs:master Aug 13, 2024
17 checks passed
@mceachen mceachen mentioned this pull request Aug 15, 2024
johannes-vogel pushed a commit to cap-js/cds-dbs that referenced this pull request Aug 21, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [better-sqlite3](https://github.com/WiseLibs/better-sqlite3) |
[`11.1.2` ->
`11.2.0`](https://renovatebot.com/diffs/npm/better-sqlite3/11.1.2/11.2.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/better-sqlite3/11.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/better-sqlite3/11.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/better-sqlite3/11.1.2/11.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/better-sqlite3/11.1.2/11.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>WiseLibs/better-sqlite3 (better-sqlite3)</summary>

###
[`v11.2.0`](https://github.com/WiseLibs/better-sqlite3/releases/tag/v11.2.0)

[Compare
Source](https://github.com/WiseLibs/better-sqlite3/compare/v11.1.2...v11.2.0)

#### What's Changed

- Support builds for Electron v32 by
[@&#8203;neoxpert](https://github.com/neoxpert) in
[WiseLibs/better-sqlite3#1226
- Adding SQLITE_ENABLE_DBSTAT_VTAB by
[@&#8203;mikeburgh](https://github.com/mikeburgh) in
[WiseLibs/better-sqlite3#1228

#### New Contributors

- [@&#8203;mikeburgh](https://github.com/mikeburgh) made their first
contribution in
[WiseLibs/better-sqlite3#1228

**Full Changelog**:
WiseLibs/better-sqlite3@v11.1.2...v11.2.0

</details>

---

### 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 becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/cap-js/cds-dbs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants