compressorjs-next 2.0.3 → 2.0.4
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 -2
- package/dist/compressor.common.js +1 -1
- package/dist/compressor.esm.js +1 -1
- package/dist/compressor.js +1 -1
- package/dist/compressor.min.js +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Compressor.js Next
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/compressorjs-next) [](https://github.com/j9t/compressorjs-next/actions) [](https://socket.dev/npm/package/compressorjs-next)
|
|
3
|
+
[](https://www.npmjs.com/package/compressorjs-next) [](https://github.com/j9t/compressorjs-next/actions) [](https://socket.dev/npm/package/compressorjs-next) [](https://github.com/j9t/compressorjs-next?sponsor=1)
|
|
4
4
|
|
|
5
5
|
Modernized, optimized, and maintained fork of [Fengyuan Chen’s Compressor.js](https://github.com/fengyuanchen/compressorjs).
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ A JavaScript image compressor and converter. Uses the browser’s native [HTMLCa
|
|
|
20
20
|
|
|
21
21
|
## Migrating from Compressor.js
|
|
22
22
|
|
|
23
|
-
Change the package name from `compressorjs` to `compressorjs-next` in your
|
|
23
|
+
Change the package name from `compressorjs` to `compressorjs-next` in your package.json and imports (`import Compressor from 'compressorjs-next'`).
|
|
24
24
|
|
|
25
25
|
The API is otherwise the same, with these exceptions (as of 2.0.0—follow [the changelog](https://github.com/j9t/compressorjs-next/blob/main/CHANGELOG.md) from there):
|
|
26
26
|
|
|
@@ -328,3 +328,11 @@ compressor.abort();
|
|
|
328
328
|
Supports [browserslist `defaults`](https://browsersl.ist/#q=defaults).
|
|
329
329
|
|
|
330
330
|
**Note:** When the browser’s canvas produces unreliable pixel data—as with Firefox’s `privacy.resistFingerprinting` setting or privacy-focused forks like LibreWolf—, compression, resizing, and format conversion are not possible. In this case, the library falls back to returning the original image with EXIF data stripped (JPEG) or unchanged (other formats).
|
|
331
|
+
|
|
332
|
+
***
|
|
333
|
+
|
|
334
|
+
You might like some of my other work:
|
|
335
|
+
|
|
336
|
+
* Optimization tools: [HTML Minifier Next](https://github.com/j9t/html-minifier-next) · [ObsoHTML](https://github.com/j9t/obsohtml) · [Image Guard](https://github.com/j9t/image-guard) · Compressor.js Next · [.htaccess Punk](https://github.com/j9t/htaccess-punk)
|
|
337
|
+
* Defense tools: [IA Defensa](https://iadefensa.com/solutions/)
|
|
338
|
+
* Resources for quality web development: [Articles](https://meiert.com/topics/development/) · [Books](https://meiert.com/topics/books/) (including [_On Web Development_](https://meiert.com/blog/on-web-development-2/)) · [News](https://frontenddogma.com/) · [Terminology](https://webglossary.info/)
|
package/dist/compressor.esm.js
CHANGED
package/dist/compressor.js
CHANGED
package/dist/compressor.min.js
CHANGED
package/package.json
CHANGED
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
"description": "JavaScript image compressor and converter",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@babel/core": "^7.29.0",
|
|
16
|
-
"@babel/preset-env": "^7.29.
|
|
16
|
+
"@babel/preset-env": "^7.29.5",
|
|
17
17
|
"@eslint/js": "^10.0.0",
|
|
18
18
|
"@rollup/plugin-babel": "^7.0.0",
|
|
19
19
|
"@rollup/plugin-commonjs": "^29.0.2",
|
|
20
20
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
21
|
-
"@vitest/browser-playwright": "^4.1.
|
|
22
|
-
"@vitest/coverage-istanbul": "^4.1.
|
|
21
|
+
"@vitest/browser-playwright": "^4.1.4",
|
|
22
|
+
"@vitest/coverage-istanbul": "^4.1.4",
|
|
23
23
|
"del-cli": "^7.0.0",
|
|
24
|
-
"eslint": "^10.
|
|
25
|
-
"globals": "^17.
|
|
24
|
+
"eslint": "^10.3.0",
|
|
25
|
+
"globals": "^17.6.0",
|
|
26
26
|
"husky": "^9.1.7",
|
|
27
27
|
"playwright": "^1.59.1",
|
|
28
|
-
"rollup": "^4.60.
|
|
29
|
-
"stylelint": "^17.
|
|
28
|
+
"rollup": "^4.60.2",
|
|
29
|
+
"stylelint": "^17.9.1",
|
|
30
30
|
"stylelint-config-standard": "^40.0.0",
|
|
31
31
|
"stylelint-order": "^8.1.1",
|
|
32
32
|
"terser": "^5.46.0",
|
|
33
|
-
"vitest": "^4.1.
|
|
33
|
+
"vitest": "^4.1.4"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"sideEffects": false,
|
|
94
94
|
"type": "module",
|
|
95
95
|
"types": "types/index.d.ts",
|
|
96
|
-
"version": "2.0.
|
|
96
|
+
"version": "2.0.4"
|
|
97
97
|
}
|