Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kitsu-core

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitsu-core - npm Package Compare versions

Comparing version 10.0.0-alpha.10 to 10.0.0-alpha.11

267

CHANGELOG.md

@@ -6,8 +6,17 @@ # Change Log

# [10.0.0-alpha.10](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.9...v10.0.0-alpha.10) (2021-02-04)
# [10.0.0-alpha.11](https://github.com/wopian/kitsu/compare/v10.0.0-alpha.10...v10.0.0-alpha.11) (2021-06-07)
**Note:** Version bump only for package kitsu-core
# [10.0.0-alpha.10](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.9...v10.0.0-alpha.10) (2021-02-04)
### Bug Fixes
* **kitsu-core:** prevent empty relationships from being stripped during serialisation ([8a7d453](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/8a7d453)), closes [#517](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/517)
* **kitsu-core:** prevent empty relationships from being stripped during serialisation ([8a7d453](https://github.com/wopian/kitsu-core/commit/8a7d453)), closes [#517](https://github.com/wopian/kitsu-core/issues/517)

@@ -17,3 +26,3 @@

* **release:** update documentation ([92d4246](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/92d4246))
* **release:** update documentation ([92d4246](https://github.com/wopian/kitsu-core/commit/92d4246))

@@ -23,3 +32,3 @@

* **kitsu-core:** fix typo in MIGRATING.md ([9a51336](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/9a51336))
* **kitsu-core:** fix typo in MIGRATING.md ([9a51336](https://github.com/wopian/kitsu-core/commit/9a51336))

@@ -29,3 +38,3 @@

* add test for empty to-one/to-many relationship serialisation ([0dda0fe](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/0dda0fe))
* add test for empty to-one/to-many relationship serialisation ([0dda0fe](https://github.com/wopian/kitsu-core/commit/0dda0fe))

@@ -36,3 +45,3 @@

# [10.0.0-alpha.9](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.8...v10.0.0-alpha.9) (2021-01-06)
# [10.0.0-alpha.9](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.8...v10.0.0-alpha.9) (2021-01-06)

@@ -42,3 +51,3 @@

* **release:** update documentation ([840d383](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/840d383))
* **release:** update documentation ([840d383](https://github.com/wopian/kitsu-core/commit/840d383))

@@ -48,3 +57,3 @@

* update minimum browser support for compiled outputs ([1bd4f77](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/1bd4f77))
* update minimum browser support for compiled outputs ([1bd4f77](https://github.com/wopian/kitsu-core/commit/1bd4f77))

@@ -54,4 +63,4 @@

* **kitsu-core:** change camel, kebab and snake to named exports ([1accdbb](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/1accdbb))
* **kitsu-core:** change output directory to `dist` ([ddcbe09](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/ddcbe09)), closes [#510](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/510)
* **kitsu-core:** change camel, kebab and snake to named exports ([1accdbb](https://github.com/wopian/kitsu-core/commit/1accdbb))
* **kitsu-core:** change output directory to `dist` ([ddcbe09](https://github.com/wopian/kitsu-core/commit/ddcbe09)), closes [#510](https://github.com/wopian/kitsu-core/issues/510)

@@ -63,3 +72,3 @@

# [10.0.0-alpha.8](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.7...v10.0.0-alpha.8) (2020-12-06)
# [10.0.0-alpha.8](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.7...v10.0.0-alpha.8) (2020-12-06)

@@ -69,6 +78,6 @@

* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.7.0 ([#487](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/487)) ([e82cafa](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/e82cafa))
* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.8.0 ([#493](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/493)) ([50cfe59](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/50cfe59))
* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.9.0 ([#498](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/498)) ([68170d2](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/68170d2))
* drop node 10 support ([#484](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/484)) ([e34fcec](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/e34fcec))
* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.7.0 ([#487](https://github.com/wopian/kitsu-core/issues/487)) ([e82cafa](https://github.com/wopian/kitsu-core/commit/e82cafa))
* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.8.0 ([#493](https://github.com/wopian/kitsu-core/issues/493)) ([50cfe59](https://github.com/wopian/kitsu-core/commit/50cfe59))
* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.9.0 ([#498](https://github.com/wopian/kitsu-core/issues/498)) ([68170d2](https://github.com/wopian/kitsu-core/commit/68170d2))
* drop node 10 support ([#484](https://github.com/wopian/kitsu-core/issues/484)) ([e34fcec](https://github.com/wopian/kitsu-core/commit/e34fcec))

@@ -78,3 +87,3 @@

* **release:** update documentation ([fe39500](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/fe39500))
* **release:** update documentation ([fe39500](https://github.com/wopian/kitsu-core/commit/fe39500))

@@ -86,3 +95,3 @@

# [10.0.0-alpha.7](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.6...v10.0.0-alpha.7) (2020-10-25)
# [10.0.0-alpha.7](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.6...v10.0.0-alpha.7) (2020-10-25)

@@ -92,3 +101,3 @@

* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.6.0 ([#469](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/469)) ([e9d2feb](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/e9d2feb))
* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.6.0 ([#469](https://github.com/wopian/kitsu-core/issues/469)) ([e9d2feb](https://github.com/wopian/kitsu-core/commit/e9d2feb))

@@ -98,3 +107,3 @@

* **release:** update documentation ([6d025ca](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/6d025ca))
* **release:** update documentation ([6d025ca](https://github.com/wopian/kitsu-core/commit/6d025ca))

@@ -105,3 +114,3 @@

# [10.0.0-alpha.6](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.5...v10.0.0-alpha.6) (2020-08-22)
# [10.0.0-alpha.6](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.5...v10.0.0-alpha.6) (2020-08-22)

@@ -111,3 +120,3 @@

* **release:** update documentation ([e71b1dc](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/e71b1dc))
* **release:** update documentation ([e71b1dc](https://github.com/wopian/kitsu-core/commit/e71b1dc))

@@ -118,3 +127,3 @@

# [10.0.0-alpha.5](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.4...v10.0.0-alpha.5) (2020-08-04)
# [10.0.0-alpha.5](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.4...v10.0.0-alpha.5) (2020-08-04)

@@ -124,3 +133,3 @@

* **release:** update documentation ([2f479c2](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/2f479c2))
* **release:** update documentation ([2f479c2](https://github.com/wopian/kitsu-core/commit/2f479c2))

@@ -130,3 +139,3 @@

* fix markdown links ([e29946a](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/e29946a))
* fix markdown links ([e29946a](https://github.com/wopian/kitsu-core/commit/e29946a))

@@ -137,3 +146,3 @@

# [10.0.0-alpha.4](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.3...v10.0.0-alpha.4) (2020-08-04)
# [10.0.0-alpha.4](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.3...v10.0.0-alpha.4) (2020-08-04)

@@ -143,4 +152,4 @@

* **release:** update documentation ([56b33eb](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/56b33eb))
* add funding to package.json ([8b00d5a](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/8b00d5a))
* **release:** update documentation ([56b33eb](https://github.com/wopian/kitsu-core/commit/56b33eb))
* add funding to package.json ([8b00d5a](https://github.com/wopian/kitsu-core/commit/8b00d5a))

@@ -150,3 +159,3 @@

* specify the Kitsu package default ([239cd86](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/239cd86))
* specify the Kitsu package default ([239cd86](https://github.com/wopian/kitsu-core/commit/239cd86))

@@ -157,3 +166,3 @@

# [10.0.0-alpha.3](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.2...v10.0.0-alpha.3) (2020-07-26)
# [10.0.0-alpha.3](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.2...v10.0.0-alpha.3) (2020-07-26)

@@ -163,3 +172,3 @@

* **release:** update documentation ([f89a7cf](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/f89a7cf))
* **release:** update documentation ([f89a7cf](https://github.com/wopian/kitsu-core/commit/f89a7cf))

@@ -169,3 +178,3 @@

* add typescript types badges ([3a09066](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/3a09066))
* add typescript types badges ([3a09066](https://github.com/wopian/kitsu-core/commit/3a09066))

@@ -176,3 +185,3 @@

# [10.0.0-alpha.2](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.1...v10.0.0-alpha.2) (2020-07-16)
# [10.0.0-alpha.2](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.1...v10.0.0-alpha.2) (2020-07-16)

@@ -182,3 +191,3 @@

* **kitsu-core:** allow longer prototype chain on serialise ([#447](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/447)) ([7826683](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/7826683))
* **kitsu-core:** allow longer prototype chain on serialise ([#447](https://github.com/wopian/kitsu-core/issues/447)) ([7826683](https://github.com/wopian/kitsu-core/commit/7826683))

@@ -188,3 +197,3 @@

* **release:** update documentation ([699bb64](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/699bb64))
* **release:** update documentation ([699bb64](https://github.com/wopian/kitsu-core/commit/699bb64))

@@ -194,3 +203,3 @@

* move contributing, releases and license above api documentation ([9c7d986](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/9c7d986))
* move contributing, releases and license above api documentation ([9c7d986](https://github.com/wopian/kitsu-core/commit/9c7d986))

@@ -201,3 +210,3 @@

# [10.0.0-alpha.1](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v10.0.0-alpha.0...v10.0.0-alpha.1) (2020-06-15)
# [10.0.0-alpha.1](https://github.com/wopian/kitsu-core/compare/v10.0.0-alpha.0...v10.0.0-alpha.1) (2020-06-15)

@@ -207,4 +216,4 @@

* **release:** update documentation ([1b1f6d6](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/1b1f6d6))
* **release:** update documentation ([883512b](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/883512b))
* **release:** update documentation ([1b1f6d6](https://github.com/wopian/kitsu-core/commit/1b1f6d6))
* **release:** update documentation ([883512b](https://github.com/wopian/kitsu-core/commit/883512b))

@@ -215,3 +224,3 @@

# [10.0.0-alpha.0](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.11...v10.0.0-alpha.0) (2020-06-15)
# [10.0.0-alpha.0](https://github.com/wopian/kitsu-core/compare/v9.1.11...v10.0.0-alpha.0) (2020-06-15)

@@ -221,4 +230,4 @@

* **kitsu-core:** don't serialise meta object as an attribute ([dbd625c](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/dbd625c))
* **kitsu-core:** serialise v9 relationship structures ([32c40bf](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/32c40bf))
* **kitsu-core:** don't serialise meta object as an attribute ([dbd625c](https://github.com/wopian/kitsu-core/commit/dbd625c))
* **kitsu-core:** serialise v9 relationship structures ([32c40bf](https://github.com/wopian/kitsu-core/commit/32c40bf))

@@ -228,3 +237,3 @@

* **release:** update documentation ([da50d92](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/da50d92))
* **release:** update documentation ([da50d92](https://github.com/wopian/kitsu-core/commit/da50d92))

@@ -234,6 +243,6 @@

* **kitsu-core:** update internal serialise JSDoc ([fcd06d9](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/fcd06d9))
* update READMEs ([469d23a](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/469d23a))
* **kitsu:** add missing comma to example output ([31b21da](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/31b21da))
* **kitsu-core:** add v10 migration guide ([b9b4f6e](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/b9b4f6e))
* **kitsu-core:** update internal serialise JSDoc ([fcd06d9](https://github.com/wopian/kitsu-core/commit/fcd06d9))
* update READMEs ([469d23a](https://github.com/wopian/kitsu-core/commit/469d23a))
* **kitsu:** add missing comma to example output ([31b21da](https://github.com/wopian/kitsu-core/commit/31b21da))
* **kitsu-core:** add v10 migration guide ([b9b4f6e](https://github.com/wopian/kitsu-core/commit/b9b4f6e))

@@ -243,3 +252,3 @@

* **kitsu-core:** remove redundant internal function ([22a7bc9](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/22a7bc9))
* **kitsu-core:** remove redundant internal function ([22a7bc9](https://github.com/wopian/kitsu-core/commit/22a7bc9))

@@ -250,3 +259,3 @@

## [9.1.11](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.10...v9.1.11) (2020-06-14)
## [9.1.11](https://github.com/wopian/kitsu-core/compare/v9.1.10...v9.1.11) (2020-06-14)

@@ -256,3 +265,3 @@

* **release:** update documentation ([ba00f68](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/ba00f68))
* **release:** update documentation ([ba00f68](https://github.com/wopian/kitsu-core/commit/ba00f68))

@@ -262,3 +271,3 @@

* Update README.md ([522efd4](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/522efd4))
* Update README.md ([522efd4](https://github.com/wopian/kitsu-core/commit/522efd4))

@@ -269,3 +278,3 @@

## [9.1.10](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.9...v9.1.10) (2020-05-31)
## [9.1.10](https://github.com/wopian/kitsu-core/compare/v9.1.9...v9.1.10) (2020-05-31)

@@ -275,3 +284,3 @@

* **release:** update documentation ([3817edc](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/3817edc))
* **release:** update documentation ([3817edc](https://github.com/wopian/kitsu-core/commit/3817edc))

@@ -281,3 +290,3 @@

* fix spacing in description ([8811add](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/8811add))
* fix spacing in description ([8811add](https://github.com/wopian/kitsu-core/commit/8811add))

@@ -288,3 +297,3 @@

## [9.1.9](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.8...v9.1.9) (2020-05-31)
## [9.1.9](https://github.com/wopian/kitsu-core/compare/v9.1.8...v9.1.9) (2020-05-31)

@@ -294,3 +303,3 @@

* **release:** update documentation ([220ad78](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/220ad78))
* **release:** update documentation ([220ad78](https://github.com/wopian/kitsu-core/commit/220ad78))

@@ -300,3 +309,3 @@

* fix size limit ([10fa5a1](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/10fa5a1))
* fix size limit ([10fa5a1](https://github.com/wopian/kitsu-core/commit/10fa5a1))

@@ -306,3 +315,3 @@

* update package descriptions ([29b8693](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/29b8693))
* update package descriptions ([29b8693](https://github.com/wopian/kitsu-core/commit/29b8693))

@@ -313,3 +322,3 @@

## [9.1.8](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.7...v9.1.8) (2020-05-28)
## [9.1.8](https://github.com/wopian/kitsu-core/compare/v9.1.7...v9.1.8) (2020-05-28)

@@ -319,3 +328,3 @@

* add export paths with .js and .mjs for Node 13.1/14 exports field ([a8a06dd](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/a8a06dd))
* add export paths with .js and .mjs for Node 13.1/14 exports field ([a8a06dd](https://github.com/wopian/kitsu-core/commit/a8a06dd))

@@ -325,4 +334,4 @@

* **release:** update documentation ([fa0cdd8](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/fa0cdd8))
* **release:** update documentation ([ce00974](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/ce00974))
* **release:** update documentation ([fa0cdd8](https://github.com/wopian/kitsu-core/commit/fa0cdd8))
* **release:** update documentation ([ce00974](https://github.com/wopian/kitsu-core/commit/ce00974))

@@ -333,3 +342,3 @@

## [9.1.7](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.6...v9.1.7) (2020-05-28)
## [9.1.7](https://github.com/wopian/kitsu-core/compare/v9.1.6...v9.1.7) (2020-05-28)

@@ -339,3 +348,3 @@

* use Node 13.1/14 exports field in package.json ([0a4692a](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/0a4692a))
* use Node 13.1/14 exports field in package.json ([0a4692a](https://github.com/wopian/kitsu-core/commit/0a4692a))

@@ -345,3 +354,3 @@

* **release:** update documentation ([8424d78](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/8424d78))
* **release:** update documentation ([8424d78](https://github.com/wopian/kitsu-core/commit/8424d78))

@@ -352,3 +361,3 @@

## [9.1.6](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.5...v9.1.6) (2020-05-21)
## [9.1.6](https://github.com/wopian/kitsu-core/compare/v9.1.5...v9.1.6) (2020-05-21)

@@ -358,3 +367,3 @@

* **release:** update documentation ([dca0f14](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/dca0f14))
* **release:** update documentation ([dca0f14](https://github.com/wopian/kitsu-core/commit/dca0f14))

@@ -364,3 +373,3 @@

* **npm:** ignore yarn log files ([297d1ef](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/297d1ef))
* **npm:** ignore yarn log files ([297d1ef](https://github.com/wopian/kitsu-core/commit/297d1ef))

@@ -371,3 +380,3 @@

## [9.1.5](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.4...v9.1.5) (2020-05-21)
## [9.1.5](https://github.com/wopian/kitsu-core/compare/v9.1.4...v9.1.5) (2020-05-21)

@@ -377,3 +386,3 @@

* **kitsu-core:** preverve serialised relationship attributes ([ddcc17a](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/ddcc17a)), closes [#418](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/418)
* **kitsu-core:** preverve serialised relationship attributes ([ddcc17a](https://github.com/wopian/kitsu-core/commit/ddcc17a)), closes [#418](https://github.com/wopian/kitsu-core/issues/418)

@@ -383,3 +392,3 @@

* **release:** update documentation ([912f59d](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/912f59d))
* **release:** update documentation ([912f59d](https://github.com/wopian/kitsu-core/commit/912f59d))

@@ -390,3 +399,3 @@

## [9.1.4](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.3...v9.1.4) (2020-05-21)
## [9.1.4](https://github.com/wopian/kitsu-core/compare/v9.1.3...v9.1.4) (2020-05-21)

@@ -396,4 +405,4 @@

* **release:** update documentation ([c2b9e13](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/c2b9e13))
* **release:** update documentation ([e8b37f1](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/e8b37f1))
* **release:** update documentation ([c2b9e13](https://github.com/wopian/kitsu-core/commit/c2b9e13))
* **release:** update documentation ([e8b37f1](https://github.com/wopian/kitsu-core/commit/e8b37f1))

@@ -403,3 +412,3 @@

* **kitsu:** enumerate resourceCase string values ([52c1c82](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/52c1c82))
* **kitsu:** enumerate resourceCase string values ([52c1c82](https://github.com/wopian/kitsu-core/commit/52c1c82))

@@ -410,3 +419,3 @@

## [9.1.3](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.2...v9.1.3) (2020-05-21)
## [9.1.3](https://github.com/wopian/kitsu-core/compare/v9.1.2...v9.1.3) (2020-05-21)

@@ -416,3 +425,3 @@

* **release:** update documentation ([de730f2](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/de730f2))
* **release:** update documentation ([de730f2](https://github.com/wopian/kitsu-core/commit/de730f2))

@@ -423,3 +432,3 @@

## [9.1.2](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.1...v9.1.2) (2020-05-21)
## [9.1.2](https://github.com/wopian/kitsu-core/compare/v9.1.1...v9.1.2) (2020-05-21)

@@ -429,3 +438,3 @@

* **kitsu-core:** optional chain constructor calls to allow invalid JSON values ([66d76ef](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/66d76ef)), closes [#416](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/416)
* **kitsu-core:** optional chain constructor calls to allow invalid JSON values ([66d76ef](https://github.com/wopian/kitsu-core/commit/66d76ef)), closes [#416](https://github.com/wopian/kitsu-core/issues/416)

@@ -435,3 +444,3 @@

* **release:** update documentation ([20e7cc6](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/20e7cc6))
* **release:** update documentation ([20e7cc6](https://github.com/wopian/kitsu-core/commit/20e7cc6))

@@ -441,5 +450,5 @@

* **kitsu-core:** declare optional parameters in JSDoc syntax ([a78a075](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/a78a075))
* autogenerate typescript definitions ([6e1879f](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/6e1879f))
* update JSDoc Array syntax for better TypeScript usability ([8f147ab](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/8f147ab))
* **kitsu-core:** declare optional parameters in JSDoc syntax ([a78a075](https://github.com/wopian/kitsu-core/commit/a78a075))
* autogenerate typescript definitions ([6e1879f](https://github.com/wopian/kitsu-core/commit/6e1879f))
* update JSDoc Array syntax for better TypeScript usability ([8f147ab](https://github.com/wopian/kitsu-core/commit/8f147ab))

@@ -450,3 +459,3 @@

## [9.1.1](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.1.0...v9.1.1) (2020-05-21)
## [9.1.1](https://github.com/wopian/kitsu-core/compare/v9.1.0...v9.1.1) (2020-05-21)

@@ -456,3 +465,3 @@

* **kitsu-core:** throw error if type is missing during serialisation ([570ef11](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/570ef11))
* **kitsu-core:** throw error if type is missing during serialisation ([570ef11](https://github.com/wopian/kitsu-core/commit/570ef11))

@@ -462,3 +471,3 @@

* **release:** update documentation ([1c19a06](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/1c19a06))
* **release:** update documentation ([1c19a06](https://github.com/wopian/kitsu-core/commit/1c19a06))

@@ -469,3 +478,3 @@

# [9.1.0](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.7...v9.1.0) (2020-05-21)
# [9.1.0](https://github.com/wopian/kitsu-core/compare/v9.0.7...v9.1.0) (2020-05-21)

@@ -475,3 +484,3 @@

* **kitsu-core:** resolve linkedRelationships regression introduced in 568eff5 ([66095cc](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/66095cc))
* **kitsu-core:** resolve linkedRelationships regression introduced in 568eff5 ([66095cc](https://github.com/wopian/kitsu-core/commit/66095cc))

@@ -481,4 +490,4 @@

* **release:** update documentation ([d77384c](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/d77384c))
* increase package warning limit ([c0136dc](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/c0136dc))
* **release:** update documentation ([d77384c](https://github.com/wopian/kitsu-core/commit/d77384c))
* increase package warning limit ([c0136dc](https://github.com/wopian/kitsu-core/commit/c0136dc))

@@ -488,5 +497,5 @@

* correct errors in types ([9ad8fc0](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/9ad8fc0))
* **kitsu-core:** add internal documentation for new private functions ([0d10ba3](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/0d10ba3))
* **kitsu-core:** update description of deserialise parameter ([94dc48a](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/94dc48a))
* correct errors in types ([9ad8fc0](https://github.com/wopian/kitsu-core/commit/9ad8fc0))
* **kitsu-core:** add internal documentation for new private functions ([0d10ba3](https://github.com/wopian/kitsu-core/commit/0d10ba3))
* **kitsu-core:** update description of deserialise parameter ([94dc48a](https://github.com/wopian/kitsu-core/commit/94dc48a))

@@ -496,3 +505,3 @@

* **kitsu-core:** support the bulk extension specification (serialise arrays) ([920ece3](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/920ece3)), closes [#336](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/336)
* **kitsu-core:** support the bulk extension specification (serialise arrays) ([920ece3](https://github.com/wopian/kitsu-core/commit/920ece3)), closes [#336](https://github.com/wopian/kitsu-core/issues/336)

@@ -502,4 +511,4 @@

* **kitsu-core:** cleanup linkRelationships + use optional chaining ([568eff5](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/568eff5))
* **kitsu-core:** use optional chaining in deserialise ([43d5d4b](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/43d5d4b))
* **kitsu-core:** cleanup linkRelationships + use optional chaining ([568eff5](https://github.com/wopian/kitsu-core/commit/568eff5))
* **kitsu-core:** use optional chaining in deserialise ([43d5d4b](https://github.com/wopian/kitsu-core/commit/43d5d4b))

@@ -510,3 +519,3 @@

## [9.0.7](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.6...v9.0.7) (2020-05-19)
## [9.0.7](https://github.com/wopian/kitsu-core/compare/v9.0.6...v9.0.7) (2020-05-19)

@@ -516,3 +525,3 @@

* **release:** update documentation ([523553e](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/523553e))
* **release:** update documentation ([523553e](https://github.com/wopian/kitsu-core/commit/523553e))

@@ -522,3 +531,3 @@

* Update MIGRATING.md ([7fbc3fa](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/7fbc3fa))
* Update MIGRATING.md ([7fbc3fa](https://github.com/wopian/kitsu-core/commit/7fbc3fa))

@@ -529,3 +538,3 @@

## [9.0.6](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.5...v9.0.6) (2020-05-07)
## [9.0.6](https://github.com/wopian/kitsu-core/compare/v9.0.5...v9.0.6) (2020-05-07)

@@ -535,4 +544,4 @@

* **release:** update documentation ([03fc40e](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/03fc40e))
* remove rogue console.log ([29d3ae3](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/29d3ae3))
* **release:** update documentation ([03fc40e](https://github.com/wopian/kitsu-core/commit/03fc40e))
* remove rogue console.log ([29d3ae3](https://github.com/wopian/kitsu-core/commit/29d3ae3))

@@ -542,3 +551,3 @@

* **kitsu-core:** remove node 12 notice ([45f20bb](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/45f20bb))
* **kitsu-core:** remove node 12 notice ([45f20bb](https://github.com/wopian/kitsu-core/commit/45f20bb))

@@ -549,3 +558,3 @@

## [9.0.5](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.4...v9.0.5) (2020-05-07)
## [9.0.5](https://github.com/wopian/kitsu-core/compare/v9.0.4...v9.0.5) (2020-05-07)

@@ -555,4 +564,4 @@

* **release:** update documentation ([2df72e7](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/2df72e7))
* trim CHANGELOG length ([af7db19](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/af7db19))
* **release:** update documentation ([2df72e7](https://github.com/wopian/kitsu-core/commit/2df72e7))
* trim CHANGELOG length ([af7db19](https://github.com/wopian/kitsu-core/commit/af7db19))

@@ -563,3 +572,3 @@

## [9.0.4](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.3...v9.0.4) (2020-05-07)
## [9.0.4](https://github.com/wopian/kitsu-core/compare/v9.0.3...v9.0.4) (2020-05-07)

@@ -569,3 +578,3 @@

* **release:** update documentation ([9561c63](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/9561c63))
* **release:** update documentation ([9561c63](https://github.com/wopian/kitsu-core/commit/9561c63))

@@ -575,6 +584,6 @@

* **kitsu-core:** add example for query ([63c15f4](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/63c15f4))
* **kitsu-core:** add examples for error ([cb40de1](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/cb40de1))
* **kitsu-core:** add examples for filterIncludes ([66b5a6f](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/66b5a6f))
* **kitsu-core:** add examples for linkRelationships ([ff05659](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/ff05659))
* **kitsu-core:** add example for query ([63c15f4](https://github.com/wopian/kitsu-core/commit/63c15f4))
* **kitsu-core:** add examples for error ([cb40de1](https://github.com/wopian/kitsu-core/commit/cb40de1))
* **kitsu-core:** add examples for filterIncludes ([66b5a6f](https://github.com/wopian/kitsu-core/commit/66b5a6f))
* **kitsu-core:** add examples for linkRelationships ([ff05659](https://github.com/wopian/kitsu-core/commit/ff05659))

@@ -585,3 +594,3 @@

## [9.0.3](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.2...v9.0.3) (2020-05-07)
## [9.0.3](https://github.com/wopian/kitsu-core/compare/v9.0.2...v9.0.3) (2020-05-07)

@@ -591,3 +600,3 @@

* **release:** update documentation ([95c3fbb](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/95c3fbb))
* **release:** update documentation ([95c3fbb](https://github.com/wopian/kitsu-core/commit/95c3fbb))

@@ -598,3 +607,3 @@

## [9.0.2](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.1...v9.0.2) (2020-05-07)
## [9.0.2](https://github.com/wopian/kitsu-core/compare/v9.0.1...v9.0.2) (2020-05-07)

@@ -604,3 +613,3 @@

* **kitsu-core:** correctly parse attributes.attributes (closes [#137](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/137)) ([b058e42](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/b058e42))
* **kitsu-core:** correctly parse attributes.attributes (closes [#137](https://github.com/wopian/kitsu-core/issues/137)) ([b058e42](https://github.com/wopian/kitsu-core/commit/b058e42))

@@ -610,3 +619,3 @@

* **release:** update documentation ([84d00c5](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/84d00c5))
* **release:** update documentation ([84d00c5](https://github.com/wopian/kitsu-core/commit/84d00c5))

@@ -616,3 +625,3 @@

* **kitsu-core:** add test for ensuring all relationships exist in output ([1fc81d9](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/1fc81d9))
* **kitsu-core:** add test for ensuring all relationships exist in output ([1fc81d9](https://github.com/wopian/kitsu-core/commit/1fc81d9))

@@ -623,3 +632,3 @@

## [9.0.1](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v9.0.0...v9.0.1) (2020-05-07)
## [9.0.1](https://github.com/wopian/kitsu-core/compare/v9.0.0...v9.0.1) (2020-05-07)

@@ -629,3 +638,3 @@

* **release:** update documentation ([03ec026](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/03ec026))
* **release:** update documentation ([03ec026](https://github.com/wopian/kitsu-core/commit/03ec026))

@@ -635,3 +644,3 @@

* **kitsu-core:** add migration guide link to README ([bf282af](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/bf282af))
* **kitsu-core:** add migration guide link to README ([bf282af](https://github.com/wopian/kitsu-core/commit/bf282af))

@@ -642,3 +651,3 @@

# [9.0.0](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v8.3.1...v9.0.0) (2020-05-07)
# [9.0.0](https://github.com/wopian/kitsu-core/compare/v8.3.1...v9.0.0) (2020-05-07)

@@ -648,3 +657,3 @@

* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.5.0 ([#405](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/issues/405)) ([7e0072d](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/7e0072d))
* **kitsu:** update devdependency [@size-limit](https://github.com/size-limit)/preset-small-lib to ~4.5.0 ([#405](https://github.com/wopian/kitsu-core/issues/405)) ([7e0072d](https://github.com/wopian/kitsu-core/commit/7e0072d))

@@ -654,3 +663,3 @@

* **release:** update documentation ([08362a8](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/08362a8))
* **release:** update documentation ([08362a8](https://github.com/wopian/kitsu-core/commit/08362a8))

@@ -660,5 +669,5 @@

* **kitsu-core:** add 9.0.0 migration guide ([8576749](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/8576749))
* update README ([6a73433](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/6a73433))
* **kitsu-core:** use lowercase string for param type ([8254710](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/8254710))
* **kitsu-core:** add 9.0.0 migration guide ([8576749](https://github.com/wopian/kitsu-core/commit/8576749))
* update README ([6a73433](https://github.com/wopian/kitsu-core/commit/6a73433))
* **kitsu-core:** use lowercase string for param type ([8254710](https://github.com/wopian/kitsu-core/commit/8254710))

@@ -668,4 +677,4 @@

* **kitsu-core:** add splitModel ([782d1b6](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/782d1b6))
* **kitsu-core:** preserve links in relationships during deserialisation ([cbf50df](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/cbf50df))
* **kitsu-core:** add splitModel ([782d1b6](https://github.com/wopian/kitsu-core/commit/782d1b6))
* **kitsu-core:** preserve links in relationships during deserialisation ([cbf50df](https://github.com/wopian/kitsu-core/commit/cbf50df))

@@ -675,3 +684,3 @@

* **kitsu-core:** pass camelCase and pluralisation options as arguments to serialise ([34b9cae](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/34b9cae))
* **kitsu-core:** pass camelCase and pluralisation options as arguments to serialise ([34b9cae](https://github.com/wopian/kitsu-core/commit/34b9cae))

@@ -678,0 +687,0 @@

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).kitsuCore={})}(this,(function(t){"use strict";function e(t){var r;if("object"==typeof t&&null!==t)if(Array.isArray(t))t.map((t=>e(t)));else if((null===(r=t.attributes)||void 0===r?void 0:r.constructor)===Object){for(const e of Object.keys(t.attributes))t.attributes.attributes||(t[e]=t.attributes[e]);t.attributes.attributes?t.attributes=t.attributes.attributes:delete t.attributes}return t}function r(t){if(t.response){const e=t.response.data;null!=e&&e.errors&&(t.errors=e.errors)}throw t}function n(t,{id:e,type:n}){try{if(e&&n){const r=t.filter((t=>t.id===e&&t.type===n))[0]||{id:e,type:n};return Object.assign({},r)}return{}}catch(t){r(t)}}function a({id:t,type:r,meta:a},i){const o=n(i,{id:t,type:r});return o.relationships&&l(o,i),a&&(o.meta=a),e(o)}function i(t,e,r){t[r]={},t.relationships[r].links&&(t[r].links=t.relationships[r].links),t[r].data=[];for(const n of t.relationships[r].data)t[r].data.push(a(n,e));delete t.relationships[r]}function o(t,e,r){t[r]={},t[r].data=a(t.relationships[r].data,e),t.relationships[r].links&&(t[r].links=t.relationships[r].links),delete t.relationships[r]}function s(t,e){t[e]={},t.relationships[e].links&&(t[e].links=t.relationships[e].links),delete t.relationships[e]}function l(t,e=[]){const{relationships:r}=t;for(const a in r){var n;Array.isArray(null===(n=r[a])||void 0===n?void 0:n.data)?i(t,e,a):r[a].data?o(t,e,a):s(t,a)}return 0===Object.keys(r||[]).length&&(null==r?void 0:r.constructor)===Object&&delete t.relationships,t}function u(t,e=null){const r=[];for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.push((n=t[i],a=e?"".concat(e,"[").concat(i,"]"):i,null!==n&&"object"==typeof n?u(n,a):encodeURIComponent(a)+"="+encodeURIComponent(n)));var n,a;return r.join("&")}function c(t,e,r,n){const a=new Error("".concat(n," requires an ID for the ").concat(e," type"));if(void 0===e)throw new Error("".concat(n," requires a resource type"));if(t){if("POST"!==n&&r.length>0)for(const t of r)if(!t.id)throw a}else{if("object"!=typeof r||0===Object.keys(r).length)throw new Error("".concat(n," requires an object or array body"));if("POST"!==n&&!r.id)throw a}}function d(t,e){if(null===t)return t;let r={};for(const e of Object.keys(t))["id","type"].includes(e)?r[e]=t[e]:r=y(t[e],e,r);return r.type||(r.type=e),r}function p(t,e){const r=[];for(const n of t){const t=d(n);t.type||(t.type=e),r.push(t)}return r}function f(t,e,r,n){var a,i;return n.relationships||(n.relationships={}),n.relationships[r]={data:Array.isArray(t.data)?p(t.data,e):d(t.data,e)},(null!=t&&null!==(a=t.links)&&void 0!==a&&a.self||null!=t&&null!==(i=t.links)&&void 0!==i&&i.related)&&(n.relationships[r].links=t.links),null!=t&&t.meta&&(n.relationships[r].meta=t.meta),n}function y(t,e,r){return r.attributes||(r.attributes={}),"links"!==e||"string"!=typeof t.self&&"string"!=typeof t.related?"meta"===e&&t.constructor===Object?r.meta=t:r.attributes[e]=t:r.links=t,r}function h(t){var e;if(null===(null==t?void 0:t.data)||Array.isArray(null==t?void 0:t.data)&&0===(null==t||null===(e=t.data)||void 0===e?void 0:e.length))return!0;if(!t.data)return!1;const r=Array.isArray(t.data)?t.data[0]:t.data;return Object.prototype.hasOwnProperty.call(r,"id")}function b(t,e,r,n){c(!1,t,e,r);let a={type:t=n.pluralTypes(n.camelCaseTypes(t))};null!=e&&e.id&&(a.id=String(e.id));for(const t in e){const r=e[t],i=n.pluralTypes(n.camelCaseTypes(t));null!==r&&(null==r?void 0:r.constructor)===Object&&h(r)?a=f(r,i,t,a):"id"!==t&&"type"!==t&&(a=y(r,t,a))}return{data:a}}t.camel=t=>t.replace(/[-_][a-z\u00E0-\u00F6\u00F8-\u00FE]/g,(t=>t.slice(1).toUpperCase())),t.deattribute=e,t.deserialise=function(t){var r,n;if(t)return Array.isArray(t.data)?t=function(t){for(let r of t.data)t.included&&(r=l(r,t.included)),r.relationships&&(r=l(r)),r.attributes&&(r=e(r)),t.data[t.data.indexOf(r)]=r;return t}(t):t.included?t.data=l(t.data,t.included):(null===(r=t.data)||void 0===r?void 0:r.constructor)===Object&&(t.data=l(t.data)),delete t.included,null!==(n=t.data)&&void 0!==n&&n.attributes&&(t.data=e(t.data)),t},t.error=r,t.filterIncludes=n,t.kebab=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t=>"-"+t.toLowerCase())),t.linkRelationships=l,t.query=u,t.serialise=function(t,e={},n="POST",a={}){try{return a.camelCaseTypes||(a.camelCaseTypes=t=>t),a.pluralTypes||(a.pluralTypes=t=>t),null===e||Array.isArray(e)&&0===e.length?{data:e}:Array.isArray(e)&&(null==e?void 0:e.length)>0?function(t,e,r,n){c(!0,t,e,r);const a=[];for(const i of e)a.push(b(t,i,r,n).data);return{data:a}}(t,e,n,a):b(t,e,n,a)}catch(t){throw r(t)}},t.snake=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t=>"_"+t.toLowerCase())),t.splitModel=function(t,e={}){e.pluralModel||(e.pluralModel=t=>t),e.resourceCase||(e.resourceCase=t=>t);const r=t.split("/"),n=r.pop();return r.push(e.pluralModel(e.resourceCase(n))),[n,r.join("/")]},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).kitsuCore={})}(this,(function(t){"use strict";function e(t){var r;if("object"==typeof t&&null!==t)if(Array.isArray(t))t.map((t=>e(t)));else if((null===(r=t.attributes)||void 0===r?void 0:r.constructor)===Object){for(const e of Object.keys(t.attributes))t.attributes.attributes||(t[e]=t.attributes[e]);t.attributes.attributes?t.attributes=t.attributes.attributes:delete t.attributes}return t}function r(t){if(t.response){const e=t.response.data;null!=e&&e.errors&&(t.errors=e.errors)}throw t}function n(t,{id:e,type:n}){try{if(e&&n){const r=t.filter((t=>t.id===e&&t.type===n))[0]||{id:e,type:n};return Object.assign({},r)}return{}}catch(t){r(t)}}function i({id:t,type:r,meta:i},a){const s=n(a,{id:t,type:r});return s.relationships&&l(s,a),i&&(s.meta=i),e(s)}function a(t,e,r){t[r]={},t.relationships[r].links&&(t[r].links=t.relationships[r].links),t[r].data=[];for(const n of t.relationships[r].data)t[r].data.push(i(n,e));delete t.relationships[r]}function s(t,e,r){t[r]={},t[r].data=i(t.relationships[r].data,e),t.relationships[r].links&&(t[r].links=t.relationships[r].links),delete t.relationships[r]}function o(t,e){t[e]={},t.relationships[e].links&&(t[e].links=t.relationships[e].links),delete t.relationships[e]}function l(t,e=[]){const{relationships:r}=t;for(const i in r){var n;Array.isArray(null===(n=r[i])||void 0===n?void 0:n.data)?a(t,e,i):r[i].data?s(t,e,i):o(t,i)}return 0===Object.keys(r||[]).length&&(null==r?void 0:r.constructor)===Object&&delete t.relationships,t}function u(t,e=null){const r=[];for(const a in t)r.push((n=t[a],i=e?`${e}[${a}]`:a,null!==n&&"object"==typeof n?u(n,i):encodeURIComponent(i)+"="+encodeURIComponent(n)));var n,i;return r.join("&")}function d(t,e,r,n){const i=new Error(`${n} requires an ID for the ${e} type`);if(void 0===e)throw new Error(`${n} requires a resource type`);if(t){if("POST"!==n&&r.length>0)for(const t of r)if(!t.id)throw i}else{if("object"!=typeof r||0===Object.keys(r).length)throw new Error(`${n} requires an object or array body`);if("POST"!==n&&!r.id)throw i}}function c(t,e){if(null===t)return t;let r={};for(const e of Object.keys(t))["id","type"].includes(e)?r[e]=t[e]:r=y(t[e],e,r);return r.type||(r.type=e),r}function p(t,e){const r=[];for(const n of t){const t=c(n);t.type||(t.type=e),r.push(t)}return r}function f(t,e,r,n){var i,a;return n.relationships||(n.relationships={}),n.relationships[r]={data:Array.isArray(t.data)?p(t.data,e):c(t.data,e)},(null!=t&&null!==(i=t.links)&&void 0!==i&&i.self||null!=t&&null!==(a=t.links)&&void 0!==a&&a.related)&&(n.relationships[r].links=t.links),null!=t&&t.meta&&(n.relationships[r].meta=t.meta),n}function y(t,e,r){return r.attributes||(r.attributes={}),"links"!==e||"string"!=typeof t.self&&"string"!=typeof t.related?"meta"===e&&t.constructor===Object?r.meta=t:r.attributes[e]=t:r.links=t,r}function h(t){var e;if(null===(null==t?void 0:t.data)||Array.isArray(null==t?void 0:t.data)&&0===(null==t||null===(e=t.data)||void 0===e?void 0:e.length))return!0;if(!t.data)return!1;const r=Array.isArray(t.data)?t.data[0]:t.data;return Object.prototype.hasOwnProperty.call(r,"id")}function b(t,e,r,n){d(!1,t,e,r);let i={type:t=n.pluralTypes(n.camelCaseTypes(t))};null!=e&&e.id&&(i.id=String(e.id));for(const t in e){const r=e[t],a=n.pluralTypes(n.camelCaseTypes(t));null!==r&&(null==r?void 0:r.constructor)===Object&&h(r)?i=f(r,a,t,i):"id"!==t&&"type"!==t&&(i=y(r,t,i))}return{data:i}}t.camel=t=>t.replace(/[-_][a-z\u00E0-\u00F6\u00F8-\u00FE]/g,(t=>t.slice(1).toUpperCase())),t.deattribute=e,t.deserialise=function(t){var r,n;if(t)return Array.isArray(t.data)?t=function(t){for(let r of t.data)t.included&&(r=l(r,t.included)),r.relationships&&(r=l(r)),r.attributes&&(r=e(r)),t.data[t.data.indexOf(r)]=r;return t}(t):t.included?t.data=l(t.data,t.included):(null===(r=t.data)||void 0===r?void 0:r.constructor)===Object&&(t.data=l(t.data)),delete t.included,null!==(n=t.data)&&void 0!==n&&n.attributes&&(t.data=e(t.data)),t},t.error=r,t.filterIncludes=n,t.kebab=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t=>"-"+t.toLowerCase())),t.linkRelationships=l,t.query=u,t.serialise=function(t,e={},n="POST",i={}){try{return i.camelCaseTypes||(i.camelCaseTypes=t=>t),i.pluralTypes||(i.pluralTypes=t=>t),null===e||Array.isArray(e)&&0===e.length?{data:e}:Array.isArray(e)&&(null==e?void 0:e.length)>0?function(t,e,r,n){d(!0,t,e,r);const i=[];for(const a of e)i.push(b(t,a,r,n).data);return{data:i}}(t,e,n,i):b(t,e,n,i)}catch(t){throw r(t)}},t.snake=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t=>"_"+t.toLowerCase())),t.splitModel=function(t,e={}){e.pluralModel||(e.pluralModel=t=>t),e.resourceCase||(e.resourceCase=t=>t);const r=t.split("/"),n=r.pop();return r.push(e.pluralModel(e.resourceCase(n))),[n,r.join("/")]},Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -1,1 +0,1 @@

"use strict";function e(o,t=null){const n=[];for(const p in o)Object.prototype.hasOwnProperty.call(o,p)&&n.push((c=o[p],r=t?"".concat(t,"[").concat(p,"]"):p,null!==c&&"object"==typeof c?e(c,r):encodeURIComponent(r)+"="+encodeURIComponent(c)));var c,r;return n.join("&")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.query=e;
"use strict";function e(o,n=null){const t=[];for(const c in o)t.push((r=o[c],u=n?`${n}[${c}]`:c,null!==r&&"object"==typeof r?e(r,u):encodeURIComponent(u)+"="+encodeURIComponent(r)));var r,u;return t.join("&")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.query=e;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./error.js");function r(t,r,e,n){const a=new Error("".concat(n," requires an ID for the ").concat(r," type"));if(void 0===r)throw new Error("".concat(n," requires a resource type"));if(t){if("POST"!==n&&e.length>0)for(const t of e)if(!t.id)throw a}else{if("object"!=typeof e||0===Object.keys(e).length)throw new Error("".concat(n," requires an object or array body"));if("POST"!==n&&!e.id)throw a}}function e(t,r){if(null===t)return t;let e={};for(const r of Object.keys(t))["id","type"].includes(r)?e[r]=t[r]:e=o(t[r],r,e);return e.type||(e.type=r),e}function n(t,r){const n=[];for(const a of t){const t=e(a);t.type||(t.type=r),n.push(t)}return n}function a(t,r,a,o){var l,i;return o.relationships||(o.relationships={}),o.relationships[a]={data:Array.isArray(t.data)?n(t.data,r):e(t.data,r)},(null!=t&&null!==(l=t.links)&&void 0!==l&&l.self||null!=t&&null!==(i=t.links)&&void 0!==i&&i.related)&&(o.relationships[a].links=t.links),null!=t&&t.meta&&(o.relationships[a].meta=t.meta),o}function o(t,r,e){return e.attributes||(e.attributes={}),"links"!==r||"string"!=typeof t.self&&"string"!=typeof t.related?"meta"===r&&t.constructor===Object?e.meta=t:e.attributes[r]=t:e.links=t,e}function l(t){var r;if(null===(null==t?void 0:t.data)||Array.isArray(null==t?void 0:t.data)&&0===(null==t||null===(r=t.data)||void 0===r?void 0:r.length))return!0;if(!t.data)return!1;const e=Array.isArray(t.data)?t.data[0]:t.data;return Object.prototype.hasOwnProperty.call(e,"id")}function i(t,e,n,i){r(!1,t,e,n);let s={type:t=i.pluralTypes(i.camelCaseTypes(t))};null!=e&&e.id&&(s.id=String(e.id));for(const t in e){const r=e[t],n=i.pluralTypes(i.camelCaseTypes(t));null!==r&&(null==r?void 0:r.constructor)===Object&&l(r)?s=a(r,n,t,s):"id"!==t&&"type"!==t&&(s=o(r,t,s))}return{data:s}}exports.serialise=function(e,n={},a="POST",o={}){try{return o.camelCaseTypes||(o.camelCaseTypes=t=>t),o.pluralTypes||(o.pluralTypes=t=>t),null===n||Array.isArray(n)&&0===n.length?{data:n}:Array.isArray(n)&&(null==n?void 0:n.length)>0?function(t,e,n,a){r(!0,t,e,n);const o=[];for(const r of e)o.push(i(t,r,n,a).data);return{data:o}}(e,n,a,o):i(e,n,a,o)}catch(r){throw t.error(r)}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./error.js");function r(t,r,e,n){const a=new Error(`${n} requires an ID for the ${r} type`);if(void 0===r)throw new Error(`${n} requires a resource type`);if(t){if("POST"!==n&&e.length>0)for(const t of e)if(!t.id)throw a}else{if("object"!=typeof e||0===Object.keys(e).length)throw new Error(`${n} requires an object or array body`);if("POST"!==n&&!e.id)throw a}}function e(t,r){if(null===t)return t;let e={};for(const r of Object.keys(t))["id","type"].includes(r)?e[r]=t[r]:e=l(t[r],r,e);return e.type||(e.type=r),e}function n(t,r){const n=[];for(const a of t){const t=e(a);t.type||(t.type=r),n.push(t)}return n}function a(t,r,a,l){var o,i;return l.relationships||(l.relationships={}),l.relationships[a]={data:Array.isArray(t.data)?n(t.data,r):e(t.data,r)},(null!=t&&null!==(o=t.links)&&void 0!==o&&o.self||null!=t&&null!==(i=t.links)&&void 0!==i&&i.related)&&(l.relationships[a].links=t.links),null!=t&&t.meta&&(l.relationships[a].meta=t.meta),l}function l(t,r,e){return e.attributes||(e.attributes={}),"links"!==r||"string"!=typeof t.self&&"string"!=typeof t.related?"meta"===r&&t.constructor===Object?e.meta=t:e.attributes[r]=t:e.links=t,e}function o(t){var r;if(null===(null==t?void 0:t.data)||Array.isArray(null==t?void 0:t.data)&&0===(null==t||null===(r=t.data)||void 0===r?void 0:r.length))return!0;if(!t.data)return!1;const e=Array.isArray(t.data)?t.data[0]:t.data;return Object.prototype.hasOwnProperty.call(e,"id")}function i(t,e,n,i){r(!1,t,e,n);let s={type:t=i.pluralTypes(i.camelCaseTypes(t))};null!=e&&e.id&&(s.id=String(e.id));for(const t in e){const r=e[t],n=i.pluralTypes(i.camelCaseTypes(t));null!==r&&(null==r?void 0:r.constructor)===Object&&o(r)?s=a(r,n,t,s):"id"!==t&&"type"!==t&&(s=l(r,t,s))}return{data:s}}exports.serialise=function(e,n={},a="POST",l={}){try{return l.camelCaseTypes||(l.camelCaseTypes=t=>t),l.pluralTypes||(l.pluralTypes=t=>t),null===n||Array.isArray(n)&&0===n.length?{data:n}:Array.isArray(n)&&(null==n?void 0:n.length)>0?function(t,e,n,a){r(!0,t,e,n);const l=[];for(const r of e)l.push(i(t,r,n,a).data);return{data:l}}(e,n,a,l):i(e,n,a,l)}catch(r){throw t.error(r)}};
{
"version": "10.0.0-alpha.10",
"version": "10.0.0-alpha.11",
"name": "kitsu-core",

@@ -20,3 +20,3 @@ "description": "Simple, lightweight & framework agnostic JSON:API (de)serialsation components",

"homepage": "https://github.com/wopian/kitsu/tree/master/packages/kitsu-core#readme",
"repository": "https://github.com/wopian/kitsu/tree/master/packages/kitsu-core",
"repository": "https://github.com/wopian/kitsu",
"bugs": {

@@ -61,5 +61,5 @@ "url": "https://github.com/wopian/kitsu/issues"

],
"gitHead": "0951b65f0636a48e8318c837c330c9303e29ffa6",
"gitHead": "394139c9b249b0453977460d9fc2783e16c133f4",
"devDependencies": {
"@size-limit/preset-small-lib": "~4.9.0"
"@size-limit/preset-small-lib": "~4.11.0"
},

@@ -66,0 +66,0 @@ "exports": {

@@ -27,11 +27,11 @@ <h1 align=center>Kitsu Core</h1>

#
#
## Features
- JSON-API 1.0 compliant
- Automatically links relationships to data
- Works in Node & browsers
- Tree shakeable components
- Zero dependencies
* JSON-API 1.0 compliant
* Automatically links relationships to data
* Works in Node & browsers
* Tree shakeable components
* Zero dependencies

@@ -79,11 +79,11 @@ ## Node / Browser Support

See [CONTRIBUTING]
See \[CONTRIBUTING]
## Releases
See [CHANGELOG]
See \[CHANGELOG]
## License
All code released under [MIT]
All code released under \[MIT]

@@ -96,39 +96,39 @@ ## API

- [camel](#camel)
- [Parameters](#parameters)
- [Examples](#examples)
- [deattribute](#deattribute)
- [Parameters](#parameters-1)
- [Examples](#examples-1)
- [deserialise](#deserialise)
- [Parameters](#parameters-2)
- [Examples](#examples-2)
- [error](#error)
- [Parameters](#parameters-3)
- [Examples](#examples-3)
- [filterIncludes](#filterincludes)
- [Parameters](#parameters-4)
- [Examples](#examples-4)
- [kebab](#kebab)
- [Parameters](#parameters-5)
- [Examples](#examples-5)
- [linkRelationships](#linkrelationships)
- [Parameters](#parameters-6)
- [Examples](#examples-6)
- [query](#query)
- [Parameters](#parameters-7)
- [Examples](#examples-7)
- [serialise](#serialise)
- [Parameters](#parameters-8)
- [Examples](#examples-8)
- [snake](#snake)
- [Parameters](#parameters-9)
- [Examples](#examples-9)
- [splitModel](#splitmodel)
- [Parameters](#parameters-10)
- [Examples](#examples-10)
* [camel](#camel)
* [Parameters](#parameters)
* [Examples](#examples)
* [deattribute](#deattribute)
* [Parameters](#parameters-1)
* [Examples](#examples-1)
* [deserialise](#deserialise)
* [Parameters](#parameters-2)
* [Examples](#examples-2)
* [error](#error)
* [Parameters](#parameters-3)
* [Examples](#examples-3)
* [filterIncludes](#filterincludes)
* [Parameters](#parameters-4)
* [Examples](#examples-4)
* [kebab](#kebab)
* [Parameters](#parameters-5)
* [Examples](#examples-5)
* [linkRelationships](#linkrelationships)
* [Parameters](#parameters-6)
* [Examples](#examples-6)
* [query](#query)
* [Parameters](#parameters-7)
* [Examples](#examples-7)
* [serialise](#serialise)
* [Parameters](#parameters-8)
* [Examples](#examples-8)
* [snake](#snake)
* [Parameters](#parameters-9)
* [Examples](#examples-9)
* [splitModel](#splitmodel)
* [Parameters](#parameters-10)
* [Examples](#examples-10)
### camel
[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/camel/index.js#L14-L14 "Source code on GitHub")

@@ -139,3 +139,3 @@ Converts kebab-case and snake_case into camelCase

- `input` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** String to convert
* `input` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** String to convert

@@ -146,3 +146,2 @@ #### Examples

```javascript

@@ -154,3 +153,2 @@ camel('hello-world') // 'helloWorld'

```javascript

@@ -164,3 +162,3 @@ camel('hello_world') // 'helloWorld'

[packages/kitsu-core/src/deattribute/index.js:29-51](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/deattribute/index.js#L29-L51 "Source code on GitHub")

@@ -171,3 +169,3 @@ Hoists attributes to be top-level

- `data` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>)** Resource data
* `data` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>)** Resource data

@@ -178,3 +176,2 @@ #### Examples

```javascript

@@ -195,3 +192,2 @@ // JSON:API 'data' field

```javascript

@@ -208,7 +204,7 @@ // JSON:API 'data' field

Returns **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>)** Deattributed resource data
Returns **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>)** Deattributed resource data
### deserialise
[packages/kitsu-core/src/deserialise/index.js:57-72](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/packages/kitsu-core/src/deserialise/index.js#L57-L72 "Source code on GitHub")
[packages/kitsu-core/src/deserialise/index.js:57-72](https://github.com/wopian/kitsu/blob/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/deserialise/index.js#L57-L72 "Source code on GitHub")

@@ -219,3 +215,3 @@ Deserialises a JSON-API response

- `response` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The raw JSON:API response object
* `response` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The raw JSON:API response object

@@ -226,3 +222,2 @@ #### Examples

```javascript

@@ -240,3 +235,2 @@ deserialise({

```javascript

@@ -268,3 +262,3 @@ deserialise({

[packages/kitsu-core/src/error/index.js:27-33](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/error/index.js#L27-L33 "Source code on GitHub")

@@ -275,3 +269,3 @@ Uniform error handling for Axios, JSON:API and internal package errors. Mutated Error object is rethrown to the caller.

- `Error` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The Error
* `Error` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The Error

@@ -303,7 +297,7 @@ #### Examples

- Throws **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The mutated Error
* Throws **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The mutated Error
### filterIncludes
[packages/kitsu-core/src/filterIncludes/index.js:33-46](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/filterIncludes/index.js#L33-L46 "Source code on GitHub")

@@ -314,7 +308,8 @@ Filters includes for the specific relationship requested

- `included` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** The response included object
- `relationship` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
- `relationship.id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The relationship ID
- `relationship.type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The relationship type
* `included` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** The response included object
* `relationship` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
* `relationship.id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The relationship ID
* `relationship.type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The relationship type
#### Examples

@@ -344,7 +339,7 @@

Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** The matched includes
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** The matched includes
### kebab
[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/kebab/index.js#L11-L11 "Source code on GitHub")

@@ -355,3 +350,3 @@ Converts camelCase into kebab-case

- `input` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** camelCase string
* `input` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** camelCase string

@@ -368,3 +363,3 @@ #### Examples

[packages/kitsu-core/src/linkRelationships/index.js:97-117](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/packages/kitsu-core/src/linkRelationships/index.js#L97-L117 "Source code on GitHub")
[packages/kitsu-core/src/linkRelationships/index.js:97-117](https://github.com/wopian/kitsu/blob/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/linkRelationships/index.js#L97-L117 "Source code on GitHub")

@@ -375,4 +370,4 @@ Links relationships to included data

- `data` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The response data object
- `included` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>?** The response included object (optional, default `[]`)
* `data` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The response data object
* `included` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>?** The response included object (optional, default `[]`)

@@ -408,3 +403,3 @@ #### Examples

[packages/kitsu-core/src/query/index.js:33-44](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/packages/kitsu-core/src/query/index.js#L33-L44 "Source code on GitHub")
[packages/kitsu-core/src/query/index.js:33-42](https://github.com/wopian/kitsu/blob/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/query/index.js#L33-L42 "Source code on GitHub")

@@ -415,4 +410,4 @@ Constructs a URL query string for JSON:API parameters

- `params` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Parameters to parse
- `prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Prefix for nested parameters - used internally (optional, default `null`)
* `params` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Parameters to parse
* `prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Prefix for nested parameters - used internally (optional, default `null`)

@@ -438,3 +433,3 @@ #### Examples

[packages/kitsu-core/src/serialise/index.js:213-224](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/serialise/index.js#L213-L224 "Source code on GitHub")

@@ -445,9 +440,10 @@ Serialises an object into a JSON-API structure

- `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Resource type
- `data` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>)?** The data (optional, default `{}`)
- `method` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Request type (PATCH, POST, DELETE) (optional, default `'POST'`)
- `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Optional configuration for camelCase and pluralisation handling (optional, default `{}`)
- `options.camelCaseTypes` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Convert library-entries and library_entries to libraryEntries (default no conversion). To use parameter, import camel from kitsu-core (optional, default `s=>s`)
- `options.pluralTypes` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Pluralise types (default no pluralisation). To use parameter, import pluralize (or another pluralisation npm package) (optional, default `s=>s`)
* `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Resource type
* `data` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>)?** The data (optional, default `{}`)
* `method` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Request type (PATCH, POST, DELETE) (optional, default `'POST'`)
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Optional configuration for camelCase and pluralisation handling (optional, default `{}`)
* `options.camelCaseTypes` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Convert library-entries and library_entries to libraryEntries (default no conversion). To use parameter, import camel from kitsu-core (optional, default `s=>s`)
* `options.pluralTypes` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Pluralise types (default no pluralisation). To use parameter, import pluralize (or another pluralisation npm package) (optional, default `s=>s`)
#### Examples

@@ -457,3 +453,2 @@

```javascript

@@ -472,3 +467,2 @@ import { serialise, camel } from 'kitsu-core'

```javascript

@@ -488,3 +482,3 @@ import { serialise } from 'kitsu-core'

[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/snake/index.js#L11-L11 "Source code on GitHub")

@@ -495,3 +489,3 @@ Converts camelCase into snake_case

- `input` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** camelCase string
* `input` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** camelCase string

@@ -508,3 +502,3 @@ #### Examples

[packages/kitsu-core/src/splitModel/index.js:29-39](https://github.com/wopian/kitsu/blob/8a7d453339bbd80393c63cad5ae6fc758fb0eb4e/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/f66d077c8872a0f4c34ed46a48086ec32cdaf64e/packages/kitsu-core/src/splitModel/index.js#L29-L39 "Source code on GitHub")

@@ -515,7 +509,8 @@ Split model name from the model's resource URL

- `url` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** URL path for the model
- `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Optional configuration for camelCase and pluralisation handling
- `options.resourceCase` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Convert libraryEntries to library-entries or library_entries (default no conversion). To use parameter, import kebab or snake from kitsu-core (optional, default `s=>s`)
- `options.pluralModel` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Pluralise models (default no pluralisation). To use parameter, import pluralize (or another pluralisation npm package) (optional, default `s=>s`)
* `url` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** URL path for the model
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Optional configuration for camelCase and pluralisation handling
* `options.resourceCase` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Convert libraryEntries to library-entries or library_entries (default no conversion). To use parameter, import kebab or snake from kitsu-core (optional, default `s=>s`)
* `options.pluralModel` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Pluralise models (default no pluralisation). To use parameter, import pluralize (or another pluralisation npm package) (optional, default `s=>s`)
#### Examples

@@ -530,3 +525,2 @@

```javascript

@@ -540,3 +534,2 @@ import plural from 'pluralize'

```javascript

@@ -543,0 +536,0 @@ import { kebab, snake } from 'kitsu-core'

@@ -32,4 +32,4 @@ /**

export function serialise(type: string, data?: any | any[], method?: string, options?: {
camelCaseTypes: Function;
pluralTypes: Function;
camelCaseTypes?: Function;
pluralTypes?: Function;
}): any;

@@ -29,4 +29,4 @@ /**

export function splitModel(url: string, options?: {
resourceCase: Function;
pluralModel: Function;
resourceCase?: Function;
pluralModel?: Function;
}): [string, string];

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc