Skip to content

Commit 39acb3b

Browse files
committed
update peerDependencies
1 parent 095c89f commit 39acb3b

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

.changeset/curvy-ants-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-three-map": patch
3+
---
4+
5+
Fix build typo and add more detailed peer dependencies.

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# React Three Map
22

3-
[![Version](https://img.shields.io/npm/v/react-three-map?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/@react-three/fiber)
3+
[![Version](https://img.shields.io/npm/v/react-three-map)](https://npmjs.com/package/@react-three/fiber)
4+
[![Build Size](https://img.shields.io/bundlephobia/minzip/react-three-map?label=size)](https://bundlephobia.com/result?p=react-three-map)
5+
[![Build Status](https://img.shields.io/github/actions/workflow/status/RodrigoHamuy/react-three-map/release.yml?branch=main)](https://github.com/RodrigoHamuy/react-three-map/actions?query=workflow%3Arelease)
46

57
`react-three-map` is a bridge to use [`react-three-fiber`](https://github.com/pmndrs/react-three-fiber) inside [`react-map-gl`](https://github.com/visgl/react-map-gl).
68

@@ -11,15 +13,15 @@ Until now you had:
1113
| Mapbox GL JS | react-map-gl |
1214
| THREE.js | react-three-fiber |
1315

14-
Now with `react-three-map`, you can use them together :fist_right::fist_left:.
16+
Now with `react-three-map`, you can use them together :fist_right::star::fist_left:.
1517

1618
```sh
1719
npm install react-three-map
1820
```
1921

2022
## :book: Examples
2123

22-
You can check our examples here [here](https://rodrigohamuy.github.io/react-three-map) (powered by [Ladle](https://ladle.dev/)).
24+
Check out our examples [here](https://rodrigohamuy.github.io/react-three-map) (powered by [Ladle](https://ladle.dev/)).
2325

2426
## :mag: What does it look like?
2527

@@ -115,7 +117,7 @@ It shares most of the props from R3F `<Canvas>`, so you can check them directly
115117

116118
#### Render Props
117119

118-
| PROP | DESCRIPTION | DEFAULT |
120+
| Prop | Description | Default |
119121
| --------- | ------------------------------------------------ | ---------- |
120122
| latitude | The latitude coordinate where to add the scene. | |
121123
| longitude | The longitude coordinate where to add the scene. | |

maplibre/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"internal": true,
33
"main": "../dist/maplibre/cjs/main.js",
4-
"module": "../dist/maplibre/es/main.js",
4+
"module": "../dist/maplibre/es/main.mjs",
55
"types": "../src/maplibre/index.ts",
66
"sideEffects": false
77
}

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.3.0",
44
"description": "Use react-three-fiber inside MapLibre and Mapbox",
55
"main": "dist/cjs/main.js",
6-
"module": "dist/es/main.js",
6+
"module": "dist/es/main.mjs",
77
"types": "src/mapbox/index.ts",
88
"sideEffects": false,
99
"repository": "https://github.com/RodrigoHamuy/react-three-map",
@@ -56,7 +56,19 @@
5656
"vite": "^4.3.9"
5757
},
5858
"peerDependencies": {
59-
"@react-three/fiber": "^8.13.4",
60-
"react-map-gl": "^7.1.0"
59+
"@react-three/fiber": ">=8.13",
60+
"mapbox-gl": ">=2.15",
61+
"maplibre-gl": ">=3.1",
62+
"react-map-gl": ">=7.1",
63+
"react": ">=18.0",
64+
"three": ">=0.133"
65+
},
66+
"peerDependenciesMeta": {
67+
"mapbox-gl": {
68+
"optional": true
69+
},
70+
"maplibre-gl": {
71+
"optional": true
72+
}
6173
}
6274
}

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineConfig({
3737
entry,
3838
name: 'react-three-map',
3939
formats: isES ? ['es'] : ['cjs'],
40-
fileName: 'main.js',
40+
fileName: 'main',
4141
},
4242
outDir,
4343
rollupOptions: {

0 commit comments

Comments
 (0)