Missing `fetch`-dependent interfaces in Electron 30

Missing fetch-dependent interfaces in Electron 30

The upgrade to Electron 30 introduced this Electron regression:

This is an issue for developers using the fetch-dependent interfaces such as Response which used to be in the global namespace.

Steps to reproduce

  1. Use an obsidian version with Electron 30.x on Mac or Windows
  2. Open the developer console
  3. type Response

But in the insiders build with Electron 30 it will instead throw an error that Response is undefined.

Did you follow the troubleshooting guide? Y

Expected result

What do you expect to see after carrying out the steps above?
Response() { [native code] }

Actual result

error, Response is not defined.

Environment

Obsidian: 1.6.3
Electron 30.1.0


Additional information

This caused breakage in the plugin no-instructions/relay (id: system3-relay).
Thanks to @mikeschmitz for extensive debugging in order to root cause this issue.

thanks.

This was fixed in electron 30.1.1. Our current stable release already ships with 30.1.2. Just download and reinstall Obsidian.

Do you know which versions electron 30.1.0 was included in? I added a polyfill to my plugin because it was crashing for some users but it would be nice to remove it eventually when I bump the minVersion.

Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.