Skip to content

Commit

Permalink
Fix regeneratorRuntime errors (#815)
Browse files Browse the repository at this point in the history
* Fix regeneratorRuntime errors

This closes #797

* Fix issues modules false values

* fix lint

* use links
  • Loading branch information
crutchcorn authored and hipstersmoothie committed Nov 26, 2019
1 parent c3835b2 commit 7c4c809
Show file tree
Hide file tree
Showing 40 changed files with 808 additions and 361 deletions.
20 changes: 10 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# v0.9.1 (Tue Nov 26 2019)

#### 🐛 Bug Fix
#### 🐛 Bug Fix

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

# v0.9.0 (Tue Nov 26 2019)

#### 🚀 Enhancement
#### 🚀 Enhancement

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

# v0.8.5 (Fri Oct 18 2019)

#### 🐛 Bug Fix
#### 🐛 Bug Fix

- `@jimp/core`
- Image dimensions during exif rotation have been corrected [#791](https://github.com/oliver-moran/jimp/pull/791) (alexander.shcherbakov@btsdigital.kz [@popinguy](https://github.com/popinguy))

#### 🏠 Internal
#### 🏠 Internal

- `@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`
- Upgrade nearly-all dev deps [#799](https://github.com/oliver-moran/jimp/pull/799) ([@popinguy](https://github.com/popinguy) [@hipstersmoothie](https://github.com/hipstersmoothie))

#### 📝 Documentation
#### 📝 Documentation

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

Expand All @@ -50,7 +50,7 @@

# v0.8.4 (Fri Sep 20 2019)

#### 🐛 Bug Fix
#### 🐛 Bug Fix

- `@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`
- TS 3.1 fixed [#798](https://github.com/oliver-moran/jimp/pull/798) ([@crutchcorn](https://github.com/crutchcorn))
Expand All @@ -63,7 +63,7 @@

# v0.8.3 (Wed Sep 18 2019)

#### 🐛 Bug Fix
#### 🐛 Bug Fix

- `@jimp/core`, `@jimp/custom`, `jimp`
- 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))
Expand All @@ -76,7 +76,7 @@

# v0.8.2 (Fri Sep 13 2019)

#### 🐛 Bug Fix
#### 🐛 Bug Fix

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

# v0.8.1 (Thu Sep 12 2019)

#### 🐛 Bug Fix
#### 🐛 Bug Fix

- `@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`
- 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))
Expand All @@ -103,7 +103,7 @@

# v0.8.0 (Sat Sep 07 2019)

#### 🚀 Enhancement
#### 🚀 Enhancement

- `@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`
- Made typings plugin friendly & add typings for every package [#770](https://github.com/oliver-moran/jimp/pull/770) ([@crutchcorn](https://github.com/crutchcorn))
Expand Down
13 changes: 10 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ module.exports = api => {
return {
presets: [
[
'@babel/env',
'@babel/preset-env',
{
useBuiltIns: 'usage'
useBuiltIns: 'usage',
corejs: 3
}
]
],
Expand All @@ -18,6 +19,12 @@ module.exports = api => {
[
'transform-inline-environment-variables',
{ include: ['BABEL_ENV', 'ENV'] }
],
[
'@babel/plugin-transform-runtime',
{
regenerator: true
}
]
].filter(Boolean),

Expand All @@ -31,7 +38,7 @@ module.exports = api => {
)
},
module: {
presets: [['@babel/env', { modules: false }]]
presets: [['@babel/preset-env']]
}
}
};
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
"tsTest:main": "dtslint packages/jimp/types --expectOnly"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
"@babel/preset-env": "^7.6.0",
"@babel/register": "^7.6.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/register": "^7.7.0",
"@babel/runtime": "^7.7.2",
"auto": "^7.6.0",
"babel-eslint": "^10.0.3",
"babel-plugin-add-module-exports": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/custom": "link:../custom",
"chalk": "^2.4.1",
"jimp": "^0.9.1",
"log-symbols": "^2.2.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@
"author": "Oliver Moran <oliver.moran@gmail.com>",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"@jimp/utils": "link:../utils",
"any-base": "^1.1.0",
"buffer": "^5.2.0",
"core-js": "^2.5.7",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2",
"exif-parser": "^0.1.12",
"file-type": "^9.0.0",
"load-bmfont": "^1.3.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function loadFromURL(options, cb) {
if (err) {
return cb(err);
}
if('headers' in response && 'location' in response.headers){

if ('headers' in response && 'location' in response.headers) {
options.url = response.headers.location;
return loadFromURL(options, cb);
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/test/redirect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const httpHandler = (req, res) => {
res.end('Not a valid test endpoint');
break;
}

break;
default:
res.writeHead(404);
Expand Down
5 changes: 3 additions & 2 deletions packages/custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/core": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/core": "link:../core",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"publishConfig": {
"access": "public"
Expand Down
21 changes: 11 additions & 10 deletions packages/jimp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,21 @@
"author": "Oliver Moran <oliver.moran@gmail.com>",
"license": "MIT",
"dependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/plugins": "^0.9.1",
"@jimp/types": "^0.9.1",
"core-js": "^2.5.7",
"@jimp/custom": "link:../custom",
"@jimp/plugins": "link:../plugins",
"@jimp/types": "link:../types",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2",
"regenerator-runtime": "^0.13.3"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
"@babel/preset-env": "^7.6.0",
"@babel/register": "^7.6.0",
"@jimp/test-utils": "^0.9.1",
"@babel/preset-env": "^7.7.1",
"@babel/register": "^7.7.0",
"@jimp/test-utils": "link:../test-utils",
"auto": "^7.6.0",
"babel-eslint": "^10.0.3",
"babel-plugin-add-module-exports": "^1.0.2",
Expand Down
11 changes: 6 additions & 5 deletions packages/plugin-blit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"devDependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/jpeg": "^0.9.1",
"@jimp/test-utils": "^0.9.1"
"@jimp/custom": "link:../custom",
"@jimp/jpeg": "link:../type-jpeg",
"@jimp/test-utils": "link:../test-utils"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5"
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-blur/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5"
Expand Down
9 changes: 5 additions & 4 deletions packages/plugin-circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5"
},
"devDependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/test-utils": "^0.9.1"
"@jimp/custom": "link:../custom",
"@jimp/test-utils": "link:../test-utils"
},
"publishConfig": {
"access": "public"
Expand Down
11 changes: 6 additions & 5 deletions packages/plugin-color/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7",
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2",
"tinycolor2": "^1.4.1"
},
"devDependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/test-utils": "^0.9.1",
"@jimp/types": "^0.9.1"
"@jimp/custom": "link:../custom",
"@jimp/test-utils": "link:../test-utils",
"@jimp/types": "link:../types"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5"
Expand Down
15 changes: 8 additions & 7 deletions packages/plugin-contain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5",
Expand All @@ -30,11 +31,11 @@
"@jimp/plugin-scale": ">=0.3.5"
},
"devDependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/plugin-blit": "^0.9.1",
"@jimp/plugin-resize": "^0.9.1",
"@jimp/plugin-scale": "^0.9.1",
"@jimp/test-utils": "^0.9.1"
"@jimp/custom": "link:../custom",
"@jimp/plugin-blit": "link:../plugin-blit",
"@jimp/plugin-resize": "link:../plugin-resize",
"@jimp/plugin-scale": "link:../plugin-scale",
"@jimp/test-utils": "link:../test-utils"
},
"publishConfig": {
"access": "public"
Expand Down
15 changes: 8 additions & 7 deletions packages/plugin-cover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5",
Expand All @@ -30,11 +31,11 @@
"@jimp/plugin-scale": ">=0.3.5"
},
"devDependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/plugin-crop": "^0.9.1",
"@jimp/plugin-resize": "^0.9.1",
"@jimp/plugin-scale": "^0.9.1",
"@jimp/test-utils": "^0.9.1"
"@jimp/custom": "link:../custom",
"@jimp/plugin-crop": "link:../plugin-crop",
"@jimp/plugin-resize": "link:../plugin-resize",
"@jimp/plugin-scale": "link:../plugin-scale",
"@jimp/test-utils": "link:../test-utils"
},
"publishConfig": {
"access": "public"
Expand Down
9 changes: 5 additions & 4 deletions packages/plugin-crop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"devDependencies": {
"@jimp/custom": "^0.9.1",
"@jimp/test-utils": "^0.9.1"
"@jimp/custom": "link:../custom",
"@jimp/test-utils": "link:../test-utils"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5"
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-displace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5"
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-dither/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@jimp/utils": "^0.9.1",
"core-js": "^2.5.7"
"@jimp/utils": "link:../utils",
"core-js": "^3.4.1",
"@babel/runtime": "^7.7.2"
},
"peerDependencies": {
"@jimp/custom": ">=0.3.5"
Expand Down
Loading

0 comments on commit 7c4c809

Please sign in to comment.