@se-studio/contentful-rest-api 1.0.165 → 1.0.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/api/person.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @se-studio/contentful-rest-api
|
|
2
2
|
|
|
3
|
+
## 1.0.168
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [9c0ee02]
|
|
8
|
+
- @se-studio/core-data-types@1.0.160
|
|
9
|
+
|
|
10
|
+
## 1.0.167
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Version bump: patch for changed packages
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @se-studio/core-data-types@1.0.159
|
|
17
|
+
|
|
18
|
+
## 1.0.166
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- **person**: default Contentful `include` depth for person and bundled customType sidecar fetches increased from 5 to 6
|
|
23
|
+
|
|
3
24
|
## 1.0.165
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/api/person.js
CHANGED
|
@@ -51,7 +51,7 @@ export async function contentfulPersonRest(context, config, slug, options) {
|
|
|
51
51
|
const personPromise = client.getEntries({
|
|
52
52
|
content_type: 'person',
|
|
53
53
|
'fields.slug': slug,
|
|
54
|
-
include: options?.include ??
|
|
54
|
+
include: options?.include ?? 6,
|
|
55
55
|
locale: options?.locale,
|
|
56
56
|
limit: 1,
|
|
57
57
|
}, requestOptions);
|
|
@@ -59,7 +59,7 @@ export async function contentfulPersonRest(context, config, slug, options) {
|
|
|
59
59
|
? client.getEntries({
|
|
60
60
|
content_type: 'customType',
|
|
61
61
|
'fields.slug': options.customType,
|
|
62
|
-
include: options?.include ??
|
|
62
|
+
include: options?.include ?? 6,
|
|
63
63
|
locale: options?.locale,
|
|
64
64
|
limit: 1,
|
|
65
65
|
}, requestOptions)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-studio/contentful-rest-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.168",
|
|
4
4
|
"description": "Type-safe Contentful REST API client with caching and rate limiting for Next.js applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@contentful/rich-text-types": "^17.2.7",
|
|
52
52
|
"contentful": "^11.12.2",
|
|
53
53
|
"server-only": "0.0.1",
|
|
54
|
-
"@se-studio/core-data-types": "1.0.
|
|
54
|
+
"@se-studio/core-data-types": "1.0.160"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"next": ">=15.5.0"
|