Skip to content

Commit 28484fe

Browse files
committed
#0000 Project: Finalization of version 1.3.1
1 parent e008b92 commit 28484fe

10 files changed

+28
-24
lines changed

CHANGES

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.3.1 20200202
2+
BF: DataSource: Correction for loading and caching
3+
Affects mainly MS Edge.
4+
15
1.3.0 20200202
26
BF: Composite Expression Parse: Correction in the detection/processing of escape sequences
37
Error example: {{'abc\'123'}}

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA.
7979

8080

8181
# Downloads
82-
[Seanox aspect-js 1.3.0](https://raw.githubusercontent.com/seanox/aspect-js/master/releases/aspect-js-1.3.0.zip)
83-
[Seanox aspect-js 1.3.0 Sources](https://raw.githubusercontent.com/seanox/aspect-js/master/releases/aspect-js-1.3.0-src.zip)
82+
[Seanox aspect-js 1.3.1](https://raw.githubusercontent.com/seanox/aspect-js/master/releases/aspect-js-1.3.1.zip)
83+
[Seanox aspect-js 1.3.1 Sources](https://raw.githubusercontent.com/seanox/aspect-js/master/releases/aspect-js-1.3.1-src.zip)
8484

8585

8686
# Release Channels
@@ -107,7 +107,7 @@ date when using the release channels.
107107

108108

109109
# Changes (Change Log)
110-
## 1.3.0 20200202 (summary of the current version)
110+
## 1.3.1 20200202 (summary of the current version)
111111
BF: Composite Expression Parse: Correction in the detection/processing of escape sequences
112112
BF: DataSource Collect: Correction of the cache usage with a collector
113113
BF: DataSource Fetch: Correction of the pattern of schema switching

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "seanox",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Fullstack JavaScript UI Framework for SPAs incl. rendering, markup hardening, mvc, models, expression language, datasource, virtual paths, unit test and some more",
55
"main": "releases/aspect-js-min.js",
66
"repository": {

releases/aspect-js-1.3.1-src.zip

184 KB
Binary file not shown.

releases/aspect-js-1.3.1.zip

86.8 KB
Binary file not shown.

releases/aspect-js-1.x-min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

releases/aspect-js-1.x.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,12 @@ if (window.location.pathcontext === undefined) {
445445
* The data is queried with XPath, the result can be concatenated and
446446
* aggregated and the result can be transformed with XSLT.
447447
*
448-
* DataSource 1.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -642,7 +642,7 @@ if (typeof DataSource === "undefined") {
642642
//Workaround for some browsers, e.g. MS Edge, if they have problems with
643643
//!DOCTYPE + !ENTITY. Therefore the document is copied so that the
644644
//DOCTYPE declaration is omitted.
645-
var result = processor.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

releases/aspect-js-min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

releases/aspect-js.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,12 @@ if (window.location.pathcontext === undefined) {
445445
* The data is queried with XPath, the result can be concatenated and
446446
* aggregated and the result can be transformed with XSLT.
447447
*
448-
* DataSource 1.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -642,7 +642,7 @@ if (typeof DataSource === "undefined") {
642642
//Workaround for some browsers, e.g. MS Edge, if they have problems with
643643
//!DOCTYPE + !ENTITY. Therefore the document is copied so that the
644644
//DOCTYPE declaration is omitted.
645-
var result = processor.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

sources/datasource.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
* The data is queried with XPath, the result can be concatenated and
4141
* aggregated and the result can be transformed with XSLT.
4242
*
43-
* DataSource 1.3.0 20200201
43+
* DataSource 1.3.1 20200202
4444
* Copyright (C) 2020 Seanox Software Solutions
4545
* Alle Rechte vorbehalten.
4646
*
4747
* @author Seanox Software Solutions
48-
* @version 1.3.0 20200201
48+
* @version 1.3.1 20200202
4949
*/
5050
if (typeof DataSource === "undefined") {
5151

@@ -124,12 +124,12 @@ if (typeof DataSource === "undefined") {
124124
throw new Error("Locale not available");
125125

126126
var request = new XMLHttpRequest();
127+
request.overrideMimeType("application/xslt+xml");
127128
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
128129
request.send();
129130
if (request.status == 404)
130131
return;
131132
request.open("GET", DataSource.DATA + "/locales.xml", false);
132-
request.overrideMimeType("application/xslt+xml");
133133
request.send();
134134

135135
//DataSource.data
@@ -237,7 +237,7 @@ if (typeof DataSource === "undefined") {
237237
//Workaround for some browsers, e.g. MS Edge, if they have problems with
238238
//!DOCTYPE + !ENTITY. Therefore the document is copied so that the
239239
//DOCTYPE declaration is omitted.
240-
var result = processor.transformToDocument(xml);
240+
var result = processor.transformToDocument(xml.clone());
241241
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
242242
nodes.forEach((node) => {
243243
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -308,15 +308,15 @@ if (typeof DataSource === "undefined") {
308308
return DataSource.cache[hash];
309309

310310
var request = new XMLHttpRequest();
311-
request.open("GET", data, false);
312311
request.overrideMimeType("application/xslt+xml");
312+
request.open("GET", data, false);
313313
request.send();
314314
if (request.status != 200)
315315
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
316316
data = request.responseXML;
317317
DataSource.cache[hash] = data;
318318

319-
return data;
319+
return data.clone();
320320
}
321321

322322
if (!type.match(/^xml$/)

0 commit comments

Comments
 (0)