esri-loader

A tiny library to help load ArcGIS API for JavaScript modules in non-Dojo applications

APACHE-2.0 License

Downloads
219.8K
Stars
457
Committers
32

Bot releases are visible (Hide)

esri-loader - Make it easier to override lazy loaded ArcGIS styles

Published by tomwayson over 5 years ago

See https://github.com/Esri/esri-loader#overriding-arcgis-styles

Added

  • insertCssBefore option to insert CSS link before an existing element
esri-loader - Default to ArcGIS API 4.10

Published by tomwayson almost 6 years ago

Thanks @jgravois!

esri-loader - Default to ArcGIS API 4.9

Published by tomwayson about 6 years ago

Changed

  • default to JSAPI 4.9; update docs w/ latest version numbers - thanks @ziveo!
esri-loader - Default to ArcGIS API 4.8

Published by tomwayson over 6 years ago

Changed

  • default to JSAPI 4.8; update docs w/ latest version numbers

Thanks @davidpiesse!

esri-loader - Default to ArcGIS API 4.7

Published by tomwayson over 6 years ago

Added

  • default to JSAPI 4.7; update docs w/ latest version numbers

Changed

  • added Hyperapp example link to README
  • move CSS functions into own module
  • no longer publishing src folder b/c it is not needed
esri-loader - loadScript()/loadModules() take a `css` option to load a stylesheet

Published by tomwayson over 6 years ago

Added

  • loadScript() takes a css option to load stylesheet by URL

Changed

  • added Choo and Riot example links to README - thanks @jwasilgeo!
esri-loader - A little more style

Published by tomwayson over 6 years ago

Added

Changed

  • added GitHub issue and pull request templates
  • added badges to README
  • added section on updating from previous versions to README
  • added reusable library sections for Angular and React
  • added links to ember-esri-loader examples and CanJS
  • changed npm scripts to rely on rimraf and mkdirp for Windows support
  • check in yarn.lockfile and use yarn
esri-loader - v2.0.0 - a slimmer new esri-loader for the new year!

Published by tomwayson almost 7 years ago

Changed

  • misc README updates

Breaking

  • remove deprecated bootstrap() and dojoRequire() functions #59
  • isLoaded() no longer checks if the script exists #59
  • no longer distribute builds at dist root #59

In the spirit of Ember's principle of "stability without stagnation", this major release doesn't add any new functionality. It primarily removes the callback-based APIs (bootstrap() and dojoRequire()) that were deprecated at v1.5.0 in favor of the new promise-based APIs (loadScript() and loadModules()) introduced in that release.

There are a couple of additional breaking changes introduced in this release that there were no deprecation warnings for.

First, isLoaded() no longer checks for the existence of a script tag w/ the data-esri-loader attribute. Instead it checks for a global require() function that looks like Dojo's require(). This is the behavior that the new promise-based APIs have been using.

Second, the UMD build is no longer distributed at the root of the /dist folder - which could break build tooling that uses hard coded paths to that location (rather than relying on package.main).

All in all, most users that have been using only the new promise-based APIs introduced in v1.5.0 should be able to upgrade to 2.0 without any changes to their code and see a benefit in reduced file size.

See the CHANGELOG for history of changes from 1.5.0 to 2.0.0.

Special thanks to all the community members that have helped make v2.0 a reality, especially @nicksenger, @remotesc2, @tgeorges, @veonline, and @ziveo!

Please keep your suggestions and PRs coming!

esri-loader - Public API to get the script tag injected by esri-loader

Published by tomwayson almost 7 years ago

Added

  • make getScript() a public API #44

Changed

  • Add link to esri-vue-cli-example to README
esri-loader - Fix preloading for JSAPI 3.x

Published by tomwayson almost 7 years ago

Fixed

  • fallback to current url when loading modules #51 #61
esri-loader - Might work in IE<11... no promises

Published by tomwayson almost 7 years ago

Changed

  • added Advanced Usage section and info on isomorphic apps to README

Fixed

  • script.dataset is undefined in IE10 #67
esri-loader - Default to JSAPI 4.6 and bug fix for universal (server-rendered) apps

Published by tomwayson almost 7 years ago

Added

  • default to version 4.6 of the ArcGIS API #63

Changed

  • remove remaining references to angular-esri-loader from README
  • update README w/ info on arcgis types and browser support #60

Fixed

  • window undefined error in server-rendered apps #64
esri-loader - A Promise-ing future!

Published by tomwayson almost 7 years ago

Added

  • add promise-based functions to load the script and modules

Changed

  • deprecate bootstrap() and dojoRequire()
  • add code coverage
  • add release script

A huge thanks to @nicksenger for inspiration, code, and insights on how to finally make the leap to a promise based API. 🎉

esri-loader - Handle script load errors

Published by tomwayson almost 7 years ago

Added

  • handle script load errors
esri-loader - Allow setting dojoConfig

Published by tomwayson almost 7 years ago

Added

  • set window.dojoConfig by passing as an option to bootstrap()

Changed

  • no longer running tests in phantom
esri-loader - Default to JSAPI 4.5

Published by tomwayson almost 7 years ago

Added

  • default to version 4.5 of the ArcGIS API

Fixed

  • don't throw an error when bootstrap() is called multiple times w/o a callback

Changed

  • lint source before running build
esri-loader - Default to JSAPI 4.4

Published by tomwayson about 7 years ago

Thanks @ziveo!

esri-loader - Only works if script tag has `data-esri-loader` attribute

Published by tomwayson over 7 years ago

Now isLoaded() only returns true if the script tag has the data-esri-loader attribute.

This is a small, but breaking change, hence the major version bump

Thanks @kgs916!

esri-loader - Fixed no callback bug

Published by tomwayson over 7 years ago

Fixed

  • fixed no callback bug

Support

  • added unit tests
  • add a minified build and source maps for published releases
esri-loader - Default export and output es5/umd (main) and es5/esm (module)

Published by tomwayson over 7 years ago

add default export
use rollup to create umd build w/ global ('esriLoader')
move source to src folder and rename to esri-loader
added CHANGELOG

Package Rankings
Top 1.54% on Npmjs.org
Top 9.63% on Proxy.golang.org
Badges
Extracted from project README
deprecated npm npm npm GitHub stars
Related Projects