vite-plugin-sri4 2.0.0 → 3.0.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/README.md +10 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ A Vite plugin to generate Subresource Integrity (SRI) hashes for your assets dur
|
|
|
16
16
|
- [Best Practices](#best-practices)
|
|
17
17
|
- [Troubleshooting](#troubleshooting)
|
|
18
18
|
- [Contributing](#contributing)
|
|
19
|
+
- [Inspiration](#inspiration)
|
|
19
20
|
- [License](#license)
|
|
20
21
|
|
|
21
22
|
## Features
|
|
@@ -26,6 +27,7 @@ A Vite plugin to generate Subresource Integrity (SRI) hashes for your assets dur
|
|
|
26
27
|
- **Bypass Domains:** Option to specify domains to bypass SRI injection.
|
|
27
28
|
- **Missing Asset Handling:** Configurable warning suppression for missing assets.
|
|
28
29
|
- **Robust Content Support:** Handles various content types including strings, Buffer, and Uint8Array.
|
|
30
|
+
- **Vite Compatibility:** Compatible with Vite 6.0 and 7.0.
|
|
29
31
|
|
|
30
32
|
## Installation
|
|
31
33
|
|
|
@@ -178,6 +180,14 @@ Please make sure to:
|
|
|
178
180
|
- Follow the existing code style
|
|
179
181
|
- Update the CHANGELOG.md
|
|
180
182
|
|
|
183
|
+
## Inspiration
|
|
184
|
+
|
|
185
|
+
This project was inspired by [vite-plugin-sri3](https://github.com/yoyo930021/vite-plugin-sri3), which provides subresource integrity for Vite. We've built upon its foundation to create an enhanced version with additional features and improved compatibility.
|
|
186
|
+
|
|
187
|
+
Other projects that influenced this work:
|
|
188
|
+
- [rollup-plugin-sri](https://github.com/JonasKruckenberg/rollup-plugin-sri)
|
|
189
|
+
- [@small-tech/vite-plugin-sri](https://github.com/small-tech/vite-plugin-sri)
|
|
190
|
+
|
|
181
191
|
## License
|
|
182
192
|
|
|
183
193
|
This project is licensed under the MIT License - see the LICENSE file for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-sri4",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A Vite plugin to generate Subresource Integrity (SRI) hashes for output files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"cross-fetch": "^4.1.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"vite": "^
|
|
30
|
+
"vite": "^6.0.0 || ^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
34
34
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
35
|
-
"@vitest/coverage-v8": "^
|
|
35
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
36
36
|
"cross-fetch": "^4.0.0",
|
|
37
|
+
"memfs": "^4.6.0",
|
|
37
38
|
"rollup": "^4.9.6",
|
|
38
|
-
"vite": "^
|
|
39
|
-
"vitest": "^
|
|
40
|
-
"memfs": "^4.6.0"
|
|
39
|
+
"vite": "^7.0.0",
|
|
40
|
+
"vitest": "^3.2.4"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"vite",
|