@wppconnect-team/wppconnect 1.41.0 → 1.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.41.2 (2026-04-17)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **deps:** bump @wppconnect/wa-js to ^3.23.4 and @wppconnect/wa-version to ^1.5.3731 ([#2749](https://github.com/wppconnect-team/wppconnect/issues/2749)) ([3e5e1ed](https://github.com/wppconnect-team/wppconnect/commit/3e5e1edd5586ce5b82ae2c44485b898d84d7828a))
6
+
7
+ ## 1.41.1 (2026-03-18)
8
+
9
+ ### Bug Fixes
10
+
11
+ - t is not a function ([#2718](https://github.com/wppconnect-team/wppconnect/issues/2718)) ([3d65a1c](https://github.com/wppconnect-team/wppconnect/commit/3d65a1cf0ff0ea70d38e79d9a2b788f1050845ed))
12
+
1
13
  # 1.41.0 (2026-03-05)
2
14
 
3
15
  ### Features
@@ -0,0 +1,130 @@
1
+ // @ts-check
2
+ import js from '@eslint/js';
3
+ import tseslint from 'typescript-eslint';
4
+ import headerPlugin from '@tony.ganchev/eslint-plugin-header';
5
+ import prettierPlugin from 'eslint-plugin-prettier';
6
+ import prettierConfig from 'eslint-config-prettier';
7
+ import globals from 'globals';
8
+
9
+ const licenseHeader = [
10
+ '',
11
+ ' * This file is part of WPPConnect.',
12
+ ' *',
13
+ ' * WPPConnect is free software: you can redistribute it and/or modify',
14
+ ' * it under the terms of the GNU Lesser General Public License as published by',
15
+ ' * the Free Software Foundation, either version 3 of the License, or',
16
+ ' * (at your option) any later version.',
17
+ ' *',
18
+ ' * WPPConnect is distributed in the hope that it will be useful,',
19
+ ' * but WITHOUT ANY WARRANTY; without even the implied warranty of',
20
+ ' * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the',
21
+ ' * GNU Lesser General Public License for more details.',
22
+ ' *',
23
+ ' * You should have received a copy of the GNU Lesser General Public License',
24
+ ' * along with WPPConnect. If not, see <https://www.gnu.org/licenses/>.',
25
+ ' ',
26
+ ];
27
+
28
+ export default tseslint.config(
29
+ // ─── Global ignores ────────────────────────────────────────────────────────
30
+ {
31
+ ignores: ['dist/**', 'node_modules/**', 'tokens/**'],
32
+ },
33
+
34
+ // ─── Base rules for all files ──────────────────────────────────────────────
35
+ {
36
+ extends: [js.configs.recommended],
37
+ plugins: {
38
+ header: headerPlugin,
39
+ prettier: prettierPlugin,
40
+ },
41
+ rules: {
42
+ 'no-async-promise-executor': 'off',
43
+ 'no-constant-condition': 'off',
44
+ 'no-empty': ['error', { allowEmptyCatch: true }],
45
+ 'no-unused-vars': 'off',
46
+ 'no-useless-assignment': 'off',
47
+ 'no-useless-catch': 'off',
48
+ 'no-useless-escape': 'off',
49
+ 'prefer-const': 'off',
50
+ 'preserve-caught-error': 'off',
51
+ 'header/header': [2, 'block', licenseHeader, 1],
52
+ 'prettier/prettier': ['error', { endOfLine: 'auto' }],
53
+ },
54
+ },
55
+
56
+ // ─── TypeScript source files ───────────────────────────────────────────────
57
+ {
58
+ files: ['src/**/*.ts'],
59
+ extends: [...tseslint.configs.recommended],
60
+ rules: {
61
+ '@typescript-eslint/ban-ts-comment': 'off',
62
+ '@typescript-eslint/ban-types': 'off',
63
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
64
+ '@typescript-eslint/no-duplicate-enum-values': 'off',
65
+ '@typescript-eslint/no-empty-function': 'off',
66
+ '@typescript-eslint/no-explicit-any': 'off',
67
+ '@typescript-eslint/no-inferrable-types': 'off',
68
+ '@typescript-eslint/no-namespace': 'off',
69
+ '@typescript-eslint/no-require-imports': 'off',
70
+ '@typescript-eslint/no-unsafe-function-type': 'off',
71
+ '@typescript-eslint/no-unused-expressions': 'off',
72
+ '@typescript-eslint/no-unused-vars': 'off',
73
+ '@typescript-eslint/no-var-requires': 'off',
74
+ '@typescript-eslint/no-wrapper-object-types': 'off',
75
+ '@typescript-eslint/prefer-namespace-keyword': 'off',
76
+ 'prefer-const': 'off',
77
+ },
78
+ },
79
+
80
+ // ─── Lib JS files (browser + custom globals) ──────────────────────────────
81
+ {
82
+ files: ['src/lib/**/*.js'],
83
+ ignores: ['src/lib/**/webpack.*.js', 'src/lib/**/gulpfile.js'],
84
+ languageOptions: {
85
+ ecmaVersion: 2022,
86
+ sourceType: 'module',
87
+ globals: {
88
+ ...globals.browser,
89
+ ...globals.commonjs,
90
+ ...globals.amd,
91
+ ...globals.es2015,
92
+ axios: 'readonly',
93
+ Debug: 'readonly',
94
+ Store: 'readonly',
95
+ WAPI: 'readonly',
96
+ WPP: 'readonly',
97
+ webpackJsonp: 'readonly',
98
+ WWebJS: 'readonly',
99
+ },
100
+ },
101
+ rules: {
102
+ 'no-array-constructor': 'off',
103
+ 'no-prototype-builtins': 'off',
104
+ 'no-redeclare': 'off',
105
+ },
106
+ },
107
+
108
+ // ─── Webpack / gulpfile (Node env, no browser globals) ────────────────────
109
+ {
110
+ files: ['src/lib/**/webpack.*.js', 'src/lib/**/gulpfile.js'],
111
+ languageOptions: {
112
+ globals: globals.node,
113
+ },
114
+ },
115
+
116
+ // ─── Examples ──────────────────────────────────────────────────────────────
117
+ {
118
+ files: ['examples/**/*.js'],
119
+ languageOptions: {
120
+ globals: {
121
+ ...globals.node,
122
+ ...globals.commonjs,
123
+ ...globals.es2015,
124
+ },
125
+ },
126
+ },
127
+
128
+ // ─── Prettier (disable conflicting rules — must be last) ───────────────────
129
+ prettierConfig
130
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect-team/wppconnect",
3
- "version": "1.41.0",
3
+ "version": "1.41.2",
4
4
  "description": "WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination... 😀🤔💭",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,9 +17,9 @@
17
17
  "docs:build": "npm run docs:clean && typedoc && npm run docs:copy-images",
18
18
  "docs:clean": "shx rm -rf api-docs",
19
19
  "docs:copy-images": "shx cp -R ./img ./api-docs",
20
- "lint:js": "npx eslint -c .eslintrc.js --ext .js src",
21
- "lint:ts": "npx eslint -c .eslintrc.js --ext .ts src",
22
- "lint": "npm run lint:ts && npm run lint:js",
20
+ "lint:js": "eslint 'src/**/*.js'",
21
+ "lint:ts": "eslint 'src/**/*.ts'",
22
+ "lint": "eslint src/",
23
23
  "prepare": "husky install && npm run clean && npm run build",
24
24
  "release": "release-it",
25
25
  "start": "npm run build:client && tsc app.ts && node app.js",
@@ -58,27 +58,27 @@
58
58
  "@babel/core": "^7.29.0",
59
59
  "@babel/eslint-parser": "^7.28.6",
60
60
  "@babel/eslint-plugin": "^7.27.1",
61
- "@babel/preset-env": "^7.29.0",
62
- "@commitlint/cli": "^20.4.2",
63
- "@commitlint/config-conventional": "^20.4.2",
64
- "@commitlint/cz-commitlint": "^20.4.1",
61
+ "@babel/preset-env": "^7.29.2",
62
+ "@commitlint/cli": "^20.5.0",
63
+ "@commitlint/config-conventional": "^20.5.0",
64
+ "@commitlint/cz-commitlint": "^20.5.1",
65
+ "@eslint/js": "^10.0.1",
65
66
  "@types/atob": "^2.1.4",
66
67
  "@types/mime-types": "^3.0.1",
67
68
  "@types/mocha": "^10.0.10",
68
- "@types/node": "^24.10.13",
69
+ "@types/node": "^24.12.2",
69
70
  "@types/shelljs": "^0.10.0",
70
71
  "@types/tmp": "^0.2.6",
71
72
  "@types/ws": "^8.18.1",
72
- "@typescript-eslint/eslint-plugin": "^5.62.0",
73
- "@typescript-eslint/parser": "^5.62.0",
74
- "babel-loader": "^10.0.0",
73
+ "babel-loader": "^10.1.1",
75
74
  "commitizen": "^4.3.1",
76
75
  "concurrently": "^9.2.1",
77
76
  "conventional-changelog-cli": "^5.0.0",
78
- "eslint": "^8.57.1",
77
+ "eslint": "10.2.0",
79
78
  "eslint-config-prettier": "^10.1.8",
80
- "eslint-plugin-header": "^3.1.1",
81
- "eslint-plugin-prettier": "^4.2.5",
79
+ "@tony.ganchev/eslint-plugin-header": "^3.4.3",
80
+ "eslint-plugin-prettier": "^5.5.5",
81
+ "globals": "^17.4.0",
82
82
  "husky": "^9.1.7",
83
83
  "mocha": "^11.7.5",
84
84
  "prettier": "^2.8.8",
@@ -87,16 +87,17 @@
87
87
  "release-it": "^19.2.4",
88
88
  "shx": "^0.4.0",
89
89
  "ts-node": "^10.9.2",
90
- "typedoc": "^0.28.17",
90
+ "typedoc": "^0.28.19",
91
91
  "typescript": "^5.9.3",
92
- "webpack": "^5.105.2",
92
+ "typescript-eslint": "^8.58.2",
93
+ "webpack": "^5.106.1",
93
94
  "webpack-cli": "^6.0.1"
94
95
  },
95
96
  "dependencies": {
96
- "@wppconnect/wa-js": "^3.23.1",
97
- "@wppconnect/wa-version": "^1.5.3379",
97
+ "@wppconnect/wa-js": "^3.23.4",
98
+ "@wppconnect/wa-version": "^1.5.3731",
98
99
  "atob": "^2.1.2",
99
- "axios": "^1.13.5",
100
+ "axios": "^1.14.0",
100
101
  "boxen": "^5.1.2",
101
102
  "catch-exit": "^2.0.0",
102
103
  "chalk": "~4.1.2",
@@ -116,7 +117,7 @@
116
117
  "qrcode-terminal": "^0.12.0",
117
118
  "reflect-metadata": "^0.2.1",
118
119
  "rimraf": "^3.0.2",
119
- "sanitize-filename": "^1.6.3",
120
+ "sanitize-filename": "^1.6.4",
120
121
  "sharp": "0.34.5",
121
122
  "tmp": "^0.2.5",
122
123
  "tree-kill": "^1.2.2",