maplibre / maplibre-gl-geocoder

Geocoding for MapLibre
ISC License
57 stars 19 forks source link

fix: update vulnerable version of nanoid to 3.2.0 #35

Closed thaddmt closed 2 years ago

thaddmt commented 2 years ago

Overview

wipfli commented 2 years ago

Are we using package-lock.json at all?

wipfli commented 2 years ago

What are the breaking changes in nanoid v3?

thaddmt commented 2 years ago

Are we using package-lock.json at all?

Going to make a separate PR after this to use package-lock.json. Was mostly using yarn before this but figure most of the other maplibre packages use NPM and we should follow suit here.

wipfli commented 2 years ago

Nice. In GL JS we use nvm use 16. Ideally we do the same here.

thaddmt commented 2 years ago

What are the breaking changes in nanoid v3?

Actually realized after looking into it more we removed the code that used nanoid when we forked from mapbox-gl-geocoder so it is no longer needed :)

wipfli commented 2 years ago

You are right, and there are more in the devDependencies:

➜  maplibre-gl-geocoder git:(main) npx depcheck
Unused dependencies
* nanoid
Unused devDependencies
* brfs
* browserify
* budo
* documentation
* envify
* eslint
* husky
* smokestack
* tap-color
* tap-status
* uglify-js
wipfli commented 2 years ago

If you migrate package-lock.json to v2, please also update the contributors guidelines and tell people to use nvm use 16.

thaddmt commented 2 years ago

You are right, and there are more in the devDependencies:

➜  maplibre-gl-geocoder git:(main) npx depcheck
Unused dependencies
* nanoid
Unused devDependencies
* brfs
* browserify
* budo
* documentation
* envify
* eslint
* husky
* smokestack
* tap-color
* tap-status
* uglify-js

Yep! was planning to get to those also in a separate PR since I wanted to take more time to verify they aren't needed