Skip to content

Commit 8b08427

Browse files
deps: bump the all-npm group with 32 updates (CodeForPhilly#1124)
Removed breaking changes from upgrading Tailwind to v4 and React to v19 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Collum <collum.freedman@gmail.com>
1 parent 106a771 commit 8b08427

File tree

11 files changed

+2914
-2112
lines changed

11 files changed

+2914
-2112
lines changed

package-lock.json

Lines changed: 2851 additions & 2063 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,52 +12,52 @@
1212
"release": "semantic-release"
1313
},
1414
"dependencies": {
15-
"@heroicons/react": "^2.1.5",
16-
"@maptiler/geocoding-control": "^1.4.1",
17-
"@maptiler/sdk": "^2.5.1",
15+
"@heroicons/react": "^2.2.0",
16+
"@maptiler/geocoding-control": "^2.1.6",
17+
"@maptiler/sdk": "^3.0.1",
1818
"@nextui-org/react": "^2.4.6",
1919
"@phosphor-icons/react": "^2.1.7",
20-
"@turf/centroid": "^7.0.0",
21-
"autoprefixer": "10.4.19",
20+
"@turf/centroid": "^7.2.0",
21+
"autoprefixer": "10.4.21",
2222
"clsx": "^2.1.1",
23-
"framer-motion": "^11.3.8",
23+
"framer-motion": "^12.5.0",
2424
"lodash": "^4.17.21",
25-
"maplibre-gl": "^4.5.0",
25+
"maplibre-gl": "^5.2.0",
2626
"multi-range-slider-react": "^2.0.7",
2727
"next": "^14.2.5",
28-
"pmtiles": "^3.0.6",
29-
"postcss": "8.4.39",
28+
"pmtiles": "^4.3.0",
29+
"postcss": "8.5.3",
3030
"protobufjs": "^7.3.2",
3131
"react": "18.3.1",
3232
"react-dom": "18.3.1",
33-
"react-icons": "^5.2.1",
34-
"react-map-gl": "^7.1.7",
33+
"react-icons": "^5.5.0",
34+
"react-map-gl": "^8.0.1",
3535
"sharp": "^0.33.4",
3636
"tailwindcss": "^3.4.6",
37-
"typescript": "5.5.3"
37+
"typescript": "5.8.2"
3838
},
3939
"devDependencies": {
4040
"@semantic-release/changelog": "^6.0.3",
41-
"@semantic-release/commit-analyzer": "^13.0.0",
41+
"@semantic-release/commit-analyzer": "^13.0.1",
4242
"@semantic-release/git": "^10.0.1",
43-
"@semantic-release/github": "^10.1.1",
43+
"@semantic-release/github": "^11.0.1",
4444
"@semantic-release/npm": "^12.0.1",
45-
"@semantic-release/release-notes-generator": "^14.0.1",
46-
"@types/node": "^20.14.11",
45+
"@semantic-release/release-notes-generator": "^14.0.3",
46+
"@types/node": "^22.13.11",
4747
"@types/pbf": "^3.0.5",
48-
"@types/pg": "^8.11.6",
48+
"@types/pg": "^8.11.11",
4949
"@types/react": "^18.3.3",
5050
"@types/react-dom": "^18.3.0",
51-
"@typescript-eslint/eslint-plugin": "^7.16.1",
52-
"@typescript-eslint/parser": "^7.16.1",
53-
"eslint": "^8.56.0",
54-
"eslint-config-next": "^14.2.5",
55-
"eslint-config-prettier": "^9.1.0",
51+
"@typescript-eslint/eslint-plugin": "^8.27.0",
52+
"@typescript-eslint/parser": "^8.27.0",
53+
"eslint": "^9.22.0",
54+
"eslint-config-next": "^15.2.3",
55+
"eslint-config-prettier": "^10.1.1",
5656
"eslint-plugin-custom-rules": "file:./eslint-plugin-custom-rules",
57-
"eslint-plugin-prettier": "^5.0.0",
57+
"eslint-plugin-prettier": "^5.2.3",
5858
"eslint-plugin-react": "^7.34.4",
59-
"postcss-nesting": "^12.1.5",
60-
"postcss-preset-env": "^9.6.0",
59+
"postcss-nesting": "^13.0.1",
60+
"postcss-preset-env": "^10.1.5",
6161
"semantic-release": "^24.0.0"
6262
},
6363
"overrides": {

src/app/find-properties/[[...opa_id]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { centroid } from '@turf/centroid';
1616
import { Position } from 'geojson';
1717
import { ThemeButton } from '../../../components/ThemeButton';
1818
import { useRouter } from 'next/navigation';
19-
import { ViewState } from 'react-map-gl';
19+
import { ViewState } from 'react-map-gl/maplibre';
2020
import { PiX } from 'react-icons/pi';
2121
import DataDisclaimerModal from '@/components/DataDisclaimerModal';
2222

src/components/Filters/MultiSelect.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ const MultiSelect: FC<MultiSelectProps> = ({
3232

3333
// Override Autocomplete design to continue focus on the input after closing the popover menu
3434
useEffect(() => {
35-
!isOpen && inputRef.current?.blur();
35+
if (!isOpen) {
36+
inputRef.current?.blur();
37+
}
3638
}, [isOpen]);
3739

3840
return (

src/components/InfoGraphicSection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Image, { StaticImageData } from 'next/image';
22
import type { IconType } from 'react-icons';
33
import { ThemeButtonLink } from './ThemeButton';
44
import './components-css/InfoGraphicSection.css';
5+
import { JSX } from 'react';
56

67
interface InfoGraphicBase {
78
id?: string;

src/components/MapLegendControl/MapLegend.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React, { ReactElement, Dispatch, SetStateAction } from 'react';
22
import { renderToStaticMarkup } from 'react-dom/server';
33
import { FillLayerSpecification } from 'maplibre-gl';
4-
import { IControl, MapboxMap } from 'react-map-gl';
4+
import { Map as MaplibreMap } from 'maplibre-gl';
5+
import { IControl } from 'react-map-gl/maplibre';
56

67
import '../../app/mapLegend.css';
78

@@ -99,7 +100,7 @@ function MapLegend(layerStyle: FillLayerSpecification) {
99100
}
100101

101102
export class MapLegendControlClass implements IControl {
102-
private _map: MapboxMap | undefined;
103+
private _map: MaplibreMap | undefined;
103104
private _container: HTMLElement;
104105
private handler: () => void;
105106

@@ -117,7 +118,7 @@ export class MapLegendControlClass implements IControl {
117118
}
118119

119120
// able to add event listeners here for interactivity with layer
120-
onAdd = (map: MapboxMap) => {
121+
onAdd = (map: MaplibreMap) => {
121122
this._map = map;
122123
this._container.addEventListener('click', this.handler);
123124
return this._container;

src/components/MapLegendControl/MapLegendControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ControlPosition, FillLayerSpecification } from 'maplibre-gl';
22
import { Dispatch, SetStateAction } from 'react';
3-
import { useControl } from 'react-map-gl';
3+
import { useControl } from 'react-map-gl/maplibre';
44
import { MapLegendControlClass } from './MapLegend';
55

66
interface LegendOptions {

src/components/PropertyAccessOptionContainer.tsx

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,29 @@ const determineCardEnums = (property: any) => {
2727
unavailable.add(PropertyAccess.PRIVATE_LAND_USE);
2828
}
2929

30-
property.access_process === 'Go through Land Bank'
31-
? (best = PropertyAccess.LAND_BANK)
32-
: unavailable.add(PropertyAccess.LAND_BANK);
30+
if (property.access_process === 'Go through Land Bank') {
31+
best = PropertyAccess.LAND_BANK;
32+
} else {
33+
unavailable.add(PropertyAccess.LAND_BANK);
34+
}
3335

34-
property.side_yard_eligible === 'Yes'
35-
? (neighbor = PropertyAccess.SIDE_YARD)
36-
: unavailable.add(PropertyAccess.SIDE_YARD);
36+
if (property.side_yard_eligible === 'Yes') {
37+
neighbor = PropertyAccess.SIDE_YARD;
38+
} else {
39+
unavailable.add(PropertyAccess.SIDE_YARD);
40+
}
3741

38-
property.tactical_urbanism === 'Yes'
39-
? available.add(PropertyAccess.TACTICAL_URBANISM)
40-
: unavailable.add(PropertyAccess.TACTICAL_URBANISM);
42+
if (property.tactical_urbanism === 'Yes') {
43+
available.add(PropertyAccess.TACTICAL_URBANISM);
44+
} else {
45+
unavailable.add(PropertyAccess.TACTICAL_URBANISM);
46+
}
4147

42-
property.conservatorship === 'Yes'
43-
? available.add(PropertyAccess.CONSERVATORSHIP)
44-
: unavailable.add(PropertyAccess.CONSERVATORSHIP);
48+
if (property.conservatorship === 'Yes') {
49+
available.add(PropertyAccess.CONSERVATORSHIP);
50+
} else {
51+
unavailable.add(PropertyAccess.CONSERVATORSHIP);
52+
}
4553

4654
return {
4755
best,

src/components/PropertyMap.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import Map, {
2424
GeolocateControl,
2525
ViewState,
2626
} from 'react-map-gl/maplibre';
27+
import { Feature } from 'maplibre-gl';
2728
import maplibregl, {
2829
Map as MaplibreMap,
2930
IControl,
@@ -498,7 +499,7 @@ const PropertyMap: FC<PropertyMapProps> = ({
498499
coordinates: [-75.1652, 39.9526], // Approximate center of Philadelphia
499500
},
500501
]}
501-
onPick={(feature) => {
502+
onPick={({ feature }) => {
502503
if (feature) {
503504
const address = feature.place_name.split(',')[0];
504505
setSelectedProperty(null);

src/components/SinglePropertyDetail.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ const SinglePropertyDetail = ({
7676
: {};
7777

7878
const propertyId = parsedLocalStorageData.opa_ids[opa_id];
79-
propertyId
80-
? setIsPropertySavedToLocalStorage(true)
81-
: setIsPropertySavedToLocalStorage(false);
79+
if (propertyId) {
80+
setIsPropertySavedToLocalStorage(true);
81+
} else {
82+
setIsPropertySavedToLocalStorage(false);
83+
}
8284
}, []);
8385

8486
if (!property) return null;

0 commit comments

Comments
 (0)