Version 3.1.1

@esri/arcgis-rest-feature-layer

Feature layer query and edit helpers for @esri/arcgis-rest-js

npm install:

npm install @esri/arcgis-rest-feature-layer @esri/arcgis-rest-auth@^3.0.0  @esri/arcgis-rest-request@^3.0.0 

Module Import:

import {
  addFeatures,
  addAttachment,
  applyEdits,
  decodeValues,
  deleteFeatures,
  deleteAttachments,
  getAttachments,
  getLayer,
  getService,
  getFeature,
  queryFeatures,
  queryRelated,
  updateFeatures,
  updateAttachment,
} from "@esri/arcgis-rest-feature-layer";

CDN:

<script src="https://unpkg.com/@esri/arcgis-rest-feature-layer@3.1.1/dist/umd/feature-layer.umd.min.js"></script>

CDN with SRI:

<script src="https://unpkg.com/@esri/arcgis-rest-feature-layer@3.1.1/dist/umd/feature-layer.umd.min.js" integrity="sha384-Q1PuZ+foD0rB0C/J1rj/jHnCVCw6jvbzg5BGTi54/R9Fghm1e75rb/VxjbSBXVTy" crossorigin="anonymous"></script>