Skip to content

Commit

Permalink
chore: Mettre à jour les dépendances.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Oct 2, 2023
1 parent 9599d39 commit 23cc0dd
Show file tree
Hide file tree
Showing 13 changed files with 1,154 additions and 2,322 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ assignees: ""

### Environment

- Cronnor version<!-- e.g. 2.1.1 -->:
- Platform version<!-- e.g. Chrome 113.0.5672.63, Node.js v18.16.0 -->:
- Cronnor version<!-- e.g. 2.2.1 -->:
- Platform version<!-- e.g. Chrome 117.0.5938.92, Node.js v20.8.0 -->:

### Additional context

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ assignees: ""

### Environment

- Cronnor version<!-- e.g. 2.1.1 -->:
- Platform version<!-- e.g. Chrome 113.0.5672.63, Node.js v18.16.0 -->:
- Cronnor version<!-- e.g. 2.2.1 -->:
- Platform version<!-- e.g. Chrome 117.0.5938.92, Node.js v20.8.0 -->:

### Additional context

Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: npm install
run: npm ci

- name: Lint files
run: npm run lint -- --formatter github
Expand All @@ -34,20 +34,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 20]
node-version: [20, latest]
steps:
- name: Setup Node.js ${{ matrix.node_version }}
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
node-version: ${{ matrix.node-version }}

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: npm install
run: npm ci

- name: Run unit tests
run: npm run test:unit
Expand All @@ -58,15 +58,15 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: npm install
run: npm ci

- name: Run mutation tests and send coverage
run: npm run test:coverage -- --reporters clear-text,dashboard
Expand All @@ -79,17 +79,16 @@ jobs:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "javascript"
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
# Ignorer les fichiers de configuration de Visual Studio Code.
/.vscode/

# Ignorer les fichiers de configuration de IntelliJ IDEA.
/.idea/

# Ignorer les fichiers temporaires de Vim.
*.swp

# Ignorer les autres lockfiles.
/bun.lockb
/pnpm-lock.yaml
/yarn.lock
11 changes: 3 additions & 8 deletions .metalint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {

env: {
"shared-node-browser": true,
es2022: true,
es2023: true,
},

rules: {
Expand Down Expand Up @@ -222,9 +222,9 @@ export default {
"no-nested-ternary": "off",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-nonoctal-decimal-escape": "error",
"no-object-constructor": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-param-reassign": [
Expand Down Expand Up @@ -265,7 +265,6 @@ export default {
"JSXText",
],
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-sequences": ["error", { allowInParentheses: false }],
"no-shadow": "error",
Expand Down Expand Up @@ -601,7 +600,7 @@ export default {
"jsdoc/no-multi-asterisks": "error",
"jsdoc/no-restricted-syntax": "off",
"jsdoc/no-types": "off",
"jsdoc/no-undefined-types": ["error", { definedTypes: ["Timeout"] }],
"jsdoc/no-undefined-types": "error",
"jsdoc/require-asterisk-prefix": "error",
"jsdoc/require-description": "error",
"jsdoc/require-description-complete-sentence": "off",
Expand Down Expand Up @@ -794,10 +793,6 @@ export default {
"unicorn/no-unnecessary-await": "error",
"unicorn/no-unreadable-array-destructuring": "error",
"unicorn/no-unreadable-iife": "error",
// Désactiver la règle car il y a des faux-positifs avec les petites
// valeurs de quantification.
// https://github.com/davisjam/safe-regex/issues/10
"unicorn/no-unsafe-regex": "off",
"unicorn/no-unused-properties": "error",
"unicorn/no-useless-fallback-in-spread": "error",
"unicorn/no-useless-length-check": "error",
Expand Down
21 changes: 10 additions & 11 deletions .metalint/eslint_node.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
*/

export default {
env: {
node: true,
},

rules: {
// Suggestions.
"no-restricted-properties": [
Expand Down Expand Up @@ -80,13 +76,16 @@ export default {
"n/no-restricted-import": ["error", ["node:assert"]],
"n/no-restricted-require": "error",
"n/no-sync": "error",
"n/prefer-global/buffer": ["error", "never"],
"n/prefer-global/console": "error",
"n/prefer-global/process": ["error", "never"],
"n/prefer-global/text-decoder": "error",
"n/prefer-global/text-encoder": "error",
"n/prefer-global/url-search-params": "error",
"n/prefer-global/url": "error",
// Désactiver les règles n/prefer-global, car aucune variable globale de
// Node n'est déclarée, donc si elles sont utilisées : la règle no-undef
// remontera une erreur.
"n/prefer-global/buffer": "off",
"n/prefer-global/console": "off",
"n/prefer-global/process": "off",
"n/prefer-global/text-decoder": "off",
"n/prefer-global/text-encoder": "off",
"n/prefer-global/url-search-params": "off",
"n/prefer-global/url": "off",
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": "error",
},
Expand Down
3 changes: 3 additions & 0 deletions .metalint/metalint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ export default {
"!/types/**",
// Ignorer les fichiers de configuration de Visual Studio Code.
"!/.vscode/**",
// Ignorer les fichiers de configuration de IntelliJ IDEA.
"!/.idea/**",
// Ignorer les fichiers temporaires de Vim.
"!*.swp",
// Ignorer les autres lockfiles.
"!/bun.lockb",
"!/pnpm-lock.yaml",
"!/yarn.lock",
],
Expand Down
6 changes: 3 additions & 3 deletions .metalint/prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import pluginXML from "@prettier/plugin-xml";

export default {
// Enlever cette option lors de passage à Prettier 3.
// https://github.com/prettier/prettier/issues/13142
trailingComma: "all",
plugins: [pluginXML],

// Options spécifiques du plugin XML.
xmlQuoteAttributes: "double",
};
3 changes: 2 additions & 1 deletion .script/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ const PATHS = [
"node_modules/",
"types/",
// Supprimer les autres lockfiles.
"bun.lockb",
"pnpm-lock.yaml",
"yarn.lock",
];

for (const path of PATHS) {
fs.rm(path, { force: true, recursive: true });
await fs.rm(path, { force: true, recursive: true });
}
3 changes: 2 additions & 1 deletion .tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"jsdocs/",
"node_modules/",
"types/",
".vscode/"
".vscode/",
".idea/"
]
}
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Cronnor

<!-- Utiliser du HTML pour faire flotter l'image à droite. -->
<!-- Utiliser du HTML (avec l'attribut "align" obsolète) pour faire flotter
l'image à droite. -->
<!-- markdownlint-disable-next-line no-inline-html-->
<img src="asset/logo.svg" align="right" alt="">

[![npm][img-npm]][link-npm]
[![jsdelivr][img-jsdelivr]][link-jsdelivr]
[![build][img-build]][link-build]
[![coverage][img-coverage]][link-coverage]
[![semver][img-semver]][link-semver]
Expand Down Expand Up @@ -52,7 +52,8 @@ import Cron from "https://deno.land/x/cronnor/mod.js";
### Navigateurs

Elle est aussi accessible directement avec le CDN
[esm.sh](https://esm.sh/cronnor) (ou [jsDelivr][link-jsdelivr],
[esm.sh](https://esm.sh/cronnor) (ou
[jsDelivr](https://www.jsdelivr.com/package/npm/cronnor),
[UNPKG](https://unpkg.com/browse/cronnor/)) :

```JavaScript
Expand Down Expand Up @@ -256,17 +257,11 @@ Il existe aussi des chaines spéciales :
Pour plus d'information, vous pouvez consulter le [manuel de
_crontab_](https://man7.org/linux/man-pages/man5/crontab.5.html).

[img-npm]: https://img.shields.io/npm/dm/cronnor?label=npm&logo=npm&logoColor=white
[img-jsdelivr]: https://img.shields.io/jsdelivr/npm/hm/cronnor?logo=jsdelivr&logoColor=white
[img-build]: https://img.shields.io/github/actions/workflow/status/regseb/cronnor/ci.yml?branch=main&logo=github&logoColor=white

<!-- Attendre que le logo de Stryker soit accepté.
https://github.com/simple-icons/simple-icons/pull/7388 -->

[img-coverage]: https://img.shields.io/endpoint?label=coverage&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fregseb%2Fcronnor%2Fmain
[img-semver]: https://img.shields.io/badge/semver-2.0.0-blue?logo=semver&logoColor=white
[img-npm]: https://img.shields.io/npm/dm/cronnor?label=npm&logo=npm&logoColor=whitesmoke
[img-build]: https://img.shields.io/github/actions/workflow/status/regseb/cronnor/ci.yml?branch=main&logo=github&logoColor=whitesmoke
[img-coverage]: https://img.shields.io/endpoint?label=coverage&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fregseb%2Fcronnor%2Fmain&logo=stryker&logoColor=whitesmoke
[img-semver]: https://img.shields.io/badge/semver-2.0.0-blue?logo=semver&logoColor=whitesmoke
[link-npm]: https://www.npmjs.com/package/cronnor
[link-jsdelivr]: https://www.jsdelivr.com/package/npm/cronnor
[link-build]: https://github.com/regseb/cronnor/actions/workflows/ci.yml?query=branch%3Amain
[link-coverage]: https://dashboard.stryker-mutator.io/reports/github.com/regseb/cronnor/main
[link-semver]: https://semver.org/spec/v2.0.0.html "Semantic Versioning 2.0.0"
Loading

0 comments on commit 23cc0dd

Please sign in to comment.