Skip to content

Commit

Permalink
v1.0.9 release
Browse files Browse the repository at this point in the history
Replacement of truncated version of jsrender.min.js.map with correct
non-truncated version.

This update is otherwise identical to v1.0.8.

Details:

  In v1.0.8 there was an erroneously truncated version of jsrender.min.js.map in the
  JsViews GitHub repositories, as well as on the CDN:
  - https://cdnjs.cloudflare.com/ajax/libs/jsviews/1.0.8/jsrender.min.js.map

  (Note that the v1.0.8 version at https://www.jsviews.com/download/jsrender.min.js.map
  was the correct complete file - also available here:
  https://raw.githubusercontent.com/BorisMoore/jsviews.com/febf6d8975dc66e18ff2b600f565c42ed286e4b4/download/jsrender.min.js.map)

With this update, all truncated versions are replaced by the correct complete
file.

See #445 (comment)
and BorisMoore/jsrender#362
  • Loading branch information
BorisMoore committed Dec 5, 2020
1 parent 9bb4aab commit 51c1947
Show file tree
Hide file tree
Showing 30 changed files with 109 additions and 82 deletions.
4 changes: 2 additions & 2 deletions jquery.observable.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsObservable v1.0.8: http://jsviews.com/#jsobservable */
/*! JsObservable v1.0.9: http://jsviews.com/#jsobservable */
/*
* Subcomponent of JsViews
* Data change events for data-linking
Expand Down Expand Up @@ -44,7 +44,7 @@ if (!$ || !$.fn) {
throw "jquery.observable.js requires jQuery"; // We require jQuery
}

var versionNumber = "v1.0.8",
var versionNumber = "v1.0.9",
_ocp = "_ocp", // Observable contextual parameter
$observe, $observable,

Expand Down
4 changes: 2 additions & 2 deletions jquery.observable.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jquery.observable.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jquery.views.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jquery.views.js v1.0.8: http://jsviews.com/ */
/*! jquery.views.js v1.0.9: http://jsviews.com/ */
/*
* Interactive data-driven views using JsRender templates.
* Subcomponent of JsViews
Expand Down Expand Up @@ -44,7 +44,7 @@ var setGlobals = $ === false; // Only set globals if script block in browser (no
jsr = jsr || setGlobals && global.jsrender;
$ = $ || global.jQuery;

var versionNumber = "v1.0.8",
var versionNumber = "v1.0.9",
requiresStr = "jquery.views.js requires ";

if (!$ || !$.fn) {
Expand Down
4 changes: 2 additions & 2 deletions jquery.views.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jquery.views.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jsrender.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsRender v1.0.8: http://jsviews.com/#jsrender */
/*! JsRender v1.0.9: http://jsviews.com/#jsrender */
/*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */
/*
* Best-of-breed templating in browser or on Node.js.
Expand Down Expand Up @@ -44,7 +44,7 @@ var setGlobals = $ === false; // Only set globals if script block in browser (no

$ = $ && $.fn ? $ : global.jQuery; // $ is jQuery passed in by CommonJS loader (Browserify), or global jQuery.

var versionNumber = "v1.0.8",
var versionNumber = "v1.0.9",
jsvStoreName, rTag, rTmplString, topView, $views, $expando,
_ocp = "_ocp", // Observable contextual parameter

Expand Down
4 changes: 2 additions & 2 deletions jsrender.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jsrender.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jsviews.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jsviews.js v1.0.8 single-file version: http://jsviews.com/ */
/*! jsviews.js v1.0.9 single-file version: http://jsviews.com/ */
/*! includes JsRender, JsObservable and JsViews - see: http://jsviews.com/#download */

/* Interactive data-driven views using JsRender templates */
Expand Down Expand Up @@ -47,7 +47,7 @@ if (!$ || !$.fn) {
throw "JsViews requires jQuery"; // We require jQuery
}

var versionNumber = "v1.0.8",
var versionNumber = "v1.0.9",

jsvStoreName, rTag, rTmplString, topView, $views, $observe, $observable, $expando,
_ocp = "_ocp", // Observable contextual parameter
Expand Down
4 changes: 2 additions & 2 deletions jsviews.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jsviews.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsviews",
"version": "v1.0.8",
"version": "v1.0.9",
"description": "Next-generation MVVM and MVP framework - built on top of JsRender templates. Bringing templates to life...",
"main": "./jsviews.js",
"author": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"browserify": "^11.0.1",
"glob-stream": "^5.0.0",
"gulp": "^3.9.0",
"jsrender": "^1.0.8",
"jsrender": "^1.0.9",
"qunit": "^0.7.6"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions test/browserify/bundles/1-bundle.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions test/browserify/bundles/10-errors-bundle.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions test/browserify/bundles/11-errors-bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/browserify/bundles/12-nested-bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/browserify/bundles/2-bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/browserify/bundles/3-bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/browserify/bundles/4-bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/browserify/bundles/5-bundle.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions test/browserify/bundles/6-bundle.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions test/browserify/bundles/7-bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/browserify/bundles/8-bundle.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions test/browserify/bundles/8B-bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/browserify/bundles/9-bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ <h2>Unit tests for JsViews and JsRender</h2>
<li>- <a href="unit-tests-amd-scriptloader.html">AMD scriptloader</a></li>
<li>- <a href="unit-tests-browserify.html">Browserify client code</a></li>
<li>- <a href="test-pages/index.html">Further test pages</a></li>
<li>- <a href="test.min.map.html">Test for truncated min.map.js files</a></li>
</ul>
</body>
</html>
26 changes: 26 additions & 0 deletions test/test.min.map.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-3.5.1.js"></script>
<script src="../jsrender.min.js"></script>
<script src="../jquery.observable.min.js"></script>
<script src="../jquery.views.min.js"></script>
<script src="../jsviews.min.js"></script>
</head>
<body>

<script id="myTemplate" type="text/x-jsrender">HEY</script>

Got to F12 debug and see if you have an error:
<br/><br/><b>DevTools failed to load SourceMap: Could not parse content for ...</b>
<br/><br/>
<div id="result"></div>

<script>
var html = $("#myTemplate").render({});

$("#result").html(html);
</script>

</body>
</html>
4 changes: 2 additions & 2 deletions test/unit-tests/requirejs-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Configure loading modules from the download directory,
requirejs.config({
"baseUrl": "//www.jsviews.com/download", // Or point to correct local path on your system: "baseUrl": "/download",
// "baseUrl": "../../download", // Or point to correct local path on your system: "baseUrl": "/download",
// "baseUrl": "//www.jsviews.com/download", // Or point to correct local path on your system: "baseUrl": "/download",
"baseUrl": "./../", // Or point to correct local path on your system: "baseUrl": "/../",
"paths": {
"jquery": "//code.jquery.com/jquery-3.5.1",
"jsrender": "./jsrender",
Expand Down
2 changes: 1 addition & 1 deletion typescript/jsviews/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Type definitions for JsViews 1.0
// Version: "v1.0.8"
// Version: "v1.0.9"
// Project: http://www.jsviews.com/#jsviews
// Definitions by: Boris Moore <https://github.com/borismoore>
// Definitions: https://www.jsviews.com/download/typescript/jsviews/index.d.ts
Expand Down

0 comments on commit 51c1947

Please sign in to comment.