Skip to content

Commit

Permalink
[OSCI] Update deprecated Babel plugins (opensearch-project#1155)
Browse files Browse the repository at this point in the history
* Update deprecated Babel plugins

Remove two deprecated Babel plugins and replace with updated plugins

Signed-off-by: Johnathon Bowers <[email protected]>

* Update changelog

Signed-off-by: Johnathon Bowers <[email protected]>

* Update Babel plugins in .babelrc

Signed-off-by: Johnathon Bowers <[email protected]>

---------

Signed-off-by: Johnathon Bowers <[email protected]>
  • Loading branch information
JohnathonBowers authored Dec 11, 2023
1 parent 0d3b6cc commit f2257d1
Show file tree
Hide file tree
Showing 5 changed files with 237 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ module.exports = {
"./scripts/babel/variables-from-scss",
"add-module-exports",
// stage 3
"@babel/proposal-object-rest-spread",
"@babel/transform-object-rest-spread",
// stage 2
"@babel/proposal-class-properties",
"@babel/transform-class-properties",
[
"inline-react-svg",
{
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
- Clean up `react-datepicker` package to remove unnecessary directories and files ([#1067](https://github.com/opensearch-project/oui/pull/1067))
- Bump `@types/react` and `csstype` ([#1105](https://github.com/opensearch-project/oui/pull/1105))
- Add `scripts` folder to lint-es script ([#1143](https://github.com/opensearch-project/oui/pull/1143))
- Update deprecated Babel plugins ([#1155](https://github.com/opensearch-project/oui/pull/1155))

### 🪛 Refactoring

Expand Down
56 changes: 28 additions & 28 deletions i18ntokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -1643,14 +1643,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 275,
"line": 279,
"column": 4,
"index": 10041
"index": 10184
},
"end": {
"line": 278,
"line": 282,
"column": 46,
"index": 10201
"index": 10344
}
},
"filepath": "src/components/datagrid/data_grid.tsx"
Expand All @@ -1661,14 +1661,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 281,
"line": 285,
"column": 10,
"index": 10275
"index": 10418
},
"end": {
"line": 283,
"line": 287,
"column": 52,
"index": 10397
"index": 10540
}
},
"filepath": "src/components/datagrid/data_grid.tsx"
Expand All @@ -1679,14 +1679,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 990,
"line": 1004,
"column": 4,
"index": 32868
"index": 33235
},
"end": {
"line": 995,
"line": 1009,
"column": 53,
"index": 33041
"index": 33408
}
},
"filepath": "src/components/datagrid/data_grid.tsx"
Expand All @@ -1697,14 +1697,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 990,
"line": 1004,
"column": 4,
"index": 32868
"index": 33235
},
"end": {
"line": 995,
"line": 1009,
"column": 53,
"index": 33041
"index": 33408
}
},
"filepath": "src/components/datagrid/data_grid.tsx"
Expand All @@ -1715,14 +1715,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 1031,
"line": 1045,
"column": 20,
"index": 34079
"index": 34453
},
"end": {
"line": 1041,
"line": 1055,
"column": 3,
"index": 34366
"index": 34740
}
},
"filepath": "src/components/datagrid/data_grid.tsx"
Expand All @@ -1733,14 +1733,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 1043,
"line": 1057,
"column": 25,
"index": 34394
"index": 34768
},
"end": {
"line": 1052,
"line": 1066,
"column": 3,
"index": 34644
"index": 35018
}
},
"filepath": "src/components/datagrid/data_grid.tsx"
Expand All @@ -1751,14 +1751,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 1171,
"line": 1185,
"column": 18,
"index": 39758
"index": 40132
},
"end": {
"line": 1174,
"line": 1188,
"column": 20,
"index": 39911
"index": 40285
}
},
"filepath": "src/components/datagrid/data_grid.tsx"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@
"@axe-core/puppeteer": "4.6.1",
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-async-to-generator": "^7.10.4",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-object-rest-spread": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
Expand Down
Loading

0 comments on commit f2257d1

Please sign in to comment.