Skip to content

Commit

Permalink
Merge pull request #11 from williamtroup/1.2.1
Browse files Browse the repository at this point in the history
1.2.1
  • Loading branch information
William Troup authored Jun 17, 2024
2 parents 0ce3407 + c366ebd commit f875543
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 14 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
JHson.js

[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JHson.js%2C%20a%20free%20JavaScript%json%20converter&url=https://github.com/williamtroup/JHson.js&hashtags=javascript,json,html,converter)
[![npm](https://img.shields.io/badge/npmjs-v1.2.0-blue)](https://www.npmjs.com/package/jhson.js)
[![nuget](https://img.shields.io/badge/nuget-v1.2.0-purple)](https://www.nuget.org/packages/JHson.js/)
[![npm](https://img.shields.io/badge/npmjs-v1.2.1-blue)](https://www.npmjs.com/package/jhson.js)
[![nuget](https://img.shields.io/badge/nuget-v1.2.1-purple)](https://www.nuget.org/packages/JHson.js/)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JHson.js/blob/main/LICENSE.txt)
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JHson.js/discussions)
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
</h1>

> <p align="center">📃 A JavaScript library for converting between HTML and JSON, with binding, templating, attributes, and CSS support.</p>
> <p align="center">v1.2.0</p>
> <p align="center">v1.2.1</p>
<br />
<br />

<h1>What features does JHson.js have?</h1>

- Zero-dependencies and extremely lightweight!
- Exportable for use in other frameworks!
- Full API available via public functions.
- Full support for Attributes, CSS style properties, and formatted text!
- Write your JSON directly to any DOM element for rendering.
Expand Down
7 changes: 4 additions & 3 deletions README_NUGET.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# JHson.js v1.2.0
# JHson.js v1.2.1

[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JHson.js%2C%20a%20free%20JavaScript%json%20converter&url=https://github.com/williamtroup/JHson.js&hashtags=javascript,json,html,converter)
[![npm](https://img.shields.io/badge/npmjs-v1.2.0-blue)](https://www.npmjs.com/package/jhson.js)
[![nuget](https://img.shields.io/badge/nuget-v1.2.0-purple)](https://www.nuget.org/packages/JHson.js/)
[![npm](https://img.shields.io/badge/npmjs-v1.2.1-blue)](https://www.npmjs.com/package/jhson.js)
[![nuget](https://img.shields.io/badge/nuget-v1.2.1-purple)](https://www.nuget.org/packages/JHson.js/)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JHson.js/blob/main/LICENSE.txt)
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JHson.js/discussions)
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
Expand All @@ -13,6 +13,7 @@
## What features does JHson.js have?

- Zero-dependencies and extremely lightweight!
- Exportable for use in other frameworks!
- Full API available via public functions.
- Full support for Attributes, CSS style properties, and formatted text!
- Write your JSON directly to any DOM element for rendering.
Expand Down
6 changes: 6 additions & 0 deletions dist/jhson.export.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*! JHson.js v1.2.1 | (c) Bunoon 2024 | MIT License */
var jhson = {js:function() {
return window.$jhson;
}};
Object.assign(window, {jhson});
export{jhson};
2 changes: 2 additions & 0 deletions dist/jhson.export.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*! JHson.js v1.2.1 | (c) Bunoon 2024 | MIT License */
var jhson={js:function(){return window.$jhson}};Object.assign(window,{jhson});export{jhson};
4 changes: 2 additions & 2 deletions dist/jhson.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JHson.js v1.2.0 | (c) Bunoon 2024 | MIT License */
/*! JHson.js v1.2.1 | (c) Bunoon 2024 | MIT License */
(function() {
var _parameter_Document = null, _parameter_Window = null, _parameter_JSON = null, _parameter_Math = null, _public = {}, _configuration = {}, _elements_Type = {}, _string = {empty:"", space:" ", newLine:"\n", variableStart:"{{", variableEnd:"}}", variableDefault:"|"}, _json = {text:"#text", cssStyle:"$", attribute:"@", children:"&children",}, _value = {notFound:-1}, _attribute_Name_Options = "data-jhson-js";
function render() {
Expand Down Expand Up @@ -585,7 +585,7 @@
_configuration.attributeNotSetErrorText = getDefaultString(_configuration.attributeNotSetErrorText, "The attribute '{{attribute_name}}' has not been set correctly.");
}
_public.getVersion = function() {
return "1.2.0";
return "1.2.1";
};
(function(documentObject, windowObject, jsonObject, mathObject) {
_parameter_Document = documentObject;
Expand Down
4 changes: 2 additions & 2 deletions dist/jhson.min.js

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

6 changes: 6 additions & 0 deletions docs/CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# JHson.js - Change Log:

## Version 1.2.1:
- Added export support for the global "$jhson" object, which can now be imported as "jhson.js".

<br>


## Version 1.2.0:
- BREAKING: Renamed the binding attribute "data-jhson-options" to "data-jhson-js".
- The public function "setConfiguration()" can now only be called with a valid object.
Expand Down
2 changes: 1 addition & 1 deletion jhson.js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>JHson.js</id>
<version>1.2.0</version>
<version>1.2.1</version>
<title>JHson.js</title>
<description>A JavaScript library for converting between HTML and JSON, with binding, templating, attributes, and CSS support.</description>
<authors>William Troup</authors>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jhson.js",
"title": "JHson.js",
"description": "A JavaScript library for converting between HTML and JSON, with binding, templating, attributes, and CSS support.",
"version": "1.2.0",
"version": "1.2.1",
"main": "dist/jhson.js",
"homepage": "https://www.william-troup.com/jhson-js/",
"author": {
Expand Down
22 changes: 22 additions & 0 deletions src/jhson.export.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* JHson.js
*
* A JavaScript library for converting between HTML and JSON, with binding, templating, attributes, and CSS support.
*
* @file jhson.js
* @version v1.2.1
* @author Bunoon
* @license MIT License
* @copyright Bunoon 2024
*/


var jhson = {
js: function() {
return window.$jhson;
}
};

Object.assign( window, { jhson } );

export { jhson };
4 changes: 2 additions & 2 deletions src/jhson.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* A JavaScript library for converting between HTML and JSON, with binding, templating, attributes, and CSS support.
*
* @file jhson.js
* @version v1.2.0
* @version v1.2.1
* @author Bunoon
* @license MIT License
* @copyright Bunoon 2024
Expand Down Expand Up @@ -1378,7 +1378,7 @@
* @returns {string} The version number.
*/
_public.getVersion = function() {
return "1.2.0";
return "1.2.1";
};


Expand Down

0 comments on commit f875543

Please sign in to comment.