[COMPASS-5016] Remove/update usage of deprecated electron `remote` module Created: 17/Aug/21  Updated: 10/Jan/24  Resolved: 27/Jul/22

Status: Closed
Project: Compass
Component/s: Tech debt
Affects Version/s: None
Fix Version/s: 1.32.6

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Le Roux Bodenstein
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on COMPASS-4098 Upgrade to electron 13 Closed
is depended on by COMPASS-5507 Upgrade to electron 19 Closed
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Fish, Iteration Grouper

 Description   

In version 12, electron deprecated usage of the `remote` module and will remove it fully in 14. We use this in a few places in our code in places that we can replace with either the new `@electron/remote` branch, or we might be able to remove the remote module usage entirely like how we updated the file picker in compass-connect recently: https://github.com/mongodb-js/compass/pull/2380

More info:
https://www.electronjs.org/docs/breaking-changes#deprecated-remote-module



 Comments   
Comment by Githook User [ 28/Sep/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(electron): replace electron.remote with @electron/remote COMPASS-5016 (#3272)

  • replace electron.remote with @electron/remote
  • feedback
  • just remove the dodgy code?
  • Revert "just remove the dodgy code?"

This reverts commit 513a00668dcd8bc1a3e68f66485deb18c612e1cc.

  • init @electron/remote in shared config
  • Revert "Revert "just remove the dodgy code?""

This reverts commit 02acf56d5ad8e9a2b6f2767d3c20fcd9306d6392.
Branch: update-compass-shell-to-shared-config
https://github.com/mongodb-js/compass/commit/ae34fb74c50f05c857a26c70beb99ddffef8ce87

Comment by Githook User [ 30/Aug/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(electron): replace electron.remote with @electron/remote COMPASS-5016 (#3272)

  • replace electron.remote with @electron/remote
  • feedback
  • just remove the dodgy code?
  • Revert "just remove the dodgy code?"

This reverts commit 513a00668dcd8bc1a3e68f66485deb18c612e1cc.

  • init @electron/remote in shared config
  • Revert "Revert "just remove the dodgy code?""

This reverts commit 02acf56d5ad8e9a2b6f2767d3c20fcd9306d6392.
Branch: compass-settings
https://github.com/mongodb-js/compass/commit/ae34fb74c50f05c857a26c70beb99ddffef8ce87

Comment by Githook User [ 29/Jul/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(electron): replace electron.remote with @electron/remote COMPASS-5016 (#3272)

  • replace electron.remote with @electron/remote
  • feedback
  • just remove the dodgy code?
  • Revert "just remove the dodgy code?"

This reverts commit 513a00668dcd8bc1a3e68f66485deb18c612e1cc.

  • init @electron/remote in shared config
  • Revert "Revert "just remove the dodgy code?""

This reverts commit 02acf56d5ad8e9a2b6f2767d3c20fcd9306d6392.
Branch: remove-rc-from-evergreen
https://github.com/mongodb-js/compass/commit/ae34fb74c50f05c857a26c70beb99ddffef8ce87

Comment by Githook User [ 27/Jul/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(electron): replace electron.remote with @electron/remote COMPASS-5016 (#3272)

  • replace electron.remote with @electron/remote
  • feedback
  • just remove the dodgy code?
  • Revert "just remove the dodgy code?"

This reverts commit 513a00668dcd8bc1a3e68f66485deb18c612e1cc.

  • init @electron/remote in shared config
  • Revert "Revert "just remove the dodgy code?""

This reverts commit 02acf56d5ad8e9a2b6f2767d3c20fcd9306d6392.
Branch: macos-arm-build
https://github.com/mongodb-js/compass/commit/ae34fb74c50f05c857a26c70beb99ddffef8ce87

Comment by Githook User [ 26/Jul/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(electron): replace electron.remote with @electron/remote COMPASS-5016 (#3272)

  • replace electron.remote with @electron/remote
  • feedback
  • just remove the dodgy code?
  • Revert "just remove the dodgy code?"

This reverts commit 513a00668dcd8bc1a3e68f66485deb18c612e1cc.

  • init @electron/remote in shared config
  • Revert "Revert "just remove the dodgy code?""

This reverts commit 02acf56d5ad8e9a2b6f2767d3c20fcd9306d6392.
Branch: COMPASS-5678-query-history-as-popover
https://github.com/mongodb-js/compass/commit/ae34fb74c50f05c857a26c70beb99ddffef8ce87

Comment by Githook User [ 26/Jul/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(electron): replace electron.remote with @electron/remote COMPASS-5016 (#3272)

  • replace electron.remote with @electron/remote
  • feedback
  • just remove the dodgy code?
  • Revert "just remove the dodgy code?"

This reverts commit 513a00668dcd8bc1a3e68f66485deb18c612e1cc.

  • init @electron/remote in shared config
  • Revert "Revert "just remove the dodgy code?""

This reverts commit 02acf56d5ad8e9a2b6f2767d3c20fcd9306d6392.
Branch: COMPASS-5672-update-crud-toolbar-to-lg
https://github.com/mongodb-js/compass/commit/ae34fb74c50f05c857a26c70beb99ddffef8ce87

Comment by Githook User [ 26/Jul/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(electron): replace electron.remote with @electron/remote COMPASS-5016 (#3272)

  • replace electron.remote with @electron/remote
  • feedback
  • just remove the dodgy code?
  • Revert "just remove the dodgy code?"

This reverts commit 513a00668dcd8bc1a3e68f66485deb18c612e1cc.

  • init @electron/remote in shared config
  • Revert "Revert "just remove the dodgy code?""

This reverts commit 02acf56d5ad8e9a2b6f2767d3c20fcd9306d6392.
Branch: main
https://github.com/mongodb-js/compass/commit/ae34fb74c50f05c857a26c70beb99ddffef8ce87

Generated at Wed Feb 07 22:38:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.