Skip to content

Commit

Permalink
chore: update node.js (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 7, 2024
1 parent 491f5b0 commit 2b3b42d
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 1 deletion.
124 changes: 124 additions & 0 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,34 @@ functions:
script: |
set -e
tar xvzf nyc-output-darwin_unit-n16_i18n.tgz
- command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/nyc-output-darwin_unit-n20_import_node_fetch.tgz
remote_file: mongosh/binaries/${revision}/${revision_order_id}/nyc-output-darwin_unit-n20_import_node_fetch.tgz
bucket: mciuploads
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -e
tar xvzf nyc-output-darwin_unit-n20_import_node_fetch.tgz
- command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/nyc-output-darwin_unit-n16_import_node_fetch.tgz
remote_file: mongosh/binaries/${revision}/${revision_order_id}/nyc-output-darwin_unit-n16_import_node_fetch.tgz
bucket: mciuploads
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -e
tar xvzf nyc-output-darwin_unit-n16_import_node_fetch.tgz
- command: s3.get
params:
aws_key: ${aws_key}
Expand Down Expand Up @@ -3038,6 +3066,34 @@ functions:
script: |
set -e
tar xvzf nyc-output-linux_unit-n16_i18n.tgz
- command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/nyc-output-linux_unit-n20_import_node_fetch.tgz
remote_file: mongosh/binaries/${revision}/${revision_order_id}/nyc-output-linux_unit-n20_import_node_fetch.tgz
bucket: mciuploads
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -e
tar xvzf nyc-output-linux_unit-n20_import_node_fetch.tgz
- command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/nyc-output-linux_unit-n16_import_node_fetch.tgz
remote_file: mongosh/binaries/${revision}/${revision_order_id}/nyc-output-linux_unit-n16_import_node_fetch.tgz
bucket: mciuploads
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -e
tar xvzf nyc-output-linux_unit-n16_import_node_fetch.tgz
- command: s3.get
params:
aws_key: ${aws_key}
Expand Down Expand Up @@ -5222,6 +5278,34 @@ functions:
script: |
set -e
tar xvzf nyc-output-win32_unit-n16_i18n.tgz
- command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/nyc-output-win32_unit-n20_import_node_fetch.tgz
remote_file: mongosh/binaries/${revision}/${revision_order_id}/nyc-output-win32_unit-n20_import_node_fetch.tgz
bucket: mciuploads
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -e
tar xvzf nyc-output-win32_unit-n20_import_node_fetch.tgz
- command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/nyc-output-win32_unit-n16_import_node_fetch.tgz
remote_file: mongosh/binaries/${revision}/${revision_order_id}/nyc-output-win32_unit-n16_import_node_fetch.tgz
bucket: mciuploads
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -e
tar xvzf nyc-output-win32_unit-n16_import_node_fetch.tgz
- command: s3.get
params:
aws_key: ${aws_key}
Expand Down Expand Up @@ -8084,6 +8168,40 @@ tasks:
mongosh_skip_node_version_check: ""
mongosh_test_id: "n16_i18n"
mongosh_run_only_in_package: "i18n"
- name: test_n20_import_node_fetch
tags: ["unit-test"]
depends_on:
- name: compile_ts
variant: linux_unit
commands:
- func: checkout
- func: install
vars:
node_js_version: "20.11.1"
- func: test
vars:
mongosh_server_test_version: ""
node_js_version: "20.11.1"
mongosh_skip_node_version_check: ""
mongosh_test_id: "n20_import_node_fetch"
mongosh_run_only_in_package: "import-node-fetch"
- name: test_n16_import_node_fetch
tags: ["unit-test"]
depends_on:
- name: compile_ts
variant: linux_unit
commands:
- func: checkout
- func: install
vars:
node_js_version: "16.20.2"
- func: test
vars:
mongosh_server_test_version: ""
node_js_version: "16.20.2"
mongosh_skip_node_version_check: ""
mongosh_test_id: "n16_import_node_fetch"
mongosh_run_only_in_package: "import-node-fetch"
- name: test_m42xc_n20_java_shell
tags: ["unit-test"]
depends_on:
Expand Down Expand Up @@ -13101,6 +13219,8 @@ buildvariants:
- name: test_n16_history
- name: test_n20_i18n
- name: test_n16_i18n
- name: test_n20_import_node_fetch
- name: test_n16_import_node_fetch
- name: test_n20_js_multiline_to_singleline
- name: test_n16_js_multiline_to_singleline
- name: test_n20_logging
Expand Down Expand Up @@ -13265,6 +13385,8 @@ buildvariants:
- name: test_n16_history
- name: test_n20_i18n
- name: test_n16_i18n
- name: test_n20_import_node_fetch
- name: test_n16_import_node_fetch
- name: test_m42xc_n20_java_shell
- name: test_m44xc_n20_java_shell
- name: test_m44xe_n20_java_shell
Expand Down Expand Up @@ -13713,6 +13835,8 @@ buildvariants:
- name: test_n16_history
- name: test_n20_i18n
- name: test_n16_i18n
- name: test_n20_import_node_fetch
- name: test_n16_import_node_fetch
- name: test_n20_js_multiline_to_singleline
- name: test_n16_js_multiline_to_singleline
- name: test_n20_logging
Expand Down
1 change: 0 additions & 1 deletion packages/import-node-fetch/src/global.d.ts

This file was deleted.

2 changes: 2 additions & 0 deletions packages/import-node-fetch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
export type TNodeFetch = typeof import('node-fetch');
export type { Request, Response, RequestInfo, RequestInit } from 'node-fetch';

declare const __webpack_require__: unknown;

export default async function importNodeFetch(): Promise<TNodeFetch> {
// Node-fetch is an ESM module from 3.x
// Importing ESM modules to CommonJS is possible with a dynamic import.
Expand Down

0 comments on commit 2b3b42d

Please sign in to comment.