Commit e8210b2a authored by Salar Rahmanian's avatar Salar Rahmanian Committed by Yt
Browse files

plausible: 1.4.4 -> 1.5.1

parent 0ebddff5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -248,6 +248,7 @@ in {
            # setup
            ${cfg.package}/createdb.sh
            ${cfg.package}/migrate.sh
            ${cfg.package}/bin/plausible eval "(Plausible.Release.prepare() ; Plausible.Auth.create_user(\"$ADMIN_USER_NAME\", \"$ADMIN_USER_EMAIL\", \"$ADMIN_USER_PWD\"))"
            ${optionalString cfg.adminUser.activate ''
              if ! ${cfg.package}/init-admin.sh | grep 'already exists'; then
                psql -d plausible <<< "UPDATE users SET email_verified=true;"
+7 −4
Original line number Diff line number Diff line
@@ -12,20 +12,20 @@

let
  pname = "plausible";
  version = "1.4.4";
  version = "1.5.1";

  src = fetchFromGitHub {
    owner = "plausible";
    repo = "analytics";
    rev = "v${version}";
    hash = "sha256-Exwy+LEafDZITriXiIbc60j555gHy1+hnNKkTxorfLI=";
    hash = "sha256-KcIZMsWlKGCZFi7DrTS8JMWEahdERoExtpBj+7Ec+FQ=";
  };

  # TODO consider using `mix2nix` as soon as it supports git dependencies.
  mixFodDeps = beamPackages.fetchMixDeps {
    pname = "${pname}-deps";
    inherit src version;
    hash = "sha256-ZQfrTxsLzCWFf3vabOk0vyHWZLw69GJovm3vR+7UbMY=";
    hash = "sha256-rLkD2FuNFKU3nB8FT/qPgSVP8H60qEmHtPvcdw4JUF8=";
  };

  yarnDeps = mkYarnModules {
@@ -54,11 +54,14 @@ beamPackages.mixRelease {
    updateScript = ./update.sh;
  };

  postPatch = ''
    substituteInPlace lib/plausible_release.ex --replace 'defp prepare do' 'def prepare do'
  '';

  postBuild = ''
    export HOME=$TMPDIR
    export NODE_OPTIONS=--openssl-legacy-provider # required for webpack compatibility with OpenSSL 3 (https://github.com/webpack/webpack/issues/14532)
    ln -sf ${yarnDeps}/node_modules assets/node_modules
    substituteInPlace assets/package.json --replace '$(npm bin)/' 'npx '
    npm run deploy --prefix ./assets

    # for external task you need a workaround for the no deps check flag
+20 −16
Original line number Diff line number Diff line
{
  "repository": {},
  "license": "MIT",
  "version": "v1.5.1",
  "license": "AGPL-3.0-or-later",
  "scripts": {
    "deploy": "$(npm bin)/webpack --mode production",
    "watch": "$(npm bin)/webpack --mode development --watch",
    "format": "$(npm bin)/prettier --write {css,js}/**",
    "check-format": "$(npm bin)/prettier --check {css,js}/**",
    "lint": "$(npm bin)/eslint js/**"
    "deploy": "webpack --mode production",
    "watch": "webpack --mode development --watch",
    "format": "prettier --write {css,js}/**",
    "check-format": "prettier --check {css,js}/**",
    "lint": "eslint js/**",
    "bundlemon": "bundlemon"
  },
  "dependencies": {
    "@babel/core": "^7.14.3",
    "@babel/preset-env": "^7.14.4",
    "@babel/preset-react": "^7.13.13",
    "@headlessui/react": "^1.3.0",
    "@heroicons/react": "^1.0.1",
    "@heroicons/react": "^2.0.11",
    "@juggle/resize-observer": "^3.3.1",
    "@kunukn/react-collapse": "^2.2.9",
    "@popperjs/core": "^2.11.6",
    "@tailwindcss/aspect-ratio": "^0.2.1",
    "@tailwindcss/forms": "^0.3.2",
    "@tailwindcss/typography": "^0.4.1",
@@ -27,20 +30,21 @@
    "classnames": "^2.3.1",
    "copy-webpack-plugin": "^9.0.0",
    "css-loader": "^5.2.6",
    "css-minimizer-webpack-plugin": "^3.0.1",
    "css-minimizer-webpack-plugin": "^3.2.0",
    "datamaps": "^0.5.9",
    "debounce-promise": "^3.1.2",
    "downshift": "^6.1.3",
    "iframe-resizer": "^4.3.2",
    "mini-css-extract-plugin": "^1.6.0",
    "phoenix": "file:../../tmp/deps/phoenix",
    "phoenix_html": "file:../../tmp/deps/phoenix_html",
    "phoenix": "1.5.0",
    "phoenix_html": "2.12",
    "postcss": "^8.3.0",
    "postcss-loader": "^6.1.1",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-flatpickr": "3.10.5",
    "react-flip-move": "^3.0.4",
    "react-popper": "^2.3.0",
    "react-router-dom": "^5.2.0",
    "react-transition-group": "^4.4.2",
    "tailwindcss": "^2.1.2",
@@ -51,18 +55,18 @@
  },
  "devDependencies": {
    "babel-eslint": "^10.1.0",
    "bundlemon": "^1.4.0",
    "eslint": "^7.2.0",
    "eslint-config-prettier": "^7.0.0",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-prettier": "^3.3.0",
    "eslint-plugin-react": "^7.21.5",
    "eslint-plugin-react-hooks": "^4.2.0",
    "stylelint": "^13.8.0",
    "stylelint-config-prettier": "^8.0.2",
    "stylelint-config-standard": "^20.0.0",
    "stylelint": "^14.1.0",
    "stylelint-config-prettier": "^9.0.3",
    "stylelint-config-standard": "^24.0.0",
    "webpack-bundle-analyzer": "^4.4.2"
  },
  "name": "plausible",
  "version": "v1.4.4"
  "name": "plausible"
}
+2156 −2263

File changed.

Preview size limit exceeded, changes collapsed.

+2004 −2197

File changed.

Preview size limit exceeded, changes collapsed.