From f49923db69be4dd5c36ea247c8f18c45cf4cf617 Mon Sep 17 00:00:00 2001 From: Mike Nomitch Date: Tue, 28 Jan 2025 15:02:07 -0800 Subject: [PATCH] Removes database mentions from node:net docs --- .../2025-01-28-nodejs-compat-improvements.mdx | 8 ++------ src/content/docs/workers/runtime-apis/nodejs/net.mdx | 7 ------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/content/changelogs-next/2025-01-28-nodejs-compat-improvements.mdx b/src/content/changelogs-next/2025-01-28-nodejs-compat-improvements.mdx index 7b9bc9595c70a15..f59fd452e812a44 100644 --- a/src/content/changelogs-next/2025-01-28-nodejs-compat-improvements.mdx +++ b/src/content/changelogs-next/2025-01-28-nodejs-compat-improvements.mdx @@ -16,12 +16,8 @@ When using a Worker with the [`nodejs_compat`](/workers/runtime-apis/nodejs/) co #### node:net -This makes it possible to connect to databases such as [MySQL](https://www.mysql.com/), [PostgreSQL](https://www.postgresql.org/), -[Redis](https://redis.io/), or [MongoDB](https://github.com/mongodb/mongo). Though for production use, we recommend that you connect -using TLS, which can be done with the [`cloudflare:sockets`](/workers/runtime-apis/tcp-sockets/#connect) -module, or prefereably by using [Hyperdrive](/hyperdrive), which includes -[connection pooling](/hyperdrive/configuration/how-hyperdrive-works/#connection-pooling) -and [query caching](/hyperdrive/configuration/how-hyperdrive-works/#query-caching). +You can use [`node:net`](https://nodejs.org/api/net.html) to create a direct connection to servers via a TCP sockets +with [`net.Socket`](https://nodejs.org/api/net.html#class-netsocket). ```ts diff --git a/src/content/docs/workers/runtime-apis/nodejs/net.mdx b/src/content/docs/workers/runtime-apis/nodejs/net.mdx index f25af8183c10cc7..1b96480c5da8653 100644 --- a/src/content/docs/workers/runtime-apis/nodejs/net.mdx +++ b/src/content/docs/workers/runtime-apis/nodejs/net.mdx @@ -10,13 +10,6 @@ import { Render, TypeScriptExample } from "~/components"; You can use [`node:net`](https://nodejs.org/api/net.html) to create a direct connection to servers via a TCP sockets with [`net.Socket`](https://nodejs.org/api/net.html#class-netsocket). -This makes it possible to connect to databases such as [MySQL](https://www.mysql.com/), [PostgreSQL](https://www.postgresql.org/), -[Redis](https://redis.io/), or [MongoDB](https://github.com/mongodb/mongo). Though for production use, we recommend that you connect -using TLS, which can be done with the [`cloudflare:sockets`](/workers/runtime-apis/tcp-sockets/#connect) -module, or prefereably by using [Hyperdrive](/hyperdrive), which includes -[connection pooling](/hyperdrive/configuration/how-hyperdrive-works/#connection-pooling) -and [query caching](/hyperdrive/configuration/how-hyperdrive-works/#query-caching). - These functions use [`connect`](/workers/runtime-apis/tcp-sockets/#connect) functionality from the built-in `cloudflare:sockets` module.