@sitelintcode/optimize-image-on-the-client-side 0.0.12 → 0.0.13

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 (2) hide show
  1. package/README.md +13 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,37 +14,20 @@ Optimize image after selecting using `<input type="file">`.
14
14
  npm install @sitelintcode/optimize-image-on-the-client-side --save
15
15
  ```
16
16
 
17
- ### Browser environment
18
-
19
- ```Html
20
- <script src="https://cdn.jsdelivr.net/npm/@sitelintcode/optimize-image-on-the-client-side@0.0.10/dist/optimize-image-on-the-client-side.js"></script>
21
- ```
22
-
23
- #### Notes
24
-
25
- See **0.0.10** version. Don't forget to set desired version. You may check releases: https://github.com/sitelint/optimize-image-on-the-client-side/releases
26
-
27
- jsdelivr.com comment:
28
-
29
- > // omit the version completely to get the latest one
30
- // you should NOT use this in production
31
-
32
- 2. Usage:
33
-
34
17
  ## TypeScript
35
18
 
36
19
  ```TypeScript
37
- import { OptimizeImage } from '@sitelintcode/optimize-image-on-the-client-side';
20
+ import { OptimizeImage } from '@sitelintcode/optimize-image-on-the-client-side';
38
21
 
39
- const optimizeImage: OptimizeImage = new OptimizeImage();
22
+ const optimizeImage: OptimizeImage = new OptimizeImage();
40
23
 
41
- optimizeImage.install();
24
+ optimizeImage.install();
42
25
  ```
43
26
 
44
27
  ## Browser environment
45
28
 
46
29
  ```HTML
47
- <script src="https://cdn.jsdelivr.net/npm/@sitelintcode/optimize-image-on-the-client-side@0.0.10/dist/optimize-image-on-the-client-side.js"></script>
30
+ <script src="https://cdn.jsdelivr.net/npm/@sitelintcode/optimize-image-on-the-client-side@0.0.13/dist/optimize-image-on-the-client-side.js"></script>
48
31
  <script>
49
32
  (function() {
50
33
  const optimizeImage = new window.sitelint.OptimizeImage();
@@ -53,6 +36,15 @@ jsdelivr.com comment:
53
36
  </script>
54
37
  ```
55
38
 
39
+ ### Notes
40
+
41
+ See **0.0.13** version. Don't forget to set desired version. You may check releases: https://github.com/sitelint/optimize-image-on-the-client-side/releases
42
+
43
+ jsdelivr.com comment:
44
+
45
+ > // omit the version completely to get the latest one
46
+ // you should NOT use this in production
47
+
56
48
  ## Technical
57
49
 
58
50
  1. `import { terser } from "rollup-plugin-terser";` was replaced with `import { terser } from "rollup-plugin-minification";` because `rollup-plugin-terser` is not compatible with Rollup 3.x version. See: https://github.com/TrySound/rollup-plugin-terser/issues/119
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sitelintcode/optimize-image-on-the-client-side",
3
3
  "description": "Optimize image on the client side",
4
4
  "author": "Cezary Tomczyk <cezary.tomczyk@gmail.com> (https://www.sitelint.com/)",
5
- "version": "0.0.12",
5
+ "version": "0.0.13",
6
6
  "license": "MOZILLA PUBLIC LICENSE, VERSION 2.0",
7
7
  "node": ">=16",
8
8
  "main": "dist/optimize-image-on-the-client-side.js",