Skip to content

Commit 0abc911

Browse files
committed
release 2.18.1, update gatsby-example with [email protected]
1 parent 3b2a94f commit 0abc911

File tree

10 files changed

+1874
-2132
lines changed

10 files changed

+1874
-2132
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
const React = require('react')
2-
const PropTypes = require('prop-types')
3-
const { Provider } = require('react-redux')
4-
const { Map: IMap } = require('immutable')
1+
// const React = require('react')
2+
// const PropTypes = require('prop-types')
3+
// const { Provider } = require('react-redux')
4+
// const { Map: IMap } = require('immutable')
5+
6+
import * as React from 'react'
7+
import { Provider } from 'react-redux'
8+
import { Map as IMap } from 'immutable'
59

610
const { createStore, compose, applyMiddleware } = require('redux')
711

812
const thunk = require('redux-thunk').default
913
const reducers = require('./src/reducers').default
1014

11-
exports.wrapRootElement = ({ element }) => {
12-
const configureStore = (initialState = new IMap()) => {
15+
export const wrapRootElement = ({ element }) => {
16+
const configureStore = (initialState = IMap()) => {
1317
const store = createStore(
1418
reducers,
1519
initialState,
@@ -23,17 +27,17 @@ exports.wrapRootElement = ({ element }) => {
2327

2428
const ConnectedRootElement = <Provider store={store}>{element}</Provider>
2529

26-
ConnectedRootElement.propTypes = {
27-
element: PropTypes.node.isRequired,
28-
}
30+
// ConnectedRootElement.propTypes = {
31+
// element: PropTypes.node.isRequired,
32+
// }
2933

3034
return ConnectedRootElement
3135
}
3236

33-
exports.onPreRenderHTML = () => {
37+
export const onPreRenderHTML = () => {
3438
// console.log('onPreRenderHTML') // eslint-disable-line no-console
3539
}
3640

37-
exports.onRenderBody = (obj) => {
41+
export const onRenderBody = (obj) => {
3842
// console.log('onRenderBody') // eslint-disable-line no-console
3943
}

packages/react-google-maps-api-gatsby-example/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@
1414
"access": "public"
1515
},
1616
"resolutions": {
17-
"@babel/core": "7.20.2"
17+
"@babel/core": "7.20.12"
1818
},
1919
"dependencies": {
20-
"@babel/core": "7.20.2",
21-
"@babel/node": "7.20.2",
20+
"@babel/core": "7.20.12",
21+
"@babel/node": "7.20.7",
2222
"@babel/preset-env": "7.20.2",
2323
"@babel/preset-react": "7.18.6",
24-
"@babel/runtime": "7.20.1",
25-
"@react-google-maps/api": "2.17.1",
26-
"@sentry/browser": "7.19.0",
24+
"@babel/runtime": "7.20.13",
25+
"@react-google-maps/api": "2.18.1",
26+
"@sentry/browser": "7.34.0",
2727
"cross-env": "7.0.3",
28-
"gatsby": "4.21.1",
29-
"gatsby-plugin-manifest": "4.21.0",
30-
"gatsby-plugin-purgecss": "6.1.2",
31-
"gatsby-plugin-react-helmet": "5.21.0",
32-
"gatsby-plugin-sitemap": "5.21.0",
33-
"gatsby-plugin-typescript": "4.21.0",
34-
"immutable": "4.1.0",
28+
"gatsby": "5.5.0",
29+
"gatsby-plugin-manifest": "5.5.0",
30+
"gatsby-plugin-purgecss": "6.2.1",
31+
"gatsby-plugin-react-helmet": "6.5.0",
32+
"gatsby-plugin-sitemap": "6.5.0",
33+
"gatsby-plugin-typescript": "5.5.0",
34+
"immutable": "4.2.2",
3535
"intl": "1.2.5",
3636
"prop-types": "15.8.1",
3737
"react-helmet": "6.1.0",
3838
"react-redux": "8.0.5",
3939
"react-refresh": "0.14.0",
40-
"redux": "4.2.0",
40+
"redux": "4.2.1",
4141
"redux-actions": "2.6.5",
4242
"redux-immutable": "4.0.0",
4343
"redux-thunk": "2.4.2",

packages/react-google-maps-api-gatsby-example/yarn.lock

Lines changed: 1803 additions & 2102 deletions
Large diffs are not rendered by default.

packages/react-google-maps-api/CHANGELOG.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,42 @@
11
# Changelog
22

3+
## 2.18.0 GroundOverlayF component, reduce bundle size by externalizing react/jsx-runtime
4+
5+
- TrafficLayerF
6+
- BicyclingLayerF
7+
- TransitLayerF
8+
- DrawingManagerF
9+
- MarkerF
10+
- InfoBoxF
11+
- InfoWindowF
12+
- PolylineF
13+
- PolygonF
14+
- RectangleF
15+
- CircleF
16+
- OverlayViewF
17+
- MarkerClustererF
18+
- HeatmapLayerF
19+
- GroundOverlayF
20+
21+
This components currently for tests only - I've planned to replace PureComponent class based components in 3.0.0 version.
22+
23+
please test in your applications each F component.
24+
25+
TODO:
26+
27+
- LoadScriptF
28+
- GoogleMapF
29+
- DirectionsRendererF
30+
- DirectionsServiceF
31+
- DistanceMatrixServiceF
32+
- KmlLayerF
33+
- AutocompleteF
34+
- StandaloneSearchBoxF
35+
- StreetViewPanoramaF
36+
- StreetViewServiceF
37+
38+
## 2.17.1 OverlayViewF improvements, docs improvements
339

4-
## 2.17.1 OverlayViewF improvements, docs improvemwnts
540
## 2.17.0 HeatmapLayerF component
641

742
- TrafficLayerF
@@ -18,6 +53,7 @@
1853
- OverlayViewF
1954
- MarkerClustererF
2055
- HeatmapLayerF
56+
- GroundOverlayF
2157

2258
This components currently for tests only - I've planned to replace PureComponent class based components in 3.0.0 version.
2359

packages/react-google-maps-api/src/components/dom/Overlay.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export function createOverlay(
5454
)
5555

5656
for (const [key, value] of Object.entries(layoutStyles)) {
57+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
58+
// @ts-ignore
5759
this.container.style[key] = value
5860
}
5961

packages/react-google-maps-api/src/components/drawing/Marker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ export class Marker extends PureComponent<MarkerProps> {
912912
return child
913913
}
914914

915-
let elementChild: ReactElement<HasMarkerAnchor> = child
915+
const elementChild: ReactElement<HasMarkerAnchor> = child
916916

917917
return cloneElement(elementChild, { anchor: this.marker })
918918
})

packages/react-google-maps-api/src/components/overlays/GroundOverlay.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface GroundOverlayProps {
3333
/** The url of the projected image */
3434
url: string
3535
/** The bounds that the image will be scaled to fit */
36-
bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral
36+
bounds: google.maps.LatLngBoundsLiteral
3737
/** This callback is called when the groundOverlay instance has loaded. It is called with the groundOverlay instance. */
3838
onLoad?: ((groundOverlay: google.maps.GroundOverlay) => void) | undefined
3939
/** This callback is called when the component unmounts. It is called with the groundOverlay instance. */
@@ -120,7 +120,6 @@ export class GroundOverlay extends PureComponent<GroundOverlayProps, GroundOverl
120120

121121
const groundOverlay = new google.maps.GroundOverlay(this.props.url, this.props.bounds, {
122122
...this.props.options,
123-
// @ts-ignore
124123
map: this.context,
125124
})
126125

packages/react-google-maps-api/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@
623623
dependencies:
624624
fast-deep-equal "^3.1.3"
625625

626-
"@googlemaps/[email protected].13":
626+
"@googlemaps/[email protected].15":
627627
version "2.0.13"
628628
resolved "https://registry.yarnpkg.com/@googlemaps/markerclusterer/-/markerclusterer-2.0.13.tgz#cb61db9be52c9d8b061dfad77dca33b2965e7b2a"
629629
integrity sha512-302GjQ9gsHOK/ef6hif+rJDv+AB3THst02iDCbXH2PS9GFwb/5yuytaLpuzJiqGNG+k2zvTAWTsGY/fQN5DZ7w==

0 commit comments

Comments
 (0)