v2.11 - July 30, 2015
No breaking changes to the public API. This is a recommended update. This version is focused on improving the sync logic between the library and the feature service. Many internal-only breaking changes.
Enhancements
- Closes #361 - Deletes each database record after a successful sync rather than a batch database delete.
- Added additional properties to the
goOnline()
sync process callback object to better capture any errors. - Improved error handling when submitting edits during sync.
Breaking Changes Internal - Private
- INTERNAL:
editStore.editExists()
- if an edit does not exist then the old error message "layer id is not a match" has been replaced with "objectId is not a match". - INTERNAL:
editStore.deleteFeatureLayerJSON()
- if the deletion was unsuccessful instead of returningnull
the method now returns a message string "object was not deleted". - INTERNAL:
editsStore.resetLimitedPhantomGraphicsQueue()
- Deprecated. - INTERNAL:
offlineFeaturesManager._cleanSuccessfulEditsDatabaseRecords()
- Deprecated and replaced by_cleanDatabase()
. - INTERNAL:
offlineFeaturesManager._fieldSegment
- Deprecated. - INTERNAL:
offlineFeaturesManager._fileSegment
- Deprecated. - INTERNAL:
offlineFeaturesManager._internalApplyEdits()
- Deprecated. - INTERNAL:
offlineFeaturewsManager._internalApplyEditsFeaturecollection()
- renamed to_internalApplyEditsAll()
.