From 103529b6c38f4d749dfffbd968230c76daaeab95 Mon Sep 17 00:00:00 2001 From: Wei Hou Date: Thu, 12 Oct 2017 11:33:43 -0500 Subject: [PATCH 1/2] Adding babel-object-assign and transform-runtime to polyfill 'promise' and 'object.assign' in a local scope --- .babelrc | 12 +++++++++++- package.json | 5 ++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.babelrc b/.babelrc index c13c5f6..d06247b 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,13 @@ { - "presets": ["es2015"] + "presets": [ + ["env", { + "targets": { + "browsers": ["last 2 versions", "iOS >=10", "ie >= 10"] + } + }] + ], + "plugins": [ + "transform-object-assign", + "transform-runtime", + ] } diff --git a/package.json b/package.json index e727796..3a28f26 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,9 @@ "devDependencies": { "babel-cli": "^6.11.4", "babel-core": "^6.13.1", - "babel-preset-es2015": "^6.6.0", + "babel-plugin-transform-object-assign": "^6.22.0", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-preset-env": "^1.6.0", "chai": "3.5.0", "eslint": "^2.11.1", "eslint-config-airbnb-base": "^3.0.1", @@ -29,6 +31,7 @@ "mocha": "2.4.5" }, "dependencies": { + "babel-runtime": "^6.26.0", "uuid": "^3.0.0" }, "engines": { From 5dfe718a1b66970fc70096cf35afaa712ed1a01f Mon Sep 17 00:00:00 2001 From: Wei Hou Date: Thu, 12 Oct 2017 11:36:11 -0500 Subject: [PATCH 2/2] Bump version and update contributors list --- CONTRIBUTORS.md | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 59f0999..776311e 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -10,3 +10,4 @@ Cerner Corporation [@gneatgeek]: https://github.com/gneatgeek [@calebmeyer]: https://github.com/calebmeyer [@marcbachmann]: https://github.com/marcbachmann +[@kafkahw]: https://github.com/kafkahw diff --git a/package.json b/package.json index 3a28f26..c04e657 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jsonrpc-dispatch", - "version": "2.2.0", + "version": "2.3.0", "description": "An unopinionated JSONRPC dispatcher for JavaScript", "main": "lib/src/index.js", "scripts": {