marmelab / FakeRest

Patch fetch/XMLHttpRequest to fake a REST API server in the browser, based on JSON data.
MIT License
439 stars 48 forks source link

fakerest using babel-runtime v6 causing deprecation warning using core-js v2 #65

Closed zikowang closed 6 months ago

zikowang commented 6 months ago

Using latest ra-data-fakerest version 4.16.12 while running npm i there is a npm warning:

npm ls returns
├─┬ ra-data-fakerest@4.16.12
│ ├─┬ fakerest@3.5.0
│ │ ├─┬ babel-runtime@6.26.0
│ │ │ ├── core-js@2.6.12
│ │ │ └── regenerator-runtime@0.11.1
│ │ └── lodash@4.17.21 deduped
│ └── ra-core@4.16.12 deduped

npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

While babel 7 does not depend on core-js anymore, is there a chance to upgrade fakerest using babel v7?