contentful
Advanced tools
Comparing version 11.1.4 to 11.2.0
@@ -40,3 +40,3 @@ import axios from 'axios'; | ||
const config = Object.assign(Object.assign({}, defaultConfig), params); | ||
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.1.4"}`, config.application, config.integration); | ||
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.2.0"}`, config.application, config.integration); | ||
config.headers = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/vnd.contentful.delivery.v1+json', 'X-Contentful-User-Agent': userAgentHeader }); | ||
@@ -43,0 +43,0 @@ const http = createHttpClient(axios, config); |
@@ -303,3 +303,3 @@ import { encodeCPAResponse } from '@contentful/content-source-maps'; | ||
return { | ||
version: "11.1.4", | ||
version: "11.2.0", | ||
getSpace, | ||
@@ -306,0 +306,0 @@ getContentType, |
@@ -228,5 +228,5 @@ import { Document as RichTextDocument } from '@contentful/rich-text-types'; | ||
includes?: { | ||
Entry?: any[]; | ||
Asset?: any[]; | ||
Entry?: Entry<EntrySkeletonType, Modifiers, Locales>[]; | ||
Asset?: Asset<Modifiers, Locales>[]; | ||
}; | ||
}; |
@@ -32,6 +32,19 @@ <!-- shared header START --> | ||
- [Migration information](#migration-information) | ||
- [Migration to version 11.x](#migration-to-version-11x) | ||
- [Breaking changes](#breaking-changes) | ||
- [Node.js core modules](#nodejs-core-modules) | ||
- [Webpack 5](#webpack-5) | ||
- [Rollup](#rollup) | ||
- [Improvements](#improvements) | ||
- [Tree shaking](#tree-shaking) | ||
- [Module support and package configuration](#module-support-and-package-configuration) | ||
- [Testing framework](#testing-framework) | ||
- [Security](#security) | ||
- [Removal of eval](#removal-of-eval) | ||
- [Migration to contentful.js 10.x](#migration-to-contentfuljs-10x) | ||
- [Breaking changes](#breaking-changes) | ||
- [Breaking changes](#breaking-changes-1) | ||
- [Version compatibility](#version-compatibility) | ||
- [Response modifiers](#response-modifiers) | ||
- [Query params `resolveLinks` and `removeUnresolved`](#query-params-resolvelinks-and-removeunresolved) | ||
- [Query param `locale='*'`](#query-param-locale) | ||
- [TypeScript](#typescript) | ||
@@ -68,3 +81,26 @@ - [Migration to contentful.js 9.x](#migration-to-contentfuljs-9x) | ||
##### Webpack 5 | ||
To make our project bundle properly for the browser with Webpack 5, you need to add this to your configuration: | ||
```js | ||
module.exports = { | ||
resolve: { | ||
fallback: { | ||
os: false, | ||
zlib: false, | ||
tty: false, | ||
}, | ||
}, | ||
}; | ||
``` | ||
##### Rollup | ||
To make our project bundle properly for the browser with Rollup, you need to add this to your configuration: | ||
```js | ||
nodeResolve({ browser: true, preferBuiltins: false }) | ||
``` | ||
### Improvements | ||
@@ -71,0 +107,0 @@ |
{ | ||
"name": "contentful", | ||
"description": "Client for Contentful's Content Delivery API", | ||
"version": "11.1.4", | ||
"version": "11.2.0", | ||
"homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/", | ||
@@ -90,3 +90,3 @@ "type": "module", | ||
"contentful-resolve-response": "^1.9.0", | ||
"@contentful/content-source-maps": "^0.11.0", | ||
"@contentful/content-source-maps": "^0.11.6", | ||
"axios": "^1.7.4", | ||
@@ -93,0 +93,0 @@ "contentful-sdk-core": "^8.3.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1658159
35934