Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Apr 30, 2024
1 parent 9be06c0 commit 41a04b9
Show file tree
Hide file tree
Showing 92 changed files with 4,983 additions and 3,984 deletions.
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug-report.md
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['16.x', '18.x']
node: ['20.x', '22.x']
os: [ubuntu-latest, macOS-latest]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 7
version: 9

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
Expand Down
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .npmrc
100644 → 100755
Empty file.
Empty file modified .swcrc
100644 → 100755
Empty file.
Empty file modified CHANGELOG.md
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified LICENSE.md
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
23 changes: 12 additions & 11 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,46 @@
"name": "react-leaflet-repository",
"version": "1.0.0",
"private": true,
"packageManager": "[email protected]",
"type": "module",
"packageManager": "[email protected]",
"scripts": {
"lint": "eslint './packages/**/*.ts' './packages/**/*.tsx'",
"test": "jest",
"build": "turbo run build:clean && pnpm run -r build:types && turbo run build:js"
},
"devDependencies": {
"@skypack/package-check": "^0.2.2",
"@swc/cli": "^0.1.62",
"@swc/cli": "^0.3.12",
"@swc/core": "^1.3.37",
"@swc/jest": "^0.2.24",
"@testing-library/react": "^14.0.0",
"@testing-library/react": "^15.0.5",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.4.0",
"@types/leaflet": "^1.9.1",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.4.3",
"leaflet": "^1.9.3",
"prettier": "^2.8.4",
"prettier-eslint": "^15.0.1",
"prettier": "^3.2.5",
"prettier-eslint": "^16.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"ts-jest-resolver": "^2.0.0",
"turbo": "^1.8.3",
"typescript": "^4.9.5"
"typescript": "^5.4.5"
},
"jest": {
"projects": [
Expand Down
Empty file modified packages/core/.gitignore
100644 → 100755
Empty file.
Empty file modified packages/core/LICENSE.md
100644 → 100755
Empty file.
Empty file modified packages/core/README.md
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/attribution.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/circle.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/components.tsx
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/context.tsx
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/control.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/dom.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/element.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/events.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/generic.tsx
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/grid-layer.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/layer.ts
100644 → 100755
Empty file.
Empty file modified packages/core/__tests__/media-overlay.ts
100644 → 100755
Empty file.
17 changes: 13 additions & 4 deletions packages/core/__tests__/pane.ts
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { withPane } from '../src'
import { type LeafletContextInterface, withPane } from '../src'

describe('pane', () => {
test('withPane() using context', () => {
expect(withPane({ attribution: 'text' }, { pane: 'test' } as any)).toEqual({
expect(
withPane({ attribution: 'text' }, {
pane: 'test',
} as unknown as LeafletContextInterface),
).toEqual({
attribution: 'text',
pane: 'test',
})
Expand All @@ -12,15 +16,20 @@ describe('pane', () => {
expect(
withPane({ attribution: 'text', pane: 'prop' }, {
pane: 'context',
} as any),
} as unknown as LeafletContextInterface),
).toEqual({
attribution: 'text',
pane: 'prop',
})
})

test('withPane() with no pane', () => {
expect(withPane({ attribution: 'text' }, {} as any)).toEqual({
expect(
withPane(
{ attribution: 'text' },
{} as unknown as LeafletContextInterface,
),
).toEqual({
attribution: 'text',
})
})
Expand Down
Empty file modified packages/core/__tests__/path.ts
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion packages/core/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"sideEffects": false,
"scripts": {
"build:clean": "del lib",
"build:js": "swc src -d ./lib --config-file ../../.swcrc",
"build:js": "swc src -d ./lib --config-file ../../.swcrc --strip-leading-paths",
"build:types": "tsc --emitDeclarationOnly",
"build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
"test:types": "tsc --noEmit",
Expand Down
Empty file modified packages/core/src/attribution.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/circle.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/component.tsx
100644 → 100755
Empty file.
Empty file modified packages/core/src/context.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/control.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/div-overlay.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/dom.ts
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions packages/core/src/element.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { type MutableRefObject, useEffect, useRef } from 'react'

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

export type LeafletElement<T, C = any> = Readonly<{
export type LeafletElement<T, C = unknown> = Readonly<{
instance: T
context: LeafletContextInterface
container?: C | null
}>

export function createElementObject<T, C = any>(
export function createElementObject<T, C = unknown>(
instance: T,
context: LeafletContextInterface,
container?: C | null,
Expand All @@ -21,7 +21,7 @@ export type ElementHook<E, P> = (
context: LeafletContextInterface,
) => MutableRefObject<LeafletElement<E>>

export function createElementHook<E, P, C = any>(
export function createElementHook<E, P, C = unknown>(
createElement: (
props: P,
context: LeafletContextInterface,
Expand Down
Empty file modified packages/core/src/events.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/generic.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/grid-layer.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/index.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/layer.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/media-overlay.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/pane.ts
100644 → 100755
Empty file.
Empty file modified packages/core/src/path.ts
100644 → 100755
Empty file.
Empty file modified packages/core/tsconfig.json
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/.gitignore
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/LICENSE.md
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/README.md
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/__tests__/AttributionControl.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/__tests__/MapContainer.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/__tests__/Pane.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/__tests__/ScaleControl.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/__tests__/TileLayer.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/__tests__/ZoomControl.tsx
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified packages/react-leaflet/__tests__/__snapshots__/Pane.tsx.snap
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion packages/react-leaflet/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"sideEffects": false,
"scripts": {
"build:clean": "del lib",
"build:js": "swc src -d ./lib --config-file ../../.swcrc",
"build:js": "swc src -d ./lib --config-file ../../.swcrc --strip-leading-paths",
"build:types": "tsc --emitDeclarationOnly",
"build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
"test:types": "tsc --noEmit",
Expand Down
Empty file modified packages/react-leaflet/src/AttributionControl.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Circle.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/CircleMarker.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/FeatureGroup.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/GeoJSON.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/ImageOverlay.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/LayerGroup.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/LayersControl.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/MapContainer.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Marker.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Pane.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Polygon.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Polyline.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Popup.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Rectangle.tsx
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion packages/react-leaflet/src/SVGOverlay.tsx
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function SVGOverlayComponent(

return container == null || children == null
? null
: createPortal(children, container)
: // @ts-ignore container type

Check warning on line 55 in packages/react-leaflet/src/SVGOverlay.tsx

View workflow job for this annotation

GitHub Actions / Node 20.x on ubuntu-latest

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check warning on line 55 in packages/react-leaflet/src/SVGOverlay.tsx

View workflow job for this annotation

GitHub Actions / Node 20.x on macOS-latest

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check warning on line 55 in packages/react-leaflet/src/SVGOverlay.tsx

View workflow job for this annotation

GitHub Actions / Node 22.x on ubuntu-latest

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check warning on line 55 in packages/react-leaflet/src/SVGOverlay.tsx

View workflow job for this annotation

GitHub Actions / Node 22.x on macOS-latest

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
createPortal(children, container)
}

export const SVGOverlay = forwardRef(SVGOverlayComponent)
Empty file modified packages/react-leaflet/src/ScaleControl.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/TileLayer.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/Tooltip.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/VideoOverlay.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/WMSTileLayer.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/ZoomControl.tsx
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/hooks.ts
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/src/index.ts
100644 → 100755
Empty file.
Empty file modified packages/react-leaflet/tsconfig.json
100644 → 100755
Empty file.
Loading

0 comments on commit 41a04b9

Please sign in to comment.