Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 8e496b2

Browse files
author
john gravois
authored
Merge pull request #77 from Esri/release/v4.0.0
v4.0.0 release prep
2 parents 7ac509e + ab76fbb commit 8e496b2

File tree

3 files changed

+45
-20
lines changed

3 files changed

+45
-20
lines changed

CHANGELOG.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
1-
## Version 3.3.3
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7+
8+
### [Unreleased][HEAD]
9+
10+
## [4.0.0] - January 9th 2019
11+
12+
### Changed
13+
- `react-arcgis` has been moved into the @esri namespace on npm.
14+
15+
```shell
16+
npm install @esri/react-arcgis
17+
```
18+
```js
19+
import { Map, Scene } from '@esri/react-arcgis';
20+
```
21+
- React-arcgis will now load version 4.10 of the ArcGIS API for JavaScript by default
22+
23+
## 3.3.3
224

325
- React-arcgis will now load version 4.9 of the ArcGIS JS API by default
426
- Fixed issue with the `zoom` prop on `Scene` components
527

6-
## Version 3.3.2
28+
## 3.3.2
729

830
- React-arcgis components now accept a `childrenAsFunction` prop:
931

@@ -22,12 +44,12 @@
2244

2345
This is helpful for TypeScript users, as it allows the compiler to understand the relationship between parent and child components. If you are not using TypeScript, there is no benefit to using this prop over specifying children in the usual manner.
2446

25-
## Version 3.3.1
47+
## 3.3.1
2648

2749
- React-arcgis will now load version 4.8 by default
2850
- Issue with using `mapProperties` in the `WebMap` and `WebScene` components has been fixed
2951

30-
## Version 3.3.0
52+
## 3.3.0
3153

3254
- React-arcgis will now load version 4.7 by default
3355
- `loadModules` from [https://github.com/Esri/esri-loader](https://github.com/Esri/esri-loader) can now also be imported as `loadModules` instead of just `esriPromise` for consistency. For example:
@@ -56,4 +78,7 @@ render() {
5678
/>
5779
);
5880
}
59-
```
81+
```
82+
83+
[4.0.1]: https://github.com/Esri/arcgis-rest-js/compare/v4.0.0...v4.0.1 "v4.0.1"
84+
[HEAD]: https://github.com/Esri/react-arcgis/compare/v4.0.0...HEAD "Unreleased Changes"

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# React-ArcGIS
22

3-
[![Version](https://shields.nsenger.com/react-arcgis-master/version)](https://www.npmjs.com/package/react-arcgis)
3+
[![Version](https://shields.nsenger.com/react-arcgis-master/version)](https://www.npmjs.com/package/@esri/react-arcgis)
44
[![build status][travis-img]][travis-url]
55
[![Test Coverage][coverage-img]][coverage-url]
66

@@ -13,7 +13,7 @@ React-ArcGIS is a library of React components which use the ArcGIS API for JavaS
1313

1414
## Installation:
1515

16-
1. Run `npm i react-arcgis` (if you decide you like it, you can even include `--save`)
16+
1. Run `npm i @esri/react-arcgis` (if you decide you like it, you can even include `--save`)
1717

1818
## Basic Usage:
1919

@@ -28,7 +28,7 @@ Render a simple map in React:
2828
```js
2929
import * as React from 'react';
3030
import * as ReactDOM from 'react-dom';
31-
import { Map } from 'react-arcgis';
31+
import { Map } from '@esri/react-arcgis';
3232

3333
ReactDOM.render(
3434
<Map />,
@@ -43,7 +43,7 @@ Or, render a 3D web-scene:
4343
```js
4444
import * as React from 'react';
4545
import * as ReactDOM from 'react-dom';
46-
import { Scene } from 'react-arcgis';
46+
import { Scene } from '@esri/react-arcgis';
4747

4848
ReactDOM.render(
4949
<Scene />,
@@ -56,7 +56,7 @@ You can also add webmaps and webscenes from ArcGIS Online:
5656
```js
5757
import * as React from 'react';
5858
import * as ReactDOM from 'react-dom';
59-
import { WebMap, WebScene } from 'react-arcgis';
59+
import { WebMap, WebScene } from '@esri/react-arcgis';
6060

6161
ReactDOM.render(
6262
<div style={{ width: '100vw', height: '100vh' }}>
@@ -73,7 +73,7 @@ If you want to change the style of the `Map` or `Scene`, just give it a class:
7373
```js
7474
import * as React from 'react';
7575
import * as ReactDOM from 'react-dom';
76-
import { Scene } from 'react-arcgis';
76+
import { Scene } from '@esri/react-arcgis';
7777

7878
ReactDOM.render(
7979
<Scene className="full-screen-map" />,
@@ -85,7 +85,7 @@ You can also pass properties into the `Map`, `MapView`, or `SceneView` via the v
8585

8686
```js
8787
import * as React from 'react';
88-
import { Map } from 'react-arcgis';
88+
import { Map } from '@esri/react-arcgis';
8989

9090
export default (props) => (
9191
<Map
@@ -100,7 +100,7 @@ These properties are passed directly to the available properties on the correspo
100100

101101
```js
102102
import * as React from 'react';
103-
import { Scene } from 'react-arcgis';
103+
import { Scene } from '@esri/react-arcgis';
104104

105105
export default (props) => (
106106
<Scene
@@ -119,7 +119,7 @@ If you want to access the `map` and `view` instances directly after they are loa
119119

120120
```js
121121
import * as React from 'react';
122-
import { Map } from 'react-arcgis';
122+
import { Map } from '@esri/react-arcgis';
123123

124124
export default class MakeAMap extends React.Component {
125125
constructor(props) {
@@ -146,7 +146,7 @@ Don't forget an `onFail` handler in case something goes wrong:
146146

147147
```js
148148
import * as React from 'react';
149-
import { WebScene } from 'react-arcgis';
149+
import { WebScene } from '@esri/react-arcgis';
150150

151151
export default class MakeAScene extends React.Component {
152152
constructor(props) {
@@ -179,7 +179,7 @@ For example, let's convert a Bermuda Triangle graphic from [this example](https:
179179

180180
```js
181181
import * as React from 'react';
182-
import { loadModules } from 'react-arcgis';
182+
import { loadModules } from '@esri/react-arcgis';
183183

184184
export default class BermudaTriangle extends React.Component {
185185
constructor(props) {
@@ -237,7 +237,7 @@ Now we can use the `<BermudaTriangle />` component within our `<Map />`, `<Scene
237237

238238
```js
239239
import * as React from 'react';
240-
import { Scene } from 'react-arcgis';
240+
import { Scene } from '@esri/react-arcgis';
241241
import BermudaTriangle from './BermudaTriangle'; // The Graphic component we just made
242242

243243
export default (props) => (

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66
"description": "React component library for the ArcGIS API for JavaScript",
77
"dependencies": {
8-
"@types/arcgis-js-api": "^4.10.0",
9-
"esri-loader": "^2.6.0",
8+
"@types/arcgis-js-api": "4.10.0",
9+
"esri-loader": "2.6.0",
1010
"react": "^16.5.2",
1111
"react-dom": "^16.5.2"
1212
},
@@ -51,7 +51,7 @@
5151
"license": "Apache-2.0",
5252
"main": "dist/umd/index.js",
5353
"module": "dist/esm/index.js",
54-
"name": "react-arcgis",
54+
"name": "@esri/react-arcgis",
5555
"nyc": {
5656
"extension": [
5757
".tsx",

0 commit comments

Comments
 (0)