Skip to content

Commit 7c4c809

Browse files
crutchcornhipstersmoothie
authored andcommitted
Fix regeneratorRuntime errors (#815)
* Fix regeneratorRuntime errors This closes #797 * Fix issues modules false values * fix lint * use links
1 parent c3835b2 commit 7c4c809

File tree

40 files changed

+808
-361
lines changed

40 files changed

+808
-361
lines changed

CHANGELOG.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# v0.9.1 (Tue Nov 26 2019)
22

3-
#### 🐛 Bug Fix
3+
#### 🐛 Bug Fix
44

55
- `@jimp/core`, `jimp`
66
- Added callback to jimp constructor typings [#810](https://github.com/oliver-moran/jimp/pull/810) ([@crutchcorn](https://github.com/crutchcorn))
@@ -13,7 +13,7 @@
1313

1414
# v0.9.0 (Tue Nov 26 2019)
1515

16-
#### 🚀 Enhancement
16+
#### 🚀 Enhancement
1717

1818
- `jimp`
1919
- Revert exports to match 0.6.4 TS definitions [#820](https://github.com/oliver-moran/jimp/pull/820) ([@crutchcorn](https://github.com/crutchcorn))
@@ -26,17 +26,17 @@
2626

2727
# v0.8.5 (Fri Oct 18 2019)
2828

29-
#### 🐛 Bug Fix
29+
#### 🐛 Bug Fix
3030

3131
- `@jimp/core`
3232
- Image dimensions during exif rotation have been corrected [#791](https://github.com/oliver-moran/jimp/pull/791) ([email protected] [@popinguy](https://github.com/popinguy))
3333

34-
#### 🏠 Internal
34+
#### 🏠 Internal
3535

3636
- `@jimp/cli`, `@jimp/core`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-color`, `@jimp/plugin-crop`, `@jimp/plugin-normalize`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/test-utils`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`
3737
- Upgrade nearly-all dev deps [#799](https://github.com/oliver-moran/jimp/pull/799) ([@popinguy](https://github.com/popinguy) [@hipstersmoothie](https://github.com/hipstersmoothie))
3838

39-
#### 📝 Documentation
39+
#### 📝 Documentation
4040

4141
- Added back mention of required tsconfig options [#800](https://github.com/oliver-moran/jimp/pull/800) ([@popinguy](https://github.com/popinguy))
4242

@@ -50,7 +50,7 @@
5050

5151
# v0.8.4 (Fri Sep 20 2019)
5252

53-
#### 🐛 Bug Fix
53+
#### 🐛 Bug Fix
5454

5555
- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/jpeg`, `@jimp/png`
5656
- TS 3.1 fixed [#798](https://github.com/oliver-moran/jimp/pull/798) ([@crutchcorn](https://github.com/crutchcorn))
@@ -63,7 +63,7 @@
6363

6464
# v0.8.3 (Wed Sep 18 2019)
6565

66-
#### 🐛 Bug Fix
66+
#### 🐛 Bug Fix
6767

6868
- `@jimp/core`, `@jimp/custom`, `jimp`
6969
- Fix issues with typings using classes, publish @core typings, and fix 3.1 typings [#792](https://github.com/oliver-moran/jimp/pull/792) ([@crutchcorn](https://github.com/crutchcorn))
@@ -76,7 +76,7 @@
7676

7777
# v0.8.2 (Fri Sep 13 2019)
7878

79-
#### 🐛 Bug Fix
79+
#### 🐛 Bug Fix
8080

8181
- `jimp`
8282
- must ship types [#794](https://github.com/oliver-moran/jimp/pull/794) ([@hipstersmoothie](https://github.com/hipstersmoothie))
@@ -89,7 +89,7 @@
8989

9090
# v0.8.1 (Thu Sep 12 2019)
9191

92-
#### 🐛 Bug Fix
92+
#### 🐛 Bug Fix
9393

9494
- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/utils`
9595
- Fix 0.8 typings, add type tests [#786](https://github.com/oliver-moran/jimp/pull/786) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie))
@@ -103,7 +103,7 @@
103103

104104
# v0.8.0 (Sat Sep 07 2019)
105105

106-
#### 🚀 Enhancement
106+
#### 🚀 Enhancement
107107

108108
- `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils`
109109
- Made typings plugin friendly & add typings for every package [#770](https://github.com/oliver-moran/jimp/pull/770) ([@crutchcorn](https://github.com/crutchcorn))

babel.config.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ module.exports = api => {
44
return {
55
presets: [
66
[
7-
'@babel/env',
7+
'@babel/preset-env',
88
{
9-
useBuiltIns: 'usage'
9+
useBuiltIns: 'usage',
10+
corejs: 3
1011
}
1112
]
1213
],
@@ -18,6 +19,12 @@ module.exports = api => {
1819
[
1920
'transform-inline-environment-variables',
2021
{ include: ['BABEL_ENV', 'ENV'] }
22+
],
23+
[
24+
'@babel/plugin-transform-runtime',
25+
{
26+
regenerator: true
27+
}
2128
]
2229
].filter(Boolean),
2330

@@ -31,7 +38,7 @@ module.exports = api => {
3138
)
3239
},
3340
module: {
34-
presets: [['@babel/env', { modules: false }]]
41+
presets: [['@babel/preset-env']]
3542
}
3643
}
3744
};

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
"tsTest:main": "dtslint packages/jimp/types --expectOnly"
2626
},
2727
"devDependencies": {
28-
"@babel/cli": "^7.6.0",
29-
"@babel/core": "^7.6.0",
30-
"@babel/plugin-proposal-class-properties": "^7.5.5",
28+
"@babel/cli": "^7.7.0",
29+
"@babel/core": "^7.7.2",
30+
"@babel/plugin-proposal-class-properties": "^7.7.0",
3131
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
32-
"@babel/preset-env": "^7.6.0",
33-
"@babel/register": "^7.6.0",
32+
"@babel/plugin-transform-runtime": "^7.6.2",
33+
"@babel/preset-env": "^7.7.1",
34+
"@babel/register": "^7.7.0",
35+
"@babel/runtime": "^7.7.2",
3436
"auto": "^7.6.0",
3537
"babel-eslint": "^10.0.3",
3638
"babel-plugin-add-module-exports": "^1.0.2",

packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"author": "",
1818
"license": "MIT",
1919
"dependencies": {
20-
"@jimp/custom": "^0.9.1",
20+
"@jimp/custom": "link:../custom",
2121
"chalk": "^2.4.1",
2222
"jimp": "^0.9.1",
2323
"log-symbols": "^2.2.0",

packages/core/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@
3434
"author": "Oliver Moran <[email protected]>",
3535
"license": "MIT",
3636
"dependencies": {
37-
"@jimp/utils": "^0.9.1",
37+
"@jimp/utils": "link:../utils",
3838
"any-base": "^1.1.0",
3939
"buffer": "^5.2.0",
40-
"core-js": "^2.5.7",
40+
"core-js": "^3.4.1",
41+
"@babel/runtime": "^7.7.2",
4142
"exif-parser": "^0.1.12",
4243
"file-type": "^9.0.0",
4344
"load-bmfont": "^1.3.1",

packages/core/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ function loadFromURL(options, cb) {
6363
if (err) {
6464
return cb(err);
6565
}
66-
67-
if('headers' in response && 'location' in response.headers){
66+
67+
if ('headers' in response && 'location' in response.headers) {
6868
options.url = response.headers.location;
6969
return loadFromURL(options, cb);
7070
}

packages/core/test/redirect.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const httpHandler = (req, res) => {
2424
res.end('Not a valid test endpoint');
2525
break;
2626
}
27+
2728
break;
2829
default:
2930
res.writeHead(404);

packages/custom/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"author": "",
1818
"license": "MIT",
1919
"dependencies": {
20-
"@jimp/core": "^0.9.1",
21-
"core-js": "^2.5.7"
20+
"@jimp/core": "link:../core",
21+
"core-js": "^3.4.1",
22+
"@babel/runtime": "^7.7.2"
2223
},
2324
"publishConfig": {
2425
"access": "public"

packages/jimp/package.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,21 @@
5959
"author": "Oliver Moran <[email protected]>",
6060
"license": "MIT",
6161
"dependencies": {
62-
"@jimp/custom": "^0.9.1",
63-
"@jimp/plugins": "^0.9.1",
64-
"@jimp/types": "^0.9.1",
65-
"core-js": "^2.5.7",
62+
"@jimp/custom": "link:../custom",
63+
"@jimp/plugins": "link:../plugins",
64+
"@jimp/types": "link:../types",
65+
"core-js": "^3.4.1",
66+
"@babel/runtime": "^7.7.2",
6667
"regenerator-runtime": "^0.13.3"
6768
},
6869
"devDependencies": {
69-
"@babel/cli": "^7.6.0",
70-
"@babel/core": "^7.6.0",
71-
"@babel/plugin-proposal-class-properties": "^7.5.5",
70+
"@babel/cli": "^7.7.0",
71+
"@babel/core": "^7.7.2",
72+
"@babel/plugin-proposal-class-properties": "^7.7.0",
7273
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
73-
"@babel/preset-env": "^7.6.0",
74-
"@babel/register": "^7.6.0",
75-
"@jimp/test-utils": "^0.9.1",
74+
"@babel/preset-env": "^7.7.1",
75+
"@babel/register": "^7.7.0",
76+
"@jimp/test-utils": "link:../test-utils",
7677
"auto": "^7.6.0",
7778
"babel-eslint": "^10.0.3",
7879
"babel-plugin-add-module-exports": "^1.0.2",

packages/plugin-blit/package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
"author": "",
2121
"license": "MIT",
2222
"dependencies": {
23-
"@jimp/utils": "^0.9.1",
24-
"core-js": "^2.5.7"
23+
"@jimp/utils": "link:../utils",
24+
"core-js": "^3.4.1",
25+
"@babel/runtime": "^7.7.2"
2526
},
2627
"devDependencies": {
27-
"@jimp/custom": "^0.9.1",
28-
"@jimp/jpeg": "^0.9.1",
29-
"@jimp/test-utils": "^0.9.1"
28+
"@jimp/custom": "link:../custom",
29+
"@jimp/jpeg": "link:../type-jpeg",
30+
"@jimp/test-utils": "link:../test-utils"
3031
},
3132
"peerDependencies": {
3233
"@jimp/custom": ">=0.3.5"

packages/plugin-blur/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"author": "",
1818
"license": "MIT",
1919
"dependencies": {
20-
"@jimp/utils": "^0.9.1",
21-
"core-js": "^2.5.7"
20+
"@jimp/utils": "link:../utils",
21+
"core-js": "^3.4.1",
22+
"@babel/runtime": "^7.7.2"
2223
},
2324
"peerDependencies": {
2425
"@jimp/custom": ">=0.3.5"

packages/plugin-circle/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@
2020
"author": "",
2121
"license": "MIT",
2222
"dependencies": {
23-
"@jimp/utils": "^0.9.1",
24-
"core-js": "^2.5.7"
23+
"@jimp/utils": "link:../utils",
24+
"core-js": "^3.4.1",
25+
"@babel/runtime": "^7.7.2"
2526
},
2627
"peerDependencies": {
2728
"@jimp/custom": ">=0.3.5"
2829
},
2930
"devDependencies": {
30-
"@jimp/custom": "^0.9.1",
31-
"@jimp/test-utils": "^0.9.1"
31+
"@jimp/custom": "link:../custom",
32+
"@jimp/test-utils": "link:../test-utils"
3233
},
3334
"publishConfig": {
3435
"access": "public"

packages/plugin-color/package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
"author": "",
2121
"license": "MIT",
2222
"dependencies": {
23-
"@jimp/utils": "^0.9.1",
24-
"core-js": "^2.5.7",
23+
"@jimp/utils": "link:../utils",
24+
"core-js": "^3.4.1",
25+
"@babel/runtime": "^7.7.2",
2526
"tinycolor2": "^1.4.1"
2627
},
2728
"devDependencies": {
28-
"@jimp/custom": "^0.9.1",
29-
"@jimp/test-utils": "^0.9.1",
30-
"@jimp/types": "^0.9.1"
29+
"@jimp/custom": "link:../custom",
30+
"@jimp/test-utils": "link:../test-utils",
31+
"@jimp/types": "link:../types"
3132
},
3233
"peerDependencies": {
3334
"@jimp/custom": ">=0.3.5"

packages/plugin-contain/package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
"author": "",
2121
"license": "MIT",
2222
"dependencies": {
23-
"@jimp/utils": "^0.9.1",
24-
"core-js": "^2.5.7"
23+
"@jimp/utils": "link:../utils",
24+
"core-js": "^3.4.1",
25+
"@babel/runtime": "^7.7.2"
2526
},
2627
"peerDependencies": {
2728
"@jimp/custom": ">=0.3.5",
@@ -30,11 +31,11 @@
3031
"@jimp/plugin-scale": ">=0.3.5"
3132
},
3233
"devDependencies": {
33-
"@jimp/custom": "^0.9.1",
34-
"@jimp/plugin-blit": "^0.9.1",
35-
"@jimp/plugin-resize": "^0.9.1",
36-
"@jimp/plugin-scale": "^0.9.1",
37-
"@jimp/test-utils": "^0.9.1"
34+
"@jimp/custom": "link:../custom",
35+
"@jimp/plugin-blit": "link:../plugin-blit",
36+
"@jimp/plugin-resize": "link:../plugin-resize",
37+
"@jimp/plugin-scale": "link:../plugin-scale",
38+
"@jimp/test-utils": "link:../test-utils"
3839
},
3940
"publishConfig": {
4041
"access": "public"

packages/plugin-cover/package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
"author": "",
2121
"license": "MIT",
2222
"dependencies": {
23-
"@jimp/utils": "^0.9.1",
24-
"core-js": "^2.5.7"
23+
"@jimp/utils": "link:../utils",
24+
"core-js": "^3.4.1",
25+
"@babel/runtime": "^7.7.2"
2526
},
2627
"peerDependencies": {
2728
"@jimp/custom": ">=0.3.5",
@@ -30,11 +31,11 @@
3031
"@jimp/plugin-scale": ">=0.3.5"
3132
},
3233
"devDependencies": {
33-
"@jimp/custom": "^0.9.1",
34-
"@jimp/plugin-crop": "^0.9.1",
35-
"@jimp/plugin-resize": "^0.9.1",
36-
"@jimp/plugin-scale": "^0.9.1",
37-
"@jimp/test-utils": "^0.9.1"
34+
"@jimp/custom": "link:../custom",
35+
"@jimp/plugin-crop": "link:../plugin-crop",
36+
"@jimp/plugin-resize": "link:../plugin-resize",
37+
"@jimp/plugin-scale": "link:../plugin-scale",
38+
"@jimp/test-utils": "link:../test-utils"
3839
},
3940
"publishConfig": {
4041
"access": "public"

packages/plugin-crop/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
"author": "",
2121
"license": "MIT",
2222
"dependencies": {
23-
"@jimp/utils": "^0.9.1",
24-
"core-js": "^2.5.7"
23+
"@jimp/utils": "link:../utils",
24+
"core-js": "^3.4.1",
25+
"@babel/runtime": "^7.7.2"
2526
},
2627
"devDependencies": {
27-
"@jimp/custom": "^0.9.1",
28-
"@jimp/test-utils": "^0.9.1"
28+
"@jimp/custom": "link:../custom",
29+
"@jimp/test-utils": "link:../test-utils"
2930
},
3031
"peerDependencies": {
3132
"@jimp/custom": ">=0.3.5"

packages/plugin-displace/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"author": "",
1818
"license": "MIT",
1919
"dependencies": {
20-
"@jimp/utils": "^0.9.1",
21-
"core-js": "^2.5.7"
20+
"@jimp/utils": "link:../utils",
21+
"core-js": "^3.4.1",
22+
"@babel/runtime": "^7.7.2"
2223
},
2324
"peerDependencies": {
2425
"@jimp/custom": ">=0.3.5"

packages/plugin-dither/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"author": "",
1818
"license": "MIT",
1919
"dependencies": {
20-
"@jimp/utils": "^0.9.1",
21-
"core-js": "^2.5.7"
20+
"@jimp/utils": "link:../utils",
21+
"core-js": "^3.4.1",
22+
"@babel/runtime": "^7.7.2"
2223
},
2324
"peerDependencies": {
2425
"@jimp/custom": ">=0.3.5"

0 commit comments

Comments
 (0)