Commit Graph

286 Commits

Author SHA1 Message Date
7035f4a689 chore(.gitignore) ignore vscode settings
refactor(websockets) remove systemMessage, add TotalMembers broadcast
2023-09-06 11:32:06 -04:00
AtHeartEngineer
7ac8eb29c3 system message broadcasts need to be reworked. 2023-09-01 19:15:53 -07:00
AtHeartEngineer
c68626e44a remove genID and use random value roomId 2023-09-01 19:02:32 -07:00
AtHeartEngineer
d0ebeec472 updated rlnjs to latest 2023-09-01 17:21:29 -07:00
AtHeartEngineer
a4786e5da1 version bump 2023-09-01 17:19:56 -07:00
AtHeartEngineer
ca5116871a refactored db and crypto folders/exports 2023-09-01 17:08:23 -07:00
AtHeartEngineer
a650243350 Merge branch 'main' into validate-message-refactor 2023-09-01 16:11:05 -04:00
AtHeartEngineer
a0dbeea951 refactored message validation to be stricter/cleaner 2023-09-01 13:09:13 -07:00
AtHeartEngineer
b37e80961d chore(deps): bump mongodb from 5.7.0 to 5.8.0 (#66)
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from
5.7.0 to 5.8.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mongodb/node-mongodb-native/releases">mongodb's
releases</a>.</em></p>
<blockquote>
<h2>v5.8.0</h2>
<h2><a
href="https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0">5.8.0</a>
(2023-08-21)</h2>
<p>The MongoDB Node.js team is pleased to announce version 5.8.0 of the
<code>mongodb</code> package!</p>
<h2>Release Notes</h2>
<h3>The <code>AutoEncrypter</code> interface has been deprecated</h3>
<p>The <code>AutoEncrypter</code> interface was used internally but
accidentally made public in the 4.x version of the driver. It is now
deprecated and will be made internal in the next major release.</p>
<h3>Kerberos support for 1.x and 2.x</h3>
<p>Moves the kerberos dependency back to <code>^1.0.0 || ^2.0.0</code>
to indicate support for both 1.x and 2.x. Support for 1.x is removed in
6.0.</p>
<h3>Fixed accidental deprecation warning</h3>
<p>Because of internal options handling, a deprecation was emitted for
<code>tlsCertificateFile</code> when using
<code>tlsCertificateKeyFile</code>. That has been corrected.</p>
<h3>Remove credential availability on
<code>ConnectionPoolCreatedEvent</code></h3>
<p>In order to avoid mistakenly printing credentials the
<code>ConnectionPoolCreatedEvent</code> will replace the credentials
option with an empty object. The credentials are still accessble via
MongoClient options: <code>client.options.credentials</code>.</p>
<h3>Features</h3>
<ul>
<li><strong>NODE-5399:</strong> use mongodb-js/saslprep instead of
saslprep (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3818">#3818</a>)
(<a
href="c0d3927379">c0d3927</a>)</li>
<li><strong>NODE-5429:</strong> deprecate the <code>AutoEncrypter</code>
interface (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3764">#3764</a>)
(<a
href="9bb0d955e7">9bb0d95</a>)</li>
<li><strong>NODE-5465,NODE-5538:</strong> lower
<code>@aws-sdk/credential-providers</code> version to 3.188.0 and
<code>zstd</code> to <code>^1.0.0</code> (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3821">#3821</a>)
(<a
href="39ff81d402">39ff81d</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>NODE-5489:</strong> set kerberos compatibility to ^1.0.0 ||
^2.0.0 (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3803">#3803</a>)
(<a
href="c3b35b321b">c3b35b3</a>)</li>
<li><strong>NODE-5495:</strong> do not emit deprecation warning when
tlsCertificateKeyFile is specified and tlsCertificateFile is not (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3810">#3810</a>)
(<a
href="e81d4a2fc0">e81d4a2</a>)</li>
<li><strong>NODE-5537:</strong> remove credentials from
ConnectionPoolCreatedEvent options (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3813">#3813</a>)
(<a
href="4cf1e96c68">4cf1e96</a>)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://docs.mongodb.com/drivers/node/current/">Reference</a></li>
<li><a
href="https://mongodb.github.io/node-mongodb-native/5.8/">API</a></li>
<li><a
href="https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md">Changelog</a></li>
</ul>
<p>We invite you to try the <code>mongodb</code> library immediately,
and report any issues to the <a
href="https://jira.mongodb.org/projects/NODE">NODE project</a>.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md">mongodb's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0">5.8.0</a>
(2023-08-21)</h2>
<h3>Features</h3>
<ul>
<li><strong>NODE-5399:</strong> use mongodb-js/saslprep instead of
saslprep (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3818">#3818</a>)
(<a
href="c0d3927379">c0d3927</a>)</li>
<li><strong>NODE-5429:</strong> deprecate the <code>AutoEncrypter</code>
interface (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3764">#3764</a>)
(<a
href="9bb0d955e7">9bb0d95</a>)</li>
<li><strong>NODE-5465,NODE-5538:</strong> lower
<code>@aws-sdk/credential-providers</code> version to 3.188.0 and
<code>zstd</code> to <code>^1.0.0</code> (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3821">#3821</a>)
(<a
href="39ff81d402">39ff81d</a>)</li>
<li><strong>NODE-5489:</strong> update kerberos dependency (<a
href="8c25d6d0a7">8c25d6d</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>NODE-5489:</strong> set kerberos compatibility to ^1.0.0 ||
^2.0.0 (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3803">#3803</a>)
(<a
href="c3b35b321b">c3b35b3</a>)</li>
<li><strong>NODE-5495:</strong> do not emit deprecation warning when
tlsCertificateKeyFile is specified and tlsCertificateFile is not (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3810">#3810</a>)
(<a
href="e81d4a2fc0">e81d4a2</a>)</li>
<li><strong>NODE-5537:</strong> remove credentials from
ConnectionPoolCreatedEvent options (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3813">#3813</a>)
(<a
href="4cf1e96c68">4cf1e96</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="43673fa189"><code>43673fa</code></a>
chore(5.x): release 5.8.0 [skip-ci] (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3825">#3825</a>)</li>
<li><a
href="4b2fc79525"><code>4b2fc79</code></a>
docs: fix cutoff sentence on CommandStartedEvent (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3828">#3828</a>)</li>
<li><a
href="39ff81d402"><code>39ff81d</code></a>
feat(NODE-5465,NODE-5538): lower
<code>@aws-sdk/credential-providers</code> version to 3...</li>
<li><a
href="e1af3437c3"><code>e1af343</code></a>
chore: update release automation scripts 5.x (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3823">#3823</a>)</li>
<li><a
href="c0d3927379"><code>c0d3927</code></a>
feat(NODE-5399): use mongodb-js/saslprep instead of saslprep (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3818">#3818</a>)</li>
<li><a
href="4cf1e96c68"><code>4cf1e96</code></a>
fix(NODE-5537): remove credentials from ConnectionPoolCreatedEvent
options (#...</li>
<li><a
href="e81d4a2fc0"><code>e81d4a2</code></a>
fix(NODE-5495): do not emit deprecation warning when
tlsCertificateKeyFile is...</li>
<li><a
href="c3b35b321b"><code>c3b35b3</code></a>
fix(NODE-5489): set kerberos compatibility to ^1.0.0 || ^2.0.0 (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3803">#3803</a>)</li>
<li><a
href="cc3069d836"><code>cc3069d</code></a>
Revert &quot;feat(NODE-5489): update kerberos dependency&quot;</li>
<li><a
href="8c25d6d0a7"><code>8c25d6d</code></a>
feat(NODE-5489): update kerberos dependency</li>
<li>Additional commits viewable in <a
href="https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mongodb&package-manager=npm_and_yarn&previous-version=5.7.0&new-version=5.8.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/Discreetly/server/network/alerts).

</details>
2023-09-01 11:35:40 -04:00
AtHeartEngineer
3d16e3f732 prevent empty messages server side (#67) 2023-09-01 11:35:20 -04:00
AtHeartEngineer
9020a01b89 prevent empty messages server side 2023-08-30 17:07:18 -07:00
dependabot[bot]
51ccc6c6f9 chore(deps): bump mongodb from 5.7.0 to 5.8.0
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 23:07:52 +00:00
AtHeartEngineer
95f9512fa2 Replaced JSON.stringify w String() (#65)
I believe this fixes the quote problem
2023-08-30 02:54:42 -04:00
AtHeartEngineer
90b1fbe6d1 Replaced JSON.stringify w String() 2023-08-29 21:32:21 -07:00
AtHeartEngineer
5155165198 System Messages for SocketIO (#62) 2023-08-26 08:17:25 -04:00
Tanner Shaw
1962720904 feature(socketIO) systemMessage made for SocketIO to broadcast system messages 2023-08-25 23:47:23 -05:00
AtHeartEngineer
b07b206004 startup and shutdown broadcast (#61) 2023-08-26 00:00:10 -04:00
AtHeartEngineer
3d3833676b Update server.ts 2023-08-26 00:00:03 -04:00
AtHeartEngineer
0d284922c0 startup and shutdown broadcast 2023-08-25 23:48:07 -04:00
AtHeartEngineer
3eebffe3f5 bug fix for some messages not being send because proof doesn't exist … (#60)
…on an old message
2023-08-25 23:40:08 -04:00
AtHeartEngineer
282d53b573 bug fix for some messages not being send because proof doesn't exist on an old message 2023-08-25 23:38:35 -04:00
AtHeartEngineer
2bd73ec0a4 /addcode fixed (#59)
…ms associations
2023-08-25 16:50:22 -04:00
AtHeartEngineer
0dfd4e005a Merge branch 'main' into fixing-code-creation 2023-08-25 16:49:44 -04:00
Tanner Shaw
73e61da32e fix(jsdocs) added @return to refactored functions 2023-08-25 12:12:35 -05:00
Tanner Shaw
5ecda5c011 refactor(claimcodes) major refactor of /join and /addcode 2023-08-25 12:04:59 -05:00
Tanner Shaw
e44747c0e9 small fix, removed 'n' from removeIdentityFromRoom. Thought we already did this? 2023-08-25 02:11:22 -05:00
Tanner Shaw
952d897a8a refactor(claimCodes) /addcode now properly creates claimCodes and rooms associations 2023-08-25 02:09:40 -05:00
AtHeartEngineer
5e1a62c65f refactor(claimCodes) fixed the /addcode route to properly generate co… (#58)
…des for all rooms or a single room
2023-08-25 00:50:35 -04:00
AtHeartEngineer
96829872fe Merge branch 'main' into fixing-code-creation 2023-08-25 00:50:16 -04:00
AtHeartEngineer
893d508c70 Fix for removing identities from rooms and bandada groups (#55) 2023-08-25 00:50:07 -04:00
AtHeartEngineer
e4555eb725 Merge branch 'main' into room-messages 2023-08-25 00:50:01 -04:00
Tanner Shaw
67944d9eaf refactor(claimCodes) fixed the /addcode route to properly generate codes for all rooms or a single room 2023-08-24 23:48:44 -05:00
AtHeartEngineer
d63067b5cb Return invite codes when generating them (#57) 2023-08-24 23:10:14 -04:00
AtHeartEngineer
ad032dedcc PUBLIC -> PUBLIC_CHAT (#56) 2023-08-24 23:08:46 -04:00
AtHeartEngineer
0908251ff5 Merge branch 'return-codes' into pixelmap-support 2023-08-24 23:08:41 -04:00
4be4e505bc return claim codes when generating codes 2023-08-24 23:08:08 -04:00
6446b8edf0 PUBLIC -> PUBLIC_CHAT 2023-08-24 23:02:16 -04:00
AtHeartEngineer
d7bd66fe19 Merge branch 'main' into room-messages 2023-08-24 22:57:40 -04:00
AtHeartEngineer
cd0e1afe8e Documentation (#54) 2023-08-24 22:55:38 -04:00
Tanner Shaw
c725d64833 fix(messages) fixed typo on removing identities 2023-08-24 17:48:18 -05:00
Tanner Shaw
8cb11d4c71 feature(messages) removing an identity now deletes the ID from bandada_groups as well 2023-08-24 17:40:42 -05:00
Tanner Shaw
c3e801148f feature(messages) fixed removing identity from rooms 2023-08-24 16:57:23 -05:00
Tanner Shaw
ed2641036a refactor(documentation) refactored all docs to JSDocs 2023-08-24 14:40:19 -05:00
Tanner Shaw
bc3ac887bf feature(documentation) added extra documentation for endpoints and messages 2023-08-24 12:46:49 -05:00
Tanner Shaw
1e90eccc62 feature(documentation) in-line documentation for messages and message collisions 2023-08-24 12:26:12 -05:00
Tanner Shaw
92b5773a88 feature(documentation) express endpoints and helper functions documentation 2023-08-24 12:07:01 -05:00
Tanner Shaw
98d8b3c86e Merge branch 'main' into documentation 2023-08-24 10:31:05 -05:00
Tanner Shaw
9c2dead479 feature(documentation) inline-documentation for express routes 2023-08-24 10:29:35 -05:00
AtHeartEngineer
fa1b349c42 fix(messages) message epochs and message reverse order (#49) 2023-08-23 20:17:31 -04:00
AtHeartEngineer
dde95f7e63 Merge branch 'main' into rate-commitment 2023-08-23 20:16:01 -04:00