14.2.0 • Published 7 months ago

@esri/hub-downloads v14.2.0

Weekly downloads
899
License
Apache-2.0
Repository
github
Last release
7 months ago

npm version build status gzip bundle size Coverage Status apache licensed

@esri/hub.js

compact, modular JavaScript wrappers for ArcGIS Hub that run in Node.js and modern browsers.

Table of Contents

Example

npm install @esri/hub-initiatives
import { fetchInitiative  } from '@esri/hub-initiatives';

// pass in an initiative id
fetchInitiative("abc123")
    .then(
        response => // get back initiative metadata
    );

API Reference

The documentation is published at http://esri.github.io/hub.js/ (source code here).

Instructions

You can install dependencies (and bootstrap lerna) by cloning the repository and running:

npm install

Afterward, for a list of all available commands run npm run.

Some useful commands include:

  • npm test runs all the tests and confirms the API is functioning as expected.
  • There is also a Debug Node Tests configuration in the .vscode/launch.json which will run the Node tests in the VS Code debugger.
  • npm run docs:serve will run the documentation site locally at http://localhost:3000
  • npm run build will created UMD bundles for all the packages
  • npm run dev -- <esm|node|umd> <glob> will re-run the specified build type any time the source code changes in the matched package(s). Example: npm run dev -- umd @esri/hub-initiatives

Packages

Design Philosophy

hub.js is designed as a set of data manipulation functions, not persistent objects with behavior. You should not use new in conjunction with this library. Just include the modules your application needs and use them to hide lower-level abstractions for making API calls for hub related things. Your application should manage the state of the data you receive from these methods.

This project builds on the packages in arcgis-rest-js, so if you want even lower-level access, you can also use them directly.

Why Not Objects?

Persistent objects often introduce memory leaks in JavaScript applications. As soon as you instantiate a new object, you need to consider its lifespan. If you happen to assign that object inside a closure or somewhere else long-lived, you might end up with references that cannot be destroyed by the garbage collector. Creating clean separation between functions-that-fetch-or-manipulate-data and application-state-as-a-javascript-object helps to avoid this problem.

We are aiming for functional equivalence to hub-py so that the objects and capabilities are familiar, not necessarily to make the APIs identical.

More about Javascript Memory Leaks

Frequently Asked Questions

Issues

If something isn't working the way you expected, please take a look at previously logged issues first. Have you found a new bug? Want to request a new feature? We'd love to hear from you.

If you're looking for help you can also post issues on GIS Stackexchange.

Versioning

For transparency into the release cycle and in striving to maintain backward compatibility, @esri/hub.js is maintained under Semantic Versioning guidelines and will adhere to these rules whenever possible.

For more information on SemVer, please visit http://semver.org/.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

License

Copyright © 2018-2019 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's LICENSE file.

14.1.0

8 months ago

14.2.0

7 months ago

14.0.0

9 months ago

13.0.0-next.1

1 year ago

13.0.0

12 months ago

12.4.1

1 year ago

12.4.0

1 year ago

12.3.0

1 year ago

12.3.1

1 year ago

12.3.2

1 year ago

12.0.0

1 year ago

11.23.4

1 year ago

11.23.5

1 year ago

12.2.1

1 year ago

12.2.0

1 year ago

12.0.0-alpha.3

1 year ago

12.0.0-alpha.2

1 year ago

12.1.0

1 year ago

11.16.0

2 years ago

11.16.1

2 years ago

11.6.0

2 years ago

11.20.1

2 years ago

11.20.0

2 years ago

11.15.0

2 years ago

11.5.0

2 years ago

11.18.0

2 years ago

11.18.2

2 years ago

11.18.1

2 years ago

11.18.3

2 years ago

11.10.0

2 years ago

11.22.0

2 years ago

11.8.0

2 years ago

11.17.0

2 years ago

11.21.2

2 years ago

11.21.1

2 years ago

11.21.3

2 years ago

11.7.0

2 years ago

11.21.0

2 years ago

11.12.0

2 years ago

11.11.0

2 years ago

11.19.0

2 years ago

11.23.0

2 years ago

11.23.2

1 year ago

11.23.1

2 years ago

11.23.3

1 year ago

11.9.0

2 years ago

11.14.0

2 years ago

11.14.2

2 years ago

11.14.1

2 years ago

11.4.0

2 years ago

11.4.1

2 years ago

11.13.0

2 years ago

12.0.0-alpha.1

1 year ago

11.3.0

2 years ago

9.47.0

2 years ago

10.0.0

2 years ago

10.0.1

2 years ago

10.0.2

2 years ago

9.46.0

2 years ago

9.45.1

2 years ago

9.45.0

2 years ago

11.0.0

2 years ago

9.44.4

2 years ago

9.44.3

2 years ago

9.44.2

2 years ago

9.44.1

2 years ago

9.44.6

2 years ago

9.44.5

2 years ago

10.1.0

2 years ago

9.44.0

2 years ago

9.43.1

2 years ago

9.43.0

2 years ago

10.0.0-next.7

2 years ago

10.0.0-next.8

2 years ago

10.0.0-next.5

2 years ago

10.0.0-next.6

2 years ago

10.0.0-next.3

2 years ago

10.0.0-next.4

2 years ago

10.0.0-next.1

2 years ago

10.0.0-next.2

2 years ago

11.2.0

2 years ago

9.42.3

2 years ago

9.42.2

2 years ago

9.42.1

2 years ago

9.42.0

2 years ago

11.0.0-beta.1

2 years ago

11.0.0-beta.2

2 years ago

11.0.0-beta.3

2 years ago

11.0.0-beta.4

2 years ago

11.1.0

2 years ago

9.41.1

2 years ago

11.0.0-beta.5

2 years ago

9.48.0

2 years ago

9.48.2

2 years ago

9.48.1

2 years ago

9.35.0

2 years ago

9.34.0

2 years ago

9.33.0

2 years ago

9.32.1

2 years ago

9.32.0

2 years ago

9.39.0

2 years ago

9.38.0

2 years ago

9.41.0

2 years ago

9.37.0

2 years ago

9.40.0

2 years ago

9.36.0

2 years ago

9.31.3

2 years ago

9.31.2

2 years ago

9.31.1

2 years ago

9.31.0

2 years ago

9.30.1

2 years ago

9.30.0

2 years ago

9.29.0

2 years ago

9.28.0

2 years ago

9.27.0

2 years ago

9.26.1

2 years ago

9.26.2

2 years ago

9.26.0

2 years ago

9.25.6

2 years ago

9.25.7

2 years ago

9.24.0

2 years ago

9.24.1

2 years ago

9.24.2

2 years ago

9.23.0

2 years ago

9.23.1

2 years ago

9.23.2

2 years ago

9.23.3

2 years ago

9.25.2

2 years ago

9.25.3

2 years ago

9.25.4

2 years ago

9.25.5

2 years ago

9.25.0

2 years ago

9.25.1

2 years ago

9.20.0

2 years ago

9.16.0

2 years ago

9.12.0

2 years ago

9.19.0

2 years ago

9.15.0

2 years ago

9.11.0

2 years ago

9.22.0

2 years ago

9.18.0

2 years ago

9.10.2

2 years ago

9.14.0

2 years ago

9.14.1

2 years ago

9.10.0

2 years ago

9.10.1

2 years ago

9.21.2

2 years ago

9.21.0

2 years ago

9.21.1

2 years ago

9.17.0

2 years ago

9.17.1

2 years ago

9.13.0

2 years ago

9.13.1

2 years ago

9.13.2

2 years ago

9.10.1-beta.1

2 years ago

9.8.1

2 years ago

9.9.0

2 years ago

9.8.0

2 years ago

9.5.0

3 years ago

9.6.2

2 years ago

9.6.1

2 years ago

9.6.0

3 years ago

9.7.3

2 years ago

9.7.2

2 years ago

9.7.1

2 years ago

9.7.0

2 years ago

9.4.1

3 years ago

9.4.0

3 years ago

9.3.0

3 years ago

9.2.0

3 years ago

9.1.4

3 years ago

9.1.3

3 years ago

9.1.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

9.1.1

3 years ago

9.1.0

3 years ago

8.23.1

3 years ago

8.23.2

3 years ago

8.24.0

3 years ago

8.23.0

3 years ago

8.22.1

3 years ago

8.22.0

3 years ago

8.21.1

3 years ago

8.21.0

3 years ago

8.20.0

3 years ago

8.19.0

3 years ago

8.18.0

3 years ago

8.17.3

3 years ago

8.17.1

3 years ago

8.17.2

3 years ago

8.17.0

3 years ago

8.16.0

3 years ago

8.16.1

3 years ago

8.15.1

3 years ago

8.15.0

3 years ago

8.13.2

3 years ago

8.14.0

3 years ago

8.13.1

3 years ago

8.13.0

3 years ago

8.12.0

3 years ago

8.11.1

3 years ago

8.11.0

3 years ago

8.10.0

3 years ago

8.9.0

3 years ago

8.8.1

3 years ago

8.8.2

3 years ago

8.8.0

3 years ago

8.7.0

3 years ago

8.6.2

3 years ago

8.6.1

3 years ago

8.6.0

3 years ago

8.4.4

3 years ago

8.4.3

3 years ago

8.4.2

3 years ago

8.5.0

3 years ago

8.5.1

3 years ago

8.4.1

3 years ago

8.4.0

3 years ago

8.3.1

3 years ago

8.3.0

3 years ago

8.2.2

3 years ago

8.2.1

3 years ago

8.2.0

3 years ago

8.1.0

3 years ago

8.0.0

3 years ago

7.3.2

3 years ago

7.3.1

3 years ago

7.3.0

3 years ago

7.2.0

3 years ago

7.1.1

3 years ago

7.1.0

3 years ago

7.0.9

3 years ago

7.0.8

3 years ago

7.0.7

3 years ago

7.0.6

3 years ago

7.0.5

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

7.0.0

3 years ago

6.24.0

3 years ago

6.23.0

3 years ago

6.22.3

3 years ago

6.22.2

3 years ago

6.22.0

3 years ago

6.22.1

3 years ago

6.21.1

3 years ago

6.21.0

3 years ago

6.20.1

3 years ago

6.20.0

3 years ago

6.19.1

3 years ago

6.19.0

3 years ago

6.18.0

3 years ago

6.17.0

3 years ago

6.16.0

3 years ago

6.15.0

4 years ago

6.14.0

4 years ago

6.13.3

4 years ago

6.13.2

4 years ago

6.13.1

4 years ago

6.13.0

4 years ago

6.12.1

4 years ago

6.12.0

4 years ago

6.11.3

4 years ago

6.11.1

4 years ago

6.11.2

4 years ago

6.11.0

4 years ago

6.10.0

4 years ago

6.9.1

4 years ago

6.9.0

4 years ago

6.8.0

4 years ago

6.7.2

4 years ago

6.7.1

4 years ago

6.7.0

4 years ago

6.6.1

4 years ago

6.6.0

4 years ago

6.5.1

4 years ago

6.5.0

4 years ago

6.4.0

4 years ago

6.3.0

4 years ago

6.2.1

4 years ago

6.2.0

4 years ago

6.1.3

4 years ago

6.1.2

4 years ago

6.1.1

4 years ago

6.1.0

4 years ago