You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've worked hard to limit the breaking changes for the 3.0.0 release. Here's the scenarios that broke along with their upgrade path:
"I'm using a custom preload script"
Before you could just reference window.__nightmare.ipc and nightmare would handle the rest. Now you'll need to copy and paste the whole preloader script in from lib/preload.js
"I'm using custom events inside a custom action"
These are no longer allowed since they've opened up security vulnerabilities in nightmare. There's probably a way to refactor your custom action that would avoid custom events. Please leave a note here if you've hit this and we'll try to accommodate you.
"I'm depending on the type of value that comes back from catch"
We've worked hard to limit the breaking changes for the 3.0.0 release. Here's the scenarios that broke along with their upgrade path:
"I'm using a custom preload script"
Before you could just reference
window.__nightmare.ipc
and nightmare would handle the rest. Now you'll need to copy and paste the whole preloader script in from lib/preload.js"I'm using custom events inside a custom action"
These are no longer allowed since they've opened up security vulnerabilities in nightmare. There's probably a way to refactor your custom action that would avoid custom events. Please leave a note here if you've hit this and we'll try to accommodate you.
"I'm depending on the type of value that comes back from
catch
"If you have something like this:
you'll need to change your code a bit. In nightmare 3.x all returned errors are actual
Error
values.The text was updated successfully, but these errors were encountered: