forked from atom/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nathan Sobo <nathan@github.com>
- Loading branch information
1 parent
874b555
commit e7444b1
Showing
6 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = require('electron').ipcRenderer | ||
|
||
const Grim = require('grim') | ||
Grim.deprecate('Use `require("electron").ipcRenderer` instead of `require("ipc")`') | ||
|
||
// Ensure each package that requires this shim causes a deprecation warning | ||
delete require.cache[__filename] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = require('electron').remote | ||
|
||
const Grim = require('grim') | ||
Grim.deprecate('Use `require("electron").remote` instead of `require("remote")`') | ||
|
||
// Ensure each package that requires this shim causes a deprecation warning | ||
delete require.cache[__filename] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = require('electron').webFrame | ||
|
||
const Grim = require('grim') | ||
Grim.deprecate('Use `require("electron").webFrame` instead of `require("web-frame")`') | ||
|
||
// Ensure each package that requires this shim causes a deprecation warning | ||
delete require.cache[__filename] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const electron = require('electron') | ||
|
||
electron.ipcRenderer.sendChannel = function () { | ||
const Grim = require('grim') | ||
Grim.deprecate('Use `ipcRenderer.send` instead of `ipcRenderer.sendChannel`') | ||
return this.send.apply(this, arguments) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters