Skip to content

Commit

Permalink
chore(release): 2.3.0 [skip ci]
Browse files Browse the repository at this point in the history
## [2.3.0](v2.2.0...v2.3.0) (2023-01-14)

### Features

* custom relationship types ([#20](#20)) ([70653e7](70653e7))

### Bug Fixes

* changeCase for relation names ([#21](#21)) ([d8ca17f](d8ca17f))
  • Loading branch information
semantic-release-bot committed Jan 14, 2023
1 parent d8ca17f commit a325097
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 52 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [2.3.0](https://github.com/andersondanilo/jsonapi-fractal/compare/v2.2.0...v2.3.0) (2023-01-14)


### Features

* custom relationship types ([#20](https://github.com/andersondanilo/jsonapi-fractal/issues/20)) ([70653e7](https://github.com/andersondanilo/jsonapi-fractal/commit/70653e7e618ef18b048ff7616d54ca2ddacfb76d))


### Bug Fixes

* changeCase for relation names ([#21](https://github.com/andersondanilo/jsonapi-fractal/issues/21)) ([d8ca17f](https://github.com/andersondanilo/jsonapi-fractal/commit/d8ca17f6ea3e04979131ad70e55c9bdd02f4fc88))

## [2.2.0](https://github.com/andersondanilo/jsonapi-fractal/compare/v2.1.0...v2.2.0) (2022-09-23)


Expand Down
44 changes: 22 additions & 22 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ___

#### Defined in

[src/types.ts:17](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L17)
[src/types.ts:17](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L17)

___

Expand All @@ -96,7 +96,7 @@ ___

#### Defined in

[src/context.ts:5](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L5)
[src/context.ts:5](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L5)

___

Expand All @@ -106,7 +106,7 @@ ___

#### Defined in

[src/types.ts:15](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L15)
[src/types.ts:15](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L15)

___

Expand All @@ -116,7 +116,7 @@ ___

#### Defined in

[src/types.ts:11](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L11)
[src/types.ts:11](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L11)

___

Expand All @@ -126,7 +126,7 @@ ___

#### Defined in

[src/types.ts:28](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L28)
[src/types.ts:28](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L28)

___

Expand All @@ -136,7 +136,7 @@ ___

#### Defined in

[src/types.ts:21](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L21)
[src/types.ts:21](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L21)

___

Expand All @@ -146,7 +146,7 @@ ___

#### Defined in

[src/types.ts:19](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L19)
[src/types.ts:19](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L19)

___

Expand All @@ -156,7 +156,7 @@ ___

#### Defined in

[src/types.ts:13](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L13)
[src/types.ts:13](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L13)

___

Expand All @@ -166,7 +166,7 @@ ___

#### Defined in

[src/types.ts:35](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L35)
[src/types.ts:35](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L35)

___

Expand All @@ -192,7 +192,7 @@ ___

#### Defined in

[src/types.ts:50](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L50)
[src/types.ts:50](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L50)

___

Expand All @@ -209,7 +209,7 @@ ___

#### Defined in

[src/types.ts:39](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L39)
[src/types.ts:39](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L39)

___

Expand All @@ -234,7 +234,7 @@ ___

#### Defined in

[src/transformer.ts:24](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/transformer.ts#L24)
[src/transformer.ts:24](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/transformer.ts#L24)

___

Expand Down Expand Up @@ -266,7 +266,7 @@ ___

#### Defined in

[src/transformer.ts:19](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/transformer.ts#L19)
[src/transformer.ts:19](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/transformer.ts#L19)

___

Expand All @@ -283,7 +283,7 @@ ___

#### Defined in

[src/types.ts:23](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L23)
[src/types.ts:23](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L23)

___

Expand All @@ -293,13 +293,13 @@ ___

#### Defined in

[src/types.ts:37](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L37)
[src/types.ts:37](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L37)

___

### SerializeOptions

Ƭ **SerializeOptions**<`TExtraOptions`\>: [`Options`](README.md#options)<`TExtraOptions`\> & { `relationships?`: `string`[] }
Ƭ **SerializeOptions**<`TExtraOptions`\>: [`Options`](README.md#options)<`TExtraOptions`\> & { `relationships?`: `string`[] \| `Record`<`string`, `string`\> }

#### Type parameters

Expand All @@ -309,7 +309,7 @@ ___

#### Defined in

[src/types.ts:63](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/types.ts#L63)
[src/types.ts:63](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/types.ts#L63)

___

Expand All @@ -326,7 +326,7 @@ ___

#### Defined in

[src/transformer.ts:14](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/transformer.ts#L14)
[src/transformer.ts:14](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/transformer.ts#L14)

## Functions

Expand Down Expand Up @@ -356,7 +356,7 @@ Deserialize a JSON:API response

#### Defined in

[src/deserializer.ts:12](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/deserializer.ts#L12)
[src/deserializer.ts:12](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/deserializer.ts#L12)

___

Expand Down Expand Up @@ -387,7 +387,7 @@ Serialize the entity

#### Defined in

[src/serializer.ts:32](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/serializer.ts#L32)
[src/serializer.ts:32](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/serializer.ts#L32)

___

Expand All @@ -410,7 +410,7 @@ Create a ContextBuilder, used to configure the transformation

#### Defined in

[src/serializer.ts:21](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/serializer.ts#L21)
[src/serializer.ts:21](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/serializer.ts#L21)

___

Expand All @@ -433,4 +433,4 @@ Keep only a set of fields on a given object

#### Defined in

[src/utils.ts:55](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/utils.ts#L55)
[src/utils.ts:54](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/utils.ts#L54)
24 changes: 12 additions & 12 deletions docs/classes/ContextBuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

#### Defined in

[src/context.ts:18](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L18)
[src/context.ts:18](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L18)

## Properties

Expand All @@ -63,7 +63,7 @@

#### Defined in

[src/context.ts:15](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L15)
[src/context.ts:15](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L15)

___

Expand All @@ -73,7 +73,7 @@ ___

#### Defined in

[src/context.ts:13](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L13)
[src/context.ts:13](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L13)

___

Expand All @@ -83,7 +83,7 @@ ___

#### Defined in

[src/context.ts:16](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L16)
[src/context.ts:16](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L16)

___

Expand All @@ -107,7 +107,7 @@ ___

#### Defined in

[src/context.ts:18](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L18)
[src/context.ts:18](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L18)

___

Expand All @@ -117,7 +117,7 @@ ___

#### Defined in

[src/context.ts:14](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L14)
[src/context.ts:14](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L14)

## Methods

Expand All @@ -131,7 +131,7 @@ ___

#### Defined in

[src/context.ts:60](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L60)
[src/context.ts:60](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L60)

___

Expand All @@ -145,7 +145,7 @@ ___

#### Defined in

[src/context.ts:43](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L43)
[src/context.ts:43](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L43)

___

Expand All @@ -165,7 +165,7 @@ ___

#### Defined in

[src/context.ts:31](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L31)
[src/context.ts:31](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L31)

___

Expand All @@ -185,7 +185,7 @@ ___

#### Defined in

[src/context.ts:20](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L20)
[src/context.ts:20](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L20)

___

Expand All @@ -205,7 +205,7 @@ ___

#### Defined in

[src/context.ts:37](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L37)
[src/context.ts:37](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L37)

___

Expand All @@ -225,4 +225,4 @@ ___

#### Defined in

[src/context.ts:25](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/context.ts#L25)
[src/context.ts:25](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/context.ts#L25)
12 changes: 6 additions & 6 deletions docs/classes/DefaultTransformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

### constructor

**new DefaultTransformer**<`TEntity`, `TExtraOptions`\>(`type`, `relationshipNames?`)
**new DefaultTransformer**<`TEntity`, `TExtraOptions`\>(`type`, `relationships?`)

#### Type parameters

Expand All @@ -48,15 +48,15 @@
| Name | Type | Default value |
| :------ | :------ | :------ |
| `type` | `string` | `undefined` |
| `relationshipNames` | `string`[] | `[]` |
| `relationships` | `string`[] \| `Record`<`string`, `string`\> | `[]` |

#### Overrides

[Transformer](Transformer.md).[constructor](Transformer.md#constructor)

#### Defined in

[src/default-transformer.ts:8](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/default-transformer.ts#L8)
[src/default-transformer.ts:8](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/default-transformer.ts#L8)

## Properties

Expand All @@ -70,7 +70,7 @@

#### Defined in

[src/default-transformer.ts:6](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/default-transformer.ts#L6)
[src/default-transformer.ts:6](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/default-transformer.ts#L6)

___

Expand All @@ -84,7 +84,7 @@ ___

#### Defined in

[src/default-transformer.ts:8](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/default-transformer.ts#L8)
[src/default-transformer.ts:8](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/default-transformer.ts#L8)

## Methods

Expand All @@ -108,4 +108,4 @@ ___

#### Defined in

[src/default-transformer.ts:23](https://github.com/andersondanilo/jsonapi-fractal/blob/fc0b05d/src/default-transformer.ts#L23)
[src/default-transformer.ts:28](https://github.com/andersondanilo/jsonapi-fractal/blob/d8ca17f/src/default-transformer.ts#L28)
Loading

0 comments on commit a325097

Please sign in to comment.