profile
viewpoint

choojs/nanohtml 613

:dragon: HTML template strings for the Browser with support for Server Side Rendering in Node.

lrlna/femme 107

Not just a pretty (inter)face: pretty-printer + ndjson logger for log crate.

iranopendata/iranopendata.github.io 15

Making Iranian Data Available to the Public

lrlna/cellular-automata 15

elementary cellular automata example

lrlna/cats-squared 6

a simple package to find out cat population growth in your :house:

lrlna/dotfiles 2

.dotfiles

lrlna/bigboringsystem 1

BBS - Big Boring System

lrlna/bson-rs 1

Encoding and decoding support for BSON in Rust

lrlna/create-html 1

Create the content of an html file with one function call

push eventmongodb-js/mongosh

Durran Jordan

commit sha 87fafd2d41a087629f67ea25bef86913031fac84

Remove shebang from entry point

view details

Durran Jordan

commit sha 0aa31370315b4cb8c0b7d7eb915111eec921ca96

update package lock

view details

Durran Jordan

commit sha 483db23e8e7587ee069f0eb27f88b9e0b3b2141a

v0.0.1-alpha.18

view details

Maxime

commit sha e091f0489da415073e7bb42e502f1066557e4272

apply licence to MongoDB Inc. (#196)

view details

Irina Shestak

commit sha 9d3eb45f839906a4a1bc69a304cc62508a9bf1d6

format bson results

view details

push time in 9 hours

push eventmongodb-js/mongosh

Irina Shestak

commit sha 587018e3e7f7e73210004f41766e54733f3c4038

format bson results

view details

push time in 9 hours

PR opened mongodb-js/mongosh

format bson results

Description

This is a bit (ok, a lot) of a hacky way to get to get bson types to display better visually. It's not the best, and I'd like to redo this asap after we release beta.

+60 -1668

0 comment

4 changed files

pr created time in 9 hours

create barnchmongodb-js/mongosh

branch : bson-display

created branch time in 9 hours

PR opened mongodb-js/mongosh

move autocompleter into its own package

Description

Creates a new autocompleter package so that the browser modules are able to directly require it.

Open Questions

@Anemy @mcasimir I am hitting a weird error in compass-shell when running tests. Do either of you know what it could be? Capture d’écran, le 2020-05-25 à 12 09 33

+7132 -797

0 comment

24 changed files

pr created time in 10 hours

create barnchmongodb-js/mongosh

branch : separate-autocomplete

created branch time in 10 hours

Pull request review commentmongodb-js/mongosh

Rebased Refactor

 class CliRepl {    * @param {NodeOptions} driverOptions - The driver options.    */   async setupRepl(driverUri: string, driverOptions: NodeOptions): Promise<void> {-    this.serviceProvider = await this.connect(driverUri, driverOptions);-    this.ShellEvaluator = new ShellEvaluator(this.serviceProvider, this.bus, this);-    this.buildInfo = await this.serviceProvider.buildInfo();-    this.logBuildInfo(driverUri);+    const initialServiceProvider = await this.connect(driverUri, driverOptions);+    this.internalState = new ShellInternalState(initialServiceProvider, this.bus);+    this.shellEvaluator = new ShellEvaluator(this.internalState, this);+    await this.internalState.fetchConnectionInfo();

It may be that on initial connect we just keep this call entirely in internalState instead of awaiting it here.

Because if the connection information changes, technically the internal state also has to change. I think it really ought to mutate the state (and then log that change).

aherlihy

comment created time in 11 hours

pull request commentmongodb-js/mongosh

Rebased Refactor

@aherlihy and i were talking about this refactor on tuesday, and i made a few sketches of the API.

Here is how this works when Mongo is not reassigned: Untitled 2

And here is how this would work when Mongo is reassigned: Untitled 1

aherlihy

comment created time in 11 hours

created taglrlna/femme

tag2.0.1

Not just a pretty (inter)face: pretty-printer + ndjson logger for log crate.

created time in 12 hours

created taglrlna/femme

tagv2.0.0

Not just a pretty (inter)face: pretty-printer + ndjson logger for log crate.

created time in 12 hours

created taglrlna/femme

tag2.1.0

Not just a pretty (inter)face: pretty-printer + ndjson logger for log crate.

created time in 12 hours

push eventlrlna/femme

Irina Shestak

commit sha 4f7fb0527428629719dcca8850652058748f098d

2.0.1

view details

Irina Shestak

commit sha b1a70cbe18cbaf911cbc766b11c8b1a5155730f0

2.1.0

view details

Irina Shestak

commit sha 3a5bfd0db10ee43e86dc2c8b4d0e030f68f7e026

2.1.0

view details

push time in 12 hours

delete branch lrlna/femme

delete branch : even-fewer-allocs

delete time in 12 hours

push eventlrlna/femme

Yoshua Wuyts

commit sha 536b3f7c4e6e320a6abcbf49ed817873813ffffd

Even fewer allocs (#14) * Remove intermediate string construction * remove intermediate string allocations for pretty * Add a million logs example

view details

push time in 12 hours

PR merged lrlna/femme

Even fewer allocs

Remove more allocations and deps. Add a "million logs" example. Thanks!

+53 -288

0 comment

6 changed files

yoshuawuyts

pr closed time in 12 hours

PR opened lrlna/femme

use a single String alloc to create ndjson logs
+15 -32

0 comment

3 changed files

pr created time in 2 days

push eventlrlna/femme

lrlna

commit sha 185cf9b2210d550aa9be3b79b2a59d3a783b2ded

use a single String alloc to create ndjson logs

view details

push time in 2 days

create barnchlrlna/femme

branch : fewer-allocs

created branch time in 2 days

delete branch lrlna/femme

delete branch : bumpalo

delete time in 2 days

push eventlrlna/femme

Yoshua Wuyts

commit sha fd5af4fbb5fe4b7fa2f2cb4bc6d0ad3dd1dd1074

More efficient logger (#10) * init array_queue logger * fewer allocations for pretty logger

view details

push time in 2 days

PR merged lrlna/femme

More efficient logger

This is a WIP. We already reduce allocations, but what we really should be doing is creating a per-thread TLS bumpalo instance, and then regularly flushing based on an idle loop.

Also this impl currently doesn't log when the system shuts down, which means messages will often get lost. I believe Drop on TLS will solve this.

+20 -20

2 comments

1 changed file

yoshuawuyts

pr closed time in 2 days

push eventmongodb-js/mongosh

Maxime

commit sha e091f0489da415073e7bb42e502f1066557e4272

apply licence to MongoDB Inc. (#196)

view details

push time in 4 days

PR merged mongodb-js/mongosh

apply licence to MongoDB Inc.

According to the previous version of this file, this is how to apply Apache 2.0 to a project:

APPENDIX: How to apply the Apache License to your work.

  To apply the Apache License to your work, attach the following	
  boilerplate notice, with the fields enclosed by brackets "[]"	
  replaced with your own identifying information. (Don't include	
  the brackets!)  The text should be enclosed in the appropriate	
  comment syntax for the file format. We also recommend that a	
  file or class name and description of purpose be included on the	
  same "printed page" as the copyright notice for easier	
  identification within third-party archives.
+3 -13

0 comment

1 changed file

MaBeuLux88

pr closed time in 4 days

push eventmongodb-js/mongosh

Liudmila Kornilova

commit sha 48180244a5569a75db7e4fe5f522fcd3b48d14b0

[java-shell] support bson types. Use GraalVM Value instead of Map to avoid incorrect automatic conversion (#197) * [java-shell] add insertMany test * [java-shell] use Value instead of Map<*, *> because graalvm fails to convert Value to Map<*, *> * [java-shell] support regexp * [java-shell] implement cursor methods: comment, max, skip * [java-shell] support some commands of bulkWrite * [java-shell] runCommand and stats methods return JS object instead of java Document * [java-shell] support deleteOne * [java-shell] support findOneAndUpdate * [java-shell] convert all parameters to Document * [java-shell] support updateMany * [java-shell] support findOneAndDelete * [java-shell] support runCommand with string * [java-shell] support bson types ObjectId, MinKey, MaxKey, Code, DBRef, NumberDecimal, NumberInt, Timestamp, Symbol, NumberLong, ISODate, BinData HexData, UUID, MD5 * [java-shell] support updateOne * [java-shell] support createIndex and createIndexes * [java-shell] drop collection after each test case * [java-shell] support dropIndexes * [java-shell] support cursor.map * [java-shell] support InsertManyResult * [java-shell] add test for aggregate with varargs * [java-shell] ignore UUID tests

view details

push time in 5 days

PR merged mongodb-js/mongosh

[java-shell] support bson types. Use GraalVM Value instead of Map to avoid incorrect automatic conversion

Feel free to squash the commits All my ~100 tests pass

+1556 -361

0 comment

162 changed files

kornilova203

pr closed time in 5 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha dfc252e2237686d77cae5e4fa2a8f55b33b3f6c2

adjust telemetry names for connect event (#181) * adjust telemetry names for connect event * Title Case all analytics events

view details

push time in 5 days

delete branch mongodb-js/mongosh

delete branch : rename-telemetry-events

delete time in 5 days

PR merged mongodb-js/mongosh

adjust telemetry names for connect event

Description

As per @mmarcon's request, changing telemetry events to be snake_cased instead of camelCased.

This PR also adds server_os and server_arch information to Connect event.

+81 -64

0 comment

5 changed files

lrlna

pr closed time in 5 days

Pull request review commentmongodb-js/mongosh

apply licence to MongoDB Inc.

--                                 Apache License-                           Version 2.0, January 2004-                        http://www.apache.org/licenses/--   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION--   1. Definitions.--      "License" shall mean the terms and conditions for use, reproduction,-      and distribution as defined by Sections 1 through 9 of this document.--      "Licensor" shall mean the copyright owner or entity authorized by-      the copyright owner that is granting the License.--      "Legal Entity" shall mean the union of the acting entity and all-      other entities that control, are controlled by, or are under common-      control with that entity. For the purposes of this definition,-      "control" means (i) the power, direct or indirect, to cause the-      direction or management of such entity, whether by contract or-      otherwise, or (ii) ownership of fifty percent (50%) or more of the-      outstanding shares, or (iii) beneficial ownership of such entity.--      "You" (or "Your") shall mean an individual or Legal Entity-      exercising permissions granted by this License.--      "Source" form shall mean the preferred form for making modifications,-      including but not limited to software source code, documentation-      source, and configuration files.--      "Object" form shall mean any form resulting from mechanical-      transformation or translation of a Source form, including but-      not limited to compiled object code, generated documentation,-      and conversions to other media types.--      "Work" shall mean the work of authorship, whether in Source or-      Object form, made available under the License, as indicated by a-      copyright notice that is included in or attached to the work-      (an example is provided in the Appendix below).--      "Derivative Works" shall mean any work, whether in Source or Object-      form, that is based on (or derived from) the Work and for which the-      editorial revisions, annotations, elaborations, or other modifications-      represent, as a whole, an original work of authorship. For the purposes-      of this License, Derivative Works shall not include works that remain-      separable from, or merely link (or bind by name) to the interfaces of,-      the Work and Derivative Works thereof.--      "Contribution" shall mean any work of authorship, including-      the original version of the Work and any modifications or additions-      to that Work or Derivative Works thereof, that is intentionally-      submitted to Licensor for inclusion in the Work by the copyright owner-      or by an individual or Legal Entity authorized to submit on behalf of-      the copyright owner. For the purposes of this definition, "submitted"-      means any form of electronic, verbal, or written communication sent-      to the Licensor or its representatives, including but not limited to-      communication on electronic mailing lists, source code control systems,-      and issue tracking systems that are managed by, or on behalf of, the-      Licensor for the purpose of discussing and improving the Work, but-      excluding communication that is conspicuously marked or otherwise-      designated in writing by the copyright owner as "Not a Contribution."--      "Contributor" shall mean Licensor and any individual or Legal Entity-      on behalf of whom a Contribution has been received by Licensor and-      subsequently incorporated within the Work.--   2. Grant of Copyright License. Subject to the terms and conditions of-      this License, each Contributor hereby grants to You a perpetual,-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable-      copyright license to reproduce, prepare Derivative Works of,-      publicly display, publicly perform, sublicense, and distribute the-      Work and such Derivative Works in Source or Object form.--   3. Grant of Patent License. Subject to the terms and conditions of-      this License, each Contributor hereby grants to You a perpetual,-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable-      (except as stated in this section) patent license to make, have made,-      use, offer to sell, sell, import, and otherwise transfer the Work,-      where such license applies only to those patent claims licensable-      by such Contributor that are necessarily infringed by their-      Contribution(s) alone or by combination of their Contribution(s)-      with the Work to which such Contribution(s) was submitted. If You-      institute patent litigation against any entity (including a-      cross-claim or counterclaim in a lawsuit) alleging that the Work-      or a Contribution incorporated within the Work constitutes direct-      or contributory patent infringement, then any patent licenses-      granted to You under this License for that Work shall terminate-      as of the date such litigation is filed.--   4. Redistribution. You may reproduce and distribute copies of the-      Work or Derivative Works thereof in any medium, with or without-      modifications, and in Source or Object form, provided that You-      meet the following conditions:--      (a) You must give any other recipients of the Work or-          Derivative Works a copy of this License; and--      (b) You must cause any modified files to carry prominent notices-          stating that You changed the files; and--      (c) You must retain, in the Source form of any Derivative Works-          that You distribute, all copyright, patent, trademark, and-          attribution notices from the Source form of the Work,-          excluding those notices that do not pertain to any part of-          the Derivative Works; and--      (d) If the Work includes a "NOTICE" text file as part of its-          distribution, then any Derivative Works that You distribute must-          include a readable copy of the attribution notices contained-          within such NOTICE file, excluding those notices that do not-          pertain to any part of the Derivative Works, in at least one-          of the following places: within a NOTICE text file distributed-          as part of the Derivative Works; within the Source form or-          documentation, if provided along with the Derivative Works; or,-          within a display generated by the Derivative Works, if and-          wherever such third-party notices normally appear. The contents-          of the NOTICE file are for informational purposes only and-          do not modify the License. You may add Your own attribution-          notices within Derivative Works that You distribute, alongside-          or as an addendum to the NOTICE text from the Work, provided-          that such additional attribution notices cannot be construed-          as modifying the License.--      You may add Your own copyright statement to Your modifications and-      may provide additional or different license terms and conditions-      for use, reproduction, or distribution of Your modifications, or-      for any such Derivative Works as a whole, provided Your use,-      reproduction, and distribution of the Work otherwise complies with-      the conditions stated in this License.--   5. Submission of Contributions. Unless You explicitly state otherwise,-      any Contribution intentionally submitted for inclusion in the Work-      by You to the Licensor shall be under the terms and conditions of-      this License, without any additional terms or conditions.-      Notwithstanding the above, nothing herein shall supersede or modify-      the terms of any separate license agreement you may have executed-      with Licensor regarding such Contributions.--   6. Trademarks. This License does not grant permission to use the trade-      names, trademarks, service marks, or product names of the Licensor,-      except as required for reasonable and customary use in describing the-      origin of the Work and reproducing the content of the NOTICE file.--   7. Disclaimer of Warranty. Unless required by applicable law or-      agreed to in writing, Licensor provides the Work (and each-      Contributor provides its Contributions) on an "AS IS" BASIS,-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or-      implied, including, without limitation, any warranties or conditions-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A-      PARTICULAR PURPOSE. You are solely responsible for determining the-      appropriateness of using or redistributing the Work and assume any-      risks associated with Your exercise of permissions under this License.--   8. Limitation of Liability. In no event and under no legal theory,-      whether in tort (including negligence), contract, or otherwise,-      unless required by applicable law (such as deliberate and grossly-      negligent acts) or agreed to in writing, shall any Contributor be-      liable to You for damages, including any direct, indirect, special,-      incidental, or consequential damages of any character arising as a-      result of this License or out of the use or inability to use the-      Work (including but not limited to damages for loss of goodwill,-      work stoppage, computer failure or malfunction, or any and all-      other commercial damages or losses), even if such Contributor-      has been advised of the possibility of such damages.--   9. Accepting Warranty or Additional Liability. While redistributing-      the Work or Derivative Works thereof, You may choose to offer,-      and charge a fee for, acceptance of support, warranty, indemnity,-      or other liability obligations and/or rights consistent with this-      License. However, in accepting such obligations, You may act only-      on Your own behalf and on Your sole responsibility, not on behalf-      of any other Contributor, and only if You agree to indemnify,-      defend, and hold each Contributor harmless for any liability-      incurred by, or claims asserted against, such Contributor by reason-      of your accepting any such warranty or additional liability.--   END OF TERMS AND CONDITIONS--   APPENDIX: How to apply the Apache License to your work.--      To apply the Apache License to your work, attach the following-      boilerplate notice, with the fields enclosed by brackets "[]"-      replaced with your own identifying information. (Don't include-      the brackets!)  The text should be enclosed in the appropriate-      comment syntax for the file format. We also recommend that a-      file or class name and description of purpose be included on the-      same "printed page" as the copyright notice for easier-      identification within third-party archives.--   Copyright [yyyy] [name of copyright owner]+   Copyright 2020 MongoDB Inc.

We prefer to keep this file in our repos. I think we just forgot to correct the Copyright placeholder.

MaBeuLux88

comment created time in 5 days

Pull request review commentmongodb-js/mongosh

apply licence to MongoDB Inc.

--                                 Apache License-                           Version 2.0, January 2004-                        http://www.apache.org/licenses/--   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION--   1. Definitions.--      "License" shall mean the terms and conditions for use, reproduction,-      and distribution as defined by Sections 1 through 9 of this document.--      "Licensor" shall mean the copyright owner or entity authorized by-      the copyright owner that is granting the License.--      "Legal Entity" shall mean the union of the acting entity and all-      other entities that control, are controlled by, or are under common-      control with that entity. For the purposes of this definition,-      "control" means (i) the power, direct or indirect, to cause the-      direction or management of such entity, whether by contract or-      otherwise, or (ii) ownership of fifty percent (50%) or more of the-      outstanding shares, or (iii) beneficial ownership of such entity.--      "You" (or "Your") shall mean an individual or Legal Entity-      exercising permissions granted by this License.--      "Source" form shall mean the preferred form for making modifications,-      including but not limited to software source code, documentation-      source, and configuration files.--      "Object" form shall mean any form resulting from mechanical-      transformation or translation of a Source form, including but-      not limited to compiled object code, generated documentation,-      and conversions to other media types.--      "Work" shall mean the work of authorship, whether in Source or-      Object form, made available under the License, as indicated by a-      copyright notice that is included in or attached to the work-      (an example is provided in the Appendix below).--      "Derivative Works" shall mean any work, whether in Source or Object-      form, that is based on (or derived from) the Work and for which the-      editorial revisions, annotations, elaborations, or other modifications-      represent, as a whole, an original work of authorship. For the purposes-      of this License, Derivative Works shall not include works that remain-      separable from, or merely link (or bind by name) to the interfaces of,-      the Work and Derivative Works thereof.--      "Contribution" shall mean any work of authorship, including-      the original version of the Work and any modifications or additions-      to that Work or Derivative Works thereof, that is intentionally-      submitted to Licensor for inclusion in the Work by the copyright owner-      or by an individual or Legal Entity authorized to submit on behalf of-      the copyright owner. For the purposes of this definition, "submitted"-      means any form of electronic, verbal, or written communication sent-      to the Licensor or its representatives, including but not limited to-      communication on electronic mailing lists, source code control systems,-      and issue tracking systems that are managed by, or on behalf of, the-      Licensor for the purpose of discussing and improving the Work, but-      excluding communication that is conspicuously marked or otherwise-      designated in writing by the copyright owner as "Not a Contribution."--      "Contributor" shall mean Licensor and any individual or Legal Entity-      on behalf of whom a Contribution has been received by Licensor and-      subsequently incorporated within the Work.--   2. Grant of Copyright License. Subject to the terms and conditions of-      this License, each Contributor hereby grants to You a perpetual,-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable-      copyright license to reproduce, prepare Derivative Works of,-      publicly display, publicly perform, sublicense, and distribute the-      Work and such Derivative Works in Source or Object form.--   3. Grant of Patent License. Subject to the terms and conditions of-      this License, each Contributor hereby grants to You a perpetual,-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable-      (except as stated in this section) patent license to make, have made,-      use, offer to sell, sell, import, and otherwise transfer the Work,-      where such license applies only to those patent claims licensable-      by such Contributor that are necessarily infringed by their-      Contribution(s) alone or by combination of their Contribution(s)-      with the Work to which such Contribution(s) was submitted. If You-      institute patent litigation against any entity (including a-      cross-claim or counterclaim in a lawsuit) alleging that the Work-      or a Contribution incorporated within the Work constitutes direct-      or contributory patent infringement, then any patent licenses-      granted to You under this License for that Work shall terminate-      as of the date such litigation is filed.--   4. Redistribution. You may reproduce and distribute copies of the-      Work or Derivative Works thereof in any medium, with or without-      modifications, and in Source or Object form, provided that You-      meet the following conditions:--      (a) You must give any other recipients of the Work or-          Derivative Works a copy of this License; and--      (b) You must cause any modified files to carry prominent notices-          stating that You changed the files; and--      (c) You must retain, in the Source form of any Derivative Works-          that You distribute, all copyright, patent, trademark, and-          attribution notices from the Source form of the Work,-          excluding those notices that do not pertain to any part of-          the Derivative Works; and--      (d) If the Work includes a "NOTICE" text file as part of its-          distribution, then any Derivative Works that You distribute must-          include a readable copy of the attribution notices contained-          within such NOTICE file, excluding those notices that do not-          pertain to any part of the Derivative Works, in at least one-          of the following places: within a NOTICE text file distributed-          as part of the Derivative Works; within the Source form or-          documentation, if provided along with the Derivative Works; or,-          within a display generated by the Derivative Works, if and-          wherever such third-party notices normally appear. The contents-          of the NOTICE file are for informational purposes only and-          do not modify the License. You may add Your own attribution-          notices within Derivative Works that You distribute, alongside-          or as an addendum to the NOTICE text from the Work, provided-          that such additional attribution notices cannot be construed-          as modifying the License.--      You may add Your own copyright statement to Your modifications and-      may provide additional or different license terms and conditions-      for use, reproduction, or distribution of Your modifications, or-      for any such Derivative Works as a whole, provided Your use,-      reproduction, and distribution of the Work otherwise complies with-      the conditions stated in this License.--   5. Submission of Contributions. Unless You explicitly state otherwise,-      any Contribution intentionally submitted for inclusion in the Work-      by You to the Licensor shall be under the terms and conditions of-      this License, without any additional terms or conditions.-      Notwithstanding the above, nothing herein shall supersede or modify-      the terms of any separate license agreement you may have executed-      with Licensor regarding such Contributions.--   6. Trademarks. This License does not grant permission to use the trade-      names, trademarks, service marks, or product names of the Licensor,-      except as required for reasonable and customary use in describing the-      origin of the Work and reproducing the content of the NOTICE file.--   7. Disclaimer of Warranty. Unless required by applicable law or-      agreed to in writing, Licensor provides the Work (and each-      Contributor provides its Contributions) on an "AS IS" BASIS,-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or-      implied, including, without limitation, any warranties or conditions-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A-      PARTICULAR PURPOSE. You are solely responsible for determining the-      appropriateness of using or redistributing the Work and assume any-      risks associated with Your exercise of permissions under this License.--   8. Limitation of Liability. In no event and under no legal theory,-      whether in tort (including negligence), contract, or otherwise,-      unless required by applicable law (such as deliberate and grossly-      negligent acts) or agreed to in writing, shall any Contributor be-      liable to You for damages, including any direct, indirect, special,-      incidental, or consequential damages of any character arising as a-      result of this License or out of the use or inability to use the-      Work (including but not limited to damages for loss of goodwill,-      work stoppage, computer failure or malfunction, or any and all-      other commercial damages or losses), even if such Contributor-      has been advised of the possibility of such damages.--   9. Accepting Warranty or Additional Liability. While redistributing-      the Work or Derivative Works thereof, You may choose to offer,-      and charge a fee for, acceptance of support, warranty, indemnity,-      or other liability obligations and/or rights consistent with this-      License. However, in accepting such obligations, You may act only-      on Your own behalf and on Your sole responsibility, not on behalf-      of any other Contributor, and only if You agree to indemnify,-      defend, and hold each Contributor harmless for any liability-      incurred by, or claims asserted against, such Contributor by reason-      of your accepting any such warranty or additional liability.--   END OF TERMS AND CONDITIONS--   APPENDIX: How to apply the Apache License to your work.--      To apply the Apache License to your work, attach the following-      boilerplate notice, with the fields enclosed by brackets "[]"-      replaced with your own identifying information. (Don't include-      the brackets!)  The text should be enclosed in the appropriate-      comment syntax for the file format. We also recommend that a-      file or class name and description of purpose be included on the-      same "printed page" as the copyright notice for easier-      identification within third-party archives.--   Copyright [yyyy] [name of copyright owner]+   Copyright 2020 MongoDB Inc.

@MaBeuLux88 did you mean to delete the whole of this LICENSE file, or just replace line 190 with Copyright 2020 MongoDB Inc.?

MaBeuLux88

comment created time in 6 days

Pull request review commentmongodb-js/mongosh

Refactor

     "mongodb-runner": "^4.7.5",     "nexe": "^3.3.2",     "pkg": "^4.4.3",+    "pretty-bytes": "^5.3.0",

this should probably not be in the top level package json

aherlihy

comment created time in 6 days

Pull request review commentmongodb-js/mongosh

Refactor

     "@leafygreen-ui/icon": "^4.0.0",     "@leafygreen-ui/palette": "^2.0.0",     "@leafygreen-ui/syntax": "^2.2.0",-    "@mongosh/browser-runtime-core": "^0.0.1-alpha.13",-    "@mongosh/history": "^0.0.1-alpha.13",-    "@mongosh/i18n": "^0.0.1-alpha.13",-    "@mongosh/service-provider-core": "^0.0.1-alpha.13",-    "pretty-bytes": "^5.3.0",

if you remove it from here, and browser repl gets started or installed on its own without the parent package (e.g. in compass or in a different browser application), this will not work.

aherlihy

comment created time in 6 days

push eventlrlna/femme

Irina Shestak

commit sha 67d2a1b1840829a56265d7c226b7599a2eb13d2f

2.0.0

view details

Irina Shestak

commit sha d05d11a10cf4587d0e51e38705bde22002de1b10

2.0.0

view details

Irina Shestak

commit sha b4adef4a512d15dbf4fd113c7330774641f0401a

update example in readme

view details

push time in 7 days

push eventlrlna/femme

Irina Shestak

commit sha 0cec835ae35a9962cfce3d88d60203612a7bfc62

update screenshots + readme

view details

push time in 7 days

PR merged lrlna/femme

update screenshots + readme

Updates screenshots and description in readme about release vs. debug. vs. wasm modes.

+7 -0

0 comment

2 changed files

lrlna

pr closed time in 7 days

push eventlrlna/femme

Irina Shestak

commit sha 7e633740aa00981e8432b8b0f7a0359741abb1b8

update screenshots + readme

view details

push time in 7 days

PR opened lrlna/femme

update screenshots + readme

Updates screenshots and description in readme about release vs. debug. vs. wasm modes.

+7 -0

0 comment

2 changed files

pr created time in 7 days

create barnchlrlna/femme

branch : update-readme

created branch time in 7 days

push eventlrlna/repl-playground

Irina Shestak

commit sha cdf69e3976c8c104192de96402e6076227826de4

paw paw

view details

push time in 7 days

create barnchlrlna/repl-playground

branch : master

created branch time in 7 days

created repositorylrlna/repl-playground

troubleshooting multiline paste

created time in 7 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 66b8c63473a7719e9c09e1dec5ca57c7c77a5f2d

fix: bring in node repl's top-level await (#189) * use node repl's top-level await wrapper * add some tests for top level await

view details

push time in 7 days

delete branch mongodb-js/mongosh

delete branch : node-await

delete time in 7 days

PR merged mongodb-js/mongosh

fix: bring in node repl's top-level await

Description

To package up our executables with built in top-level await support, we will now process all input with node's internal await wrap.

This wrapper puts async() in front of an awaited function.

Because we are rewriting our own functions with await, this is done after our internal rewrite.

+2559 -3

1 comment

9 changed files

lrlna

pr closed time in 7 days

pull request commentmongodb-js/mongosh

fix: bring in node repl's top-level await

@aherlihy no, it's the same as we had before.

Since we are using the exact same implementation as node was using when we were passing --experimental-repl-await flag (just moved over to our side instead), parsing performance does not change.

lrlna

comment created time in 7 days

Pull request review commentmongodb-js/mongosh

fix: bring in node repl's top-level await

 export default class AsyncWriter {   compile(code): string {     return this.getTransform(code).code;   }++  /**+   * Returns translated code.+   * @param {string} code - string to compile.+   */+  process(code): string {

Just did! Take a look again.

lrlna

comment created time in 7 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha b7fa65298ca1a7cc3a25237c6c396640b6e733fd

add some tests for top level await

view details

push time in 7 days

PR opened mongodb-js/mongosh

fix: bring in node repl's top-level await

Description

To package up our executables with built in top-level await support, we will now process all input with node's internal await wrap.

This wrapper puts async() in front of an awaited function.

Because we are rewriting our own functions with await, this is done after our internal rewrite.

+2472 -3

0 comment

7 changed files

pr created time in 7 days

push eventmongodb-js/mongosh

mcasimir

commit sha 471c79108eeb8637865af016956507ad5922879d

test: add test for hoisting in electron-runtime

view details

Irina Shestak

commit sha 7d4bc9b1b15f2caffd91970937e2773353275e5a

use node repl's top-level await wrapper

view details

push time in 7 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 1b84bc01f4febee8a6f4beb8efe3abdca8f0a8a3

use node repl's top-level await wrapper

view details

push time in 7 days

create barnchmongodb-js/mongosh

branch : node-await

created branch time in 7 days

delete branch lrlna/femme

delete branch : rework-api

delete time in 8 days

push eventlrlna/femme

Yoshua Wuyts

commit sha aa1fd83649cb412613575ab83eeb3d75bfa8a6fe

init simplification

view details

Yoshua Wuyts

commit sha 12afb7782a81903842f421cd7943f0c12257013c

remove broken filter function

view details

push time in 8 days

PR merged lrlna/femme

Rework api

Builds on #8. Makes log construction significantly easier. I couldn't get the trait bounds right for the femme::with_filter function; we should add that in a follow-up PR. thanks!

Examples

use kv_log_macro as log;

fn main() {
    femme::with_level(femme::LevelFilter::Trace);
    log::error!("Buffer has to be 16 bytes in length");
    log::warn!("Unauthorized access attempt", { route: "/login", user_id: "827756627", });
    log::info!("Server listening", { port: "8080" });
    log::info!("Request handled", { method: "GET", path: "/foo/bar", status: 200, elapsed: "4ms" });
    log::debug!("Getting String as bson value type");
    log::trace!("Task spawned", {task_id: "567", thread_id: "12"});
}
+57 -175

4 comments

8 changed files

yoshuawuyts

pr closed time in 8 days

pull request commentlrlna/femme

Rework api

@yoshuawuyts yes, I will take a screenshot on my system :D

yoshuawuyts

comment created time in 8 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 93de2e2c72e0a7e70343d83ed05f452a3750b5e6

fix: add aggregation, explainable, and collection help commands (#185)

view details

push time in 10 days

delete branch mongodb-js/mongosh

delete branch : fix-help-info

delete time in 10 days

PR merged mongodb-js/mongosh

add aggregation, explainable, and collection help i18n documentation

Description

Adds the currently missing help documentation for link, description, example to most commands from running npm run report-missing-help

+366 -91

0 comment

2 changed files

lrlna

pr closed time in 10 days

delete branch mongodb-js/mongosh

delete branch : try-catch-password-prompt

delete time in 10 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 61141d86454a5b189cf80ecead751038339f65e4

fix: use setupRepl when connecting with username/password (#184)

view details

push time in 10 days

PR merged mongodb-js/mongosh

fix: use setupRepl when connecting with username/password

Description

When requiring password, make sure we:

  1. use setupRepl() instead of connect() function
  2. catch and log the errors when setting up the REPL and when reading password options.
+9 -2

0 comment

1 changed file

lrlna

pr closed time in 10 days

PR opened mongodb-js/mongosh

add aggregation, explainable, and collection help commands

Description

Adds the currently missing help documentation for link, description, example to most commands from running npm run report-missing-help

+366 -91

0 comment

2 changed files

pr created time in 10 days

create barnchmongodb-js/mongosh

branch : fix-help-info

created branch time in 10 days

push eventmongodb-js/mongosh

anna herlihy

commit sha 6d4df1f60b929c31d8e0938e0e23f9bf61d8ce80

allow bson constructors without new (#179)

view details

mcasimir

commit sha 3fa5e6751147e56bcf1a92eea8838ef34fce8ed2

fix: use provider.updateOne for coll.updateOne

view details

mcasimir

commit sha 78e3020e02c964200012d2265937b2205d359fde

fix: cursor interface fixes

view details

mcasimir

commit sha e1883f25233efd95b068bbf5f2afdf6803cd7b25

chore: revert extracted changes

view details

mcasimir

commit sha 0a314ce01b0d3f69d65b05bb06fe590fa42b64a3

chore: revert extracted changes

view details

mcasimir

commit sha 20dea31987f14e3651927fcc46b85b5618fc274b

reset .evergreen/.install_node

view details

Durran Jordan

commit sha d3b902a9cc3256eb2024d08693e333ee31ae5d9d

Adding build package skeleton

view details

Durran Jordan

commit sha 180bc788119b4adaf924b5c17a18ec69001372fa

Adding ExecName enum

view details

Durran Jordan

commit sha f139801dfc976aafcccf0fa11119297e6b527bb3

Adding Platform enum

view details

Durran Jordan

commit sha 50871b475f400e97d29171f73e2b3d5120ab4fb4

Adding determineExecName to compile-exec

view details

Durran Jordan

commit sha 16654e3039d5f053514b4ee3148f65f31e446129

Adding Target enum to compile-exec

view details

Durran Jordan

commit sha eb2a372eb8dbb51424d0ebc591158303ba986102

Adding determine target

view details

Durran Jordan

commit sha dc75c5d9a2f8bac5a3a7fa51d69f64789ac44ff9

Determine executable path

view details

Durran Jordan

commit sha 19f4529cd22c4f27085cb32c044c72253e4d907e

Adding spec for compileExec

view details

Durran Jordan

commit sha c2d659d832295464580c29175d310672273f160d

Extract Platform, create zip module

view details

Durran Jordan

commit sha cedc4532f5646d5728af26490ace45c58421b023

Adding in windows and posix zip functions

view details

Durran Jordan

commit sha 4dce5a457f13790f0792f7c276bdf7e3cac16597

Get release building from scripts

view details

Durran Jordan

commit sha ee68ca49dc66011252ea13a42dcf36338ef2f396

Adding todos for zipping

view details

Durran Jordan

commit sha 82ed9f7994640920338e3f00029a5d03764581ec

Ensure tarball dows keep filesystem paths

view details

Durran Jordan

commit sha 25d57aa7ca59a220d9cbc12e955e3ed086cd1f9c

Generate download center template

view details

push time in 11 days

PR opened mongodb-js/mongosh

fix: use setupRepl when connecting with username/password

Description

When requiring password, make sure we:

  1. use setupRepl() instead of connect() function
  2. catch and log the errors when setting up the REPL and when reading password options.
+9 -2

0 comment

1 changed file

pr created time in 11 days

create barnchmongodb-js/mongosh

branch : try-catch-password-prompt

created branch time in 11 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 8e9f6b7d9ae6799490a4cc3a6b2ee22db7a3a3ee

add back node --experimental-repl-await to mongosh bin file (#183)

view details

push time in 11 days

delete branch mongodb-js/mongosh

delete branch : node-await-flag

delete time in 11 days

PR merged mongodb-js/mongosh

add back node --experimental-repl-await to mongosh bin file

Description

This got accidentally removed when adding eslint to cli-repl package. Adding it back in.

+124 -30

1 comment

4 changed files

lrlna

pr closed time in 11 days

pull request commentmongodb-js/mongosh

add back node --experimental-repl-await to mongosh bin file

@mcasimir added a test as well, good point.

lrlna

comment created time in 11 days

Pull request review commentmongodb-js/mongosh

add back node --experimental-repl-await to mongosh bin file

-#!/usr/bin/env node+#!/bin/sh

yes it was!

lrlna

comment created time in 11 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 652e8ccd6ab5f21d3bbef3df6e6ee190d0d27a3a

add a test for node repl await function

view details

push time in 11 days

PR opened mongodb-js/mongosh

add back node --experimental-repl-await to mongosh bin file

Description

This got accidentally removed when adding eslint to cli-repl package. Adding it back in.

+116 -30

0 comment

3 changed files

pr created time in 11 days

create barnchmongodb-js/mongosh

branch : node-await-flag

created branch time in 11 days

Pull request review commentmongodb-js/mongosh

adjust telemetry names for connect event

 describe('getConnectInfo', function() {    it('reports on an enterprise version >=3.2 of mongodb with credentials', function() {     const output = {-      isAtlas: true,-      isLocalhost: false,-      serverVersion: '3.2.0-rc2',-      isEnterprise: true,-      authType: 'LDAP',-      isDataLake: false,-      dlVersion: null,-      isGenuine: true,-      serverName: 'mongodb',+      is_atlas: true,+      is_localhost: false,+      server_version: '3.2.0-rc2',+      is_enterprise: true,+      auth_type: 'LDAP',+      is_data_lake: false,+      dl_version: null,+      is_genuine: true,+      non_genuine_server_name: 'mongodb',+      server_arch: 'x86_64',+      server_os: 'osx',       uri: ATLAS_URI

yes, that's what it looks like. I do not send this to telemetry though, only to user's local log file

lrlna

comment created time in 11 days

PR opened mongodb-js/mongosh

adjust telemetry names for connect event

Description

As per @mmarcon's request, changing telemetry events to be snake_cased instead of camelCased.

This PR also adds server_os and server_arch information to Connect event.

+85 -68

0 comment

5 changed files

pr created time in 12 days

create barnchmongodb-js/mongosh

branch : rename-telemetry-events

created branch time in 12 days

push eventmongodb-js/mongodb-build-info

Irina Shestak

commit sha b8343c3d67837e690cec38d93b11ebb7b6bc91b0

1.1.0

view details

push time in 12 days

created tagmongodb-js/mongodb-build-info

tagv1.1.0

Extract information from mongodb's buildInfo

created time in 12 days

push eventmongodb-js/mongodb-build-info

Irina Shestak

commit sha a10724562aa5720b3ea9de9dd9f12f00d53f9af0

add getBuildEnv function to extract server arch and os

view details

push time in 12 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 7e4fbd389d639c0ed2d5f56756fb2cd3abc42cc4

update readme with wiki information

view details

push time in 12 days

push eventmongodb-js/mongodb-cloud-info

Irina Shestak

commit sha 77fbdd7e5b30efd5ec6b531c4073939f45353ab1

readme update: js code snippets

view details

push time in 12 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 674d246b3ba6f67f8e5ba5953e3d2582b92f5db8

add eslint to cli-repl (#172)

view details

push time in 13 days

delete branch mongodb-js/mongosh

delete branch : add-eslint

delete time in 13 days

PR merged mongodb-js/mongosh

add eslint to cli-repl

Description

Because lrlna keeps forgetting semi-colons.

+335 -313

0 comment

24 changed files

lrlna

pr closed time in 13 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 2952cd5f8dd1061fa018964e3c8734787ec95bfc

fix eslint errors

view details

push time in 13 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha 58f69c39c347379ae0b770c5d45ff8e648ec628d

fix eslint errors

view details

push time in 13 days

Pull request review commentmongodb-js/mongosh

add eslint to cli-repl

 class CliRepl {     const version = this.buildInfo.version;      this.repl = repl.start({-      prompt: `> `,+      prompt: '> ',       writer: this.writer,       completer: completer.bind(null, version),     });      const originalEval = util.promisify(this.repl.eval); -    const customEval = async(input, context, filename, callback) => {+    const customEval = async(input, context, filename, callback): Promise<any> => {       let result;-      let err = null;        try {         result = await this.ShellEvaluator.customEval(originalEval, input, context, filename);       } catch (err) {         if (isRecoverableError(input)) {           return callback(new Recoverable(err));-        } else {-          result = err;         }+        result = err;       }-      callback (null, result)+      callback(null, result);     }; +    // we can assign eval, it is not a read-only property, so ignore typescript+    // eslint-disable-next-line @typescript-eslint/ban-ts-ignore

ugh typescript :/

this.repl.eval is definitely a settable property. REPL does it consistently throughout the entire codebase. bah humbug I am old and grumpy at new javascript fads

lrlna

comment created time in 13 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha acc6bf1ecbdd9adadb3b126c018a04dad6ec687a

add db. autocompletes (#171)

view details

push time in 13 days

delete branch mongodb-js/mongosh

delete branch : autocompleter-fixes

delete time in 13 days

PR merged mongodb-js/mongosh

add 'db. ' autocompletes

Description

Reads from ShellAPI and autocompletes the db objects. This does not include collection completions. Those will be done later on.

Capture d’écran, le 2020-05-11 à 18 47 00

+26 -4

0 comment

2 changed files

lrlna

pr closed time in 13 days

Pull request review commentmongodb-js/mongosh

feat: disable .clear command

 class CliRepl {       callback (null, result)     }; -    // @ts-ignore-    this.repl.eval = customEval;+    (this.repl as any).eval = customEval;

really, this is what's going to get typescript to behave? :/ :/ :/

mcasimir

comment created time in 13 days

push eventmongodb-js/mongosh

Irina Shestak

commit sha fe934dc54fd38de2a80304448abf8eddb0f26425

fix eslint errors

view details

push time in 13 days

PR opened mongodb-js/mongosh

add eslint to cli-repl

Description

Because lrlna keeps forgetting semi-colons.

+334 -309

0 comment

23 changed files

pr created time in 13 days

create barnchmongodb-js/mongosh

branch : add-eslint

created branch time in 13 days

PR opened mongodb-js/mongosh

add 'db. ' autocompletes

Description

Reads from ShellAPI and autocompletes the db objects. This does not include collection completions. Those will be done later on.

Capture d’écran, le 2020-05-11 à 18 47 00

+26 -4

0 comment

2 changed files

pr created time in 14 days

create barnchmongodb-js/mongosh

branch : autocompleter-fixes

created branch time in 14 days

delete branch mongodb-js/mongosh

delete branch : index-functions-help

delete time in 14 days

push eventmongodb-js/mongosh

Massimiliano Marcon

commit sha 4718fa59366ef23735ec3c50f6d6de06a7b6d04d

Removed double `db.coll` in contextual help (#169)

view details

push time in 14 days

more