Commit ae1aa675 authored by Konstantin Alekseev's avatar Konstantin Alekseev
Browse files

playwright: 1.53.1 -> 1.54.1

parent 57a191e6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8,16 +8,16 @@

buildNpmPackage rec {
  pname = "playwright-mcp";
  version = "0.0.29";
  version = "0.0.31";

  src = fetchFromGitHub {
    owner = "Microsoft";
    repo = "playwright-mcp";
    tag = "v${version}";
    hash = "sha256-owSoE3+jSg09dFpM5wv7FJovzsX5ZMp/9IIQhkmSZt0=";
    hash = "sha256-Hw4OUZCHoquX6Ixv7GlsHcKxqOdJEQYfuDPzqYkVNAk=";
  };

  npmDepsHash = "sha256-jweIBhlVci8CFBIYlFp0opc1ilWMcHt0is4qgTiYNcQ=";
  npmDepsHash = "sha256-70/t/mgSBwMv9C3VusbjIMMyy3e3npxQLXqKbdL9xa4=";

  postInstall = ''
    rm -r $out/lib/node_modules/@playwright/mcp/node_modules/playwright
+2 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ in
buildPythonPackage rec {
  pname = "playwright";
  # run ./pkgs/development/python-modules/playwright/update.sh to update
  version = "1.53.0";
  version = "1.54.0";
  pyproject = true;
  disabled = pythonOlder "3.9";

@@ -30,7 +30,7 @@ buildPythonPackage rec {
    owner = "microsoft";
    repo = "playwright-python";
    tag = "v${version}";
    hash = "sha256-jFS2Luq/9mRsXZ65H3VLw+sTBplVNVy/yZYrpF5Hc0M=";
    hash = "sha256-xyuofDL0hWL8Gn4sYNLKte8q/4bMo+3aSbYaf5iWiBk=";
  };

  patches = [
+17 −1
Original line number Diff line number Diff line
@@ -22,6 +22,19 @@ repo_url_prefix="https://github.com/microsoft/playwright/raw"
temp_dir=$(mktemp -d)
trap 'rm -rf "$temp_dir"' EXIT

# Update playwright-mcp package
mcp_version=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s https://api.github.com/repos/microsoft/playwright-mcp/releases/latest | jq -r '.tag_name | sub("^v"; "")')
update-source-version playwright-mcp "$mcp_version"

# Update npmDepsHash for playwright-mcp
pushd "$temp_dir" >/dev/null
curl -fsSL -o package-lock.json "https://raw.githubusercontent.com/microsoft/playwright-mcp/v${mcp_version}/package-lock.json"
mcp_npm_hash=$(prefetch-npm-deps package-lock.json)
rm -f package-lock.json
popd >/dev/null

mcp_package_file="$root/../../../by-name/pl/playwright-mcp/package.nix"
sed -E 's#\bnpmDepsHash = ".*?"#npmDepsHash = "'"$mcp_npm_hash"'"#' -i "$mcp_package_file"


# update binaries of browsers, used by playwright.
@@ -48,6 +61,9 @@ update_browser() {
    else
        if [ "$name" = "ffmpeg" ] || [ "$name" = "chromium-headless-shell" ]; then
            suffix="linux"
        elif [ "$name" = "chromium" ]; then
            stripRoot="true"
            suffix="linux"
        elif [ "$name" = "firefox" ]; then
            stripRoot="true"
            suffix="ubuntu-22.04"
@@ -81,7 +97,7 @@ curl -fsSl \
      )
    ' > "$playwright_dir/browsers.json"

# We currently use Chromium from nixpkgs, so we don't need to download it here
update_browser "chromium" "linux"
update_browser "chromium-headless-shell" "linux"
update_browser "firefox" "linux"
update_browser "webkit" "linux"
+8 −8
Original line number Diff line number Diff line
@@ -2,19 +2,19 @@
  "comment": "This file is kept up to date via update.sh",
  "browsers": {
    "chromium": {
      "revision": "1179",
      "browserVersion": "138.0.7204.23"
      "revision": "1181",
      "browserVersion": "139.0.7258.5"
    },
    "chromium-headless-shell": {
      "revision": "1179",
      "browserVersion": "138.0.7204.23"
      "revision": "1181",
      "browserVersion": "139.0.7258.5"
    },
    "firefox": {
      "revision": "1488",
      "browserVersion": "139.0"
      "revision": "1489",
      "browserVersion": "140.0.2"
    },
    "webkit": {
      "revision": "2182",
      "revision": "2191",
      "revisionOverrides": {
        "debian11-x64": "2105",
        "debian11-arm64": "2105",
@@ -29,7 +29,7 @@
        "ubuntu20.04-x64": "2092",
        "ubuntu20.04-arm64": "2092"
      },
      "browserVersion": "18.5"
      "browserVersion": "26.0"
    },
    "ffmpeg": {
      "revision": "1011",
+4 −4
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ let
      stripRoot = false;
      hash =
        {
          x86_64-linux = "sha256-C545VC0RxFYfKf8XArfVoI2yzrGyfR7vxjryJHfcfBQ=";
          aarch64-linux = "sha256-i+HVf/6Qz2nCLLzPxbRYVFjDDOhd5ETYuHje5YsmsAo=";
          x86_64-linux = "sha256-AYh2urKZdjXCELimYaFihWp0FbDLf4uRrKLJZVxug5M=";
          aarch64-linux = "sha256-diBiy0z51BxGK0PcfQOf1aryUcZesKu/UHBSZUjqwMk=";
        }
        .${system} or throwSystem;
    };
@@ -66,8 +66,8 @@ let
    stripRoot = false;
    hash =
      {
        x86_64-darwin = "sha256-2pe1LS3WXRG/V2k/BNN1MmOOdGoA0WCFhUpZW8TUhic=";
        aarch64-darwin = "sha256-U07QnHFPQXyO3VGWfZvcP8cJEmVJAJ7imj+6DQlN9vQ=";
        x86_64-darwin = "sha256-vIJuDjkasUYlMW0aCOyztyrlh5kvcwNR9GBaoa/yh/M=";
        aarch64-darwin = "sha256-6Q6nz0H2749srdMF/puk/gnG1gQBEnWe9cQO3owL2OU=";
      }
      .${system} or throwSystem;
  };
Loading