Skip to content

Commit d9c6c6c

Browse files
committed
Release 3.1.2-rc0
1 parent e28603c commit d9c6c6c

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Strophe.js Change Log
22

3+
## Version 3.1.2 - (Unreleased)
4+
5+
- Moved `jsdom` and `ws` from optionalDependencies to peerDependencies
6+
37
## Version 3.1.1 - (2025-05-20)
48

59
- Strip unnecessary whitespace from `Stanza` elements

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "strophe.js",
33
"description": "Strophe.js is an XMPP library for JavaScript",
4-
"version": "3.1.1",
4+
"version": "3.1.2-rc0",
55
"homepage": "http://strophe.im/strophejs",
66
"repository": {
77
"type": "git",

src/shims.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ function getDOMParserImplementation() {
7474
let JSDOM;
7575
try {
7676
JSDOM = require('jsdom').JSDOM;
77-
// eslint-disable-next-line no-unused-vars
78-
} catch (e) {
77+
} catch (_e) {
7978
throw new Error('You must install the "jsdom" package to use Strophe in nodejs.');
8079
}
8180
const dom = new JSDOM('');

0 commit comments

Comments
 (0)