Skip to content

Commit 5513ad7

Browse files
committed
Merge branch 'main' of github.com:mongodb-js/mongosh into gagik/individual-publishing
2 parents f0e985b + cbc264a commit 5513ad7

File tree

11 files changed

+130
-80
lines changed

11 files changed

+130
-80
lines changed

THIRD_PARTY_NOTICES.md

Lines changed: 4 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following third-party software is used by and included in **mongosh**.
2-
This document was automatically generated on Wed Jan 08 2025.
2+
This document was automatically generated on Sun Jan 12 2025.
33

44
## List of dependencies
55

@@ -311,7 +311,6 @@ Package|Version|License
311311
**[jsonfile](#1504ddbe5031429f6d90bb02373b4629ff5da9ef4e869d5015ff42f685817e74)**|6.1.0|MIT
312312
**[kerberos](#05c7d2f17faccacb505a07f79ccba22ce089aa668a8bef64de84cf5dcd4f585e)**|2.1.0|Apache-2.0
313313
**[lodash.merge](#996e40d63a94f1b8693d7c81e0cdfb874c6432d6bbd675976fc1b6b13652c8db)**|4.6.2|MIT
314-
**[lodash](#adaac4144887ebc2c1b682380ff385210f681fc58b4bc1ef3986148cf8dcd28a)**|4.17.21|MIT
315314
**[lowlight](#6efc5090c0eda3b461d933d6b79bddcdf8165a10aea9f39ac76620ce5fb05bf5)**|1.17.0|MIT
316315
**[lru-cache](#4ffd8f3438230331a92ccdb6752beda91852dc2a361669f3b26ef0b8829e9b26)**|11.0.2|ISC
317316
**[lru-cache](#fe7f0a2f2cf4c92f13c3a2a63f14f80f20f6919979306dc054e4f947c1234651)**|5.1.1|ISC
@@ -341,7 +340,7 @@ Package|Version|License
341340
**[mongodb-connection-string-url](#2e1146256a89ebd24e3398881e03807fe363d58444e6b7952ea50bd6108707bc)**|3.0.1|Apache-2.0
342341
**[mongodb-crypt-library-version](#003bd2892d6f6fdac0613ba8f9a2fbb054ddd1c26901e1d2fc7e83861b21cf4d)**|1.0.5|Apache-2.0
343342
**[mongodb-log-writer](#c4945018f8490fc8e56e1414e262fcf1b802800e05cd15f2bd6b7a9d0b94af85)**|1.4.2|Apache-2.0
344-
**[mongodb-redact](#d246d19a773f4cc2f2d0431d018a38295c9f9b1b45cfbe7ee16230056b667453)**|1.1.2|Apache-2.0
343+
**[mongodb-redact](#6fe8cef9beca5f3e1e3e999f47975ae99dcf4488419b28fc6d5eafc436081623)**|1.1.5|Apache-2.0
345344
**[mongodb](#cb726cf7a5329fc15d51574a4bc2e29682afe46afb788a94370b09643ab98a72)**|6.12.0|Apache-2.0
346345
**[ms](#484b814b85d5028e34246147c8fc901d33570202bd7cdc3703c0ed1078eba0aa)**|2.0.0|MIT
347346
**[ms](#0a987b2f79ff37005e452a5afa7dacd3042061a7077054d2ba9cabacd88506d2)**|2.1.2|MIT
@@ -25988,63 +25987,6 @@ License files:
2598825987

2598925988

2599025989

25991-
<a id="adaac4144887ebc2c1b682380ff385210f681fc58b4bc1ef3986148cf8dcd28a"></a>
25992-
### [lodash](https://www.npmjs.com/package/lodash) (version 4.17.21)
25993-
License tags: MIT
25994-
25995-
License files:
25996-
* LICENSE:
25997-
25998-
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
25999-
26000-
Based on Underscore.js, copyright Jeremy Ashkenas,
26001-
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
26002-
26003-
This software consists of voluntary contributions made by many
26004-
individuals. For exact contribution history, see the revision history
26005-
available at https://github.com/lodash/lodash
26006-
26007-
The following license applies to all parts of this software except as
26008-
documented below:
26009-
26010-
====
26011-
26012-
Permission is hereby granted, free of charge, to any person obtaining
26013-
a copy of this software and associated documentation files (the
26014-
"Software"), to deal in the Software without restriction, including
26015-
without limitation the rights to use, copy, modify, merge, publish,
26016-
distribute, sublicense, and/or sell copies of the Software, and to
26017-
permit persons to whom the Software is furnished to do so, subject to
26018-
the following conditions:
26019-
26020-
The above copyright notice and this permission notice shall be
26021-
included in all copies or substantial portions of the Software.
26022-
26023-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26024-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26025-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26026-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26027-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26028-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26029-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26030-
26031-
====
26032-
26033-
Copyright and related rights for sample code are waived via CC0. Sample
26034-
code is defined as all source code displayed within the prose of the
26035-
documentation.
26036-
26037-
CC0: http://creativecommons.org/publicdomain/zero/1.0/
26038-
26039-
====
26040-
26041-
Files located in the node_modules and vendor directories are externally
26042-
maintained libraries used by this software which have their own
26043-
licenses; we recommend you read them, as their terms may differ from the
26044-
terms above.
26045-
26046-
26047-
2604825990
<a id="6efc5090c0eda3b461d933d6b79bddcdf8165a10aea9f39ac76620ce5fb05bf5"></a>
2604925991
### [lowlight](https://www.npmjs.com/package/lowlight) (version 1.17.0)
2605025992
License tags: MIT
@@ -27758,8 +27700,8 @@ License files:
2775827700

2775927701

2776027702

27761-
<a id="d246d19a773f4cc2f2d0431d018a38295c9f9b1b45cfbe7ee16230056b667453"></a>
27762-
### [mongodb-redact](https://www.npmjs.com/package/mongodb-redact) (version 1.1.2)
27703+
<a id="6fe8cef9beca5f3e1e3e999f47975ae99dcf4488419b28fc6d5eafc436081623"></a>
27704+
### [mongodb-redact](https://www.npmjs.com/package/mongodb-redact) (version 1.1.5)
2776327705
License tags: Apache-2.0
2776427706

2776527707
License files:

docs/mongosh-architecture-jan2025.jam

88.4 KB
Binary file not shown.

docs/mongosh-architecture-jan2025.png

1.05 MB
Loading

package-lock.json

Lines changed: 22 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/history/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"dependencies": {
3838
"mongodb-connection-string-url": "^3.0.1",
39-
"mongodb-redact": "^1.1.2"
39+
"mongodb-redact": "^1.1.5"
4040
},
4141
"devDependencies": {
4242
"@mongodb-js/eslint-config-mongosh": "^1.0.0",

packages/logging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@mongosh/history": "2.3.8",
2323
"@mongosh/types": "2.3.8",
2424
"mongodb-log-writer": "^1.4.2",
25-
"mongodb-redact": "^1.1.2"
25+
"mongodb-redact": "^1.1.5"
2626
},
2727
"devDependencies": {
2828
"@mongodb-js/eslint-config-mongosh": "^1.0.0",

packages/service-provider-core/src/textencoder-polyfill.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ if (
1010
// @ts-ignore
1111
typeof TextEncoder !== 'function'
1212
) {
13-
// eslint-disable-next-line @typescript-eslint/no-implied-eval
14-
Object.assign(Function('return this')(), textEncodingPolyfill());
13+
const global =
14+
(typeof globalThis === 'object' &&
15+
globalThis?.Object === Object &&
16+
globalThis) ||
17+
// eslint-disable-next-line @typescript-eslint/no-implied-eval
18+
Function('return this')();
19+
Object.assign(global, textEncodingPolyfill());
1520
}
1621

1722
// Basic encoder/decoder polyfill for java-shell environment (see above)

packages/shell-api/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# @mongosh/shell-api
2+
3+
Provides the runtime-independent classes that make up the MongoDB Shell API,
4+
such as `Database`, `Collection`, etc., and the global objects and APIs
5+
available to shell users, such as `db`, `rs`, `sh`, `console`, `print()`, etc.

packages/shell-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@mongosh/history": "2.3.8",
4646
"@mongosh/i18n": "2.3.8",
4747
"@mongosh/service-provider-core": "2.3.8",
48-
"mongodb-redact": "^1.1.2"
48+
"mongodb-redact": "^1.1.5"
4949
},
5050
"devDependencies": {
5151
"@mongodb-js/eslint-config-mongosh": "^1.0.0",

packages/shell-api/src/decorators.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ interface Signatures {
397397
// object instead of a global list, or even more radical changes
398398
// such as removing the concept of signatures altogether.
399399
const signaturesGlobalIdentifier = '@@@mdb.signatures@@@';
400-
if (!(global as any)[signaturesGlobalIdentifier]) {
401-
(global as any)[signaturesGlobalIdentifier] = {};
400+
if (!(globalThis as any)[signaturesGlobalIdentifier]) {
401+
(globalThis as any)[signaturesGlobalIdentifier] = {};
402402
}
403403

404-
const signatures: Signatures = (global as any)[signaturesGlobalIdentifier];
404+
const signatures: Signatures = (globalThis as any)[signaturesGlobalIdentifier];
405405
signatures.Document = { type: 'Document', attributes: {} };
406406
export { signatures };
407407

0 commit comments

Comments
 (0)