From 687f29fb4b4ff55351ad383b87986347a599bbb6 Mon Sep 17 00:00:00 2001 From: Andrey Kuzmin Date: Fri, 12 Jan 2024 20:00:06 +0100 Subject: [PATCH] Bump to 9.1.0 --- .github/workflows/test.yml | 2 +- .npmignore | 2 ++ README.md | 9 +++++- flake.lock | 60 ++++++++++++++++++++++++++++++++++++++ flake.nix | 17 +++++++++++ package.json | 10 +++---- 6 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba26af2..cef15de 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: ['18', '20'] + node-version: ['18', '20', '21'] steps: - uses: actions/checkout@v2 diff --git a/.npmignore b/.npmignore index b5e3844..f2db076 100644 --- a/.npmignore +++ b/.npmignore @@ -23,3 +23,5 @@ pids test test.js yarn.lock +flake.lock +flake.nix diff --git a/README.md b/README.md index 2ba3c63..385f36c 100644 --- a/README.md +++ b/README.md @@ -204,11 +204,18 @@ module.exports = function (ctx) { 'postcss-modules': options.modules ? {} : false } } -}) +}; ``` ## Changelog +* 9.1.0 + * Bump postcss-load-config to ^5.0.0 + * Ensure options are passed to plugins when using postcss.config.js #170 + * Update deps + * Drop support for node <18 + * Add flake.nix for local dev with `nix develop` + * 9.0.1 * Bump postcss-load-config to ^3.0.0 diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0593d2e --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1701680307, + "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1705084402, + "narHash": "sha256-i+ipI7VgXV+nLi5ZwZ0xCamvD6Iu59vDHe6S2YOoW+Q=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "f65e5ea4794033885e1dafff7e8632e4f8cd1909", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a7bb65f --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShell = pkgs.mkShell { + buildInputs = [ pkgs.nodejs_21 ]; + }; + }); +} diff --git a/package.json b/package.json index 35e3166..eef0574 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "all": true, "check-coverage": true }, - "version": "9.0.1", + "version": "9.1.0", "description": "PostCSS gulp plugin", "main": "index.js", "engines": { @@ -40,16 +40,16 @@ }, "homepage": "https://github.com/postcss/gulp-postcss", "dependencies": { - "fancy-log": "^1.3.3", - "plugin-error": "^1.0.1", + "fancy-log": "^2.0.0", + "plugin-error": "^2.0.1", "postcss-load-config": "^5.0.0", "vinyl-sourcemaps-apply": "^0.2.1" }, "devDependencies": { "eslint": "^5.16.0", "gulp-sourcemaps": "^2.6.5", - "mocha": "^5.2.0", - "nyc": "^12.0.2", + "mocha": "^10.2.0", + "nyc": "^15.1.0", "postcss": "^8.0.0", "proxyquire": "^2.1.0", "sinon": "^6.3.5",