-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pull request of GitHub user @gempain
- Loading branch information
1 parent
a236de7
commit 08ea88a
Showing
16 changed files
with
855 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
/.idea | ||
/coverage | ||
/node_modules | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# v0.9.7 (2017-07-15) | ||
|
||
## Bug Fixes | ||
|
||
* Fixed issue with `ValueCheckingMode` by using an enum instead of a nested class, closes [#10](https://github.com/dhlab-basel/json2typescript/issues/10) and [#11](https://github.com/dhlab-basel/json2typescript/issues/11) | ||
* Added missing js references, closes [#11](https://github.com/dhlab-basel/json2typescript/issues/11) and [#16](https://github.com/dhlab-basel/json2typescript/issues/16) | ||
|
||
## Features | ||
|
||
* Allow serialization the same way as deserialization, closes [#4](https://github.com/dhlab-basel/json2typescript/issues/4) | ||
* Added custom converters, closes [#6](https://github.com/dhlab-basel/json2typescript/issues/6) | ||
* Use class methods instead of static methods, closes [#14](https://github.com/dhlab-basel/json2typescript/issues/14) | ||
|
||
## Breaking Changes | ||
|
||
* Use an instance of `JsonConvert` its class methods instead of the static methods. | ||
|
||
* The property `valueCheckingMode` of the `JsonConvert` class needs to be set using the exported enum `ValueCheckingMode` instead of the inner class `JsonConvert.ValueCheckingMode`. If you would like to set the `valueCheckingMode`, please make the additional import of `ValueCheckingMode` and use this. | ||
|
||
# 0.9.6 (2017-01-18) | ||
Fixed errors in ReadMe and small bug on JsonConvert. | ||
|
||
# 0.9.5 (2017-12-11): | ||
New method for deserializing array of objects. | ||
|
||
# 0.9.4 (2017-11-22): | ||
Class properties are now not overridden to `undefined` if there is no decorator and no matching json value. | ||
|
||
# 0.9.3 (2017-11-16): | ||
It is now possible to map an JSON object to an TypeScript array, then the object keys become the array keys. Also, class properties can be set to optional. See below in the chapter "decorators" for more information. | ||
|
||
# 0.9.2 (2017-10-10): | ||
Added method `serializeString()`, changed property names and behaviour. | ||
|
||
# 0.9.1 (2017-10-06): | ||
First version released to the public. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
export { JsonConvert, JsonObject, JsonProperty } from "./src/json2typescript/json-convert"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = function (config) { | ||
config.set({ | ||
plugins: [ | ||
'karma-jasmine', | ||
'karma-mocha-reporter', | ||
'karma-phantomjs-launcher', | ||
'karma-typescript' | ||
], | ||
frameworks: ['jasmine', 'karma-typescript'], | ||
files: [ | ||
'test/**/*.ts', | ||
'src/**/*.ts' | ||
], | ||
preprocessors: { | ||
'src/**/*.ts': ['karma-typescript'], | ||
'test/**/*.ts': ['karma-typescript'] | ||
}, | ||
reporters: ['mocha', 'karma-typescript'], | ||
browsers: ['PhantomJS'], | ||
singleRun: true, | ||
colors: true, | ||
karmaTypescriptConfig: { | ||
coverageOptions: { | ||
exclude: /test\/.*/ | ||
}, | ||
reports: { | ||
'text': '', | ||
'html': 'coverage' | ||
} | ||
} | ||
}) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,33 @@ | |
"author": "[email protected]", | ||
"license": "MIT", | ||
"homepage": "http://dhlab.unibas.ch", | ||
"typings": "src/index", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "karma start karma.conf.js", | ||
"build": "npm run test && tsc", | ||
"dist": "npm run build && npm pack" | ||
}, | ||
"typescript": { | ||
"definition": "index.d.ts" | ||
"definition": "dist/index.d.ts" | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"@types/jasmine": "^2.5.52", | ||
"jasmine": "2.6.0", | ||
"karma": "^1.7.0", | ||
"karma-jasmine": "1.1.0", | ||
"karma-mocha-reporter": "^2.2.3", | ||
"karma-phantomjs-launcher": "1.0.4", | ||
"karma-typescript": "^3.0.3", | ||
"phantomjs-prebuilt": "2.1.14", | ||
"typescript": "2.3.4" | ||
}, | ||
"main": "index.js", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dhlab-basel/json2typescript" | ||
|
Oops, something went wrong.