Skip to content

Commit

Permalink
Merge branch 'main' into improve=sm
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Jan 24, 2025
2 parents 8f9cdbd + dba0d4a commit 38066e4
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 84 deletions.
106 changes: 105 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Do you need help with working with xmpp.js? Please reach out to our community by
## Built with xmpp.js

- [WorkAdventure](https://workadventu.re/)
- [Simplo](https://simplo.app/?lang=en)
- [Mustang](https://www.mustang.im/)
- [Crypho](https://www.crypho.com/)
- [MeshCentral](https://meshcentral.com/)
- [openHAB](https://www.openhab.org/)
Expand All @@ -62,6 +62,110 @@ Do you need help with working with xmpp.js? Please reach out to our community by

<small>Feel free to send a PR to add your project or organization to this list.</small>

## Protocols

[RFC 6120](https://tools.ietf.org/html/rfc6120) - Extensible Messaging and Presence Protocol (XMPP): Core

See [`@xmpp/client-core`](packages/client-core) and [`@xmpp/component-core`](packages/component-core)

Included in [`@xmpp/client`](packages/client) and [`@xmpp/component`](packages/component)

---

[RFC 7590](https://tools.ietf.org/html/rfc7590) - Use of Transport Layer Security (TLS) in the Extensible Messaging and Presence Protocol (XMPP)

See [`@xmpp/tls`](packages/tls)

Included in [`@xmpp/client`](packages/client)

---

<!-- [RFC 6121](https://tools.ietf.org/html/rfc6121) - Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence ✗ -->

<!-- --- -->

[RFC 7622](https://tools.ietf.org/html/rfc7622) - Extensible Messaging and Presence Protocol (XMPP): Address Format

See [`@xmpp/jid`](packages/jid)

Included in [`@xmpp/client`](packages/client) and [`@xmpp/component`](packages/component)

---

[RFC 7395](https://tools.ietf.org/html/rfc7395) - An Extensible Messaging and Presence Protocol (XMPP) Subprotocol for WebSocket

See [`@xmpp/websocket`](packages/websocket)

Included in [`@xmpp/client`](packages/client)

---

[draft-cridland-xmpp-session-01](https://tools.ietf.org/html/draft-cridland-xmpp-session-01) Here Lies Extensible Messaging and Presence Protocol (XMPP) Session Establishment

See [`@xmpp/session-establishment`](packages/session-establishment)

---

[XEP-0368](https://xmpp.org/extensions/xep-0368.html): SRV records for XMPP over TLS

See [`@xmpp/resolve`](packages/resolve)

Included in [`@xmpp/client`](packages/client)

---

[XEP-0156](https://xmpp.org/extensions/xep-0156.html): Discovering Alternative XMPP Connection Methods

See [`@xmpp/resolve`](packages/resolve)

Included in [`@xmpp/client`](packages/client)

---

[XEP-0114](https://xmpp.org/extensions/xep-0114.html): Jabber Component Protocol

See [`@xmpp/component-core`](packages/component-core)

Included in [`@xmpp/component`](packages/component)

---

[XEP-0082](https://xmpp.org/extensions/xep-0082.html): XMPP Date and Time Profiles

See [`@xmpp/time`](packages/time)

---

[XEP-0198](https://xmpp.org/extensions/xep-0198.html): Stream Management

See [`@xmpp/stream-management`](packages/stream-management)

Included in [`@xmpp/client`](packages/client)

---

[XEP-0388](https://xmpp.org/extensions/xep-0388.html): Extensible SASL Profile

See [`@xmpp/sasl2`](packages/sasl2)

Included in [`@xmpp/client`](packages/client)

---

[XEP-0386](https://xmpp.org/extensions/xep-0386.html): Bind 2

See [`@xmpp/client-core`](./packages/client-core/src/bind2/)

Included in [`@xmpp/client`](packages/client)

---

[XEP-0484](https://xmpp.org/extensions/xep-0484.html): Fast Authentication Streamlining Tokens

See [`@xmpp/client-core`](./packages/client-core/src/fast/)

Included in [`@xmpp/client`](packages/client)

## credits

xmpp.js is a rewrite of [node-xmpp](https://github.com/xmppjs/xmpp.js/tree/node-xmpp) and learned a lot from it.
Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default [
"prefer-arrow-callback": ["error", { allowNamedFunctions: true }],
"no-redeclare": ["error", { builtinGlobals: false }],
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-console": ["error"],

// node
// https://github.com/eslint-community/eslint-plugin-n/
Expand Down
3 changes: 2 additions & 1 deletion packages/client/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-console, n/no-extraneous-import*/

import { client, xml } from "@xmpp/client";
// eslint-disable-next-line n/no-extraneous-import
import debug from "@xmpp/debug";

// Insecure!
Expand Down
3 changes: 2 additions & 1 deletion packages/component/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-console, n/no-extraneous-import*/

import { component, xml } from "@xmpp/component";
// eslint-disable-next-line n/no-extraneous-import
import debug from "@xmpp/debug";

const xmpp = component({
Expand Down
2 changes: 2 additions & 0 deletions packages/resolve/example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-console */

import { resolve } from "@xmpp/resolve";

const result = await resolve("jabberfr.org");
Expand Down
79 changes: 0 additions & 79 deletions protocols.md

This file was deleted.

1 change: 1 addition & 0 deletions server/ctl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
/* eslint-disable no-console */

import server from "./index.js";

Expand Down
3 changes: 1 addition & 2 deletions test/bundlesize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable unicorn/no-process-exit */
/* eslint-disable n/no-process-exit */
/* eslint-disable no-console, unicorn/no-process-exit, n/no-process-exit */

import zlib from "node:zlib";
import { readFile } from "node:fs/promises";
Expand Down

0 comments on commit 38066e4

Please sign in to comment.