Comparing version 1.9.5 to 1.9.6
@@ -94,2 +94,6 @@ declare type AtLeastOneProperty<T, U = { | ||
related: string; | ||
first?: string | null; | ||
last?: string | null; | ||
prev?: string | null; | ||
next?: string | null; | ||
}; | ||
@@ -96,0 +100,0 @@ export declare type TJsonApiRelationships = { |
{ | ||
"name": "jsona", | ||
"description": "Provide data formatters (data model builder & json builder) to work with JSON API specification v1.0 in your JavaScript / TypeScript code", | ||
"version": "1.9.5", | ||
"version": "1.9.6", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "json-api", |
# Jsona | ||
Framework agnostic, customizable library that provide data formatters to simplify work with JSON API [v1.0 specification](http://jsonapi.org/format/1.0/). | ||
JSON API [v1.0 specification](http://jsonapi.org/format/1.0/) serializer and deserializer for use on the server and in the browser. | ||
* From JSON to simplified objects | ||
* Back from simplified objects to JSON (in according with [json:api specification](http://jsonapi.org/format/1.0/)) | ||
* Also from "reduxObject" to simplified objects (`reduxObject` is a result object of [json-api-normalizer](https://github.com/yury-dymov/json-api-normalizer)) | ||
[![NPM](https://img.shields.io/npm/v/jsona.svg)](https://www.npmjs.com/package/jsona/) | ||
[![Build Status](https://travis-ci.org/olosegres/jsona.svg?branch=master)](https://travis-ci.org/olosegres/jsona) | ||
[![dependencies](https://camo.githubusercontent.com/cdc54d1641f5e11e246a2707063ecad092c96d11/68747470733a2f2f64617669642d646d2e6f72672f6477796c2f657374612e737667)](https://www.npmjs.com/package/jsona/) | ||
[![dependencies](https://img.shields.io/static/v1?label=dependencies&message=none&color=success)](https://www.npmjs.com/package/jsona/) | ||
[![downloads](https://img.shields.io/npm/dm/jsona.svg)](https://www.npmjs.com/package/jsona/) | ||
### What problem does it solve? | ||
#### What problem does it solve? | ||
When you work with API standardized to [json:api specification](http://jsonapi.org/format/1.0/), you're dealing with a special and optimized JSON data format in the request and response body. | ||
@@ -20,9 +23,2 @@ You can get data of several entities that are related to each other, but you'll receive it in array (included). | ||
Jsona solves this problems by providing: | ||
* converter from JSON to simplified objects (some denormalized structure, wich is easy to typify) | ||
* converter from simplified objects to JSON (in according with [json:api specification](http://jsonapi.org/format/1.0/)) | ||
* converter from "reduxObject" to simplified objects (`reduxObject` is a result object of [json-api-normalizer](https://github.com/yury-dymov/json-api-normalizer)) | ||
*NOTE:* This README describes latest stable version. You can read [README for old versions 0.2.x here](README_0_2.md) | ||
### Installation | ||
@@ -193,3 +189,3 @@ | ||
export default const dataFormatter = new Jsona({ | ||
export const dataFormatter = new Jsona({ | ||
modelPropertiesMapper: MyModelPropertiesMapper, | ||
@@ -208,3 +204,3 @@ jsonPropertiesMapper: MyJsonPropertiesMapper | ||
export default const dataFormatter = new Jsona({ | ||
export const dataFormatter = new Jsona({ | ||
DeserializeCache: MyOwnDeserializeCache | ||
@@ -211,0 +207,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1241
93574
209