Skip to content

Commit 0fe0093

Browse files
committed
feat: drop nullish-coalescing-operator and optional-chaining in favor of typescript 3.7.0
1 parent 3382cb7 commit 0fe0093

9 files changed

+24
-131
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ So that you can use babel to transform proposals which are current in stage 0-2
3838
4. [function-sent](https://www.npmjs.com/package/@babel/plugin-proposal-function-sent)
3939
5. [json-strings](https://www.npmjs.com/package/@babel/plugin-proposal-json-strings)
4040
6. [logical-assignment-operators](https://www.npmjs.com/package/@babel/plugin-proposal-logical-assignment-operators)
41-
7. [nullish-coalescing-operator](https://www.npmjs.com/package/@babel/plugin-proposal-nullish-coalescing-operator)
42-
8. [optional-chaining](https://www.npmjs.com/package/@babel/plugin-proposal-optional-chaining)
43-
9. [partial-application](https://www.npmjs.com/package/@babel/plugin-proposal-partial-application)
44-
10. [pipeline-operator](https://www.npmjs.com/package/@babel/plugin-proposal-pipeline-operator)
45-
11. [private-methods](https://www.npmjs.com/package/@babel/plugin-proposal-private-methods)
46-
12. [throw-expressions](https://www.npmjs.com/package/@babel/plugin-proposal-throw-expressions)
47-
13. [v8intrinsic](./v8intrinsic.js) - [Further Detail](https://babeljs.io/blog/2019/09/05/7.6.0#v8-intrinsic-runtime-functions-parsing-10148-https-githubcom-babel-babel-pull-10148)
41+
7. [partial-application](https://www.npmjs.com/package/@babel/plugin-proposal-partial-application)
42+
8. [pipeline-operator](https://www.npmjs.com/package/@babel/plugin-proposal-pipeline-operator)
43+
9. [private-methods](https://www.npmjs.com/package/@babel/plugin-proposal-private-methods)
44+
10. [throw-expressions](https://www.npmjs.com/package/@babel/plugin-proposal-throw-expressions)
45+
11. [v8intrinsic](./v8intrinsic.js) - [Further Detail](https://babeljs.io/blog/2019/09/05/7.6.0#v8-intrinsic-runtime-functions-parsing-10148-https-githubcom-babel-babel-pull-10148)
4846

4947
## Install
5048

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "babel-preset-proposal-typescript",
3-
"version": "1.4.6",
3+
"version": "1.5.0",
44
"description": "Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.",
55
"repository": "[email protected]/rx-ts/babel-preset-proposal-typescript.git",
66
"author": "JounQin <[email protected]>",
@@ -38,8 +38,8 @@
3838
"test": "jest"
3939
},
4040
"peerDependencies": {
41-
"@babel/core": "^7.6.4",
42-
"typescript": "^3.0.0"
41+
"@babel/core": "^7.7.2",
42+
"typescript": "^3.7.2"
4343
},
4444
"dependencies": {
4545
"@babel/helper-plugin-utils": "^7.0.0",
@@ -69,10 +69,11 @@
6969
"babel-jest": "^24.9.0",
7070
"babel-preset-proposal-typescript": "link:.",
7171
"jest": "^24.9.0",
72-
"npm-run-all": "^4.1.5"
72+
"npm-run-all": "^4.1.5",
73+
"typescript": "^3.7.2"
7374
},
7475
"resolutions": {
75-
"prettier": "^1.19.1",
76-
"typescript": "~3.6.4"
76+
"@babel/core": "^7.7.2",
77+
"prettier": "^1.19.1"
7778
}
7879
}

test/__snapshots__/nullish-coalescing-operator.spec.ts.snap

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/__snapshots__/optional-chaining.spec.ts.snap

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/nullish-coalescing-operator.spec.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/nullish-coalescing-operator.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

test/optional-chaining.spec.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

test/optional-chaining.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

yarn.lock

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -151,27 +151,7 @@
151151
dependencies:
152152
"@babel/highlight" "^7.0.0"
153153

154-
155-
version "7.6.2"
156-
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.6.2.tgz#069a776e8d5e9eefff76236bc8845566bd31dd91"
157-
integrity sha512-l8zto/fuoZIbncm+01p8zPSDZu/VuuJhAfA7d/AbzM09WR7iVhavvfNDYCNpo1VvLk6E6xgAoP9P+/EMJHuRkQ==
158-
dependencies:
159-
"@babel/code-frame" "^7.5.5"
160-
"@babel/generator" "^7.6.2"
161-
"@babel/helpers" "^7.6.2"
162-
"@babel/parser" "^7.6.2"
163-
"@babel/template" "^7.6.0"
164-
"@babel/traverse" "^7.6.2"
165-
"@babel/types" "^7.6.0"
166-
convert-source-map "^1.1.0"
167-
debug "^4.1.0"
168-
json5 "^2.1.0"
169-
lodash "^4.17.13"
170-
resolve "^1.3.2"
171-
semver "^5.4.1"
172-
source-map "^0.5.0"
173-
174-
"@babel/core@^7.1.0", "@babel/core@^7.7.2":
154+
"@babel/[email protected]", "@babel/core@^7.1.0", "@babel/core@^7.7.2":
175155
version "7.7.2"
176156
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.2.tgz#ea5b99693bcfc058116f42fa1dd54da412b29d91"
177157
integrity sha512-eeD7VEZKfhK1KUXGiyPFettgF3m513f8FoBSWiQ1xTvl1RAopLs42Wp9+Ze911I6H0N9lNqJMDgoZT7gHsipeQ==
@@ -191,7 +171,7 @@
191171
semver "^5.4.1"
192172
source-map "^0.5.0"
193173

194-
"@babel/generator@^7.0.0-beta.44", "@babel/generator@^7.4.0", "@babel/generator@^7.6.2", "@babel/generator@^7.7.2":
174+
"@babel/generator@^7.0.0-beta.44", "@babel/generator@^7.4.0", "@babel/generator@^7.7.2":
195175
version "7.7.2"
196176
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.7.2.tgz#2f4852d04131a5e17ea4f6645488b5da66ebf3af"
197177
integrity sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==
@@ -384,7 +364,7 @@
384364
"@babel/traverse" "^7.7.0"
385365
"@babel/types" "^7.7.0"
386366

387-
"@babel/helpers@^7.6.2", "@babel/helpers@^7.7.0":
367+
"@babel/helpers@^7.7.0":
388368
version "7.7.0"
389369
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.7.0.tgz#359bb5ac3b4726f7c1fde0ec75f64b3f4275d60b"
390370
integrity sha512-VnNwL4YOhbejHb7x/b5F39Zdg5vIQpUUNzJwx0ww1EcVRt41bbGRZWhAURrfY32T5zTT3qwNOQFWpn+P0i0a2g==
@@ -402,7 +382,7 @@
402382
esutils "^2.0.2"
403383
js-tokens "^4.0.0"
404384

405-
"@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.6.2", "@babel/parser@^7.7.0", "@babel/parser@^7.7.2", "@babel/parser@^7.7.3":
385+
"@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.7.0", "@babel/parser@^7.7.2", "@babel/parser@^7.7.3":
406386
version "7.7.3"
407387
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.3.tgz#5fad457c2529de476a248f75b0f090b3060af043"
408388
integrity sha512-bqv+iCo9i+uLVbI0ILzKkvMorqxouI+GbV13ivcARXn9NNEabi2IEz912IgNpT/60BNXac5dgcfjb94NjsF33A==
@@ -1048,7 +1028,7 @@
10481028
dependencies:
10491029
regenerator-runtime "^0.13.2"
10501030

1051-
"@babel/template@^7.4.0", "@babel/template@^7.6.0", "@babel/template@^7.7.0":
1031+
"@babel/template@^7.4.0", "@babel/template@^7.7.0":
10521032
version "7.7.0"
10531033
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.0.tgz#4fadc1b8e734d97f56de39c77de76f2562e597d0"
10541034
integrity sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==
@@ -1057,7 +1037,7 @@
10571037
"@babel/parser" "^7.7.0"
10581038
"@babel/types" "^7.7.0"
10591039

1060-
"@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.6.2", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.2":
1040+
"@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.2":
10611041
version "7.7.2"
10621042
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.7.2.tgz#ef0a65e07a2f3c550967366b3d9b62a2dcbeae09"
10631043
integrity sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==
@@ -1072,7 +1052,7 @@
10721052
globals "^11.1.0"
10731053
lodash "^4.17.13"
10741054

1075-
"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.6.0", "@babel/types@^7.7.0", "@babel/types@^7.7.1", "@babel/types@^7.7.2":
1055+
"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.7.0", "@babel/types@^7.7.1", "@babel/types@^7.7.2":
10761056
version "7.7.2"
10771057
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.7.2.tgz#550b82e5571dcd174af576e23f0adba7ffc683f7"
10781058
integrity sha512-YTf6PXoh3+eZgRCBzzP25Bugd2ngmpQVrk7kXX0i5N9BO7TFBtIgZYs7WtxtOGs8e6A4ZI7ECkbBCEHeXocvOA==
@@ -2877,7 +2857,7 @@ conventional-commits-parser@^2.1.0:
28772857
through2 "^2.0.0"
28782858
trim-off-newlines "^1.0.0"
28792859

2880-
convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.7.0:
2860+
convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.7.0:
28812861
version "1.7.0"
28822862
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
28832863
integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==
@@ -9118,10 +9098,10 @@ type-fest@^0.6.0:
91189098
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b"
91199099
integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==
91209100

9121-
typescript@~3.6.4:
9122-
version "3.6.4"
9123-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d"
9124-
integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==
9101+
typescript@^3.7.2:
9102+
version "3.7.2"
9103+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb"
9104+
integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==
91259105

91269106
uglify-js@^3.1.4:
91279107
version "3.6.8"

0 commit comments

Comments
 (0)