diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 78821e50..a6a16a82 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,8 +12,7 @@ jobs: strategy: fail-fast: false matrix: - # node: [14, 16, 18, 20, 22] - node: [20, 22] + node: [20, 22, 23] steps: - uses: actions/checkout@v4 diff --git a/package-lock.json b/package-lock.json index b5e057eb..ae8cc837 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,10 +24,10 @@ "browserify": "^17.0.1", "bundlesize": "^0.18.2", "common-shakeify": "^1.1.2", - "eslint": "^9.16.0", + "eslint": "^9.17.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-jest": "^28.10.0", - "eslint-plugin-n": "^17.15.0", + "eslint-plugin-n": "^17.15.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^7.2.1", "eslint-plugin-unicorn": "^56.0.1", @@ -39,18 +39,17 @@ "jsdom": "^25.0.1", "lerna": "^8.1.9", "lint-staged": "^15.2.11", - "node-fetch": "^2.6.12", "prettier": "^3.4.2", "selfsigned": "^2.4.1", "uglify-js": "^3.19.3" }, "engines": { - "node": ">= 14.13.1", - "npm": ">= 7" + "node": ">= 20" } }, "node_modules/@ampproject/remapping": { "version": "2.3.0", + "dev": true, "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", @@ -60,78 +59,9 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/cli": { - "version": "7.26.4", - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "commander": "^6.2.0", - "convert-source-map": "^2.0.0", - "fs-readdir-recursive": "^1.1.0", - "glob": "^7.2.0", - "make-dir": "^2.1.0", - "slash": "^2.0.0" - }, - "bin": { - "babel": "bin/babel.js", - "babel-external-helpers": "bin/babel-external-helpers.js" - }, - "engines": { - "node": ">=6.9.0" - }, - "optionalDependencies": { - "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", - "chokidar": "^3.6.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/cli/node_modules/commander": { - "version": "6.2.1", - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/@babel/cli/node_modules/convert-source-map": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/@babel/cli/node_modules/make-dir": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "pify": "^4.0.1", - "semver": "^5.6.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@babel/cli/node_modules/pify": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/@babel/cli/node_modules/semver": { - "version": "5.7.1", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/@babel/cli/node_modules/slash": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/@babel/code-frame": { "version": "7.26.2", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.25.9", @@ -144,6 +74,7 @@ }, "node_modules/@babel/compat-data": { "version": "7.26.3", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -151,6 +82,7 @@ }, "node_modules/@babel/core": { "version": "7.26.0", + "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", @@ -179,10 +111,12 @@ }, "node_modules/@babel/core/node_modules/convert-source-map": { "version": "2.0.0", + "dev": true, "license": "MIT" }, "node_modules/@babel/core/node_modules/semver": { "version": "6.3.1", + "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -190,6 +124,7 @@ }, "node_modules/@babel/generator": { "version": "7.26.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.26.3", @@ -204,6 +139,7 @@ }, "node_modules/@babel/helper-annotate-as-pure": { "version": "7.25.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.25.9" @@ -214,6 +150,7 @@ }, "node_modules/@babel/helper-compilation-targets": { "version": "7.25.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/compat-data": "^7.25.9", @@ -228,6 +165,7 @@ }, "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { "version": "5.1.1", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^3.0.2" @@ -235,6 +173,7 @@ }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.1", + "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -242,6 +181,7 @@ }, "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { "version": "3.1.1", + "dev": true, "license": "ISC" }, "node_modules/@babel/helper-create-class-features-plugin": { @@ -325,6 +265,7 @@ }, "node_modules/@babel/helper-module-imports": { "version": "7.25.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/traverse": "^7.25.9", @@ -336,6 +277,7 @@ }, "node_modules/@babel/helper-module-transforms": { "version": "7.26.0", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.25.9", @@ -362,6 +304,7 @@ }, "node_modules/@babel/helper-plugin-utils": { "version": "7.25.9", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -413,6 +356,7 @@ }, "node_modules/@babel/helper-string-parser": { "version": "7.25.9", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -420,6 +364,7 @@ }, "node_modules/@babel/helper-validator-identifier": { "version": "7.25.9", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -427,6 +372,7 @@ }, "node_modules/@babel/helper-validator-option": { "version": "7.25.9", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -447,6 +393,7 @@ }, "node_modules/@babel/helpers": { "version": "7.26.0", + "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.25.9", @@ -456,45 +403,9 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/node": { - "version": "7.26.0", - "license": "MIT", - "dependencies": { - "@babel/register": "^7.25.9", - "commander": "^6.2.0", - "core-js": "^3.30.2", - "node-environment-flags": "^1.0.5", - "regenerator-runtime": "^0.14.0", - "v8flags": "^3.1.1" - }, - "bin": { - "babel-node": "bin/babel-node.js" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/node/node_modules/commander": { - "version": "6.2.1", - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/@babel/node/node_modules/core-js": { - "version": "3.39.0", - "hasInstallScript": true, - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/@babel/parser": { "version": "7.26.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.26.3" @@ -714,6 +625,7 @@ }, "node_modules/@babel/plugin-syntax-jsx": { "version": "7.25.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" @@ -1428,6 +1340,7 @@ }, "node_modules/@babel/plugin-transform-react-jsx": { "version": "7.25.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.25.9", @@ -1747,48 +1660,6 @@ "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/@babel/register": { - "version": "7.25.9", - "license": "MIT", - "dependencies": { - "clone-deep": "^4.0.1", - "find-cache-dir": "^2.0.0", - "make-dir": "^2.1.0", - "pirates": "^4.0.6", - "source-map-support": "^0.5.16" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/register/node_modules/make-dir": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "pify": "^4.0.1", - "semver": "^5.6.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@babel/register/node_modules/pify": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/@babel/register/node_modules/semver": { - "version": "5.7.2", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/@babel/runtime": { "version": "7.26.0", "dev": true, @@ -1802,6 +1673,7 @@ }, "node_modules/@babel/template": { "version": "7.25.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.25.9", @@ -1814,6 +1686,7 @@ }, "node_modules/@babel/traverse": { "version": "7.26.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.26.2", @@ -1832,12 +1705,14 @@ "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, "engines": { "node": ">=4" } }, "node_modules/@babel/types": { "version": "7.26.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", @@ -2011,9 +1886,10 @@ } }, "node_modules/@eslint/js": { - "version": "9.16.0", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.17.0.tgz", + "integrity": "sha512-Sxc4hqcs1kTu0iID3kcZDW3JHq2a77HO9P8CP6YEA/FpH3Ll8UXE2r/86Rz9YJLKme39S9vU5OWNjC6Xl0Cr3w==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } @@ -2581,6 +2457,7 @@ }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.8", + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.2.1", @@ -2593,6 +2470,7 @@ }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.2", + "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -2600,6 +2478,7 @@ }, "node_modules/@jridgewell/set-array": { "version": "1.2.1", + "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -2607,10 +2486,12 @@ }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.0", + "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.25", + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -3050,11 +2931,6 @@ "@tybys/wasm-util": "^0.9.0" } }, - "node_modules/@nicolo-ribaudo/chokidar-2": { - "version": "2.1.8-no-fsevents.3", - "license": "MIT", - "optional": true - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "dev": true, @@ -3669,7 +3545,7 @@ "dev": true, "license": "MIT", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/@octokit/core": { @@ -3686,7 +3562,7 @@ "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/@octokit/endpoint": { @@ -3699,7 +3575,7 @@ "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/@octokit/graphql": { @@ -3712,7 +3588,7 @@ "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/@octokit/openapi-types": { @@ -3734,7 +3610,7 @@ "@octokit/types": "^9.2.3" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "peerDependencies": { "@octokit/core": ">=4" @@ -3756,7 +3632,7 @@ "@octokit/types": "^10.0.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "peerDependencies": { "@octokit/core": ">=3" @@ -3783,7 +3659,7 @@ "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/@octokit/request-error": { @@ -3796,7 +3672,7 @@ "once": "^1.4.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/@octokit/rest": { @@ -3810,7 +3686,7 @@ "@octokit/plugin-rest-endpoint-methods": "^7.1.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/@octokit/tsconfig": { @@ -4461,7 +4337,7 @@ "dev": true, "license": "MIT", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/aggregate-error": { @@ -4534,7 +4410,7 @@ }, "node_modules/anymatch": { "version": "3.1.2", - "devOptional": true, + "dev": true, "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", @@ -4725,6 +4601,7 @@ }, "node_modules/babel-plugin-jsx-pragmatic": { "version": "1.0.2", + "dev": true, "license": "MIT", "dependencies": { "babel-plugin-syntax-jsx": "^6.0.0" @@ -4776,6 +4653,7 @@ }, "node_modules/babel-plugin-syntax-jsx": { "version": "6.18.0", + "dev": true, "license": "MIT" }, "node_modules/babel-plugin-transform-async-to-promises": { @@ -4846,10 +4724,7 @@ }, "node_modules/balanced-match": { "version": "1.0.2", - "license": "MIT" - }, - "node_modules/base-64": { - "version": "1.0.0", + "dev": true, "license": "MIT" }, "node_modules/base64-js": { @@ -4913,14 +4788,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=8" - } - }, "node_modules/bl": { "version": "4.1.0", "dev": true, @@ -4974,6 +4841,7 @@ }, "node_modules/brace-expansion": { "version": "1.1.11", + "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", @@ -4982,7 +4850,7 @@ }, "node_modules/braces": { "version": "3.0.3", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "fill-range": "^7.1.1" @@ -5215,6 +5083,7 @@ }, "node_modules/browserslist": { "version": "4.24.2", + "dev": true, "funding": [ { "type": "opencollective", @@ -5263,6 +5132,7 @@ }, "node_modules/buffer-from": { "version": "1.1.2", + "dev": true, "license": "MIT" }, "node_modules/buffer-xor": { @@ -5401,6 +5271,7 @@ }, "node_modules/call-bind": { "version": "1.0.8", + "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.0", @@ -5417,6 +5288,7 @@ }, "node_modules/call-bind-apply-helpers": { "version": "1.0.1", + "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -5493,6 +5365,7 @@ }, "node_modules/caniuse-lite": { "version": "1.0.30001688", + "dev": true, "funding": [ { "type": "opencollective", @@ -5552,29 +5425,6 @@ "dev": true, "license": "MIT" }, - "node_modules/chokidar": { - "version": "3.6.0", - "license": "MIT", - "optional": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, "node_modules/chownr": { "version": "2.0.0", "dev": true, @@ -5755,6 +5605,7 @@ }, "node_modules/clone-deep": { "version": "4.0.1", + "dev": true, "license": "MIT", "dependencies": { "is-plain-object": "^2.0.4", @@ -5767,6 +5618,7 @@ }, "node_modules/clone-deep/node_modules/is-plain-object": { "version": "2.0.4", + "dev": true, "license": "MIT", "dependencies": { "isobject": "^3.0.1" @@ -5899,10 +5751,6 @@ "wrap-comment": "^1.0.1" } }, - "node_modules/commondir": { - "version": "1.0.1", - "license": "MIT" - }, "node_modules/compare-func": { "version": "2.0.0", "dev": true, @@ -5914,6 +5762,7 @@ }, "node_modules/concat-map": { "version": "0.0.1", + "dev": true, "license": "MIT" }, "node_modules/concat-stream": { @@ -6480,6 +6329,7 @@ }, "node_modules/debug": { "version": "4.4.0", + "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -6578,6 +6428,7 @@ }, "node_modules/define-data-property": { "version": "1.1.4", + "dev": true, "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", @@ -6601,6 +6452,7 @@ }, "node_modules/define-properties": { "version": "1.2.1", + "dev": true, "license": "MIT", "dependencies": { "define-data-property": "^1.0.1", @@ -6787,6 +6639,7 @@ }, "node_modules/dunder-proto": { "version": "1.0.1", + "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -6831,6 +6684,7 @@ }, "node_modules/electron-to-chromium": { "version": "1.5.73", + "dev": true, "license": "ISC" }, "node_modules/elliptic": { @@ -6859,6 +6713,7 @@ }, "node_modules/encoding": { "version": "0.1.13", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -6867,6 +6722,7 @@ }, "node_modules/encoding/node_modules/iconv-lite": { "version": "0.6.3", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -6963,6 +6819,7 @@ }, "node_modules/es-abstract": { "version": "1.18.5", + "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.2", @@ -6992,6 +6849,7 @@ }, "node_modules/es-define-property": { "version": "1.0.1", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -6999,6 +6857,7 @@ }, "node_modules/es-errors": { "version": "1.3.0", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -7006,6 +6865,7 @@ }, "node_modules/es-object-atoms": { "version": "1.0.0", + "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -7016,6 +6876,7 @@ }, "node_modules/es-to-primitive": { "version": "1.2.1", + "dev": true, "license": "MIT", "dependencies": { "is-callable": "^1.1.4", @@ -7105,6 +6966,7 @@ }, "node_modules/escalade": { "version": "3.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -7136,16 +6998,17 @@ } }, "node_modules/eslint": { - "version": "9.16.0", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.17.0.tgz", + "integrity": "sha512-evtlNcpJg+cZLcnVKwsai8fExnqjGPicK7gnUtlNuzu+Fv9bI0aLpND5T44VLQtoMEnI57LoXO9XAkIXwohKrA==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.0", "@eslint/core": "^0.9.0", "@eslint/eslintrc": "^3.2.0", - "@eslint/js": "9.16.0", + "@eslint/js": "9.17.0", "@eslint/plugin-kit": "^0.2.3", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", @@ -7154,7 +7017,7 @@ "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.5", + "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.2.0", @@ -7293,9 +7156,10 @@ } }, "node_modules/eslint-plugin-n": { - "version": "17.15.0", + "version": "17.15.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.15.1.tgz", + "integrity": "sha512-KFw7x02hZZkBdbZEFQduRGH4VkIH4MW97ClsbAM4Y4E6KguBJWGfWG1P4HEIpZk2bkoWf0bojpnjNAhYQP8beA==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.4.1", "enhanced-resolve": "^5.17.1", @@ -7956,7 +7820,7 @@ }, "node_modules/fill-range": { "version": "7.1.1", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" @@ -7965,43 +7829,6 @@ "node": ">=8" } }, - "node_modules/find-cache-dir": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^2.0.0", - "pkg-dir": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/find-cache-dir/node_modules/make-dir": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "pify": "^4.0.1", - "semver": "^5.6.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/find-cache-dir/node_modules/pify": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/find-cache-dir/node_modules/semver": { - "version": "5.7.2", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/find-up": { "version": "4.1.0", "dev": true, @@ -8152,18 +7979,16 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/fs-readdir-recursive": { - "version": "1.1.0", - "license": "MIT" - }, "node_modules/fs.realpath": { "version": "1.0.0", + "dev": true, "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, "hasInstallScript": true, "optional": true, "os": [ @@ -8175,6 +8000,7 @@ }, "node_modules/function-bind": { "version": "1.1.2", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -8252,6 +8078,7 @@ }, "node_modules/gensync": { "version": "1.0.0-beta.2", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -8283,6 +8110,7 @@ }, "node_modules/get-intrinsic": { "version": "1.2.6", + "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -8488,6 +8316,7 @@ }, "node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -8506,7 +8335,7 @@ }, "node_modules/glob-parent": { "version": "5.1.2", - "devOptional": true, + "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.1" @@ -8548,6 +8377,7 @@ }, "node_modules/gopd": { "version": "1.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -8612,6 +8442,7 @@ }, "node_modules/has": { "version": "1.0.3", + "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.1" @@ -8641,6 +8472,7 @@ }, "node_modules/has-bigints": { "version": "1.0.1", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -8656,6 +8488,7 @@ }, "node_modules/has-property-descriptors": { "version": "1.0.2", + "dev": true, "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" @@ -8666,6 +8499,7 @@ }, "node_modules/has-symbols": { "version": "1.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -8676,6 +8510,7 @@ }, "node_modules/has-tostringtag": { "version": "1.0.0", + "dev": true, "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" @@ -8727,6 +8562,7 @@ }, "node_modules/hasown": { "version": "2.0.2", + "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -8745,16 +8581,6 @@ "minimalistic-crypto-utils": "^1.0.1" } }, - "node_modules/homedir-polyfill": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "parse-passwd": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/hosted-git-info": { "version": "7.0.2", "dev": true, @@ -8810,7 +8636,7 @@ "debug": "^4.3.4" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/https-browserify": { @@ -8827,7 +8653,7 @@ "debug": "4" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/human-signals": { @@ -9007,6 +8833,7 @@ }, "node_modules/inflight": { "version": "1.0.6", + "dev": true, "license": "ISC", "dependencies": { "once": "^1.3.0", @@ -9147,6 +8974,7 @@ }, "node_modules/internal-slot": { "version": "1.0.3", + "dev": true, "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.0", @@ -9200,6 +9028,7 @@ }, "node_modules/is-bigint": { "version": "1.0.4", + "dev": true, "license": "MIT", "dependencies": { "has-bigints": "^1.0.1" @@ -9208,19 +9037,9 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "license": "MIT", - "optional": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/is-boolean-object": { "version": "1.1.2", + "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.2", @@ -9254,6 +9073,7 @@ }, "node_modules/is-callable": { "version": "1.2.4", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -9275,6 +9095,7 @@ }, "node_modules/is-date-object": { "version": "1.0.5", + "dev": true, "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" @@ -9311,7 +9132,7 @@ }, "node_modules/is-extglob": { "version": "2.1.1", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -9350,7 +9171,7 @@ }, "node_modules/is-glob": { "version": "4.0.3", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" @@ -9374,6 +9195,7 @@ }, "node_modules/is-negative-zero": { "version": "2.0.1", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -9384,7 +9206,7 @@ }, "node_modules/is-number": { "version": "7.0.0", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" @@ -9392,6 +9214,7 @@ }, "node_modules/is-number-object": { "version": "1.0.6", + "dev": true, "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" @@ -9434,6 +9257,7 @@ }, "node_modules/is-regex": { "version": "1.1.4", + "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.2", @@ -9467,6 +9291,7 @@ }, "node_modules/is-string": { "version": "1.0.7", + "dev": true, "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" @@ -9480,6 +9305,7 @@ }, "node_modules/is-symbol": { "version": "1.0.4", + "dev": true, "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" @@ -9554,6 +9380,7 @@ }, "node_modules/isobject": { "version": "3.0.1", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -10441,6 +10268,7 @@ }, "node_modules/js-tokens": { "version": "4.0.0", + "dev": true, "license": "MIT" }, "node_modules/js-yaml": { @@ -10501,6 +10329,7 @@ }, "node_modules/jsesc": { "version": "3.1.0", + "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" @@ -10544,6 +10373,7 @@ }, "node_modules/json5": { "version": "2.2.3", + "dev": true, "license": "MIT", "bin": { "json5": "lib/cli.js" @@ -10603,6 +10433,7 @@ }, "node_modules/kind-of": { "version": "6.0.3", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -11782,6 +11613,7 @@ }, "node_modules/math-intrinsics": { "version": "1.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -11990,6 +11822,7 @@ }, "node_modules/minimatch": { "version": "3.1.2", + "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" @@ -12219,6 +12052,7 @@ }, "node_modules/ms": { "version": "2.1.3", + "dev": true, "license": "MIT" }, "node_modules/multimatch": { @@ -12375,23 +12209,9 @@ "semver": "bin/semver" } }, - "node_modules/node-environment-flags": { - "version": "1.0.6", - "license": "Apache-2.0", - "dependencies": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - } - }, - "node_modules/node-environment-flags/node_modules/semver": { - "version": "5.7.1", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/node-fetch": { "version": "2.7.0", + "dev": true, "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" @@ -12410,14 +12230,17 @@ }, "node_modules/node-fetch/node_modules/tr46": { "version": "0.0.3", + "dev": true, "license": "MIT" }, "node_modules/node-fetch/node_modules/webidl-conversions": { "version": "3.0.1", + "dev": true, "license": "BSD-2-Clause" }, "node_modules/node-fetch/node_modules/whatwg-url": { "version": "5.0.0", + "dev": true, "license": "MIT", "dependencies": { "tr46": "~0.0.3", @@ -12542,6 +12365,7 @@ }, "node_modules/node-releases": { "version": "2.0.19", + "dev": true, "license": "MIT" }, "node_modules/noop-logger": { @@ -12590,7 +12414,7 @@ }, "node_modules/normalize-path": { "version": "3.0.0", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -12933,6 +12757,7 @@ }, "node_modules/object-inspect": { "version": "1.12.0", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -12940,6 +12765,7 @@ }, "node_modules/object-keys": { "version": "1.1.1", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -12947,6 +12773,7 @@ }, "node_modules/object.assign": { "version": "4.1.2", + "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.0", @@ -12961,23 +12788,9 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.getownpropertydescriptors": { - "version": "2.1.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/once": { "version": "1.4.0", + "dev": true, "license": "ISC", "dependencies": { "wrappy": "1" @@ -13111,6 +12924,7 @@ }, "node_modules/p-limit": { "version": "2.3.0", + "dev": true, "license": "MIT", "dependencies": { "p-try": "^2.0.0" @@ -13207,6 +13021,7 @@ }, "node_modules/p-try": { "version": "2.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -13330,13 +13145,6 @@ "node": ">=4" } }, - "node_modules/parse-passwd": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/parse-path": { "version": "7.0.0", "dev": true, @@ -13379,6 +13187,7 @@ }, "node_modules/path-is-absolute": { "version": "1.0.1", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -13450,11 +13259,12 @@ }, "node_modules/picocolors": { "version": "1.1.1", + "dev": true, "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=8.6" @@ -13484,59 +13294,12 @@ }, "node_modules/pirates": { "version": "4.0.6", + "dev": true, "license": "MIT", "engines": { "node": ">= 6" } }, - "node_modules/pkg-dir": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-dir/node_modules/path-exists": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/pluralize": { "version": "8.0.0", "dev": true, @@ -14106,17 +13869,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/readdirp": { - "version": "3.6.0", - "license": "MIT", - "optional": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, "node_modules/redent": { "version": "3.0.0", "dev": true, @@ -14147,6 +13899,7 @@ }, "node_modules/regenerator-runtime": { "version": "0.14.1", + "dev": true, "license": "MIT" }, "node_modules/regenerator-transform": { @@ -14399,7 +14152,7 @@ }, "node_modules/safer-buffer": { "version": "2.1.2", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/sasl-anonymous": { @@ -14481,6 +14234,7 @@ }, "node_modules/set-function-length": { "version": "1.2.2", + "dev": true, "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", @@ -14507,6 +14261,7 @@ }, "node_modules/shallow-clone": { "version": "3.0.1", + "dev": true, "license": "MIT", "dependencies": { "kind-of": "^6.0.2" @@ -14549,6 +14304,7 @@ }, "node_modules/side-channel": { "version": "1.0.4", + "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.0", @@ -14693,7 +14449,7 @@ "socks": "^2.8.3" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/sort-keys": { @@ -14715,21 +14471,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-support": { - "version": "0.5.19", - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/sourcemap-codec": { "version": "1.4.8", "dev": true, @@ -14960,6 +14701,7 @@ }, "node_modules/string.prototype.trimend": { "version": "1.0.4", + "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.2", @@ -14971,6 +14713,7 @@ }, "node_modules/string.prototype.trimstart": { "version": "1.0.4", + "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.2", @@ -15267,7 +15010,7 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "is-number": "^7.0.0" @@ -15499,6 +15242,7 @@ }, "node_modules/unbox-primitive": { "version": "1.0.1", + "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.1", @@ -15612,6 +15356,7 @@ }, "node_modules/update-browserslist-db": { "version": "1.1.1", + "dev": true, "funding": [ { "type": "opencollective", @@ -15717,16 +15462,6 @@ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true }, - "node_modules/v8flags": { - "version": "3.2.0", - "license": "MIT", - "dependencies": { - "homedir-polyfill": "^1.0.1" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/validate-npm-package-license": { "version": "3.0.4", "dev": true, @@ -15848,6 +15583,7 @@ }, "node_modules/which-boxed-primitive": { "version": "1.0.2", + "dev": true, "license": "MIT", "dependencies": { "is-bigint": "^1.0.1", @@ -15977,6 +15713,7 @@ }, "node_modules/wrappy": { "version": "1.0.2", + "dev": true, "license": "ISC" }, "node_modules/write-json-file": { @@ -16119,7 +15856,7 @@ "yaml": "bin.mjs" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "node_modules/yargs": { @@ -16162,11 +15899,8 @@ "name": "@xmpp/base64", "version": "0.13.2", "license": "ISC", - "dependencies": { - "base-64": "^1.0.0" - }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/client": { @@ -16174,10 +15908,6 @@ "version": "0.13.2", "license": "ISC", "dependencies": { - "@babel/cli": "^7.26.4", - "@babel/core": "^7.26.0", - "@babel/node": "^7.26.0", - "@babel/plugin-transform-react-jsx": "^7.25.9", "@xmpp/client-core": "^0.13.2", "@xmpp/iq": "^0.13.2", "@xmpp/middleware": "^0.13.2", @@ -16194,11 +15924,10 @@ "@xmpp/stream-management": "^0.13.2", "@xmpp/tcp": "^0.13.2", "@xmpp/tls": "^0.13.2", - "@xmpp/websocket": "^0.13.2", - "babel-plugin-jsx-pragmatic": "^1.0.2" + "@xmpp/websocket": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/client-core": { @@ -16211,7 +15940,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/component": { @@ -16225,7 +15954,7 @@ "@xmpp/reconnect": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/component-core": { @@ -16238,7 +15967,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/connection": { @@ -16252,7 +15981,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/connection-tcp": { @@ -16264,7 +15993,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/debug": { @@ -16276,7 +16005,7 @@ "ltx": "^3.1.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/error": { @@ -16284,7 +16013,7 @@ "version": "0.13.2", "license": "ISC", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/events": { @@ -16295,7 +16024,7 @@ "events": "^3.3.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/id": { @@ -16303,7 +16032,7 @@ "version": "0.13.2", "license": "ISC", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/iq": { @@ -16317,7 +16046,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/jid": { @@ -16325,7 +16054,7 @@ "version": "0.13.2", "license": "ISC", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/middleware": { @@ -16339,7 +16068,7 @@ "koa-compose": "^4.1.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/reconnect": { @@ -16350,7 +16079,7 @@ "@xmpp/events": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/resolve": { @@ -16359,11 +16088,10 @@ "license": "ISC", "dependencies": { "@xmpp/events": "^0.13.2", - "@xmpp/xml": "^0.13.2", - "node-fetch": "^2.6.12" + "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/resource-binding": { @@ -16374,7 +16102,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/sasl": { @@ -16388,7 +16116,7 @@ "saslmechanisms": "^0.1.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/sasl-anonymous": { @@ -16399,7 +16127,7 @@ "sasl-anonymous": "^0.1.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/sasl-plain": { @@ -16410,7 +16138,7 @@ "sasl-plain": "^0.1.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/sasl-scram-sha-1": { @@ -16421,7 +16149,7 @@ "sasl-scram-sha-1": "^1.3.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/session-establishment": { @@ -16432,7 +16160,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/starttls": { @@ -16445,7 +16173,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/stream-features": { @@ -16453,7 +16181,7 @@ "version": "0.13.2", "license": "ISC", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/stream-management": { @@ -16464,7 +16192,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/tcp": { @@ -16475,7 +16203,7 @@ "@xmpp/connection-tcp": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/test": { @@ -16493,7 +16221,7 @@ "ltx": "^3.1.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/time": { @@ -16501,7 +16229,7 @@ "version": "0.13.2", "license": "ISC", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/tls": { @@ -16513,7 +16241,7 @@ "@xmpp/connection-tcp": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/uri": { @@ -16525,7 +16253,7 @@ "iri": "^1.3.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/websocket": { @@ -16539,7 +16267,7 @@ "ws": "^8.18.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/xml": { @@ -16550,7 +16278,7 @@ "ltx": "^3.1.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } }, "packages/xmpp.js": { @@ -16591,7 +16319,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" } } } diff --git a/package.json b/package.json index b60f443a..b6cf6b30 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,10 @@ "browserify": "^17.0.1", "bundlesize": "^0.18.2", "common-shakeify": "^1.1.2", - "eslint": "^9.16.0", + "eslint": "^9.17.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-jest": "^28.10.0", - "eslint-plugin-n": "^17.15.0", + "eslint-plugin-n": "^17.15.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^7.2.1", "eslint-plugin-unicorn": "^56.0.1", @@ -33,7 +33,6 @@ "jsdom": "^25.0.1", "lerna": "^8.1.9", "lint-staged": "^15.2.11", - "node-fetch": "^2.6.12", "prettier": "^3.4.2", "selfsigned": "^2.4.1", "uglify-js": "^3.19.3" @@ -42,8 +41,7 @@ "preversion": "make bundle" }, "engines": { - "node": ">= 14.13.1", - "npm": ">= 7" + "node": ">= 20" }, "workspaces": [ "packages/*" diff --git a/packages/base64/browser.js b/packages/base64/browser.js deleted file mode 100644 index 94930d26..00000000 --- a/packages/base64/browser.js +++ /dev/null @@ -1,9 +0,0 @@ -/* eslint-disable n/no-unsupported-features/node-builtins */ - -export function encode(string) { - return globalThis.btoa(string); -} - -export function decode(string) { - return globalThis.atob(string); -} diff --git a/packages/base64/index.js b/packages/base64/index.js index 79064580..f2c85015 100644 --- a/packages/base64/index.js +++ b/packages/base64/index.js @@ -1,3 +1,7 @@ -import { encode, decode } from "base-64"; +export function encode(string) { + return globalThis.btoa(string); +} -export { encode, decode }; +export function decode(string) { + return globalThis.atob(string); +} diff --git a/packages/base64/package.json b/packages/base64/package.json index bde248d5..c3b35a10 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -11,13 +11,8 @@ "XMPP", "base64" ], - "dependencies": { - "base-64": "^1.0.0" - }, - "react-native": "index.js", - "browser": "browser.js", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/client-core/package.json b/packages/client-core/package.json index 1fb79984..8862dd23 100644 --- a/packages/client-core/package.json +++ b/packages/client-core/package.json @@ -12,7 +12,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/client/package.json b/packages/client/package.json index 69f1f617..060ab08d 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -7,10 +7,6 @@ "license": "ISC", "type": "module", "dependencies": { - "@babel/cli": "^7.26.4", - "@babel/core": "^7.26.0", - "@babel/node": "^7.26.0", - "@babel/plugin-transform-react-jsx": "^7.25.9", "@xmpp/client-core": "^0.13.2", "@xmpp/iq": "^0.13.2", "@xmpp/middleware": "^0.13.2", @@ -27,13 +23,12 @@ "@xmpp/stream-management": "^0.13.2", "@xmpp/tcp": "^0.13.2", "@xmpp/tls": "^0.13.2", - "@xmpp/websocket": "^0.13.2", - "babel-plugin-jsx-pragmatic": "^1.0.2" + "@xmpp/websocket": "^0.13.2" }, "browser": "./browser.js", "react-native": "./react-native.js", "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/component-core/package.json b/packages/component-core/package.json index d6c459c3..9c734ef6 100644 --- a/packages/component-core/package.json +++ b/packages/component-core/package.json @@ -18,7 +18,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/component/package.json b/packages/component/package.json index 77f90f9f..51e0cd80 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -18,7 +18,7 @@ "@xmpp/reconnect": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/connection-tcp/package.json b/packages/connection-tcp/package.json index 8e6c9b0a..d9885e08 100644 --- a/packages/connection-tcp/package.json +++ b/packages/connection-tcp/package.json @@ -17,7 +17,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/connection/package.json b/packages/connection/package.json index 31732cdf..b3e12fd3 100644 --- a/packages/connection/package.json +++ b/packages/connection/package.json @@ -18,7 +18,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/debug/package.json b/packages/debug/package.json index af50a978..5c90b64a 100644 --- a/packages/debug/package.json +++ b/packages/debug/package.json @@ -12,7 +12,7 @@ "debug" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "dependencies": { "@xmpp/xml": "^0.13.2", diff --git a/packages/error/package.json b/packages/error/package.json index 156305cc..221ddd01 100644 --- a/packages/error/package.json +++ b/packages/error/package.json @@ -12,7 +12,7 @@ "error" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/events/package.json b/packages/events/package.json index d2c7ecd0..f923f89a 100644 --- a/packages/events/package.json +++ b/packages/events/package.json @@ -14,7 +14,7 @@ "EventEmitter" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/id/package.json b/packages/id/package.json index 9484842d..9db3aae2 100644 --- a/packages/id/package.json +++ b/packages/id/package.json @@ -12,7 +12,7 @@ "id" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/iq/package.json b/packages/iq/package.json index 0ac5fe93..060f1c10 100644 --- a/packages/iq/package.json +++ b/packages/iq/package.json @@ -14,7 +14,7 @@ "callee" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "dependencies": { "@xmpp/events": "^0.13.2", diff --git a/packages/jid/package.json b/packages/jid/package.json index 83d57406..e43f3d32 100644 --- a/packages/jid/package.json +++ b/packages/jid/package.json @@ -12,7 +12,7 @@ "JID" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/middleware/package.json b/packages/middleware/package.json index 2c7db5a4..f21df384 100644 --- a/packages/middleware/package.json +++ b/packages/middleware/package.json @@ -18,7 +18,7 @@ "koa-compose": "^4.1.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/reconnect/package.json b/packages/reconnect/package.json index 4d7e30bd..f3a5d6a9 100644 --- a/packages/reconnect/package.json +++ b/packages/reconnect/package.json @@ -15,7 +15,7 @@ "@xmpp/events": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/resolve/lib/http.js b/packages/resolve/lib/http.js index cbba7366..3fd96ffe 100644 --- a/packages/resolve/lib/http.js +++ b/packages/resolve/lib/http.js @@ -1,10 +1,8 @@ import parse from "@xmpp/xml/lib/parse.js"; import { compare as compareAltConnections } from "./alt-connections.js"; -export async function resolve(domain) { - // eslint-disable-next-line n/no-unsupported-features/node-builtins, unicorn/no-await-expression-member - const fetch = globalThis.fetch || (await import("node-fetch")).default; - +export function resolve(domain) { + // eslint-disable-next-line n/no-unsupported-features/node-builtins return fetch(`https://${domain}/.well-known/host-meta`) .then((res) => res.text()) .then((res) => { diff --git a/packages/resolve/package.json b/packages/resolve/package.json index 448c58b3..a09b0158 100644 --- a/packages/resolve/package.json +++ b/packages/resolve/package.json @@ -18,16 +18,14 @@ ], "browser": { "dns": false, - "./lib/dns": false, - "node-fetch": false + "./lib/dns": false }, "dependencies": { "@xmpp/events": "^0.13.2", - "@xmpp/xml": "^0.13.2", - "node-fetch": "^2.6.12" + "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/resource-binding/package.json b/packages/resource-binding/package.json index a436f894..2cadd624 100644 --- a/packages/resource-binding/package.json +++ b/packages/resource-binding/package.json @@ -16,7 +16,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/sasl-anonymous/package.json b/packages/sasl-anonymous/package.json index f1c536a8..1b718e9c 100644 --- a/packages/sasl-anonymous/package.json +++ b/packages/sasl-anonymous/package.json @@ -16,7 +16,7 @@ "sasl-anonymous": "^0.1.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/sasl-plain/package.json b/packages/sasl-plain/package.json index cbf6ebc1..aafa3cca 100644 --- a/packages/sasl-plain/package.json +++ b/packages/sasl-plain/package.json @@ -16,7 +16,7 @@ "sasl-plain": "^0.1.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/sasl-scram-sha-1/package.json b/packages/sasl-scram-sha-1/package.json index 429c866b..473b5c93 100644 --- a/packages/sasl-scram-sha-1/package.json +++ b/packages/sasl-scram-sha-1/package.json @@ -16,7 +16,7 @@ "sasl-scram-sha-1": "^1.3.0" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/sasl/package.json b/packages/sasl/package.json index 7569f138..401376eb 100644 --- a/packages/sasl/package.json +++ b/packages/sasl/package.json @@ -18,7 +18,7 @@ "saslmechanisms": "^0.1.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/session-establishment/package.json b/packages/session-establishment/package.json index 647d1ea5..c5235427 100644 --- a/packages/session-establishment/package.json +++ b/packages/session-establishment/package.json @@ -16,7 +16,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/starttls/package.json b/packages/starttls/package.json index 8ceab600..6a49ee1c 100644 --- a/packages/starttls/package.json +++ b/packages/starttls/package.json @@ -17,7 +17,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/stream-features/package.json b/packages/stream-features/package.json index 279524d6..fc91e17d 100644 --- a/packages/stream-features/package.json +++ b/packages/stream-features/package.json @@ -13,7 +13,7 @@ "features" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/stream-management/package.json b/packages/stream-management/package.json index af53447f..ae35c8d6 100644 --- a/packages/stream-management/package.json +++ b/packages/stream-management/package.json @@ -16,7 +16,7 @@ "@xmpp/xml": "^0.13.2" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/tcp/package.json b/packages/tcp/package.json index 4f7ca405..d935ae90 100644 --- a/packages/tcp/package.json +++ b/packages/tcp/package.json @@ -15,7 +15,7 @@ "tcp" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/test/package.json b/packages/test/package.json index b984e12d..c0f7b97e 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -12,7 +12,7 @@ "test" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "dependencies": { "@xmpp/client-core": "^0.13.2", diff --git a/packages/time/package.json b/packages/time/package.json index 317a0b89..9a79abae 100644 --- a/packages/time/package.json +++ b/packages/time/package.json @@ -13,7 +13,7 @@ "date" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/tls/package.json b/packages/tls/package.json index ac43574b..3bb53d84 100644 --- a/packages/tls/package.json +++ b/packages/tls/package.json @@ -16,7 +16,7 @@ "tls" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/uri/package.json b/packages/uri/package.json index be9aea1a..f4b34188 100644 --- a/packages/uri/package.json +++ b/packages/uri/package.json @@ -16,7 +16,7 @@ "iri": "^1.3.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/websocket/lib/Socket.js b/packages/websocket/lib/Socket.js index ba703aae..171e7b0a 100644 --- a/packages/websocket/lib/Socket.js +++ b/packages/websocket/lib/Socket.js @@ -1,10 +1,9 @@ import WS from "ws"; +import { EventEmitter } from "@xmpp/events"; // eslint-disable-next-line n/no-unsupported-features/node-builtins const WebSocket = globalThis.WebSocket || WS; -import { EventEmitter } from "@xmpp/events"; - const CODE = "ECONNERROR"; export default class Socket extends EventEmitter { diff --git a/packages/websocket/package.json b/packages/websocket/package.json index eaf74795..fbe474ac 100644 --- a/packages/websocket/package.json +++ b/packages/websocket/package.json @@ -21,7 +21,7 @@ "websocket" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/xml/package.json b/packages/xml/package.json index 536f8eeb..dfd62d76 100644 --- a/packages/xml/package.json +++ b/packages/xml/package.json @@ -18,7 +18,7 @@ "ltx": "^3.1.1" }, "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "publishConfig": { "access": "public" diff --git a/packages/xmpp.js/package.json b/packages/xmpp.js/package.json index 1b123e8d..ab55d8e2 100644 --- a/packages/xmpp.js/package.json +++ b/packages/xmpp.js/package.json @@ -14,7 +14,7 @@ "component" ], "engines": { - "node": ">= 14.13.1" + "node": ">= 20" }, "dependencies": { "@xmpp/base64": "^0.13.2", diff --git a/test/browser.js b/test/browser.js index 31de18f4..30041a7d 100644 --- a/test/browser.js +++ b/test/browser.js @@ -3,7 +3,6 @@ import debug from "../packages/debug/index.js"; import server from "../server/index.js"; import { JSDOM } from "jsdom"; -import fetch from "node-fetch"; import { readFileSync } from "fs"; const username = "client"; @@ -22,7 +21,6 @@ let xmpp; beforeEach(async () => { ({ window } = new JSDOM(``, { runScripts: "dangerously" })); - window.fetch = fetch; const { document } = window; const scriptEl = document.createElement("script"); scriptEl.textContent = xmppjs;