Skip to content

Commit

Permalink
Remove more dependencies
Browse files Browse the repository at this point in the history
Remove core-js:
It looks to be a bunch of pollyfill.
I would like to remove it, and then ev. patch the issues with
dedicated well-know pollyfill

regenerator-runtime:
Was imported in src/controllers/bootstrap.js, but probably not used
anymore.

Cheerio
Is probably not worth to fix it as subdependencies

resize-observer-polyfill
Should not be necessary anymore in 2024
  • Loading branch information
ger-benjamin committed Sep 17, 2024
1 parent ec90ab1 commit 777e20f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 31 deletions.
21 changes: 1 addition & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"angular-ui-date": "1.1.1",
"angular-ui-slider": "0.4.0",
"bootstrap": "4.6.2",
"core-js": "3.38.1",
"corejs-typeahead": "1.3.4",
"d3": "7.9.0",
"file-saver": "2.0.5",
Expand All @@ -98,16 +97,15 @@
"ol-mapbox-style": "12.3.5",
"proj4": "2.12.0",
"qruri": "0.0.4",
"regenerator-runtime": "0.14.1",
"resize-observer-polyfill": "1.5.1",
"rxjs": "7.8.1",
"tinycolor2": "1.6.0"
},
"_peerDependenciesComment_": "Dep. to fix sub-dependencies. Not used directly",
"peerDependencies": {
"cheerio": "1.0.0",
"color-rgba": "3.0.0",
"color-space": "2.0.1"
},
"_optionalDependenciesComment_": "Dep. for plugins",
"optionalDependencies": {
"jsts": "2.11.3",
"localforage": "1.10.0",
Expand Down Expand Up @@ -146,7 +144,7 @@
"@types/jquery": "3.5.30",
"@types/jquery.ui.datetimepicker": "0.3.35",
"@types/jqueryui": "1.12.23",
"@types/jsts": "^0.17.24",
"@types/jsts": "0.17.24",
"@types/node": "20.16.3",
"@types/offscreencanvas": "2019.7.3",
"@types/proj4": "2.5.5",
Expand Down
2 changes: 0 additions & 2 deletions src/controllers/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import $ from 'jquery';
import angular from 'angular';
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import {setupI18n} from 'ngeo/localize/i18n';
import config from 'gmfapi/store/config';
import 'ngeo/auth/index';
Expand Down
2 changes: 0 additions & 2 deletions src/map/swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import angular from 'angular';
import {listen, unlistenByKey} from 'ol/events';
import RenderEvent from 'ol/render/Event';
import {getRenderPixel} from 'ol/render.js';
import ResizeObserver from 'resize-observer-polyfill';
import 'jquery-ui/ui/widgets/draggable';
import htmlTemplate from './swipe.html';
/**
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"mapillary-js/*": ["node_modules/mapillary-js/dist/mapillary.d.ts"],
"moment": ["node_modules/moment/moment.d.ts"],
"jsts/*": ["node_modules/@types/jsts/index.d.ts"],
"localforage/*": ["node_modules/localforage/*"],
"resize-observer-polyfill": ["node_modules/resize-observer-polyfill/src/index.d.ts"]
"localforage/*": ["node_modules/localforage/*"]
}
},
"include": ["src/**/*.js", "src/**/*.ts", "srcapi/**/*.ts", "lib/**/*.js", "api/src/**/*.js"],
Expand Down

0 comments on commit 777e20f

Please sign in to comment.