Skip to content

Commit 8f0ae7e

Browse files
mikenomitchkodster28
authored andcommitted
Removes database mentions from node:net docs (#19503)
1 parent 3a4eaab commit 8f0ae7e

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/content/changelogs-next/2025-01-28-nodejs-compat-improvements.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ When using a Worker with the [`nodejs_compat`](/workers/runtime-apis/nodejs/) co
1616

1717
#### node:net
1818

19-
This makes it possible to connect to databases such as [MySQL](https://www.mysql.com/), [PostgreSQL](https://www.postgresql.org/),
20-
[Redis](https://redis.io/), or [MongoDB](https://github.com/mongodb/mongo). Though for production use, we recommend that you connect
21-
using TLS, which can be done with the [`cloudflare:sockets`](/workers/runtime-apis/tcp-sockets/#connect)
22-
module, or prefereably by using [Hyperdrive](/hyperdrive), which includes
23-
[connection pooling](/hyperdrive/configuration/how-hyperdrive-works/#connection-pooling)
24-
and [query caching](/hyperdrive/configuration/how-hyperdrive-works/#query-caching).
19+
You can use [`node:net`](https://nodejs.org/api/net.html) to create a direct connection to servers via a TCP sockets
20+
with [`net.Socket`](https://nodejs.org/api/net.html#class-netsocket).
2521

2622
<TypeScriptExample filename="index.ts">
2723
```ts

src/content/docs/workers/runtime-apis/nodejs/net.mdx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ import { Render, TypeScriptExample } from "~/components";
1010
You can use [`node:net`](https://nodejs.org/api/net.html) to create a direct connection to servers via a TCP sockets
1111
with [`net.Socket`](https://nodejs.org/api/net.html#class-netsocket).
1212

13-
This makes it possible to connect to databases such as [MySQL](https://www.mysql.com/), [PostgreSQL](https://www.postgresql.org/),
14-
[Redis](https://redis.io/), or [MongoDB](https://github.com/mongodb/mongo). Though for production use, we recommend that you connect
15-
using TLS, which can be done with the [`cloudflare:sockets`](/workers/runtime-apis/tcp-sockets/#connect)
16-
module, or prefereably by using [Hyperdrive](/hyperdrive), which includes
17-
[connection pooling](/hyperdrive/configuration/how-hyperdrive-works/#connection-pooling)
18-
and [query caching](/hyperdrive/configuration/how-hyperdrive-works/#query-caching).
19-
2013
These functions use [`connect`](/workers/runtime-apis/tcp-sockets/#connect) functionality from the built-in `cloudflare:sockets` module.
2114

2215
<TypeScriptExample filename="index.ts">

0 commit comments

Comments
 (0)