jimp 0.17.9 → 0.17.10

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.17.9 (Sat Feb 04 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - switch from browserify to webpack [#1140](https://github.com/jimp-dev/jimp/pull/1140) ([@hipstersmoothie](https://github.com/hipstersmoothie))
6
+
7
+ #### Authors: 1
8
+
9
+ - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
10
+
11
+ ---
12
+
1
13
  # v0.17.6 (Sat Feb 04 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
package/README.md CHANGED
@@ -77,21 +77,6 @@ If you're using a web bundles (webpack, rollup, parcel) you can benefit from usi
77
77
  import Jimp from "jimp/es";
78
78
  ```
79
79
 
80
- ### WebPack
81
-
82
- If you're using webpack you can set `process.browser` to true and your build of jimp will exclude certain parts, making it load faster.
83
-
84
- ```js
85
- {
86
- plugins: [
87
- new webpack.DefinePlugin({
88
- 'process.browser': 'true'
89
- }),
90
- ...
91
- ],
92
- }
93
- ```
94
-
95
80
  ## Basic usage
96
81
 
97
82
  The static `Jimp.read` method takes the path to a file, URL, dimensions, a Jimp instance or a buffer and returns a Promise:
@@ -5,7 +5,7 @@
5
5
  </head>
6
6
  <body>
7
7
  <h1>Demonstrates loading a local file using Jimp on the main thread</h1>
8
- <script src="../lib/jimp.min.js"></script>
8
+ <script src="../lib/jimp.js"></script>
9
9
  <script>
10
10
  Jimp.read(
11
11
  "https://upload.wikimedia.org/wikipedia/commons/0/01/Bot-Test.jpg"
@@ -1,7 +1,7 @@
1
1
  /* eslint-env worker */
2
2
  /* global Jimp */
3
3
 
4
- importScripts("../lib/jimp.min.js");
4
+ importScripts("../lib/jimp.js");
5
5
 
6
6
  self.addEventListener("message", (e) => {
7
7
  Jimp.read(e.data).then((lenna) => {
@@ -5,7 +5,7 @@
5
5
  </head>
6
6
  <body>
7
7
  <!-- Demonstrates loading a local file using Jimp on the main thread -->
8
- <script src="../lib/jimp.min.js"></script>
8
+ <script src="../lib/jimp.js"></script>
9
9
  <script>
10
10
  function dropShadow(x, y, b, a) {
11
11
  var img = new Jimp(