From 89f1e881017703788d4f19475650305f4ed7c31f Mon Sep 17 00:00:00 2001 From: Mohammed Keyvanzadeh Date: Thu, 27 Jun 2024 01:33:38 +0330 Subject: [PATCH] chore: update dependencies - Update the `replace-in-file` dependency and the `c8` development dependency to their new major versions. - Update all the other dependencies and development dependencies to their latest versions. --- lib/prepare_release.js | 4 ++-- package.json | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/prepare_release.js b/lib/prepare_release.js index 2a54fcc1..5b64d79f 100644 --- a/lib/prepare_release.js +++ b/lib/prepare_release.js @@ -2,7 +2,7 @@ import path from 'node:path'; import { promises as fs } from 'node:fs'; import semver from 'semver'; -import replace from 'replace-in-file'; +import { replaceInFile } from 'replace-in-file'; import { getMergedConfig } from './config.js'; import { runAsync, runSync } from './run.js'; @@ -427,7 +427,7 @@ export default class ReleasePreparation { async updateREPLACEMEs() { const { newVersion } = this; - await replace({ + await replaceInFile({ files: 'doc/api/*.md', from: /REPLACEME/g, to: `v${newVersion}` diff --git a/package.json b/package.json index 2d03a0f9..a036a995 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ ], "license": "MIT", "dependencies": { - "@listr2/prompt-adapter-enquirer": "^2.0.8", - "@node-core/caritat": "^1.3.1", + "@listr2/prompt-adapter-enquirer": "^2.0.10", + "@node-core/caritat": "^1.6.0", "@pkgjs/nv": "^0.2.2", "branch-diff": "^3.0.4", "chalk": "^5.3.0", @@ -44,26 +44,26 @@ "clipboardy": "^4.0.0", "core-validate-commit": "^4.0.0", "figures": "^6.1.0", - "ghauth": "^6.0.4", - "inquirer": "^9.2.22", + "ghauth": "^6.0.5", + "inquirer": "^9.3.2", "js-yaml": "^4.1.0", - "listr2": "^8.2.1", + "listr2": "^8.2.3", "lodash": "^4.17.21", "log-symbols": "^6.0.0", "ora": "^8.0.1", - "replace-in-file": "^7.1.0", - "undici": "^6.18.0", + "replace-in-file": "^8.0.2", + "undici": "^6.19.2", "which": "^4.0.0", "yargs": "^17.7.2" }, "devDependencies": { "@reporters/github": "^1.7.0", - "c8": "^9.1.0", + "c8": "^10.1.2", "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-n": "^16.6.2", - "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-promise": "^6.4.0", "sinon": "^18.0.0" } }