@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.
- package/.github/workflows/test-latest.yml +1 -1
- package/.github/workflows/test.yml +1 -1
- package/.idea/jsLibraryMappings.xml +6 -0
- package/CHANGELOG.md +19 -0
- package/index.mjs +4 -3
- package/package.json +5 -3
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
|
-
|
|
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 ||
|
|
26
|
-
|
|
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
|
+
"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
|
}
|