require. Node 16 and later remove them. Before you use one of these modules, explicitly require it:
- In Rules, Custom Database scripts, and Custom Social Connection scripts,
requirea version listed as available for your runtime. - In Hooks and Actions, add the intended version as an explicit dependency first.
Replace magic globals
- Find every use of a magic global in your Rules, Custom Database scripts, and Custom Social Connection scripts.
- Add an explicit
requirefor each one, using a version listed in Can I require for the target runtime. - Test in a development tenant before you change the tenant-wide runtime.