html-minifier-next 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/cli.js +2 -3
  3. package/package.json +5 -6
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # HTML Minifier Next (HTMLMinifier)
2
2
 
3
+ [![NPM version](https://img.shields.io/npm/v/html-minifier-next.svg)](https://www.npmjs.com/package/html-minifier-next)
3
4
  <!-- [![Build Status](https://github.com/j9t/html-minifier-next/workflows/CI/badge.svg)](https://github.com/j9t/html-minifier-next/actions?workflow=CI) -->
4
5
 
5
6
  (This project is based on [Terser’s html-minifier-terser](https://github.com/terser/html-minifier-terser), which in turn is based on [Juriy Zaytsev’s html-minifier](https://github.com/kangax/html-minifier). It was set up because as of May 2025, both html-minifier-terser and html-minifier seem unmaintained. **This project is currently under test.** If it seems maintainable to me, [Jens](https://meiert.com/), even without community support, the project will be updated and documented further. The following documentation largely matches the original project.)
package/cli.js CHANGED
@@ -28,8 +28,7 @@
28
28
  import fs from 'fs';
29
29
  import path from 'path';
30
30
  import { createRequire } from 'module';
31
- import { camelCase } from 'camel-case';
32
- import { paramCase } from 'param-case';
31
+ import { camelCase, paramCase } from 'change-case';
33
32
  import { Command } from 'commander';
34
33
  import { minify } from './src/htmlminifier.js';
35
34
 
@@ -305,4 +304,4 @@ if (inputDir || outputDir) {
305
304
  process.stdin.on('data', function (data) {
306
305
  content += data;
307
306
  }).on('end', writeMinify);
308
- }
307
+ }
package/package.json CHANGED
@@ -5,11 +5,10 @@
5
5
  },
6
6
  "bugs": "https://github.com/j9t/html-minifier-next/issues",
7
7
  "dependencies": {
8
- "camel-case": "^5.0.0",
8
+ "change-case": "^4.1.2",
9
9
  "clean-css": "~5.3.2",
10
10
  "commander": "^13.1.0",
11
11
  "entities": "^6.0.0",
12
- "param-case": "^4.0.0",
13
12
  "relateurl": "^0.2.7",
14
13
  "terser": "^5.15.1"
15
14
  },
@@ -18,9 +17,9 @@
18
17
  "@commitlint/cli": "^19.8.1",
19
18
  "@jest/globals": "^29.5.0",
20
19
  "@rollup/plugin-commonjs": "^28.0.3",
21
- "@rollup/plugin-json": "^6.0.0",
20
+ "@rollup/plugin-json": "^6.1.0",
22
21
  "@rollup/plugin-node-resolve": "^16.0.1",
23
- "@rollup/plugin-terser": "^0.4.3",
22
+ "@rollup/plugin-terser": "^0.4.4",
24
23
  "alpinejs": "^3.12.2",
25
24
  "commitlint-config-non-conventional": "^1.0.1",
26
25
  "eslint": "^8.57.1",
@@ -30,7 +29,7 @@
30
29
  "jest": "^29.5.0",
31
30
  "jest-environment-jsdom": "^29.5.0",
32
31
  "lint-staged": "^16.0.0",
33
- "rollup": "^3.26.0",
32
+ "rollup": "^3.29.5",
34
33
  "rollup-plugin-polyfill-node": "^0.13.0",
35
34
  "vite": "^6.3.5"
36
35
  },
@@ -91,5 +90,5 @@
91
90
  "test:web": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --verbose --environment=jsdom"
92
91
  },
93
92
  "type": "module",
94
- "version": "1.0.0"
93
+ "version": "1.0.1"
95
94
  }