nixos-configs/apps/update-sources/src/node-modules.ts

83 lines
2.3 KiB
TypeScript
Raw Normal View History

import { readPackageJSON, writePackageJSON } from 'pkg-types';
import { readdirSync } from 'node:fs';
import { spawnSync } from 'node:child_process';
import { replaceInFile, npmRun } from './lib';
/* Constants */
const FLAKE = process.env.FLAKE as string;
const updatePackageJson = async(workspaceDir: string, updates: object) => {
const currentPackageJson = await readPackageJSON(`${workspaceDir}/package.json`);
const outdated = JSON.parse(npmRun(['outdated', '--json'], workspaceDir));
const updateDeps = (deps: string) => {
Object.keys(currentPackageJson[deps]).forEach((dep) => {
const versions = outdated[dep];
chore: update sources Flake Inputs: • Updated input 'ags': 'github:Aylur/ags' (2024-11-22) rev: 81159966eb8b39b66c3efc133982fd76920c9605 → 'github:Aylur/ags' (2024-12-09) rev: ce27d3036f7fbebc3476ccbb5a1c51f0603c2475 • Updated input 'astal': 'github:Aylur/astal' (2024-12-06) rev: 4c19d8d06fa25cc6389f37abe8839b4d8be5c0d6 → 'github:Aylur/astal' (2024-12-11) rev: 6fbeb920eae7f5201d828230ac2ac00d78369251 • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2024-12-07) rev: 4a8a5977e620cbcd584a8de96e1bceb83db227a2 → 'github:elchininet/custom-sidebar' (2024-12-11) rev: 7279c0c85ec2dc2669e7580c9a4e11596ef8505e • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay' (2024-12-07) rev: 67db3b139494ad55e489d772c1131d8f03289eea → 'github:matt1432/discord-nightly-overlay' (2024-12-11) rev: 442631368d4fc16766ffa5fc230f1551d27fea2c • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-08) rev: 0b9fe9a89783f42d9c3bea1cf9ebf1f4ddf70621 → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-09) rev: a006261adef704930a8d946806ba051178a14518 • Updated input 'home-manager': 'github:nix-community/home-manager' (2024-12-06) rev: d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a → 'github:nix-community/home-manager' (2024-12-11) rev: 6e5b2d9e8014b5572e3367937a329e7053458d34 • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2024-12-07) rev: c106f454c136ecca47f84c659c58e19670050412 → 'github:hyprwm/Hyprland' (2024-12-11) rev: df956a0f6fbcfd7397b2d7b86883c0936c7795ec • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-06) rev: 0f415721ee427270bc078ef3a5ba2a308d47461f → 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-10) rev: 77ffd839fd9d60d139dc4a2ad6b6d526f4ad5a17 • Updated input 'material-symbols-src': 'github:beecho01/material-symbols' (2024-12-06) rev: 8f665f5d92821f266c3d0be5385ec990a89c7df3 → 'github:beecho01/material-symbols' (2024-12-09) rev: 266c0a965c6e7f0555e57764ee37fb4fc740e2af • Updated input 'netdaemon-src': 'github:net-daemon/integration' (2024-04-07) rev: d3b7606530ddcaf189ed6f75569e923b22896679 → 'github:net-daemon/integration' (2024-12-11) rev: 2781bf156761a9e3818c710f1240982af1e9f4d9 • Updated input 'nh': 'github:viperML/nh' (2024-12-06) rev: 97e70d0a2c6bddb2a1d081c949ebe1b48c169a87 → 'github:viperML/nh' (2024-12-11) rev: 6a69a145b0c7dbd5616bbded512b8bf8b5d2f8a4 • Updated input 'nix-eval-jobs': 'github:nix-community/nix-eval-jobs' (2024-12-10) rev: 8e82a79fe9329f3be4836ad45d4edf2383e7723a → 'github:nix-community/nix-eval-jobs' (2024-12-11) rev: b1f94fed4af8e7f30665a3bf8b369dc3b8a95884 • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2024-12-08) rev: b15e082eeea1afdf6bfe7aa0dbe4758097958f80 → 'github:fufexan/nix-gaming' (2024-12-10) rev: 89887483a47f9e7e849d43e5992f9da54b3e8e0e • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2024-12-05) rev: d0797a04b81caeae77bcff10a9dde78bc17f5661 → 'github:NixOS/nixpkgs' (2024-12-09) rev: a73246e2eef4c6ed172979932bc80e1404ba2d56 • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2024-12-07) rev: 98e4d443cc6cc78659a33074aae4dee9e4b37bd7 → 'github:nix-community/nixpkgs-wayland' (2024-12-11) rev: 948369631b8a53b56d847bb095d4fba7aea690ee • Updated input 'sops-nix': 'github:Mic92/sops-nix' (2024-12-02) rev: c6134b6fff6bda95a1ac872a2a9d5f32e3c37856 → 'github:Mic92/sops-nix' (2024-12-09) rev: a80af8929781b5fe92ddb8ae52e9027fae780d2a • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-06) rev: 3aa0d8a1e6b811508becabebddcb8df1db490e71 → 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-09) rev: 11d3822f3c06178e8c0d5a8d5d2eb122715060bf • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2024-12-08) rev: acc942bb5f22a9f782b0ec87372157f5fd041219 → 'github:thlucas1/SpotifyWebApiPython' (2024-12-09) rev: c592338c4cf15d06829c3c29b13e34112bdcab98 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2024-12-08) rev: e7fd0c13dcf8468f913af7d7e1124fb2f4476ada → 'github:make-all/tuya-local' (2024-12-11) rev: 9dda00ef89311116f28f2e7f8da3490d05fca0b4 Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:2b5770e40542c158aabba3a1f600d11fd5a0ffe3ff592fcfcf91be617e7c00f8 → sha256:59ddfdc7e592b72665f86d3c4d7d83ff07a5ddfd711e627a1a8eaca0bd76be23 • rssbridge/rss-bridge latest: sha256:9de8e139d3583793a9b707c90efca9a1a66298ffe202b73903ad218e412ddef9 → sha256:02ee316a6cd158706cd15480f44bc4db39ac0f5ab52b76d596083583e7416f7f • postgres 15-alpine: sha256:5d4b2f57adc7739452b0be6cee25f263bfc64b609446bcdd8170354cf8ba8e80 → sha256:fd3abc9557df27613bd5c5e6608fc62fb04dc90c8e79c3322348d600e4b75478 • quay.io/vaultwarden/server latest: sha256:84015c9306cc58f4be8b09c1adc62cfc3b2648b1430e9c15901482f3d870bd14 → sha256:0498b67709f769fee36b1acf02f69e8d9981b051aa5b8200878d938bd537d39d • ghcr.io/linuxserver/bazarr latest: sha256:be98501c48d98eec67a3269cacf884eb122b884d0775cdb8ee9a03947ef2b493 → sha256:954b303893a33b84075857534ad863dc349b8a9e7e838f134e037558ea84823f • ghcr.io/linuxserver/radarr latest: sha256:2e37ae0af799e01f413a97ee82c7e581a5b635816df0380889bc65d554dbeb17 → sha256:18d7873c8b773c10944c475fe96ca8ae79186512d3c6f403bcbd4409c9c4acfc • ghcr.io/linuxserver/sabnzbd latest: sha256:ff682bedd109c45dbad25ab8edcc4f3b837b9ac48c39751fbbb33a858eab97d0 → sha256:d0e307ed7ddbda9c93872f02fed402d538aab52b2605e71a2f80c26f5ba8d3c7 Firefox Addons: sound-volume: 1.5.5 -> 1.5.6 Node modules: @stylistic/eslint-plugin: 2.11.0 -> 2.12.1 @types/node: 22.10.1 -> 22.10.2 eslint-plugin-jsdoc: 50.6.0 -> 50.6.1 typescript-eslint: 8.17.0 -> 8.18.0 some-sass-language-server: 2.1.0 -> 2.1.1 Misc Sources: Vuetorrent: 2.18.0 -> 2.19.0
2024-12-11 18:06:48 -05:00
const current = versions?.wanted || versions?.current;
chore: update sources Flake Inputs: • Updated input 'ags': 'github:Aylur/ags' (2024-11-22) rev: 81159966eb8b39b66c3efc133982fd76920c9605 → 'github:Aylur/ags' (2024-12-09) rev: ce27d3036f7fbebc3476ccbb5a1c51f0603c2475 • Updated input 'astal': 'github:Aylur/astal' (2024-12-06) rev: 4c19d8d06fa25cc6389f37abe8839b4d8be5c0d6 → 'github:Aylur/astal' (2024-12-11) rev: 6fbeb920eae7f5201d828230ac2ac00d78369251 • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2024-12-07) rev: 4a8a5977e620cbcd584a8de96e1bceb83db227a2 → 'github:elchininet/custom-sidebar' (2024-12-11) rev: 7279c0c85ec2dc2669e7580c9a4e11596ef8505e • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay' (2024-12-07) rev: 67db3b139494ad55e489d772c1131d8f03289eea → 'github:matt1432/discord-nightly-overlay' (2024-12-11) rev: 442631368d4fc16766ffa5fc230f1551d27fea2c • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-08) rev: 0b9fe9a89783f42d9c3bea1cf9ebf1f4ddf70621 → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-09) rev: a006261adef704930a8d946806ba051178a14518 • Updated input 'home-manager': 'github:nix-community/home-manager' (2024-12-06) rev: d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a → 'github:nix-community/home-manager' (2024-12-11) rev: 6e5b2d9e8014b5572e3367937a329e7053458d34 • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2024-12-07) rev: c106f454c136ecca47f84c659c58e19670050412 → 'github:hyprwm/Hyprland' (2024-12-11) rev: df956a0f6fbcfd7397b2d7b86883c0936c7795ec • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-06) rev: 0f415721ee427270bc078ef3a5ba2a308d47461f → 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-10) rev: 77ffd839fd9d60d139dc4a2ad6b6d526f4ad5a17 • Updated input 'material-symbols-src': 'github:beecho01/material-symbols' (2024-12-06) rev: 8f665f5d92821f266c3d0be5385ec990a89c7df3 → 'github:beecho01/material-symbols' (2024-12-09) rev: 266c0a965c6e7f0555e57764ee37fb4fc740e2af • Updated input 'netdaemon-src': 'github:net-daemon/integration' (2024-04-07) rev: d3b7606530ddcaf189ed6f75569e923b22896679 → 'github:net-daemon/integration' (2024-12-11) rev: 2781bf156761a9e3818c710f1240982af1e9f4d9 • Updated input 'nh': 'github:viperML/nh' (2024-12-06) rev: 97e70d0a2c6bddb2a1d081c949ebe1b48c169a87 → 'github:viperML/nh' (2024-12-11) rev: 6a69a145b0c7dbd5616bbded512b8bf8b5d2f8a4 • Updated input 'nix-eval-jobs': 'github:nix-community/nix-eval-jobs' (2024-12-10) rev: 8e82a79fe9329f3be4836ad45d4edf2383e7723a → 'github:nix-community/nix-eval-jobs' (2024-12-11) rev: b1f94fed4af8e7f30665a3bf8b369dc3b8a95884 • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2024-12-08) rev: b15e082eeea1afdf6bfe7aa0dbe4758097958f80 → 'github:fufexan/nix-gaming' (2024-12-10) rev: 89887483a47f9e7e849d43e5992f9da54b3e8e0e • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2024-12-05) rev: d0797a04b81caeae77bcff10a9dde78bc17f5661 → 'github:NixOS/nixpkgs' (2024-12-09) rev: a73246e2eef4c6ed172979932bc80e1404ba2d56 • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2024-12-07) rev: 98e4d443cc6cc78659a33074aae4dee9e4b37bd7 → 'github:nix-community/nixpkgs-wayland' (2024-12-11) rev: 948369631b8a53b56d847bb095d4fba7aea690ee • Updated input 'sops-nix': 'github:Mic92/sops-nix' (2024-12-02) rev: c6134b6fff6bda95a1ac872a2a9d5f32e3c37856 → 'github:Mic92/sops-nix' (2024-12-09) rev: a80af8929781b5fe92ddb8ae52e9027fae780d2a • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-06) rev: 3aa0d8a1e6b811508becabebddcb8df1db490e71 → 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-09) rev: 11d3822f3c06178e8c0d5a8d5d2eb122715060bf • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2024-12-08) rev: acc942bb5f22a9f782b0ec87372157f5fd041219 → 'github:thlucas1/SpotifyWebApiPython' (2024-12-09) rev: c592338c4cf15d06829c3c29b13e34112bdcab98 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2024-12-08) rev: e7fd0c13dcf8468f913af7d7e1124fb2f4476ada → 'github:make-all/tuya-local' (2024-12-11) rev: 9dda00ef89311116f28f2e7f8da3490d05fca0b4 Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:2b5770e40542c158aabba3a1f600d11fd5a0ffe3ff592fcfcf91be617e7c00f8 → sha256:59ddfdc7e592b72665f86d3c4d7d83ff07a5ddfd711e627a1a8eaca0bd76be23 • rssbridge/rss-bridge latest: sha256:9de8e139d3583793a9b707c90efca9a1a66298ffe202b73903ad218e412ddef9 → sha256:02ee316a6cd158706cd15480f44bc4db39ac0f5ab52b76d596083583e7416f7f • postgres 15-alpine: sha256:5d4b2f57adc7739452b0be6cee25f263bfc64b609446bcdd8170354cf8ba8e80 → sha256:fd3abc9557df27613bd5c5e6608fc62fb04dc90c8e79c3322348d600e4b75478 • quay.io/vaultwarden/server latest: sha256:84015c9306cc58f4be8b09c1adc62cfc3b2648b1430e9c15901482f3d870bd14 → sha256:0498b67709f769fee36b1acf02f69e8d9981b051aa5b8200878d938bd537d39d • ghcr.io/linuxserver/bazarr latest: sha256:be98501c48d98eec67a3269cacf884eb122b884d0775cdb8ee9a03947ef2b493 → sha256:954b303893a33b84075857534ad863dc349b8a9e7e838f134e037558ea84823f • ghcr.io/linuxserver/radarr latest: sha256:2e37ae0af799e01f413a97ee82c7e581a5b635816df0380889bc65d554dbeb17 → sha256:18d7873c8b773c10944c475fe96ca8ae79186512d3c6f403bcbd4409c9c4acfc • ghcr.io/linuxserver/sabnzbd latest: sha256:ff682bedd109c45dbad25ab8edcc4f3b837b9ac48c39751fbbb33a858eab97d0 → sha256:d0e307ed7ddbda9c93872f02fed402d538aab52b2605e71a2f80c26f5ba8d3c7 Firefox Addons: sound-volume: 1.5.5 -> 1.5.6 Node modules: @stylistic/eslint-plugin: 2.11.0 -> 2.12.1 @types/node: 22.10.1 -> 22.10.2 eslint-plugin-jsdoc: 50.6.0 -> 50.6.1 typescript-eslint: 8.17.0 -> 8.18.0 some-sass-language-server: 2.1.0 -> 2.1.1 Misc Sources: Vuetorrent: 2.18.0 -> 2.19.0
2024-12-11 18:06:48 -05:00
if (!current) {
return;
}
chore: update sources Flake Inputs: • Updated input 'ags': 'github:Aylur/ags' (2024-11-22) rev: 81159966eb8b39b66c3efc133982fd76920c9605 → 'github:Aylur/ags' (2024-12-09) rev: ce27d3036f7fbebc3476ccbb5a1c51f0603c2475 • Updated input 'astal': 'github:Aylur/astal' (2024-12-06) rev: 4c19d8d06fa25cc6389f37abe8839b4d8be5c0d6 → 'github:Aylur/astal' (2024-12-11) rev: 6fbeb920eae7f5201d828230ac2ac00d78369251 • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2024-12-07) rev: 4a8a5977e620cbcd584a8de96e1bceb83db227a2 → 'github:elchininet/custom-sidebar' (2024-12-11) rev: 7279c0c85ec2dc2669e7580c9a4e11596ef8505e • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay' (2024-12-07) rev: 67db3b139494ad55e489d772c1131d8f03289eea → 'github:matt1432/discord-nightly-overlay' (2024-12-11) rev: 442631368d4fc16766ffa5fc230f1551d27fea2c • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-08) rev: 0b9fe9a89783f42d9c3bea1cf9ebf1f4ddf70621 → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-09) rev: a006261adef704930a8d946806ba051178a14518 • Updated input 'home-manager': 'github:nix-community/home-manager' (2024-12-06) rev: d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a → 'github:nix-community/home-manager' (2024-12-11) rev: 6e5b2d9e8014b5572e3367937a329e7053458d34 • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2024-12-07) rev: c106f454c136ecca47f84c659c58e19670050412 → 'github:hyprwm/Hyprland' (2024-12-11) rev: df956a0f6fbcfd7397b2d7b86883c0936c7795ec • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-06) rev: 0f415721ee427270bc078ef3a5ba2a308d47461f → 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-10) rev: 77ffd839fd9d60d139dc4a2ad6b6d526f4ad5a17 • Updated input 'material-symbols-src': 'github:beecho01/material-symbols' (2024-12-06) rev: 8f665f5d92821f266c3d0be5385ec990a89c7df3 → 'github:beecho01/material-symbols' (2024-12-09) rev: 266c0a965c6e7f0555e57764ee37fb4fc740e2af • Updated input 'netdaemon-src': 'github:net-daemon/integration' (2024-04-07) rev: d3b7606530ddcaf189ed6f75569e923b22896679 → 'github:net-daemon/integration' (2024-12-11) rev: 2781bf156761a9e3818c710f1240982af1e9f4d9 • Updated input 'nh': 'github:viperML/nh' (2024-12-06) rev: 97e70d0a2c6bddb2a1d081c949ebe1b48c169a87 → 'github:viperML/nh' (2024-12-11) rev: 6a69a145b0c7dbd5616bbded512b8bf8b5d2f8a4 • Updated input 'nix-eval-jobs': 'github:nix-community/nix-eval-jobs' (2024-12-10) rev: 8e82a79fe9329f3be4836ad45d4edf2383e7723a → 'github:nix-community/nix-eval-jobs' (2024-12-11) rev: b1f94fed4af8e7f30665a3bf8b369dc3b8a95884 • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2024-12-08) rev: b15e082eeea1afdf6bfe7aa0dbe4758097958f80 → 'github:fufexan/nix-gaming' (2024-12-10) rev: 89887483a47f9e7e849d43e5992f9da54b3e8e0e • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2024-12-05) rev: d0797a04b81caeae77bcff10a9dde78bc17f5661 → 'github:NixOS/nixpkgs' (2024-12-09) rev: a73246e2eef4c6ed172979932bc80e1404ba2d56 • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2024-12-07) rev: 98e4d443cc6cc78659a33074aae4dee9e4b37bd7 → 'github:nix-community/nixpkgs-wayland' (2024-12-11) rev: 948369631b8a53b56d847bb095d4fba7aea690ee • Updated input 'sops-nix': 'github:Mic92/sops-nix' (2024-12-02) rev: c6134b6fff6bda95a1ac872a2a9d5f32e3c37856 → 'github:Mic92/sops-nix' (2024-12-09) rev: a80af8929781b5fe92ddb8ae52e9027fae780d2a • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-06) rev: 3aa0d8a1e6b811508becabebddcb8df1db490e71 → 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-09) rev: 11d3822f3c06178e8c0d5a8d5d2eb122715060bf • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2024-12-08) rev: acc942bb5f22a9f782b0ec87372157f5fd041219 → 'github:thlucas1/SpotifyWebApiPython' (2024-12-09) rev: c592338c4cf15d06829c3c29b13e34112bdcab98 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2024-12-08) rev: e7fd0c13dcf8468f913af7d7e1124fb2f4476ada → 'github:make-all/tuya-local' (2024-12-11) rev: 9dda00ef89311116f28f2e7f8da3490d05fca0b4 Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:2b5770e40542c158aabba3a1f600d11fd5a0ffe3ff592fcfcf91be617e7c00f8 → sha256:59ddfdc7e592b72665f86d3c4d7d83ff07a5ddfd711e627a1a8eaca0bd76be23 • rssbridge/rss-bridge latest: sha256:9de8e139d3583793a9b707c90efca9a1a66298ffe202b73903ad218e412ddef9 → sha256:02ee316a6cd158706cd15480f44bc4db39ac0f5ab52b76d596083583e7416f7f • postgres 15-alpine: sha256:5d4b2f57adc7739452b0be6cee25f263bfc64b609446bcdd8170354cf8ba8e80 → sha256:fd3abc9557df27613bd5c5e6608fc62fb04dc90c8e79c3322348d600e4b75478 • quay.io/vaultwarden/server latest: sha256:84015c9306cc58f4be8b09c1adc62cfc3b2648b1430e9c15901482f3d870bd14 → sha256:0498b67709f769fee36b1acf02f69e8d9981b051aa5b8200878d938bd537d39d • ghcr.io/linuxserver/bazarr latest: sha256:be98501c48d98eec67a3269cacf884eb122b884d0775cdb8ee9a03947ef2b493 → sha256:954b303893a33b84075857534ad863dc349b8a9e7e838f134e037558ea84823f • ghcr.io/linuxserver/radarr latest: sha256:2e37ae0af799e01f413a97ee82c7e581a5b635816df0380889bc65d554dbeb17 → sha256:18d7873c8b773c10944c475fe96ca8ae79186512d3c6f403bcbd4409c9c4acfc • ghcr.io/linuxserver/sabnzbd latest: sha256:ff682bedd109c45dbad25ab8edcc4f3b837b9ac48c39751fbbb33a858eab97d0 → sha256:d0e307ed7ddbda9c93872f02fed402d538aab52b2605e71a2f80c26f5ba8d3c7 Firefox Addons: sound-volume: 1.5.5 -> 1.5.6 Node modules: @stylistic/eslint-plugin: 2.11.0 -> 2.12.1 @types/node: 22.10.1 -> 22.10.2 eslint-plugin-jsdoc: 50.6.0 -> 50.6.1 typescript-eslint: 8.17.0 -> 8.18.0 some-sass-language-server: 2.1.0 -> 2.1.1 Misc Sources: Vuetorrent: 2.18.0 -> 2.19.0
2024-12-11 18:06:48 -05:00
if (current !== versions.latest) {
updates[dep] = `${current} -> ${versions.latest}`;
}
currentPackageJson[deps][dep] = versions.latest;
});
};
if (currentPackageJson.dependencies) {
updateDeps('dependencies');
}
if (currentPackageJson.devDependencies) {
updateDeps('devDependencies');
}
await writePackageJSON(`${workspaceDir}/package.json`, currentPackageJson);
};
const prefetchNpmDeps = (workspaceDir: string): string => {
npmRun(['install', '--package-lock-only'], workspaceDir);
return spawnSync(
'prefetch-npm-deps',
[`${workspaceDir}/package-lock.json`],
).stdout.toString().replace('\n', '');
};
export default async() => {
const updates = {};
const packages = readdirSync(FLAKE, { withFileTypes: true, recursive: true });
for (const path of packages) {
chore: update sources Flake Inputs: • Updated input 'ags': 'github:Aylur/ags' (2024-11-22) rev: 81159966eb8b39b66c3efc133982fd76920c9605 → 'github:Aylur/ags' (2024-12-09) rev: ce27d3036f7fbebc3476ccbb5a1c51f0603c2475 • Updated input 'astal': 'github:Aylur/astal' (2024-12-06) rev: 4c19d8d06fa25cc6389f37abe8839b4d8be5c0d6 → 'github:Aylur/astal' (2024-12-11) rev: 6fbeb920eae7f5201d828230ac2ac00d78369251 • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2024-12-07) rev: 4a8a5977e620cbcd584a8de96e1bceb83db227a2 → 'github:elchininet/custom-sidebar' (2024-12-11) rev: 7279c0c85ec2dc2669e7580c9a4e11596ef8505e • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay' (2024-12-07) rev: 67db3b139494ad55e489d772c1131d8f03289eea → 'github:matt1432/discord-nightly-overlay' (2024-12-11) rev: 442631368d4fc16766ffa5fc230f1551d27fea2c • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-08) rev: 0b9fe9a89783f42d9c3bea1cf9ebf1f4ddf70621 → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-09) rev: a006261adef704930a8d946806ba051178a14518 • Updated input 'home-manager': 'github:nix-community/home-manager' (2024-12-06) rev: d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a → 'github:nix-community/home-manager' (2024-12-11) rev: 6e5b2d9e8014b5572e3367937a329e7053458d34 • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2024-12-07) rev: c106f454c136ecca47f84c659c58e19670050412 → 'github:hyprwm/Hyprland' (2024-12-11) rev: df956a0f6fbcfd7397b2d7b86883c0936c7795ec • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-06) rev: 0f415721ee427270bc078ef3a5ba2a308d47461f → 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-10) rev: 77ffd839fd9d60d139dc4a2ad6b6d526f4ad5a17 • Updated input 'material-symbols-src': 'github:beecho01/material-symbols' (2024-12-06) rev: 8f665f5d92821f266c3d0be5385ec990a89c7df3 → 'github:beecho01/material-symbols' (2024-12-09) rev: 266c0a965c6e7f0555e57764ee37fb4fc740e2af • Updated input 'netdaemon-src': 'github:net-daemon/integration' (2024-04-07) rev: d3b7606530ddcaf189ed6f75569e923b22896679 → 'github:net-daemon/integration' (2024-12-11) rev: 2781bf156761a9e3818c710f1240982af1e9f4d9 • Updated input 'nh': 'github:viperML/nh' (2024-12-06) rev: 97e70d0a2c6bddb2a1d081c949ebe1b48c169a87 → 'github:viperML/nh' (2024-12-11) rev: 6a69a145b0c7dbd5616bbded512b8bf8b5d2f8a4 • Updated input 'nix-eval-jobs': 'github:nix-community/nix-eval-jobs' (2024-12-10) rev: 8e82a79fe9329f3be4836ad45d4edf2383e7723a → 'github:nix-community/nix-eval-jobs' (2024-12-11) rev: b1f94fed4af8e7f30665a3bf8b369dc3b8a95884 • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2024-12-08) rev: b15e082eeea1afdf6bfe7aa0dbe4758097958f80 → 'github:fufexan/nix-gaming' (2024-12-10) rev: 89887483a47f9e7e849d43e5992f9da54b3e8e0e • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2024-12-05) rev: d0797a04b81caeae77bcff10a9dde78bc17f5661 → 'github:NixOS/nixpkgs' (2024-12-09) rev: a73246e2eef4c6ed172979932bc80e1404ba2d56 • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2024-12-07) rev: 98e4d443cc6cc78659a33074aae4dee9e4b37bd7 → 'github:nix-community/nixpkgs-wayland' (2024-12-11) rev: 948369631b8a53b56d847bb095d4fba7aea690ee • Updated input 'sops-nix': 'github:Mic92/sops-nix' (2024-12-02) rev: c6134b6fff6bda95a1ac872a2a9d5f32e3c37856 → 'github:Mic92/sops-nix' (2024-12-09) rev: a80af8929781b5fe92ddb8ae52e9027fae780d2a • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-06) rev: 3aa0d8a1e6b811508becabebddcb8df1db490e71 → 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-09) rev: 11d3822f3c06178e8c0d5a8d5d2eb122715060bf • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2024-12-08) rev: acc942bb5f22a9f782b0ec87372157f5fd041219 → 'github:thlucas1/SpotifyWebApiPython' (2024-12-09) rev: c592338c4cf15d06829c3c29b13e34112bdcab98 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2024-12-08) rev: e7fd0c13dcf8468f913af7d7e1124fb2f4476ada → 'github:make-all/tuya-local' (2024-12-11) rev: 9dda00ef89311116f28f2e7f8da3490d05fca0b4 Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:2b5770e40542c158aabba3a1f600d11fd5a0ffe3ff592fcfcf91be617e7c00f8 → sha256:59ddfdc7e592b72665f86d3c4d7d83ff07a5ddfd711e627a1a8eaca0bd76be23 • rssbridge/rss-bridge latest: sha256:9de8e139d3583793a9b707c90efca9a1a66298ffe202b73903ad218e412ddef9 → sha256:02ee316a6cd158706cd15480f44bc4db39ac0f5ab52b76d596083583e7416f7f • postgres 15-alpine: sha256:5d4b2f57adc7739452b0be6cee25f263bfc64b609446bcdd8170354cf8ba8e80 → sha256:fd3abc9557df27613bd5c5e6608fc62fb04dc90c8e79c3322348d600e4b75478 • quay.io/vaultwarden/server latest: sha256:84015c9306cc58f4be8b09c1adc62cfc3b2648b1430e9c15901482f3d870bd14 → sha256:0498b67709f769fee36b1acf02f69e8d9981b051aa5b8200878d938bd537d39d • ghcr.io/linuxserver/bazarr latest: sha256:be98501c48d98eec67a3269cacf884eb122b884d0775cdb8ee9a03947ef2b493 → sha256:954b303893a33b84075857534ad863dc349b8a9e7e838f134e037558ea84823f • ghcr.io/linuxserver/radarr latest: sha256:2e37ae0af799e01f413a97ee82c7e581a5b635816df0380889bc65d554dbeb17 → sha256:18d7873c8b773c10944c475fe96ca8ae79186512d3c6f403bcbd4409c9c4acfc • ghcr.io/linuxserver/sabnzbd latest: sha256:ff682bedd109c45dbad25ab8edcc4f3b837b9ac48c39751fbbb33a858eab97d0 → sha256:d0e307ed7ddbda9c93872f02fed402d538aab52b2605e71a2f80c26f5ba8d3c7 Firefox Addons: sound-volume: 1.5.5 -> 1.5.6 Node modules: @stylistic/eslint-plugin: 2.11.0 -> 2.12.1 @types/node: 22.10.1 -> 22.10.2 eslint-plugin-jsdoc: 50.6.0 -> 50.6.1 typescript-eslint: 8.17.0 -> 8.18.0 some-sass-language-server: 2.1.0 -> 2.1.1 Misc Sources: Vuetorrent: 2.18.0 -> 2.19.0
2024-12-11 18:06:48 -05:00
if (
path.name === 'package.json' &&
!path.parentPath.includes('node_modules') &&
!path.parentPath.includes('apps/config')
chore: update sources Flake Inputs: • Updated input 'ags': 'github:Aylur/ags' (2024-11-22) rev: 81159966eb8b39b66c3efc133982fd76920c9605 → 'github:Aylur/ags' (2024-12-09) rev: ce27d3036f7fbebc3476ccbb5a1c51f0603c2475 • Updated input 'astal': 'github:Aylur/astal' (2024-12-06) rev: 4c19d8d06fa25cc6389f37abe8839b4d8be5c0d6 → 'github:Aylur/astal' (2024-12-11) rev: 6fbeb920eae7f5201d828230ac2ac00d78369251 • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2024-12-07) rev: 4a8a5977e620cbcd584a8de96e1bceb83db227a2 → 'github:elchininet/custom-sidebar' (2024-12-11) rev: 7279c0c85ec2dc2669e7580c9a4e11596ef8505e • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay' (2024-12-07) rev: 67db3b139494ad55e489d772c1131d8f03289eea → 'github:matt1432/discord-nightly-overlay' (2024-12-11) rev: 442631368d4fc16766ffa5fc230f1551d27fea2c • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-08) rev: 0b9fe9a89783f42d9c3bea1cf9ebf1f4ddf70621 → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2024-12-09) rev: a006261adef704930a8d946806ba051178a14518 • Updated input 'home-manager': 'github:nix-community/home-manager' (2024-12-06) rev: d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a → 'github:nix-community/home-manager' (2024-12-11) rev: 6e5b2d9e8014b5572e3367937a329e7053458d34 • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2024-12-07) rev: c106f454c136ecca47f84c659c58e19670050412 → 'github:hyprwm/Hyprland' (2024-12-11) rev: df956a0f6fbcfd7397b2d7b86883c0936c7795ec • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-06) rev: 0f415721ee427270bc078ef3a5ba2a308d47461f → 'github:Jovian-Experiments/Jovian-NixOS' (2024-12-10) rev: 77ffd839fd9d60d139dc4a2ad6b6d526f4ad5a17 • Updated input 'material-symbols-src': 'github:beecho01/material-symbols' (2024-12-06) rev: 8f665f5d92821f266c3d0be5385ec990a89c7df3 → 'github:beecho01/material-symbols' (2024-12-09) rev: 266c0a965c6e7f0555e57764ee37fb4fc740e2af • Updated input 'netdaemon-src': 'github:net-daemon/integration' (2024-04-07) rev: d3b7606530ddcaf189ed6f75569e923b22896679 → 'github:net-daemon/integration' (2024-12-11) rev: 2781bf156761a9e3818c710f1240982af1e9f4d9 • Updated input 'nh': 'github:viperML/nh' (2024-12-06) rev: 97e70d0a2c6bddb2a1d081c949ebe1b48c169a87 → 'github:viperML/nh' (2024-12-11) rev: 6a69a145b0c7dbd5616bbded512b8bf8b5d2f8a4 • Updated input 'nix-eval-jobs': 'github:nix-community/nix-eval-jobs' (2024-12-10) rev: 8e82a79fe9329f3be4836ad45d4edf2383e7723a → 'github:nix-community/nix-eval-jobs' (2024-12-11) rev: b1f94fed4af8e7f30665a3bf8b369dc3b8a95884 • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2024-12-08) rev: b15e082eeea1afdf6bfe7aa0dbe4758097958f80 → 'github:fufexan/nix-gaming' (2024-12-10) rev: 89887483a47f9e7e849d43e5992f9da54b3e8e0e • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2024-12-05) rev: d0797a04b81caeae77bcff10a9dde78bc17f5661 → 'github:NixOS/nixpkgs' (2024-12-09) rev: a73246e2eef4c6ed172979932bc80e1404ba2d56 • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2024-12-07) rev: 98e4d443cc6cc78659a33074aae4dee9e4b37bd7 → 'github:nix-community/nixpkgs-wayland' (2024-12-11) rev: 948369631b8a53b56d847bb095d4fba7aea690ee • Updated input 'sops-nix': 'github:Mic92/sops-nix' (2024-12-02) rev: c6134b6fff6bda95a1ac872a2a9d5f32e3c37856 → 'github:Mic92/sops-nix' (2024-12-09) rev: a80af8929781b5fe92ddb8ae52e9027fae780d2a • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-06) rev: 3aa0d8a1e6b811508becabebddcb8df1db490e71 → 'github:thlucas1/homeassistantcomponent_spotifyplus' (2024-12-09) rev: 11d3822f3c06178e8c0d5a8d5d2eb122715060bf • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2024-12-08) rev: acc942bb5f22a9f782b0ec87372157f5fd041219 → 'github:thlucas1/SpotifyWebApiPython' (2024-12-09) rev: c592338c4cf15d06829c3c29b13e34112bdcab98 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2024-12-08) rev: e7fd0c13dcf8468f913af7d7e1124fb2f4476ada → 'github:make-all/tuya-local' (2024-12-11) rev: 9dda00ef89311116f28f2e7f8da3490d05fca0b4 Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:2b5770e40542c158aabba3a1f600d11fd5a0ffe3ff592fcfcf91be617e7c00f8 → sha256:59ddfdc7e592b72665f86d3c4d7d83ff07a5ddfd711e627a1a8eaca0bd76be23 • rssbridge/rss-bridge latest: sha256:9de8e139d3583793a9b707c90efca9a1a66298ffe202b73903ad218e412ddef9 → sha256:02ee316a6cd158706cd15480f44bc4db39ac0f5ab52b76d596083583e7416f7f • postgres 15-alpine: sha256:5d4b2f57adc7739452b0be6cee25f263bfc64b609446bcdd8170354cf8ba8e80 → sha256:fd3abc9557df27613bd5c5e6608fc62fb04dc90c8e79c3322348d600e4b75478 • quay.io/vaultwarden/server latest: sha256:84015c9306cc58f4be8b09c1adc62cfc3b2648b1430e9c15901482f3d870bd14 → sha256:0498b67709f769fee36b1acf02f69e8d9981b051aa5b8200878d938bd537d39d • ghcr.io/linuxserver/bazarr latest: sha256:be98501c48d98eec67a3269cacf884eb122b884d0775cdb8ee9a03947ef2b493 → sha256:954b303893a33b84075857534ad863dc349b8a9e7e838f134e037558ea84823f • ghcr.io/linuxserver/radarr latest: sha256:2e37ae0af799e01f413a97ee82c7e581a5b635816df0380889bc65d554dbeb17 → sha256:18d7873c8b773c10944c475fe96ca8ae79186512d3c6f403bcbd4409c9c4acfc • ghcr.io/linuxserver/sabnzbd latest: sha256:ff682bedd109c45dbad25ab8edcc4f3b837b9ac48c39751fbbb33a858eab97d0 → sha256:d0e307ed7ddbda9c93872f02fed402d538aab52b2605e71a2f80c26f5ba8d3c7 Firefox Addons: sound-volume: 1.5.5 -> 1.5.6 Node modules: @stylistic/eslint-plugin: 2.11.0 -> 2.12.1 @types/node: 22.10.1 -> 22.10.2 eslint-plugin-jsdoc: 50.6.0 -> 50.6.1 typescript-eslint: 8.17.0 -> 8.18.0 some-sass-language-server: 2.1.0 -> 2.1.1 Misc Sources: Vuetorrent: 2.18.0 -> 2.19.0
2024-12-11 18:06:48 -05:00
) {
await updatePackageJson(path.parentPath, updates);
const hash = prefetchNpmDeps(path.parentPath);
replaceInFile(
/npmDepsHash = ".*";/,
`npmDepsHash = "${hash}";`,
`${path.parentPath}/default.nix`,
);
}
}
return Object.entries(updates)
.map(([key, dep]) => `${key}: ${dep}`)
.join('\n');
};