> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Extensibility Runtime Best Practices

> Keep Auth0 extensibility on the latest supported runtime to stay secure, supported, and ready for lifecycle changes.

Keep every extensibility version on the latest recommended runtime. Don't wait for a deprecation notice.

## Why upgrade promptly

* **Security:** Newer Node.js versions receive security fixes; retired ones don't.
* **Support:** When a runtime reaches end of life, extensibility still targeting it is forced onto a newer runtime. An upgrade you plan is safer than one forced on you.
* **Smaller jumps:** Moving one version at a time avoids stacking breaking changes, such as removed modules or changed built-in behavior.

## Recommendations

1. **Validate your runtimes:** Check that each Action is on the latest recommended runtime, and that the tenant **Extensibility** runtime used by Custom Database scripts and Custom Social Connection scripts is too, along with any **Legacy Extensibility** override set for Rules and Hooks. Flag anything still on a deprecated runtime, including Marketplace integrations built on Actions, whose version the provider controls.
2. **Use Actions for new work:** Plan [migration from Rules and Hooks](https://auth0.com/docs/customize/actions/migrate) so less code depends on the tenant-wide runtime.
3. **Select the recommended runtime by default** for every new Action.
4. **Upgrade in development first:** Test in a non-production tenant, then promote.
5. **Upgrade Actions individually:** Deploy a new version on the new runtime and keep the previous version ready to [revert](https://auth0.com/docs/customize/actions/manage-versions.md#revert-actions).
6. **Test:** Add [unit tests](https://auth0.com/docs/customize/actions/unit-test/test-an-action.md) so a runtime change is validated automatically.
7. **Write portable code:** Avoid deprecated Node.js APIs, and for Action Modules use APIs compatible with every runtime you support.
8. **Check your integrations:** Ask Marketplace integration authors for versions that target a supported runtime.
9. **Track lifecycle dates:** Review [Deprecations and Migrations](https://auth0.com/docs/troubleshoot/product-lifecycle/deprecations-and-migrations) regularly.

Unless you set a **Legacy Extensibility** override, changing the tenant **Extensibility** runtime affects Custom Database scripts, Custom Social Connection scripts, Rules, and Hooks together.

Validate all of them before changing production.
