Skip to content

Commit

Permalink
Merge pull request #474 from andygup/3.3
Browse files Browse the repository at this point in the history
v3.3
  • Loading branch information
andygup committed Jul 12, 2016
2 parents 04a3198 + 63f2091 commit 7dee7b0
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 18 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# offline-editor-js - Changelog

## Version 3.3.0 - June 12, 2016

No breaking changes.

**Enhancements**
* Closes #473 - offline edits breaking when special characters such as "&" are used within attribute values.

## Changed deprecation notice to Maintenance Mode notice - June 1, 2016

Per several requests, this hopefully clarifies that the library is still being maintained and not being
removed.

## Deprecation details - May 23, 2016

For details and comments on the deprecation refer to this [issue](https://github.com/Esri/offline-editor-js/issues/468).
Expand Down
2 changes: 1 addition & 1 deletion dist/offline-edit-advanced-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/offline-edit-advanced-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
// Configure offline/online detection
Expand Down Expand Up @@ -2033,15 +2033,15 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
if(update.hasOwnProperty("infoTemplate")){ // if the update has an infoTemplate attached,
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];
Expand Down
2 changes: 1 addition & 1 deletion dist/offline-edit-basic-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/offline-edit-basic-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
// Configure offline/online detection
Expand Down Expand Up @@ -944,15 +944,15 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
if(update.hasOwnProperty("infoTemplate")){ // if the update has an infoTemplate attached,
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];
Expand Down
2 changes: 1 addition & 1 deletion dist/offline-tiles-advanced-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
define([
Expand Down
2 changes: 1 addition & 1 deletion dist/offline-tiles-basic-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
define([
Expand Down
2 changes: 1 addition & 1 deletion dist/offline-tpk-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
/**
Expand Down
4 changes: 2 additions & 2 deletions lib/edit/OfflineEditAdvanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -2017,15 +2017,15 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
if(update.hasOwnProperty("infoTemplate")){ // if the update has an infoTemplate attached,
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];
Expand Down
4 changes: 2 additions & 2 deletions lib/edit/OfflineEditBasic.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,15 +928,15 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
if(update.hasOwnProperty("infoTemplate")){ // if the update has an infoTemplate attached,
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esri-offline-maps",
"version": "3.2.0",
"version": "3.3.0",
"description": "Lightweight set of libraries for working offline with map tiles and editing with ArcGIS feature services",
"author": "Andy Gup <agup@esri.com> (http://blog.andygup.net)",
"license": "Apache 2.0",
Expand Down
2 changes: 1 addition & 1 deletion samples/appcache-features.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html manifest="appcache-features.appcache">
<!--<html manifest="appcache-features.appcache">-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"appHomePage": "appcache-tiles.html",
"optimizedApiURL": "../samples/jsolib",
"arcGISBaseURL": "http://js.arcgis.com/3.14",
"version": "3.2.0",
"version": "3.3.0",
"private": true,
"description": "manifest generator project",
"repository": {
Expand Down

0 comments on commit 7dee7b0

Please sign in to comment.