@zaininnari/postcss-cachebuster 0.3.0 → 0.4.0

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.
@@ -10,7 +10,7 @@ jobs:
10
10
 
11
11
  strategy:
12
12
  matrix:
13
- node-version: [18, 20, 22, 24]
13
+ node-version: [20, 22, 24]
14
14
 
15
15
  steps:
16
16
  - uses: actions/checkout@v4
@@ -10,7 +10,7 @@ jobs:
10
10
 
11
11
  strategy:
12
12
  matrix:
13
- node-version: [18, 20, 22, 24]
13
+ node-version: [20, 22, 24]
14
14
 
15
15
  steps:
16
16
  - uses: actions/checkout@v4
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptLibraryMappings">
4
+ <includedPredefinedLibrary name="Node.js Core" />
5
+ </component>
6
+ </project>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # Changelog
2
+
3
+ ## 0.4.0 (2025-12-30)
4
+ - update dependencies
5
+ - update support node version 20+
6
+
7
+ ## 0.3.0 (2025-12-29)
8
+ - update npm package
9
+ - update support node version 18+
10
+
11
+ ## Before fork
12
+
13
+ ## 0.1.6 (2018-12-07)
14
+
15
+ ## 0.1.5 (2018-12-07)
16
+
17
+ ## 0.1.4 (2017-01-07)
18
+ Fix multiple css imports in single css file.
19
+
1
20
  ## 0.1.3 (2016-05-27)
2
21
 
3
22
  - `type` can be defined as function.
package/index.mjs CHANGED
@@ -9,7 +9,7 @@ const checksums = {};
9
9
 
10
10
  const plugin = (opts = {}) => {
11
11
  const pattern = /url\((['"])?([^'")]+)(['"])?\)/g;
12
- let supportedProps = [
12
+ const supportedPropsDefault = [
13
13
  'background',
14
14
  'background-image',
15
15
  'border-image',
@@ -22,8 +22,9 @@ const plugin = (opts = {}) => {
22
22
  opts.type = opts.type || 'mtime';
23
23
  opts.paramName = opts.paramName || 'v';
24
24
  opts.hashAlgorithm = opts.hashAlgorithm || 'md5';
25
- supportedProps = opts.supportedProps || supportedProps;
26
- supportedProps = supportedProps.concat(opts.additionalProps || []);
25
+ opts.supportedProps = opts.supportedProps || supportedPropsDefault;
26
+ opts.additionalProps = opts.additionalProps || [];
27
+ const supportedProps = opts.supportedProps.concat(opts.additionalProps);
27
28
 
28
29
  function createCachebuster(assetPath, origPath, type) {
29
30
  let cachebuster;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaininnari/postcss-cachebuster",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Fork of postcss-cachebuster. Cachebusting all local files in css",
5
5
  "keywords": [
6
6
  "postcss",
@@ -46,8 +46,10 @@
46
46
  "sinon": "^21.0.1",
47
47
  "sinon-chai": "^4.0.1"
48
48
  },
49
+ "overrides": {
50
+ "glob": "9.3.5"
51
+ },
49
52
  "scripts": {
50
- "test": "gulp --gulpfile gulpfile.mjs",
51
- "lint:watch": "esw --fix --watch index.mjs"
53
+ "test": "gulp --gulpfile gulpfile.mjs"
52
54
  }
53
55
  }