Skip to content

Commit

Permalink
v3 beta 1
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Jul 12, 2020
1 parent a63c55d commit 050e1c1
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 145 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
.now
.vercel
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## v3.0.0-beta.1 (2020-07-12)

v3 is a full rewrite of React Leaflet and contains breaking change from v2.

- Full rewrite based on [React Hooks](https://reactjs.org/docs/hooks-intro.html) (no more extending `Component`)
- Replace Flow by TypeScript for type checking
- Drop IE support (Babel config will only target the "last 2 versions" of browsers)
- Switch to the [Hippocratic License](https://firstdonoharm.dev/)
- The `Map` component is replaced by [`MapContainer`](https://react-leaflet-v3.now.sh/docs/api-map#mapcontainer), behaving differently
- Event handlers must be attached using the [`eventHandlers prop`](https://react-leaflet-v3.now.sh/docs/api-components#evented-behavior) rather than `on*` props, with a similar change for [path options](https://react-leaflet-v3.now.sh/docs/api-components#path-behavior) and [WMS params](https://react-leaflet-v3.now.sh/docs/api-components#wmstilelayer)
- The `react-leaflet` package only exposes a [public API](https://react-leaflet-v3.now.sh/docs/api-map) while a new package, `@react-leaflet/core`, is used to provide the [core APIs](https://react-leaflet-v3.now.sh/docs/core-introduction)
- A new documentation website using [Docusaurus v2](https://v2.docusaurus.io/) with live examples, currently published on [react-leaflet-v3.now.sh](https://react-leaflet-v3.now.sh/)

## v2.7.0 (2020-05-06)

- Added `viewBox` and `preserveAspectRatio` props to `SVGOverlay` component ([PR #704](https://github.com/PaulLeCam/react-leaflet/pull/704) by _spectras_).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# React-Leaflet v3 [![Build Status](https://img.shields.io/travis/PaulLeCam/react-leaflet/next.svg)](https://travis-ci.org/PaulLeCam/react-leaflet) [![npm version](https://img.shields.io/npm/v/react-leaflet/next.svg)](https://www.npmjs.com/package/react-leaflet)
# React Leaflet v3 [![Build Status](https://img.shields.io/travis/PaulLeCam/react-leaflet/next.svg)](https://travis-ci.org/PaulLeCam/react-leaflet) [![npm version](https://img.shields.io/npm/v/react-leaflet/next.svg)](https://www.npmjs.com/package/react-leaflet)

This is the development branch of React Leaflet v3, for the stable v2, use the master branch.

Expand Down
132 changes: 0 additions & 132 deletions UPGRADING.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@testing-library/react-hooks": "^3.3.0",
"@types/jest": "^26.0.4",
"@types/leaflet": "^1.5.16",
"@types/react": "^16.9.42",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^3.6.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# React Leaflet core

[Documentation](https://react-leaflet-v3.now.sh/docs/core-introduction)
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-leaflet/core",
"version": "1.0.0-alpha.1",
"version": "1.0.0-beta.2",
"description": "React Leaflet core",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/react-leaflet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# React Leaflet v3

Work in progress documentation is available on [react-leaflet-v3.now.sh](https://react-leaflet-v3.now.sh/).
4 changes: 2 additions & 2 deletions packages/react-leaflet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-leaflet",
"version": "3.0.0-alpha.0",
"version": "3.0.0-beta.1",
"description": "React components for Leaflet maps",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down Expand Up @@ -44,7 +44,7 @@
],
"dependencies": {
"@babel/runtime-corejs3": "^7.10.4",
"@react-leaflet/core": "^1.0.0-alpha.1",
"@react-leaflet/core": "^1.0.0-beta.2",
"core-js": "^3.6.5"
},
"peerDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1937,10 +1937,10 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^16.9.42":
version "16.9.42"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.42.tgz#9776508d59c1867bbf9bd7f036dab007fdaa1cb7"
integrity sha512-iGy6HwfVfotqJ+PfRZ4eqPHPP5NdPZgQlr0lTs8EfkODRBV9cYy8QMKcC9qPCe1JrESC1Im6SrCFR6tQgg74ag==
"@types/react@*", "@types/react@^16.9.43":
version "16.9.43"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.43.tgz#c287f23f6189666ee3bebc2eb8d0f84bcb6cdb6b"
integrity sha512-PxshAFcnJqIWYpJbLPriClH53Z2WlJcVZE+NP2etUtWQs2s7yIMj3/LDKZT/5CHJ/F62iyjVCDu2H3jHEXIxSg==
dependencies:
"@types/prop-types" "*"
csstype "^2.2.0"
Expand Down Expand Up @@ -3224,9 +3224,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001035, caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001097:
version "1.0.30001097"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001097.tgz#1129c40c9f5ee3282158da08fd915d301f4a9bd8"
integrity sha512-TeuSleKt/vWXaPkLVFqGDnbweYfq4IaZ6rUugFf3rWY6dlII8StUZ8Ddin0PkADfgYZ4wRqCdO2ORl4Rn5eZIA==
version "1.0.30001099"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001099.tgz#540118fcc6842d1fde62f4ee5521d1ec6afdb40e"
integrity sha512-sdS9A+sQTk7wKoeuZBN/YMAHVztUfVnjDi4/UV3sDE8xoh7YR12hKW+pIdB3oqKGwr9XaFL2ovfzt9w8eUI5CA==

capture-exit@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit 050e1c1

Please sign in to comment.