Skip to content

Commit a68f208

Browse files
committed
chore: Update dependencies.
1 parent 0d12cff commit a68f208

43 files changed

Lines changed: 1408 additions & 2352 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributor Covenant 3.0
1+
# Contributor Covenant 3.0 Code of Conduct
22

33
## Our Pledge
44

@@ -72,7 +72,7 @@ and this Code of Conduct reinforces encouraged behaviors and norms that can help
7272
avoid conflicts and minimize harm.
7373

7474
When an incident does occur, it is important to report it promptly. To report a
75-
possible violation, send an email to <regseb@gmail.com>
75+
possible violation, send an email to <regseb@gmail.com>.
7676

7777
Community Moderators take reports of violations seriously and will make every
7878
effort to respond in a timely manner. They will investigate all reports of code

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ assignees: ""
3131

3232
### Environment
3333

34-
- Playwright-ghost version<!-- e.g. 0.14.0 -->:
34+
- Playwright-ghost version<!-- e.g. 0.15.0 -->:
3535
- Dependencies version:
36-
- Playwright (or fork)<!-- e.g. 1.54.1, patchright 1.52.5 -->:
37-
- others (if appropriate)<!-- e.g. @ghostery/adblocker-playwright 2.11.3 -->:
38-
- Node version<!-- e.g. v22.17.1 -->:
36+
- Playwright (or fork)<!-- e.g. 1.55.1, patchright 1.55.3 -->:
37+
- others (if appropriate)<!-- e.g. @ghostery/adblocker-playwright 2.12.1 -->:
38+
- Node version<!-- e.g. v22.20.0 -->:
3939
- npm version<!-- e.g. 11.4.2 -->:
4040

4141
### Additional context

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ assignees: ""
1717

1818
### Environment
1919

20-
- Playwright-ghost version<!-- e.g. 0.14.0 -->:
20+
- Playwright-ghost version<!-- e.g. 0.15.0 -->:
2121
- Dependencies version:
22-
- Playwright (or fork)<!-- e.g. 1.54.1, patchright 1.52.5 -->:
23-
- others (if appropriate)<!-- e.g. @ghostery/adblocker-playwright 2.11.3 -->:
24-
- Node version<!-- e.g. v22.17.1 -->:
22+
- Playwright (or fork)<!-- e.g. 1.55.1, patchright 1.55.3 -->:
23+
- others (if appropriate)<!-- e.g. @ghostery/adblocker-playwright 2.12.1 -->:
24+
- Node version<!-- e.g. v22.20.0 -->:
2525
- npm version<!-- e.g. 11.4.2 -->:
2626

2727
### Additional context

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414
with:
1515
persist-credentials: false
1616

1717
- name: Setup Node.js
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v5
1919
with:
2020
node-version: 22
2121

@@ -25,6 +25,9 @@ jobs:
2525
- name: Lint files
2626
run: npm run lint -- --formatter github
2727

28+
- name: JSR publish dry run
29+
run: npx jsr publish --dry-run
30+
2831
test:
2932
runs-on: ${{ matrix.os }}
3033
strategy:
@@ -33,12 +36,12 @@ jobs:
3336
node-version: [22, latest]
3437
steps:
3538
- name: Checkout repository
36-
uses: actions/checkout@v4
39+
uses: actions/checkout@v5
3740
with:
3841
persist-credentials: false
3942

4043
- name: Setup Node.js ${{ matrix.node-version }}
41-
uses: actions/setup-node@v4
44+
uses: actions/setup-node@v5
4245
with:
4346
node-version: ${{ matrix.node-version }}
4447

@@ -52,12 +55,12 @@ jobs:
5255
runs-on: ubuntu-latest
5356
steps:
5457
- name: Checkout repository
55-
uses: actions/checkout@v4
58+
uses: actions/checkout@v5
5659
with:
5760
persist-credentials: false
5861

5962
- name: Setup Node.js
60-
uses: actions/setup-node@v4
63+
uses: actions/setup-node@v5
6164
with:
6265
node-version: 22
6366

@@ -77,7 +80,7 @@ jobs:
7780
security-events: write
7881
steps:
7982
- name: Checkout repository
80-
uses: actions/checkout@v4
83+
uses: actions/checkout@v5
8184
with:
8285
persist-credentials: false
8386

@@ -90,6 +93,7 @@ jobs:
9093
uses: github/codeql-action/analyze@v3
9194

9295
- name: Run Snyk to check for vulnerabilities
96+
if: ${{ 'Actions' == github.secret_source }}
9397
uses: snyk/actions/node@master
9498
continue-on-error: true
9599
env:
@@ -98,6 +102,7 @@ jobs:
98102
args: --sarif-file-output=snyk.sarif
99103

100104
- name: Upload Snyk result to GitHub Code Scanning
105+
if: ${{ 'Actions' == github.secret_source }}
101106
uses: github/codeql-action/upload-sarif@v3
102107
with:
103108
sarif_file: snyk.sarif

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# https://github.com/googleapis/release-please/issues/1802
2727
- name: Checkout repository
2828
if: ${{ steps.release.outputs.pr }}
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030
with:
3131
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
3232
# Récupérer deux commits sinon la réparation du commit (pour le
@@ -42,7 +42,7 @@ jobs:
4242
4343
- name: Setup Node.js
4444
if: ${{ steps.release.outputs.pr }}
45-
uses: actions/setup-node@v4
45+
uses: actions/setup-node@v5
4646
with:
4747
node-version: 22
4848

@@ -65,11 +65,11 @@ jobs:
6565
# Si la release a été créée : publier le paquet dans npm et JSR.
6666
- name: Checkout repository
6767
if: ${{ steps.release.outputs.release_created }}
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@v5
6969

7070
- name: Setup Node.js
7171
if: ${{ steps.release.outputs.release_created }}
72-
uses: actions/setup-node@v4
72+
uses: actions/setup-node@v5
7373
with:
7474
node-version: 22
7575
registry-url: https://registry.npmjs.org

.metalint/eslint.config.js

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/**
22
* @license MIT
3+
* @see https://eslint.org/docs/latest/rules/
4+
* @see https://github.com/freaktechnik/eslint-plugin-array-func#rules
5+
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/
6+
* @see https://github.com/import-js/eslint-plugin-import#rules
7+
* @see https://github.com/gajus/eslint-plugin-jsdoc#rules
8+
* @see https://github.com/mozilla/eslint-plugin-no-unsanitized#rule-details
9+
* @see https://github.com/eslint-community/eslint-plugin-promise#rules
10+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/
11+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn#rules
312
* @author Sébastien Règne
413
*/
514

@@ -38,7 +47,7 @@ export default {
3847
"eslint-comments": eslintComments,
3948
import: importPlugin,
4049
jsdoc,
41-
"no-unsanitized": noUnsanitized,
50+
noUnsanitized,
4251
promise,
4352
regexp,
4453
unicorn,
@@ -204,7 +213,7 @@ export default {
204213
"no-div-regex": "error",
205214
"no-else-return": ["error", { allowElseIf: false }],
206215
"no-empty": "error",
207-
"no-empty-function": ["error", { allow: ["arrowFunctions"] }],
216+
"no-empty-function": "error",
208217
"no-empty-static-block": "error",
209218
"no-eq-null": "error",
210219
"no-eval": "error",
@@ -319,6 +328,7 @@ export default {
319328
"prefer-rest-params": "error",
320329
"prefer-spread": "error",
321330
"prefer-template": "off",
331+
"preserve-caught-error": ["error", { requireCatchParameter: true }],
322332
radix: "error",
323333
"require-await": "error",
324334
"require-unicode-regexp": ["error", { requireFlag: "v" }],
@@ -474,10 +484,6 @@ export default {
474484
// Plugin eslint-plugin-jsdoc.
475485
"jsdoc/check-access": "error",
476486
"jsdoc/check-alignment": "error",
477-
// Désactiver cette règle, car elle n'est pas pour le moment compatible
478-
// avec ESLint 8.
479-
// https://github.com/gajus/eslint-plugin-jsdoc/releases/tag/v37.0.0
480-
"jsdoc/check-examples": "off",
481487
"jsdoc/check-indentation": "off",
482488
"jsdoc/check-line-alignment": [
483489
"error",
@@ -499,6 +505,7 @@ export default {
499505
"jsdoc/check-values": "error",
500506
"jsdoc/convert-to-jsdoc-comments": "off",
501507
"jsdoc/empty-tags": "error",
508+
"jsdoc/escape-inline-tags": "error",
502509
"jsdoc/implements-on-classes": "error",
503510
// Désactiver la règle, car elle ne supporte pas la propriété "exports".
504511
// https://github.com/gajus/eslint-plugin-jsdoc/issues/1114
@@ -518,13 +525,20 @@ export default {
518525
"jsdoc/no-restricted-syntax": "off",
519526
"jsdoc/no-types": "off",
520527
"jsdoc/no-undefined-types": "error",
528+
"jsdoc/prefer-import-tag": "error",
529+
"jsdoc/reject-any-type": "off",
530+
"jsdoc/reject-function-type": "off",
521531
"jsdoc/require-asterisk-prefix": "error",
522532
"jsdoc/require-description": "error",
523533
"jsdoc/require-description-complete-sentence": "off",
524534
"jsdoc/require-example": "off",
525535
"jsdoc/require-file-overview": "off",
526536
"jsdoc/require-hyphen-before-param-description": ["error", "never"],
527537
"jsdoc/require-jsdoc": "error",
538+
// Désactiver ces deux règles, car l'annotation @next n'est pas
539+
// standard.
540+
"jsdoc/require-next-description": "off",
541+
"jsdoc/require-next-type": "off",
528542
"jsdoc/require-param": [
529543
"error",
530544
{
@@ -545,18 +559,26 @@ export default {
545559
"jsdoc/require-returns-check": "error",
546560
"jsdoc/require-returns-description": "error",
547561
"jsdoc/require-returns-type": "error",
562+
"jsdoc/require-tags": "off",
548563
"jsdoc/require-template": "error",
564+
"jsdoc/require-template-description": "error",
549565
"jsdoc/require-throws": "error",
566+
"jsdoc/require-throws-description": "error",
567+
"jsdoc/require-throws-type": "error",
550568
"jsdoc/require-yields": "error",
551569
"jsdoc/require-yields-check": "error",
570+
"jsdoc/require-yields-description": "error",
571+
"jsdoc/require-yields-type": "error",
552572
"jsdoc/sort-tags": "error",
553573
"jsdoc/tag-lines": ["error", "never", { startLines: 1 }],
554574
"jsdoc/text-escaping": "off",
575+
// Désactiver cette règle qui est expérimentale.
576+
"jsdoc/type-formatting": "off",
555577
"jsdoc/valid-types": "error",
556578

557579
// Plugin eslint-plugin-no-unsanitized.
558-
"no-unsanitized/method": "error",
559-
"no-unsanitized/property": "error",
580+
"noUnsanitized/method": "error",
581+
"noUnsanitized/property": "error",
560582

561583
// Plugin eslint-plugin-promise.
562584
"promise/always-return": "off",
@@ -701,6 +723,7 @@ export default {
701723
"unicorn/no-array-method-this-argument": "error",
702724
"unicorn/no-array-reduce": "off",
703725
"unicorn/no-array-reverse": "error",
726+
"unicorn/no-array-sort": "error",
704727
"unicorn/no-await-expression-member": "error",
705728
"unicorn/no-await-in-promise-methods": "error",
706729
"unicorn/no-console-spaces": "error",
@@ -759,8 +782,10 @@ export default {
759782
"unicorn/prefer-array-index-of": "error",
760783
"unicorn/prefer-array-some": "error",
761784
"unicorn/prefer-at": "error",
785+
"unicorn/prefer-bigint-literals": "error",
762786
"unicorn/prefer-blob-reading-methods": "error",
763787
"unicorn/prefer-class-fields": "error",
788+
"unicorn/prefer-classlist-toggle": "error",
764789
"unicorn/prefer-code-point": "error",
765790
"unicorn/prefer-date-now": "error",
766791
"unicorn/prefer-default-parameters": "error",
@@ -809,11 +834,12 @@ export default {
809834
"unicorn/prevent-abbreviations": "off",
810835
"unicorn/relative-url-style": "error",
811836
"unicorn/require-array-join-separator": "off",
837+
"unicorn/require-module-attributes": "error",
812838
"unicorn/require-module-specifiers": "error",
813839
"unicorn/require-number-to-fixed-digits-argument": "off",
814-
// Désactiver cette règle, car il y a des faux-positifs avec la méthode
815-
// port.postMessage() des WebExtensions.
816-
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1396
840+
// Désactiver cette règle, car il y a des faux-positifs avec d'autres
841+
// méthodes postMessage().
842+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-post-message-target-origin.md
817843
"unicorn/require-post-message-target-origin": "off",
818844
"unicorn/string-content": "off",
819845
"unicorn/switch-case-braces": ["error", "avoid"],

.metalint/eslint_config.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @license MIT
3+
* @see https://eslint.org/docs/latest/rules/
34
* @author Sébastien Règne
45
*/
56

.metalint/eslint_node.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/**
22
* @license MIT
3+
* @see https://eslint.org/docs/latest/rules/
4+
* @see https://github.com/eslint-community/eslint-plugin-n#-rules
35
* @author Sébastien Règne
46
*/
57

.metalint/eslint_test.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/**
22
* @license MIT
3+
* @see https://eslint.org/docs/latest/rules/
4+
* @see https://github.com/lo1tuma/eslint-plugin-mocha#rules
35
* @author Sébastien Règne
46
*/
57

@@ -23,7 +25,6 @@ export default {
2325
"max-lines": "off",
2426
"max-lines-per-function": "off",
2527
"max-statements": "off",
26-
"prefer-arrow-callback": "off",
2728

2829
// Plugin eslint-plugin-mocha. Utiliser le plugin pour Mocha, car il
2930
// peut s'appliquer aussi sur les tests natifs de Node.js.
@@ -58,7 +59,7 @@ export default {
5859
"mocha/valid-test-title": "off",
5960

6061
// Plugin eslint-plugin-no-unsanitized.
61-
"no-unsanitized/method": "off",
62+
"noUnsanitized/method": "off",
6263

6364
// Plugin eslint-plugin-unicorn.
6465
// Ne pas obliger à sortir les fonctions des tests.

.metalint/markdownlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @license MIT
3+
* @see https://github.com/DavidAnson/markdownlint#rules--aliases
34
* @author Sébastien Règne
45
*/
56

0 commit comments

Comments
 (0)