From 7d0d02fc3b5e73881a214e9b97a01046556c8fa2 Mon Sep 17 00:00:00 2001 From: dish Date: Mon, 16 Dec 2024 15:07:45 -0500 Subject: [PATCH] nodePackages.@commitlint/config-conventional: drop --- .../manual/release-notes/rl-2505.section.md | 2 + pkgs/development/node-packages/aliases.nix | 1 + .../node-packages/node-packages.json | 1 - .../node-packages/node-packages.nix | 39 ------------------- 4 files changed, 3 insertions(+), 40 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 5e5713e8fd78..a0058d668277 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -209,6 +209,8 @@ word-breaking. So you want to write `extraArgs = [ "--prefer" "spaced pat" ]` rather than previous `extraArgs = [ "--prefer 'spaced pat'" ]`. +- `nodePackages."@commitlint/config-conventional"` has been removed, as it is a library, and projects should depend on it instead. + - `nodePackages.vls` has been deprecated, as the upstream consumer of it, vetur, has been deprecated by upstream. Upstream suggests migrating to Volar for Vue LSP tooling instead. - `nodePackages.create-react-native-app` has been removed, as it is deprecated. Upstream suggests using a framework for React Native apps instead. diff --git a/pkgs/development/node-packages/aliases.nix b/pkgs/development/node-packages/aliases.nix index d187b9ee4378..3f351873fe68 100644 --- a/pkgs/development/node-packages/aliases.nix +++ b/pkgs/development/node-packages/aliases.nix @@ -39,6 +39,7 @@ mapAliases { "@antora/cli" = pkgs.antora; # Added 2023-05-06 "@astrojs/language-server" = pkgs.astro-language-server; # Added 2024-02-12 "@bitwarden/cli" = pkgs.bitwarden-cli; # added 2023-07-25 + "@commitlint/config-conventional" = throw "@commitlint/config-conventional has been dropped, as it is a library and your JS project should lock it instead."; # added 2024-12-16 "@emacs-eask/cli" = pkgs.eask; # added 2023-08-17 "@forge/cli" = throw "@forge/cli was removed because it was broken"; # added 2023-09-20 "@githubnext/github-copilot-cli" = pkgs.github-copilot-cli; # Added 2023-05-02 diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index f990a692b0f1..38b93fb7a344 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -3,7 +3,6 @@ , "@antfu/ni" , "@babel/cli" , "@commitlint/cli" -, "@commitlint/config-conventional" , "@microsoft/rush" , "@shopify/cli" , "@tailwindcss/aspect-ratio" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index 2371cf2b48a0..fcb929a70bd8 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -17942,15 +17942,6 @@ let sha512 = "8gsBDI5Y3vrKUCxN6Ue8xr6occZ5nsDEc4C7jO/EovFGozx8uttCAyfhRrvoUAWi2WMm3OmYs+0mPJU7kQdYWQ=="; }; }; - "conventional-changelog-conventionalcommits-7.0.2" = { - name = "conventional-changelog-conventionalcommits"; - packageName = "conventional-changelog-conventionalcommits"; - version = "7.0.2"; - src = fetchurl { - url = "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz"; - sha512 = "NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w=="; - }; - }; "conventional-changelog-conventionalcommits-8.0.0" = { name = "conventional-changelog-conventionalcommits"; packageName = "conventional-changelog-conventionalcommits"; @@ -53769,36 +53760,6 @@ in bypassCache = true; reconstructLock = true; }; - "@commitlint/config-conventional" = nodeEnv.buildNodePackage { - name = "_at_commitlint_slash_config-conventional"; - packageName = "@commitlint/config-conventional"; - version = "19.5.0"; - src = fetchurl { - url = "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-19.5.0.tgz"; - sha512 = "OBhdtJyHNPryZKg0fFpZNOBM1ZDbntMvqMuSmpfyP86XSfwzGw4CaoYRG4RutUPg0BTK07VMRIkNJT6wi2zthg=="; - }; - dependencies = [ - sources."@commitlint/types-19.5.0" - sources."@types/conventional-commits-parser-5.0.0" - sources."@types/node-22.5.5" - sources."array-ify-1.0.0" - sources."chalk-5.3.0" - sources."compare-func-2.0.0" - sources."conventional-changelog-conventionalcommits-7.0.2" - sources."dot-prop-5.3.0" - sources."is-obj-2.0.0" - sources."undici-types-6.19.8" - ]; - buildInputs = globalBuildInputs; - meta = { - description = "Shareable commitlint config enforcing conventional commits"; - homepage = "https://commitlint.js.org/"; - license = "MIT"; - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; "@microsoft/rush" = nodeEnv.buildNodePackage { name = "_at_microsoft_slash_rush"; packageName = "@microsoft/rush";