@whotracksme/reporting 10.0.0 → 10.1.0

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
+ # v10.1.0 (Mon Jun 08 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Add Qwant to the list of search engines [#212](https://github.com/whotracksme/webextension-packages/pull/212) ([@philipp-classen](https://github.com/philipp-classen))
6
+
7
+ #### Authors: 1
8
+
9
+ - Philipp Claßen ([@philipp-classen](https://github.com/philipp-classen))
10
+
11
+ ---
12
+
1
13
  # v10.0.0 (Wed Jun 03 2026)
2
14
 
3
15
  #### 💥 Breaking Change
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whotracksme/reporting",
3
- "version": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {
@@ -119,6 +119,12 @@ const URL_PATTERNS = [
119
119
  /^https:[/][/]www[.]ecosia[.]org[/]search[?](?:method=index&)?q=[^&]+/,
120
120
  prefix: 'search?q=',
121
121
  },
122
+ {
123
+ category: 'search-qw',
124
+ regexp:
125
+ /^https:[/][/]www[.]qwant[.]com[/].*[?&]((q=[^&]+&([^&]+&)*t=web)|(t=web&([^&]+&)*q=[^&]+))/,
126
+ prefix: '?q=',
127
+ },
122
128
  ];
123
129
 
124
130
  export default class UrlAnalyzer {
@@ -246,6 +246,30 @@ describe('#UrlAnalyzer', function () {
246
246
  doublefetchUrl: 'https://html.duckduckgo.com/html?q=eiffel+tower',
247
247
  },
248
248
  },
249
+ 'search-ec': {
250
+ 'https://www.ecosia.org/search?method=index&q=eiffel+tower': {
251
+ query: 'eiffel tower',
252
+ doublefetchUrl: 'https://www.ecosia.org/search?q=eiffel+tower',
253
+ },
254
+ },
255
+ 'search-qw': {
256
+ 'https://www.qwant.com/?l=de%2F&q=eiffel+tower&t=web': {
257
+ query: 'eiffel tower',
258
+ doublefetchUrl: 'https://www.qwant.com/?q=eiffel+tower',
259
+ },
260
+ 'https://www.qwant.com/?l=fr&sr=fr%2F&r=FR&q=eiffel+tower&t=web': {
261
+ query: 'eiffel tower',
262
+ doublefetchUrl: 'https://www.qwant.com/?q=eiffel+tower',
263
+ },
264
+ 'https://www.qwant.com/?t=web&l=fr&sr=fr%2F&r=FR&q=eiffel+tower': {
265
+ query: 'eiffel tower',
266
+ doublefetchUrl: 'https://www.qwant.com/?q=eiffel+tower',
267
+ },
268
+ 'https://www.qwant.com/?q=m%C3%BCnchen&client=opensearch&t=web': {
269
+ query: 'münchen',
270
+ doublefetchUrl: 'https://www.qwant.com/?q=m%C3%BCnchen',
271
+ },
272
+ },
249
273
  })) {
250
274
  describe(`and examples for category: ${expectedType}`, function () {
251
275
  for (const [
@@ -289,6 +313,11 @@ describe('#UrlAnalyzer', function () {
289
313
  'https://duckduckgo.com/?t=ffab&q=eiffel+tower&iax=videos&ia=videos',
290
314
  'https://duckduckgo.com/?t=ffab&q=eiffel+tower&iar=news&ia=news',
291
315
  'https://duckduckgo.com/?t=ffab&q=eiffel+tower&ia=news&iaxm=about',
316
+ 'https://www.ecosia.org/images?q=eiffel%20tower',
317
+ 'https://www.ecosia.org/ai-chat?q=eiffel+tower',
318
+ 'https://www.qwant.com/?l=fr&sr=fr%2F&r=FR&t=images&q=eiffel+tower',
319
+ 'https://www.qwant.com/?l=fr&sr=fr%2F&r=FR&t=videos&q=eiffel+tower',
320
+ 'https://www.qwant.com/?l=fr&sr=fr%2F&r=FR&t=news&q=eiffel+tower',
292
321
  ]) {
293
322
  it(`should not match ${url}`, function () {
294
323
  const { isSupported, category, query } =