kitsu-core
Advanced tools
Comparing version 10.0.0-alpha.23 to 10.0.0-alpha.24
@@ -6,2 +6,14 @@ # Change Log | ||
# [10.0.0-alpha.24](https://github.com/wopian/kitsu/compare/v10.0.0-alpha.23...v10.0.0-alpha.24) (2022-06-23) | ||
### Bug Fixes | ||
* **kitsu-core:** fix deserialisation of relationships from primary data ([#683](https://github.com/wopian/kitsu/issues/683)) ([42b871e](https://github.com/wopian/kitsu/commit/42b871ebdd37600432613cefef247503413d890b)) | ||
# [10.0.0-alpha.23](https://github.com/wopian/kitsu/compare/v10.0.0-alpha.22...v10.0.0-alpha.23) (2022-05-03) | ||
@@ -8,0 +20,0 @@ |
@@ -12,4 +12,3 @@ 'use strict'; | ||
for (let value of array.data) { | ||
if (array.included) value = linkRelationships.linkRelationships(value, array.included); | ||
if (value.relationships) value = linkRelationships.linkRelationships(value); | ||
value = linkRelationships.linkRelationships(value, [...array.data, ...(array.included || [])]); | ||
if (value.attributes) value = deattribute.deattribute(value); | ||
@@ -16,0 +15,0 @@ array.data[array.data.indexOf(value)] = value; |
@@ -137,4 +137,3 @@ (function (global, factory) { | ||
for (let value of array.data) { | ||
if (array.included) value = linkRelationships(value, array.included); | ||
if (value.relationships) value = linkRelationships(value); | ||
value = linkRelationships(value, [...array.data, ...(array.included || [])]); | ||
if (value.attributes) value = deattribute(value); | ||
@@ -141,0 +140,0 @@ array.data[array.data.indexOf(value)] = value; |
{ | ||
"version": "10.0.0-alpha.23", | ||
"version": "10.0.0-alpha.24", | ||
"name": "kitsu-core", | ||
@@ -4,0 +4,0 @@ "description": "Simple, lightweight & framework agnostic JSON:API (de)serialsation components", |
@@ -138,3 +138,3 @@ <h1 align=center>Kitsu Core</h1> | ||
[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/camel/index.js#L14-L14 "Source code on GitHub") | ||
[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/camel/index.js#L14-L14 "Source code on GitHub") | ||
@@ -165,3 +165,3 @@ Converts kebab-case and snake_case into camelCase | ||
[packages/kitsu-core/src/deattribute/index.js:29-51](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/deattribute/index.js#L29-L51 "Source code on GitHub") | ||
[packages/kitsu-core/src/deattribute/index.js:29-51](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/deattribute/index.js#L29-L51 "Source code on GitHub") | ||
@@ -208,3 +208,3 @@ Hoists attributes to be top-level | ||
[packages/kitsu-core/src/deserialise/index.js:57-72](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/deserialise/index.js#L57-L72 "Source code on GitHub") | ||
[packages/kitsu-core/src/deserialise/index.js:56-71](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/deserialise/index.js#L56-L71 "Source code on GitHub") | ||
@@ -259,3 +259,3 @@ Deserialises a JSON-API response | ||
[packages/kitsu-core/src/error/index.js:27-33](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/error/index.js#L27-L33 "Source code on GitHub") | ||
[packages/kitsu-core/src/error/index.js:27-33](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/error/index.js#L27-L33 "Source code on GitHub") | ||
@@ -297,3 +297,3 @@ Uniform error handling for Axios, JSON:API and internal package errors. Mutated Error object is rethrown to the caller. | ||
[packages/kitsu-core/src/filterIncludes/index.js:33-46](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/filterIncludes/index.js#L33-L46 "Source code on GitHub") | ||
[packages/kitsu-core/src/filterIncludes/index.js:33-46](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/filterIncludes/index.js#L33-L46 "Source code on GitHub") | ||
@@ -338,3 +338,3 @@ Filters includes for the specific relationship requested | ||
[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/kebab/index.js#L11-L11 "Source code on GitHub") | ||
[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/kebab/index.js#L11-L11 "Source code on GitHub") | ||
@@ -357,3 +357,3 @@ Converts camelCase into kebab-case | ||
[packages/kitsu-core/src/linkRelationships/index.js:108-128](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/linkRelationships/index.js#L108-L128 "Source code on GitHub") | ||
[packages/kitsu-core/src/linkRelationships/index.js:108-128](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/linkRelationships/index.js#L108-L128 "Source code on GitHub") | ||
@@ -397,3 +397,3 @@ Links relationships to included data | ||
[packages/kitsu-core/src/query/index.js:33-42](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/query/index.js#L33-L42 "Source code on GitHub") | ||
[packages/kitsu-core/src/query/index.js:33-42](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/query/index.js#L33-L42 "Source code on GitHub") | ||
@@ -426,3 +426,3 @@ Constructs a URL query string for JSON:API parameters | ||
[packages/kitsu-core/src/serialise/index.js:213-224](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/serialise/index.js#L213-L224 "Source code on GitHub") | ||
[packages/kitsu-core/src/serialise/index.js:213-224](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/serialise/index.js#L213-L224 "Source code on GitHub") | ||
@@ -472,3 +472,3 @@ Serialises an object into a JSON-API structure | ||
[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/snake/index.js#L11-L11 "Source code on GitHub") | ||
[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/snake/index.js#L11-L11 "Source code on GitHub") | ||
@@ -491,3 +491,3 @@ Converts camelCase into snake_case | ||
[packages/kitsu-core/src/splitModel/index.js:29-39](https://github.com/wopian/kitsu/blob/87bad7afcbde28b236428f4af5f77a6b1123a993/packages/kitsu-core/src/splitModel/index.js#L29-L39 "Source code on GitHub") | ||
[packages/kitsu-core/src/splitModel/index.js:29-39](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/splitModel/index.js#L29-L39 "Source code on GitHub") | ||
@@ -494,0 +494,0 @@ Split model name from the model's resource URL |
export function camel(input: string): string; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export * from "./camel"; |
export function kebab(input: string): string; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
export function snake(input: string): string; |
@@ -0,0 +0,0 @@ /** |
Sorry, the diff of this file is not supported yet
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
91849
1128