Skip to content

Commit b52726b

Browse files
adi518adi518tizmagikbgergen
authored
remove core-js (#167)
* remove core-js * update readme * npm update * 9.0.0-1 * Fix babel warning by explicitly setting loose: true for private-methods * 9.0.0-2 * Fix babel proposal ordering * 9.0.0-3 * lint fixes * 9.0.0-4 * Trigger drone build on branch instead of event Co-authored-by: adi518 <[email protected]> Co-authored-by: Jeremy Gayed <[email protected]> Co-authored-by: Bryan Gergen <[email protected]>
1 parent 8ec1e1c commit b52726b

12 files changed

+5833
-1365
lines changed

Diff for: .babelrc

+2-10
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@
22
"plugins": [
33
["@babel/plugin-proposal-decorators", { "legacy": true }],
44
["@babel/plugin-proposal-class-properties", { "loose": true }],
5+
["@babel/plugin-proposal-private-methods", { "loose": true }],
56
"@babel/plugin-proposal-object-rest-spread"
67
],
7-
"presets": [
8-
[
9-
"@babel/preset-env",
10-
{
11-
"useBuiltIns": "usage",
12-
"corejs": 3
13-
}
14-
],
15-
"@babel/preset-react"
16-
]
8+
"presets": ["@babel/preset-env", "@babel/preset-react"]
179
}

Diff for: .drone.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ steps:
1515
- npm run prepare
1616

1717
trigger:
18-
event:
19-
- push
18+
branch:
19+
- master
2020

2121
---
2222
kind: pipeline
@@ -36,8 +36,8 @@ steps:
3636
- npm run prepare
3737

3838
trigger:
39-
event:
40-
- push
39+
branch:
40+
- master
4141

4242
---
4343
kind: pipeline
@@ -57,5 +57,5 @@ steps:
5757
- npm run prepare
5858

5959
trigger:
60-
event:
61-
- push
60+
branch:
61+
- master

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ This library simply merges the tracking data objects together (as it flows throu
493493

494494
You can get the type definitions for React Tracking from DefinitelyTyped using `@types/react-tracking`. For an always up-to-date example of syntax, you should consult [the react-tracking type tests](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-tracking/test/react-tracking-with-types-tests.tsx).
495495

496-
### PropType support
496+
### PropType Support
497497

498498
The `props.tracking` PropType is exported for use, if desired:
499499

@@ -510,3 +510,7 @@ Alternatively, if you want to just silence proptype errors when using [eslint re
510510
}
511511
}
512512
```
513+
514+
### Old Browsers Support
515+
516+
Going forward from version `9.x`, we do not bundle `core-js` (ES6 polyfills) anymore. To support old browsers, please add [`core-js`](https://github.com/zloirock/core-js) to your project.

Diff for: jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
setupFiles: ['raf/polyfill', './setup/enzymeAdapter.js'],
2+
setupFiles: ['raf/polyfill', './jest.setup.js', './setup/enzymeAdapter.js'],
33
};

Diff for: jest.setup.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import 'regenerator-runtime/runtime';

0 commit comments

Comments
 (0)