Skip to content

Commit 7dcc1de

Browse files
committed
replaced node:process with process imports
1 parent 5f94d7e commit 7dcc1de

79 files changed

Lines changed: 85 additions & 133 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"name": "process",
56-
"message": "Use `import * as process from 'node:process';` instead"
56+
"message": "Use `import * as process from 'process';` instead"
5757
}
5858
],
5959
"prettier/prettier": "error",
@@ -99,6 +99,10 @@
9999
{
100100
"name": "..",
101101
"message": "Please import directly from the relevant file instead."
102+
},
103+
{
104+
"name": "node:*",
105+
"message": "Don't use `node:*`; use bare Node core module names instead."
102106
}
103107
]
104108
}
@@ -271,7 +275,8 @@
271275
{
272276
"patterns": [
273277
"**/../lib/**",
274-
"mongodb-mock-server"
278+
"mongodb-mock-server",
279+
"node:*"
275280
],
276281
"paths": [
277282
{

.github/scripts/highlights.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
import * as process from 'node:process';
2+
import * as process from 'process';
33
import { output } from './util.mjs';
44

55
const {

.github/scripts/nightly.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as url from 'node:url';
33
import * as fs from 'node:fs/promises';
44
import * as path from 'node:path';
5-
import * as process from 'node:process';
5+
import * as process from 'process';
66
import * as child_process from 'node:child_process';
77
import * as util from 'node:util';
88
import { output } from './util.mjs';

.github/scripts/release_notes.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as url from 'node:url';
33
import * as fs from 'node:fs/promises';
44
import * as path from 'node:path';
5-
import * as process from 'node:process';
5+
import * as process from 'process';
66
import * as semver from 'semver';
77
import { getCurrentHistorySection, output } from './util.mjs';
88

@@ -50,7 +50,7 @@ const releaseNotesPath = path.join(process.cwd(), 'release_notes.md');
5050
await fs.writeFile(
5151
releaseNotesPath,
5252
`:seedling: A new release!\n---\n${releaseNotes}\n---\n`,
53-
{ encoding:'utf8' }
53+
{ encoding: 'utf8' }
5454
);
5555

5656
await output('release_notes_path', releaseNotesPath)

.github/scripts/util.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
import * as process from 'node:process';
2+
import * as process from 'process';
33
import * as fs from 'node:fs/promises';
44

55
export async function output(key, value) {

src/client-side-encryption/state_machine.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import * as process from 'node:process';
2-
31
import * as fs from 'fs/promises';
42
import { type MongoCryptContext, type MongoCryptKMSRequest } from 'mongodb-client-encryption';
53
import * as net from 'net';
4+
import * as process from 'process';
65
import * as tls from 'tls';
76

87
import {

src/cmap/auth/aws_temporary_credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as process from 'node:process';
1+
import * as process from 'process';
22

33
import { type AWSCredentials, getAwsCredentialProvider } from '../../deps';
44
import { MongoAWSError } from '../../error';

src/cmap/auth/gssapi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as process from 'node:process';
2-
31
import * as dns from 'dns';
42
import * as os from 'os';
53

src/cmap/auth/mongodb_oidc/k8s_machine_workflow.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import * as process from 'node:process';
2-
31
import { readFile } from 'fs/promises';
2+
import * as process from 'process';
43

54
import type { OIDCCallbackFunction, OIDCResponse } from '../mongodb_oidc';
65

src/cmap/auth/mongodb_oidc/token_machine_workflow.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import * as process from 'node:process';
2-
31
import * as fs from 'fs';
2+
import * as process from 'process';
43

54
import { MongoAWSError } from '../../../error';
65
import type { OIDCCallbackFunction, OIDCResponse } from '../mongodb_oidc';

0 commit comments

Comments
 (0)