From fb01fe6b42145be1026106e283188f3bbe762028 Mon Sep 17 00:00:00 2001 From: Kudakwashe Mupeni Date: Thu, 13 Jun 2024 17:40:41 +0200 Subject: [PATCH] feat: upgrade csm [] (#2256) * upgrade csm to latest * chore: fix mappings that were broken by csm upgrade --- package-lock.json | 14 +++++++------- package.json | 2 +- test/integration/getEntry.test.ts | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6fdeb38cb..c57dc2d5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-determined-by-semantic-release", "license": "MIT", "dependencies": { - "@contentful/content-source-maps": "^0.5.0", + "@contentful/content-source-maps": "^0.6.0", "@contentful/rich-text-types": "^16.0.2", "axios": "~1.7.2", "contentful-resolve-response": "^1.8.1", @@ -2196,9 +2196,9 @@ } }, "node_modules/@contentful/content-source-maps": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@contentful/content-source-maps/-/content-source-maps-0.5.0.tgz", - "integrity": "sha512-Ui14m5QvgFWteAXsv5pmFtbm2deGUJrn1WPHoBa79SK3Z3nV47wQb3/aDZhnXushgpJlk2HmH32Fda/0XZqq1w==", + "version": "0.6.0", + "resolved": "https://npm.pkg.github.com/download/@contentful/content-source-maps/0.6.0/420934abd38522d776227888dd3a1cb5cf8879d3", + "integrity": "sha512-REX3kUm4f2tkdfJArqblhKL7SMLfEG18eF3vcQA+8KdBqo+7lNS2W2CuPt2i8uvdgt1aKliGXJeJTgZjYFpCqw==", "dependencies": { "@vercel/stega": "^0.1.2", "json-pointer": "^0.6.2" @@ -23605,9 +23605,9 @@ } }, "@contentful/content-source-maps": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@contentful/content-source-maps/-/content-source-maps-0.5.0.tgz", - "integrity": "sha512-Ui14m5QvgFWteAXsv5pmFtbm2deGUJrn1WPHoBa79SK3Z3nV47wQb3/aDZhnXushgpJlk2HmH32Fda/0XZqq1w==", + "version": "0.6.0", + "resolved": "https://npm.pkg.github.com/download/@contentful/content-source-maps/0.6.0/420934abd38522d776227888dd3a1cb5cf8879d3", + "integrity": "sha512-REX3kUm4f2tkdfJArqblhKL7SMLfEG18eF3vcQA+8KdBqo+7lNS2W2CuPt2i8uvdgt1aKliGXJeJTgZjYFpCqw==", "requires": { "@vercel/stega": "^0.1.2", "json-pointer": "^0.6.2" diff --git a/package.json b/package.json index fd804cef1..efc5a53c9 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "prepush": "npm run test:prepush" }, "dependencies": { - "@contentful/content-source-maps": "^0.5.0", + "@contentful/content-source-maps": "^0.6.0", "@contentful/rich-text-types": "^16.0.2", "axios": "~1.7.2", "contentful-resolve-response": "^1.8.1", diff --git a/test/integration/getEntry.test.ts b/test/integration/getEntry.test.ts index 1f9e6ce10..b5eeb07a7 100644 --- a/test/integration/getEntry.test.ts +++ b/test/integration/getEntry.test.ts @@ -24,19 +24,19 @@ describe('getEntry via client chain modifiers', () => { type: 'ContentSourceMaps', }, mappings: { - '/fields/name': { + 'fields/name': { source: { editorInterface: 0, fieldType: 0, }, }, - '/fields/likes': { + 'fields/likes': { source: { editorInterface: 1, fieldType: 1, }, }, - '/fields/color': { + 'fields/color': { source: { editorInterface: 2, fieldType: 2,