Skip to content

Commit 41a04b9

Browse files
committed
Update dependencies
1 parent 9be06c0 commit 41a04b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+4983
-3984
lines changed

.editorconfig

100644100755
File mode changed.

.github/ISSUE_TEMPLATE/bug-report.md

100644100755
File mode changed.

.github/workflows/main.yml

100644100755
+5-5
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
node: ['16.x', '18.x']
10+
node: ['20.x', '22.x']
1111
os: [ubuntu-latest, macOS-latest]
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Install pnpm
18-
uses: pnpm/action-setup@v2
18+
uses: pnpm/action-setup@v3
1919
with:
20-
version: 7
20+
version: 9
2121

2222
- name: Use Node ${{ matrix.node }}
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node }}
2626
cache: 'pnpm'

.gitignore

100644100755
File mode changed.

.npmrc

100644100755
File mode changed.

.swcrc

100644100755
File mode changed.

CHANGELOG.md

100644100755
File mode changed.

CONTRIBUTING.md

100644100755
File mode changed.

LICENSE.md

100644100755
File mode changed.

README.md

100644100755
File mode changed.

package.json

100644100755
+12-11
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,46 @@
22
"name": "react-leaflet-repository",
33
"version": "1.0.0",
44
"private": true,
5-
"packageManager": "pnpm@7.12.2",
5+
"type": "module",
6+
"packageManager": "pnpm@9.0.6",
67
"scripts": {
78
"lint": "eslint './packages/**/*.ts' './packages/**/*.tsx'",
89
"test": "jest",
910
"build": "turbo run build:clean && pnpm run -r build:types && turbo run build:js"
1011
},
1112
"devDependencies": {
1213
"@skypack/package-check": "^0.2.2",
13-
"@swc/cli": "^0.1.62",
14+
"@swc/cli": "^0.3.12",
1415
"@swc/core": "^1.3.37",
1516
"@swc/jest": "^0.2.24",
16-
"@testing-library/react": "^14.0.0",
17+
"@testing-library/react": "^15.0.5",
1718
"@testing-library/react-hooks": "^8.0.1",
1819
"@types/jest": "^29.4.0",
1920
"@types/leaflet": "^1.9.1",
2021
"@types/warning": "^3.0.0",
21-
"@typescript-eslint/eslint-plugin": "^5.54.0",
22-
"@typescript-eslint/parser": "^5.54.0",
22+
"@typescript-eslint/eslint-plugin": "^7.8.0",
23+
"@typescript-eslint/parser": "^7.8.0",
2324
"cross-env": "^7.0.3",
2425
"del-cli": "^5.0.0",
25-
"eslint": "^8.35.0",
26-
"eslint-config-prettier": "^8.6.0",
26+
"eslint": "^8.57.0",
27+
"eslint-config-prettier": "^9.1.0",
2728
"eslint-plugin-import": "^2.27.5",
2829
"eslint-plugin-node": "^11.1.0",
29-
"eslint-plugin-prettier": "^4.0.0",
30+
"eslint-plugin-prettier": "^5.1.3",
3031
"eslint-plugin-promise": "^6.1.1",
3132
"eslint-plugin-react": "^7.32.2",
3233
"eslint-plugin-react-hooks": "^4.6.0",
3334
"jest": "^29.4.3",
3435
"jest-environment-jsdom": "^29.4.3",
3536
"leaflet": "^1.9.3",
36-
"prettier": "^2.8.4",
37-
"prettier-eslint": "^15.0.1",
37+
"prettier": "^3.2.5",
38+
"prettier-eslint": "^16.3.0",
3839
"react": "^18.2.0",
3940
"react-dom": "^18.2.0",
4041
"react-test-renderer": "^18.2.0",
4142
"ts-jest-resolver": "^2.0.0",
4243
"turbo": "^1.8.3",
43-
"typescript": "^4.9.5"
44+
"typescript": "^5.4.5"
4445
},
4546
"jest": {
4647
"projects": [

packages/core/.gitignore

100644100755
File mode changed.

packages/core/LICENSE.md

100644100755
File mode changed.

packages/core/README.md

100644100755
File mode changed.

packages/core/__tests__/attribution.ts

100644100755
File mode changed.

packages/core/__tests__/circle.ts

100644100755
File mode changed.

packages/core/__tests__/components.tsx

100644100755
File mode changed.

packages/core/__tests__/context.tsx

100644100755
File mode changed.

packages/core/__tests__/control.ts

100644100755
File mode changed.

packages/core/__tests__/dom.ts

100644100755
File mode changed.

packages/core/__tests__/element.ts

100644100755
File mode changed.

packages/core/__tests__/events.ts

100644100755
File mode changed.

packages/core/__tests__/generic.tsx

100644100755
File mode changed.

packages/core/__tests__/grid-layer.ts

100644100755
File mode changed.

packages/core/__tests__/layer.ts

100644100755
File mode changed.

packages/core/__tests__/media-overlay.ts

100644100755
File mode changed.

packages/core/__tests__/pane.ts

100644100755
+13-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
import { withPane } from '../src'
1+
import { type LeafletContextInterface, withPane } from '../src'
22

33
describe('pane', () => {
44
test('withPane() using context', () => {
5-
expect(withPane({ attribution: 'text' }, { pane: 'test' } as any)).toEqual({
5+
expect(
6+
withPane({ attribution: 'text' }, {
7+
pane: 'test',
8+
} as unknown as LeafletContextInterface),
9+
).toEqual({
610
attribution: 'text',
711
pane: 'test',
812
})
@@ -12,15 +16,20 @@ describe('pane', () => {
1216
expect(
1317
withPane({ attribution: 'text', pane: 'prop' }, {
1418
pane: 'context',
15-
} as any),
19+
} as unknown as LeafletContextInterface),
1620
).toEqual({
1721
attribution: 'text',
1822
pane: 'prop',
1923
})
2024
})
2125

2226
test('withPane() with no pane', () => {
23-
expect(withPane({ attribution: 'text' }, {} as any)).toEqual({
27+
expect(
28+
withPane(
29+
{ attribution: 'text' },
30+
{} as unknown as LeafletContextInterface,
31+
),
32+
).toEqual({
2433
attribution: 'text',
2534
})
2635
})

packages/core/__tests__/path.ts

100644100755
File mode changed.

packages/core/package.json

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"sideEffects": false,
3131
"scripts": {
3232
"build:clean": "del lib",
33-
"build:js": "swc src -d ./lib --config-file ../../.swcrc",
33+
"build:js": "swc src -d ./lib --config-file ../../.swcrc --strip-leading-paths",
3434
"build:types": "tsc --emitDeclarationOnly",
3535
"build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
3636
"test:types": "tsc --noEmit",

packages/core/src/attribution.ts

100644100755
File mode changed.

packages/core/src/circle.ts

100644100755
File mode changed.

packages/core/src/component.tsx

100644100755
File mode changed.

packages/core/src/context.ts

100644100755
File mode changed.

packages/core/src/control.ts

100644100755
File mode changed.

packages/core/src/div-overlay.ts

100644100755
File mode changed.

packages/core/src/dom.ts

100644100755
File mode changed.

packages/core/src/element.ts

100644100755
+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { type MutableRefObject, useEffect, useRef } from 'react'
22

33
import type { LeafletContextInterface } from './context.js'
44

5-
export type LeafletElement<T, C = any> = Readonly<{
5+
export type LeafletElement<T, C = unknown> = Readonly<{
66
instance: T
77
context: LeafletContextInterface
88
container?: C | null
99
}>
1010

11-
export function createElementObject<T, C = any>(
11+
export function createElementObject<T, C = unknown>(
1212
instance: T,
1313
context: LeafletContextInterface,
1414
container?: C | null,
@@ -21,7 +21,7 @@ export type ElementHook<E, P> = (
2121
context: LeafletContextInterface,
2222
) => MutableRefObject<LeafletElement<E>>
2323

24-
export function createElementHook<E, P, C = any>(
24+
export function createElementHook<E, P, C = unknown>(
2525
createElement: (
2626
props: P,
2727
context: LeafletContextInterface,

packages/core/src/events.ts

100644100755
File mode changed.

packages/core/src/generic.ts

100644100755
File mode changed.

packages/core/src/grid-layer.ts

100644100755
File mode changed.

packages/core/src/index.ts

100644100755
File mode changed.

packages/core/src/layer.ts

100644100755
File mode changed.

packages/core/src/media-overlay.ts

100644100755
File mode changed.

packages/core/src/pane.ts

100644100755
File mode changed.

packages/core/src/path.ts

100644100755
File mode changed.

packages/core/tsconfig.json

100644100755
File mode changed.

packages/react-leaflet/.gitignore

100644100755
File mode changed.

packages/react-leaflet/LICENSE.md

100644100755
File mode changed.

packages/react-leaflet/README.md

100644100755
File mode changed.

packages/react-leaflet/__tests__/AttributionControl.tsx

100644100755
File mode changed.

packages/react-leaflet/__tests__/MapContainer.tsx

100644100755
File mode changed.

packages/react-leaflet/__tests__/Pane.tsx

100644100755
File mode changed.

packages/react-leaflet/__tests__/ScaleControl.tsx

100644100755
File mode changed.

packages/react-leaflet/__tests__/TileLayer.tsx

100644100755
File mode changed.

packages/react-leaflet/__tests__/ZoomControl.tsx

100644100755
File mode changed.

packages/react-leaflet/__tests__/__snapshots__/AttributionControl.tsx.snap

100644100755
File mode changed.

packages/react-leaflet/__tests__/__snapshots__/MapContainer.tsx.snap

100644100755
File mode changed.

packages/react-leaflet/__tests__/__snapshots__/Pane.tsx.snap

100644100755
File mode changed.

packages/react-leaflet/__tests__/__snapshots__/ScaleControl.tsx.snap

100644100755
File mode changed.

packages/react-leaflet/__tests__/__snapshots__/TileLayer.tsx.snap

100644100755
File mode changed.

packages/react-leaflet/__tests__/__snapshots__/ZoomControl.tsx.snap

100644100755
File mode changed.

packages/react-leaflet/package.json

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"sideEffects": false,
3232
"scripts": {
3333
"build:clean": "del lib",
34-
"build:js": "swc src -d ./lib --config-file ../../.swcrc",
34+
"build:js": "swc src -d ./lib --config-file ../../.swcrc --strip-leading-paths",
3535
"build:types": "tsc --emitDeclarationOnly",
3636
"build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
3737
"test:types": "tsc --noEmit",

packages/react-leaflet/src/AttributionControl.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Circle.tsx

100644100755
File mode changed.

packages/react-leaflet/src/CircleMarker.tsx

100644100755
File mode changed.

packages/react-leaflet/src/FeatureGroup.tsx

100644100755
File mode changed.

packages/react-leaflet/src/GeoJSON.tsx

100644100755
File mode changed.

packages/react-leaflet/src/ImageOverlay.tsx

100644100755
File mode changed.

packages/react-leaflet/src/LayerGroup.tsx

100644100755
File mode changed.

packages/react-leaflet/src/LayersControl.tsx

100644100755
File mode changed.

packages/react-leaflet/src/MapContainer.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Marker.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Pane.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Polygon.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Polyline.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Popup.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Rectangle.tsx

100644100755
File mode changed.

packages/react-leaflet/src/SVGOverlay.tsx

100644100755
+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function SVGOverlayComponent(
5252

5353
return container == null || children == null
5454
? null
55-
: createPortal(children, container)
55+
: // @ts-ignore container type
56+
createPortal(children, container)
5657
}
5758

5859
export const SVGOverlay = forwardRef(SVGOverlayComponent)

packages/react-leaflet/src/ScaleControl.tsx

100644100755
File mode changed.

packages/react-leaflet/src/TileLayer.tsx

100644100755
File mode changed.

packages/react-leaflet/src/Tooltip.tsx

100644100755
File mode changed.

packages/react-leaflet/src/VideoOverlay.tsx

100644100755
File mode changed.

packages/react-leaflet/src/WMSTileLayer.tsx

100644100755
File mode changed.

packages/react-leaflet/src/ZoomControl.tsx

100644100755
File mode changed.

packages/react-leaflet/src/hooks.ts

100644100755
File mode changed.

packages/react-leaflet/src/index.ts

100644100755
File mode changed.

packages/react-leaflet/tsconfig.json

100644100755
File mode changed.

0 commit comments

Comments
 (0)