Version 8.22.0

@esri/hub-events

Module to interact with ArcGIS Hub Events in Node.js and modern browsers.

npm install:

npm install @esri/hub-events @esri/arcgis-rest-auth@^2.13.0 || 3  @esri/arcgis-rest-feature-layer@^2.13.0 || 3  @esri/arcgis-rest-portal@^2.15.0 || 3  @esri/arcgis-rest-request@^2.13.0 || 3  @esri/arcgis-rest-types@^2.13.0 || 3  @esri/hub-common@^8.0.0 

Module Import:

import {
  addUsersToEvent,
  getEventFeatureServiceUrl,
  getEventQueryFromType,
  getEventServiceItem,
  getEventServiceUrl,
  registerForEvent,
  searchEvents,
  unregisterForEvent,
} from "@esri/hub-events";

CDN:

<script src="https://unpkg.com/@esri/hub-events@8.22.0/dist/umd/events.umd.min.js"></script>

CDN with SRI: