Skip to content

Commit a05e5cb

Browse files
committed
refactor(index.js): remove HeatmapLayer export
* Ref #470, #376, #375 BREAKING CHANGE: remove top-level HeatmapLayer export Before: ```js import { HeatmapLayer } from "react-google-maps" ``` After: ```js import HeatmapLayer from "react-google-maps/lib/visualization/HeatmapLayer" ```
1 parent 5ff6fd6 commit a05e5cb

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/lib/__tests__/index.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
GoogleMap,
55
Circle,
66
DirectionsRenderer,
7-
HeatmapLayer,
87
InfoWindow,
98
KmlLayer,
109
FusionTablesLayer,
@@ -22,7 +21,6 @@ describe(`index`, () => {
2221
expect(GoogleMap).toBeDefined();
2322
expect(Circle).toBeDefined();
2423
expect(DirectionsRenderer).toBeDefined();
25-
expect(HeatmapLayer).toBeDefined();
2624
expect(InfoWindow).toBeDefined();
2725
expect(KmlLayer).toBeDefined();
2826
expect(FusionTablesLayer).toBeDefined();

src/lib/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ export {
4242
default as DirectionsRenderer,
4343
} from "./DirectionsRenderer";
4444

45-
export {
46-
// Provides backward compatibility. Will remove in 7.0.0
47-
default as HeatmapLayer,
48-
} from "./visualization/HeatmapLayer";
49-
5045
export {
5146
default as InfoWindow,
5247
} from "./InfoWindow";

0 commit comments

Comments
 (0)