diff --git a/package.json b/package.json index 40b4e96b59..14142040f1 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "@commitlint/cli": "^17.0.3", "@commitlint/config-conventional": "^17.0.3", "@kiwicom/browserslist-config": "^4.0.0", - "@lerna/project": "^5.2.0", "@octokit/rest": "^19.0.5", "@size-limit/file": "^8.0.0", "@size-limit/webpack": "^8.0.0", @@ -82,7 +81,6 @@ "@typescript-eslint/parser": "^5.57.1", "babel-jest": "^28.1.3", "browserslist": "^4.16.6", - "conventional-changelog": "^3.1.24", "cpy-cli": "^3.1.1", "cross-env": "^7.0.2", "dedent": "^0.7.0", diff --git a/scripts/helpers.mjs b/scripts/helpers.mjs deleted file mode 100644 index 23ab4d7a14..0000000000 --- a/scripts/helpers.mjs +++ /dev/null @@ -1,10 +0,0 @@ -export const parseSlackMessages = messages => { - const onlyWithReactions = messages.filter(({ reactions }) => reactions); - return onlyWithReactions - .filter( - ({ reactions }) => - reactions.find(({ name }) => name === "was-done") && - reactions.find(({ name }) => name === "react"), - ) - .map(({ user }) => `<@${user}>`); -}; diff --git a/scripts/post-changelog.mjs b/scripts/post-changelog.mjs index 09b8291a40..fefc5e3c6d 100644 --- a/scripts/post-changelog.mjs +++ b/scripts/post-changelog.mjs @@ -1,17 +1,14 @@ import { $, fetch, argv } from "zx"; import dotenv from "dotenv-safe"; -import conventionalChangelog from "conventional-changelog"; -import { getPackages } from "@lerna/project"; -import slackify from "slackify-markdown"; +import slackifyMarkdown from "slackify-markdown"; import { simpleGit } from "simple-git"; import gitDiffParser from "gitdiff-parser"; /* eslint-disable no-console */ -const CHANNEL = `orbit-react`; -const COLOR_CORE = `#00A58E`; -const PACKAGES = ["orbit-components", "orbit-tailwind-preset"]; -const PACKAGE_PREFIX = "@kiwicom"; +const CHANNEL = "orbit-react"; +const COLOR_CORE = "#00A58E"; +const PACKAGES = ["orbit-components", "orbit-tailwind-preset", "orbit-design-tokens"]; const SLACK_API_POST_RELEASE_MESSAGE = "https://slack.com/api/chat.postMessage"; function getTitle(pkg) { @@ -29,8 +26,9 @@ const apiRequest = async ({ method = "GET", url, body }) => }, }); -function adjustChangelog(str) { +function format(str, package_, prefix = "@kiwicom") { const output = str + .replace(/^#+ /, `# _${prefix}/${package_}_ `) .replace("Bug Fixes", "Bug Fixes 🐛") .replace("Features", "Features 🆕") .replace("BREAKING CHANGES", "BREAKING CHANGES 🚨") @@ -39,6 +37,16 @@ function adjustChangelog(str) { return output; } +function getChangelogFromDiff(files) { + // Only one file as we're only looking at the changelog + const [changelogFile] = files; + const changelog = changelogFile.hunks + .flatMap(hunk => hunk.changes.filter(({ isInsert }) => isInsert).map(({ content }) => content)) + .join("\n") + .trim(); + return changelog; +} + function getDiff(tag, path) { return simpleGit().show([tag, path]); } @@ -88,48 +96,8 @@ async function configureSlackToken() { } } -async function getChangelogMessage(package_) { - const packages = await getPackages(); - - return new Promise((resolve, reject) => { - let changelog = ""; - const pkg = packages.find(p => p.name === package_); - - const stream = conventionalChangelog( - { - lernaPackage: pkg.name, - preset: "angular", - }, - { - host: "https://github.com", - title: package_, - owner: "kiwicom", - repository: "orbit", - linkCompare: true, - version: pkg.version, - }, - { path: pkg.location }, - ); - - stream.on("data", data => { - changelog += data.toString(); - }); - - stream.on("end", () => { - changelog = slackify(adjustChangelog(changelog)); - resolve(changelog); - }); - - stream.on("error", err => { - reject(err); - }); - }); -} - async function publishChangelog(package_) { try { - const changelog = await getChangelogMessage(`${PACKAGE_PREFIX}/${package_}`); - await simpleGit().fetch(["origin", "master", "--tags"]); const tags = await simpleGit().tags(); const diff = await getDiff(tags.latest ?? "", changelogPath(package_)); @@ -138,12 +106,15 @@ async function publishChangelog(package_) { console.log(`No changes in ${package_}`); return; } + const changelog = getChangelogFromDiff(files); + const formattedChangelog = format(changelog, package_); + const slackifiedChangelog = slackifyMarkdown(formattedChangelog); if (argv.dry) { - console.info(changelog); + console.info(formattedChangelog); } else { await configureSlackToken(); - await postSlackNotification(changelog, package_); + await postSlackNotification(slackifiedChangelog, package_); } } catch (err) { console.error(err); diff --git a/scripts/publish.mjs b/scripts/publish.mjs deleted file mode 100644 index a2251b2266..0000000000 --- a/scripts/publish.mjs +++ /dev/null @@ -1,175 +0,0 @@ -import { $, fetch, argv } from "zx"; -import dotenv from "dotenv-safe"; -import conventionalChangelog from "conventional-changelog"; -import { getPackages } from "@lerna/project"; -import slackify from "slackify-markdown"; -import { Octokit } from "@octokit/rest"; - -import { parseSlackMessages } from "./helpers.mjs"; - -/* eslint-disable no-console */ - -const TITLE = `New orbit release 🚀`; -const CHANNEL = `orbit-react`; -const COLOR_CORE = `#00A58E`; -const COLOR_PING = `#0172CB`; -const SLACK_API_POST_RELEASE_MESSAGE = "https://slack.com/api/chat.postMessage"; - -const octokit = new Octokit({ - auth: process.env.GH_TOKEN, -}); - -const apiRequest = async ({ method = "GET", url, body }) => - fetch(url, { - method, - body, - headers: { - "Content-Type": "application/json; charset=utf-8", - Authorization: `Bearer ${process.env.SLACK_TOKEN}`, - Accept: "application/json", - }, - }).then(res => res.json()); - -async function getLatestReleaseTime() { - const res = await octokit.rest.repos.getLatestRelease({ - owner: "kiwicom", - repo: "orbit", - }); - - return new Date(res.data.published_at).getTime() / 1000; -} - -function adjustChangelog(str) { - const output = str - .replace("Bug Fixes", "Bug Fixes 🐛") - .replace("Features", "Features 🆕") - .replace("BREAKING CHANGES", "BREAKING CHANGES 🚨") - .replace("Reverts", "Reverts 🔄"); - - return output; -} - -async function getUserNames(timestamp) { - try { - $.verbose = false; - const res = await apiRequest({ - url: `${process.env.SLACK_API_READ_PLZ_ORBIT}&oldest=${timestamp}`, - }); - - return parseSlackMessages(res.messages); - } catch (err) { - console.error(err); - } - - return undefined; -} - -async function postSlackNotification(changelog, names) { - try { - $.verbose = false; - const res = await apiRequest({ - url: SLACK_API_POST_RELEASE_MESSAGE, - method: "POST", - body: JSON.stringify({ - channel: CHANNEL, - attachments: [ - { - title: TITLE, - text: changelog, - color: COLOR_CORE, - }, - { - text: names ? [...new Set(names)].join(",") : "", - color: COLOR_PING, - }, - ], - }), - }); - - return res; - } catch (err) { - console.error(err); - } - - return undefined; -} - -async function configureGitHubToken() { - try { - dotenv.config({ - allowEmptyValues: true, - example: ".env.example", - }); - } catch (err) { - if (/SLACK_TOKEN/g.test(err.message)) { - throw new Error( - "Slack token is missing in the .env file, please add it.\nLearn how to create one: https://slack.com/intl/en-cz/help/articles/215770388-Create-and-regenerate-API-tokens", - ); - } - - if (/GH_TOKEN/g.test(err.message)) { - throw new Error( - "GitHub token is missing in the .env file, Lerna needs it to create GitHub releases.\nLearn how to create one: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token.", - ); - } - } -} - -async function getChangelogMessage() { - const packages = await getPackages(); - - return new Promise((resolve, reject) => { - let changelog = ""; - const pkg = packages.find(p => p.name === "@kiwicom/orbit-components"); - const stream = conventionalChangelog( - { - lernaPackage: pkg.name, - preset: "angular", - }, - { - host: "https://github.com", - title: "@kiwicom/orbit-components", - owner: "kiwicom", - repository: "orbit", - linkCompare: true, - version: pkg.version, - }, - ); - - stream.on("data", data => { - changelog += data.toString(); - }); - - stream.on("end", () => { - changelog = slackify(adjustChangelog(changelog)); - resolve(changelog); - }); - - stream.on("error", err => { - reject(err); - }); - }); -} - -(async () => { - try { - await configureGitHubToken(); - const changelog = await getChangelogMessage(); - - if (argv.dry) { - console.info(changelog); - process.exit(0); - } else { - await $`yarn install`; - await $`yarn lerna publish --no-private --conventional-commits --create-release github`; - await $`yarn docs changelog`; - await $`git add docs/src/data/log.md && git commit -m "docs: update changelog" && git push`; - const timestamp = await getLatestReleaseTime(); - const names = await getUserNames(timestamp); - await postSlackNotification(changelog, names); - } - } catch (err) { - console.error(err); - process.exit(1); - } -})(); diff --git a/yarn.lock b/yarn.lock index dbbbe078c0..209ebb7062 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2789,41 +2789,6 @@ yargs "16.2.0" yargs-parser "20.2.4" -"@lerna/package@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@lerna/package/-/package-5.6.2.tgz" - integrity sha512-LaOC8moyM5J9WnRiWZkedjOninSclBOJyPqhif6mHb2kCFX6jAroNYzE8KM4cphu8CunHuhI6Ixzswtv+Dultw== - dependencies: - load-json-file "^6.2.0" - npm-package-arg "8.1.1" - write-pkg "^4.0.0" - -"@lerna/project@^5.2.0": - version "5.6.2" - resolved "https://registry.npmjs.org/@lerna/project/-/project-5.6.2.tgz" - integrity sha512-kPIMcIy/0DVWM91FPMMFmXyAnCuuLm3NdhnA8NusE//VuY9wC6QC/3OwuCY39b2dbko/fPZheqKeAZkkMH6sGg== - dependencies: - "@lerna/package" "5.6.2" - "@lerna/validation-error" "5.6.2" - cosmiconfig "^7.0.0" - dedent "^0.7.0" - dot-prop "^6.0.1" - glob-parent "^5.1.1" - globby "^11.0.2" - js-yaml "^4.1.0" - load-json-file "^6.2.0" - npmlog "^6.0.2" - p-map "^4.0.0" - resolve-from "^5.0.0" - write-json-file "^4.3.0" - -"@lerna/validation-error@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@lerna/validation-error/-/validation-error-5.6.2.tgz" - integrity sha512-4WlDUHaa+RSJNyJRtX3gVIAPVzjZD2tle8AJ0ZYBfdZnZmG0VlB2pD1FIbOQPK8sY2h5m0cHLRvfLoLncqHvdQ== - dependencies: - npmlog "^6.0.2" - "@lezer/common@^0.15.0", "@lezer/common@^0.15.7": version "0.15.12" resolved "https://registry.npmjs.org/@lezer/common/-/common-0.15.12.tgz" @@ -9206,7 +9171,7 @@ conventional-changelog-angular@6.0.0: dependencies: compare-func "^2.0.0" -conventional-changelog-angular@^5.0.11, conventional-changelog-angular@^5.0.12: +conventional-changelog-angular@^5.0.11: version "5.0.13" resolved "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz" integrity sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA== @@ -9214,29 +9179,6 @@ conventional-changelog-angular@^5.0.11, conventional-changelog-angular@^5.0.12: compare-func "^2.0.0" q "^1.5.1" -conventional-changelog-atom@^2.0.8: - version "2.0.8" - resolved "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz" - integrity sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw== - dependencies: - q "^1.5.1" - -conventional-changelog-codemirror@^2.0.8: - version "2.0.8" - resolved "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz" - integrity sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw== - dependencies: - q "^1.5.1" - -conventional-changelog-conventionalcommits@^4.5.0: - version "4.6.3" - resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz" - integrity sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g== - dependencies: - compare-func "^2.0.0" - lodash "^4.17.15" - q "^1.5.1" - conventional-changelog-conventionalcommits@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-5.0.0.tgz" @@ -9263,87 +9205,11 @@ conventional-changelog-core@5.0.1: read-pkg "^3.0.0" read-pkg-up "^3.0.0" -conventional-changelog-core@^4.2.1: - version "4.2.4" - resolved "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz" - integrity sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg== - dependencies: - add-stream "^1.0.0" - conventional-changelog-writer "^5.0.0" - conventional-commits-parser "^3.2.0" - dateformat "^3.0.0" - get-pkg-repo "^4.0.0" - git-raw-commits "^2.0.8" - git-remote-origin-url "^2.0.0" - git-semver-tags "^4.1.1" - lodash "^4.17.15" - normalize-package-data "^3.0.0" - q "^1.5.1" - read-pkg "^3.0.0" - read-pkg-up "^3.0.0" - through2 "^4.0.0" - -conventional-changelog-ember@^2.0.9: - version "2.0.9" - resolved "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz" - integrity sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A== - dependencies: - q "^1.5.1" - -conventional-changelog-eslint@^3.0.9: - version "3.0.9" - resolved "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz" - integrity sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA== - dependencies: - q "^1.5.1" - -conventional-changelog-express@^2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz" - integrity sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ== - dependencies: - q "^1.5.1" - -conventional-changelog-jquery@^3.0.11: - version "3.0.11" - resolved "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz" - integrity sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw== - dependencies: - q "^1.5.1" - -conventional-changelog-jshint@^2.0.9: - version "2.0.9" - resolved "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz" - integrity sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA== - dependencies: - compare-func "^2.0.0" - q "^1.5.1" - -conventional-changelog-preset-loader@^2.3.4: - version "2.3.4" - resolved "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz" - integrity sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g== - conventional-changelog-preset-loader@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-3.0.0.tgz#14975ef759d22515d6eabae6396c2ae721d4c105" integrity sha512-qy9XbdSLmVnwnvzEisjxdDiLA4OmV3o8db+Zdg4WiFw14fP3B6XNz98X0swPPpkTd/pc1K7+adKgEDM1JCUMiA== -conventional-changelog-writer@^5.0.0: - version "5.0.1" - resolved "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz" - integrity sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ== - dependencies: - conventional-commits-filter "^2.0.7" - dateformat "^3.0.0" - handlebars "^4.7.7" - json-stringify-safe "^5.0.1" - lodash "^4.17.15" - meow "^8.0.0" - semver "^6.0.0" - split "^1.0.0" - through2 "^4.0.0" - conventional-changelog-writer@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-6.0.1.tgz#d8d3bb5e1f6230caed969dcc762b1c368a8f7b01" @@ -9357,31 +9223,6 @@ conventional-changelog-writer@^6.0.0: semver "^7.0.0" split "^1.0.1" -conventional-changelog@^3.1.24: - version "3.1.25" - resolved "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz" - integrity sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ== - dependencies: - conventional-changelog-angular "^5.0.12" - conventional-changelog-atom "^2.0.8" - conventional-changelog-codemirror "^2.0.8" - conventional-changelog-conventionalcommits "^4.5.0" - conventional-changelog-core "^4.2.1" - conventional-changelog-ember "^2.0.9" - conventional-changelog-eslint "^3.0.9" - conventional-changelog-express "^2.0.6" - conventional-changelog-jquery "^3.0.11" - conventional-changelog-jshint "^2.0.9" - conventional-changelog-preset-loader "^2.3.4" - -conventional-commits-filter@^2.0.7: - version "2.0.7" - resolved "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz" - integrity sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA== - dependencies: - lodash.ismatch "^4.4.0" - modify-values "^1.0.0" - conventional-commits-filter@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-3.0.0.tgz#bf1113266151dd64c49cd269e3eb7d71d7015ee2" @@ -9390,7 +9231,7 @@ conventional-commits-filter@^3.0.0: lodash.ismatch "^4.4.0" modify-values "^1.0.1" -conventional-commits-parser@^3.2.0, conventional-commits-parser@^3.2.2: +conventional-commits-parser@^3.2.2: version "3.2.4" resolved "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz" integrity sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q== @@ -10095,7 +9936,7 @@ date-fns@^2.25.0: dependencies: "@babel/runtime" "^7.21.0" -dateformat@^3.0.0, dateformat@^3.0.3: +dateformat@^3.0.3: version "3.0.3" resolved "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== @@ -10704,13 +10545,6 @@ dot-prop@^5.1.0, dot-prop@^5.2.0: dependencies: is-obj "^2.0.0" -dot-prop@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz" - integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA== - dependencies: - is-obj "^2.0.0" - dotenv-expand@^10.0.0, dotenv-expand@~10.0.0: version "10.0.0" resolved "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz" @@ -13512,7 +13346,7 @@ get-package-type@^0.1.0: resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== -get-pkg-repo@^4.0.0, get-pkg-repo@^4.2.1: +get-pkg-repo@^4.2.1: version "4.2.1" resolved "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz" integrity sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA== @@ -13622,7 +13456,7 @@ git-config-path@^1.0.1: fs-exists-sync "^0.1.0" homedir-polyfill "^1.0.0" -git-raw-commits@^2.0.11, git-raw-commits@^2.0.8: +git-raw-commits@^2.0.11: version "2.0.11" resolved "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.11.tgz" integrity sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A== @@ -13650,14 +13484,6 @@ git-remote-origin-url@^2.0.0: gitconfiglocal "^1.0.0" pify "^2.3.0" -git-semver-tags@^4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-4.1.1.tgz" - integrity sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA== - dependencies: - meow "^8.0.0" - semver "^6.0.0" - git-semver-tags@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-5.0.1.tgz#db748aa0e43d313bf38dcd68624d8443234e1c15" @@ -13731,7 +13557,7 @@ github-slugger@^1.0.0, github-slugger@^1.2.1: resolved "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz" integrity sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw== -glob-parent@5.1.2, glob-parent@^5.1.1, glob-parent@^5.1.2, glob-parent@~5.1.2: +glob-parent@5.1.2, glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -16996,7 +16822,7 @@ lmdb@2.5.3: "@lmdb/lmdb-linux-x64" "2.5.3" "@lmdb/lmdb-win32-x64" "2.5.3" -load-json-file@6.2.0, load-json-file@^6.2.0: +load-json-file@6.2.0: version "6.2.0" resolved "https://registry.npmjs.org/load-json-file/-/load-json-file-6.2.0.tgz" integrity sha512-gUD/epcRms75Cw8RT1pUdHugZYM5ce64ucs2GEISABwkRsOQr0q2wm/MV2TKThycIe5e0ytRweW2RZxclogCdQ== @@ -18290,7 +18116,7 @@ mkdirp@^1.0.3, mkdirp@^1.0.4: resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -modify-values@^1.0.0, modify-values@^1.0.1: +modify-values@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz" integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== @@ -23574,13 +23400,6 @@ sort-keys@^2.0.0: dependencies: is-plain-obj "^1.0.0" -sort-keys@^4.0.0: - version "4.2.0" - resolved "https://registry.npmjs.org/sort-keys/-/sort-keys-4.2.0.tgz" - integrity sha512-aUYIEU/UviqPgc8mHR6IW1EGxkAXpeRETYcrzg8cLAvUPZcpAlleSXHV2mY7G12GphSH6Gzv+4MMVSSkbdteHg== - dependencies: - is-plain-obj "^2.0.0" - source-list-map@^1.1.1: version "1.1.2" resolved "https://registry.npmjs.org/source-list-map/-/source-list-map-1.1.2.tgz" @@ -23724,7 +23543,7 @@ split@0.3.1: dependencies: through "2" -split@^1.0.0, split@^1.0.1: +split@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/split/-/split-1.0.1.tgz" integrity sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg== @@ -26853,19 +26672,7 @@ write-json-file@^3.2.0: sort-keys "^2.0.0" write-file-atomic "^2.4.2" -write-json-file@^4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/write-json-file/-/write-json-file-4.3.0.tgz" - integrity sha512-PxiShnxf0IlnQuMYOPPhPkhExoCQuTUNPOa/2JWCYTmBquU9njyyDuwRKN26IZBlp4yn1nt+Agh2HOOBl+55HQ== - dependencies: - detect-indent "^6.0.0" - graceful-fs "^4.1.15" - is-plain-obj "^2.0.0" - make-dir "^3.0.0" - sort-keys "^4.0.0" - write-file-atomic "^3.0.0" - -write-pkg@4.0.0, write-pkg@^4.0.0: +write-pkg@4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/write-pkg/-/write-pkg-4.0.0.tgz" integrity sha512-v2UQ+50TNf2rNHJ8NyWttfm/EJUBWMJcx6ZTYZr6Qp52uuegWw/lBkCtCbnYZEmPRNL61m+u67dAmGxo+HTULA==