Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 1943-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Dec 13, 2024
2 parents 4ecac02 + 18a499e commit 977accf
Show file tree
Hide file tree
Showing 17 changed files with 1,176 additions and 913 deletions.
12 changes: 0 additions & 12 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8179,17 +8179,6 @@ tasks:
mongosh_test_id: "types"
mongosh_run_only_in_package: "types"
task_name: ${task_name}
# TODO: This is an always failing test to check Foliage. Should be removed afterwards.
- name: test_always_failing
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
commands:
- command: shell.exec
type: setup
params:
working_dir: src
shell: bash
script: |
node -e "throw new Error()"

###
# INTEGRATION TESTS
Expand Down Expand Up @@ -15915,7 +15904,6 @@ buildvariants:
- name: test_vscode
- name: test_connectivity
- name: test_apistrict
- name: test_always_failing
- name: linux_coverage
display_name: "Ubuntu 20.04 x64 (Coverage and Static Analysis Check)"
run_on: ubuntu2004-small
Expand Down
12 changes: 0 additions & 12 deletions .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -1161,17 +1161,6 @@ tasks:
mongosh_run_only_in_package: "<% out(packageName) %>"
task_name: ${task_name}
<% } %>
# TODO: This is an always failing test to check Foliage. Should be removed afterwards.
- name: test_always_failing
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
commands:
- command: shell.exec
type: setup
params:
working_dir: src
shell: bash
script: |
node -e "throw new Error()"

###
# INTEGRATION TESTS
Expand Down Expand Up @@ -1604,7 +1593,6 @@ buildvariants:
- name: test_vscode
- name: test_connectivity
- name: test_apistrict
- name: test_always_failing
- name: linux_coverage
display_name: "Ubuntu 20.04 x64 (Coverage and Static Analysis Check)"
run_on: ubuntu2004-small
Expand Down
14 changes: 7 additions & 7 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The following third-party software is used by and included in **mongosh**.
This document was automatically generated on Wed Dec 11 2024.
This document was automatically generated on Fri Dec 13 2024.

## List of dependencies

Expand Down Expand Up @@ -241,7 +241,7 @@ Package|Version|License
**[execa](#a0c2c672c3fccddd8bd85ffff34f8f18d893b9f136946e6225b9abc9a8fae10e)**|5.0.0|MIT
**[execa](#099ba5f976333854bfd5aa2237fd12d883c4477af76007a7963109833edef012)**|7.2.0|MIT
**[expand-template](#46d3e73ca0d4a8c14e99252386f0a5c1a4fd8b2747331373d7b4da97105c15bb)**|2.0.3|(MIT OR WTFPL)
**[express](#96b5945aa9b5ba9189eb3e9f50f6522e976d90a93dc42f2f3aa13cbcffb434a2)**|4.21.1|MIT
**[express](#4d2041a77bd4922bcebeb1bb80240f087b10510d23d4a3142db7206a9feb739a)**|4.21.2|MIT
**[fast-xml-parser](#ebbe8cacbca0e6da2c884ade309dddffc2df1cf8f3532ffda03e31aa6d3a9a3b)**|4.4.1|MIT
**[fault](#387740fc7544e813d0a9ad480550d0bb536270783b1ce8c1ee83cd7d18b1472e)**|1.0.4|MIT
**[fetch-blob](#9a40c73e2482c1cc651991133722a6fedd12dc752d2858a21da24395e6fc8461)**|3.2.0|MIT
Expand Down Expand Up @@ -375,7 +375,7 @@ Package|Version|License
**[parseurl](#c3fdd1b6fb725cb30e8fed82cf929953b46129d347d8404a4a51b633389fbae8)**|1.3.3|MIT
**[path-key](#e1a2a032096ace66b422351e00b11b0229e42e4b49c2146f439f8fe442218451)**|3.1.1|MIT
**[path-key](#8e0734b8abb76579df2174822606e692914e985fc58363a78e6ad4b2a4a5831f)**|4.0.0|MIT
**[path-to-regexp](#96d230365f414cce8d80ceb9d99d855685dfa922f931b49ea01952a1efe64266)**|0.1.10|MIT
**[path-to-regexp](#a36c8f7aea129a341c589b7722e2c873fab8a2d01a0c3e2e426f5b28ba793621)**|0.1.12|MIT
**[path-to-regexp](#571cfd74ecd5ea999273383b83a44bf35d4a62383c67a63fef169cc42eb2d859)**|1.9.0|MIT
**[picocolors](#f964752f1f8cfd947506fd51ce1c148469ecf3b6f531d826511b720670e556f1)**|1.1.0|ISC
**[prebuild-install](#93d13a9b3a51a6a802fcd35aa031d3ae7369aa6fd47d3a89f28a6d31ea3c9dc5)**|7.1.2|MIT
Expand Down Expand Up @@ -22956,8 +22956,8 @@ License files:
THE SOFTWARE.


<a id="96b5945aa9b5ba9189eb3e9f50f6522e976d90a93dc42f2f3aa13cbcffb434a2"></a>
### [express](https://www.npmjs.com/package/express) (version 4.21.1)
<a id="4d2041a77bd4922bcebeb1bb80240f087b10510d23d4a3142db7206a9feb739a"></a>
### [express](https://www.npmjs.com/package/express) (version 4.21.2)
License tags: MIT

License files:
Expand Down Expand Up @@ -28860,8 +28860,8 @@ License files:



<a id="96d230365f414cce8d80ceb9d99d855685dfa922f931b49ea01952a1efe64266"></a>
### [path-to-regexp](https://www.npmjs.com/package/path-to-regexp) (version 0.1.10)
<a id="a36c8f7aea129a341c589b7722e2c873fab8a2d01a0c3e2e426f5b28ba793621"></a>
### [path-to-regexp](https://www.npmjs.com/package/path-to-regexp) (version 0.1.12)
License tags: MIT

License files:
Expand Down
207 changes: 204 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions packages/browser-repl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,20 @@ const runtime = new IframeRuntime(serviceProvider);
Shell is a React component with the following properties:

- `runtime: Runtime`: The runtime used to evaluate code.
- `onOutputChanged?: (output: readonly ShellOutputEntry[]) => void`: A function called each time the output changes with an array of `ShellOutputEntryes`.
- `onHistoryChanged?: (history: readonly string[]) => void`: A function called each time the history changes with an array of history entries ordered from the most recent to the oldest entry.
- `onOutputChanged?: (output: ShellOutputEntry[]) => void`: A function called each time the output changes with an array of `ShellOutputEntries`.
- `onHistoryChanged?: (history: string[]) => void`: A function called each time the history changes with an array of history entries ordered from the most recent to the oldest entry.
- `onEditorChanged?: (editor: EditorRef | null) => void`: A function called each time the editor ref changes. Can be used to call editor methods.
- `onOperationStarted?: () => void`: A function called when an operation has begun.
- `onOperationEnd?: () => void`: A function called when an operation has completed (both error and success).
- `redactInfo?: boolean`: If set, the shell will omit or redact entries containing sensitive info from history. Defaults to `false`.
- `maxOutputLength?: number`: The maxiumum number of lines to keep in the output. Defaults to `1000`.
- `maxHistoryLength?: number`: The maxiumum number of lines to keep in the history. Defaults to `1000`.
- `initialOutput?: readonly ShellOutputEntry[]`: An array of entries to be displayed in the output area. Can be used to restore the output between sessions, or to setup a greeting message. **Note**: new entries will not be appended to the array.
- `initialHistory?: readonly string[]`: An array of history entries to prepopulate the history.
- `initialEvaluate?: string|string[]`: A set of input strings to evaluate right after shell is mounted.
- `initialText?: string`: The initial text for the input field.
- `output?: ShellOutputEntry[]`: An array of entries to be displayed in the output area. Can be used to restore the output between sessions, or to setup a greeting message. **Note**: new entries will not be appended to the array.
- `history?: readonly string[]`: An array of history entries to prepopulate the history.
Can be used to restore the history between sessions. Entries must be ordered from the most recent to the oldest. Note: new entries will not be appended to the array.
- `isOperationInProgress?: boolean`: Can be used to restore the value between sessions.

### `ShellOutputEntry`

Expand Down
Loading

0 comments on commit 977accf

Please sign in to comment.