From 8f55394f39ad17c8772520e8425a9b54b5618f0a Mon Sep 17 00:00:00 2001 From: Tom Wey Date: Wed, 28 Aug 2024 15:32:52 +0100 Subject: [PATCH] Broaden @guardian/source peer dep requirements up to v6 (#506) Broaden the @guardian/source peer dep range from `^1.0.1` to `>= 1.0.1 < 7`. I've tested with v6 and the component rendering looks good (I've made an assumption that things are fine in the intermediate major versions too). As per our recommendations I've bumped the dev version to the latest acceptable. This ought to make upgrading incrementally on DCR more straightforward. --- .changeset/healthy-elephants-own.md | 5 +++++ package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changeset/healthy-elephants-own.md diff --git a/.changeset/healthy-elephants-own.md b/.changeset/healthy-elephants-own.md new file mode 100644 index 00000000..6d89eece --- /dev/null +++ b/.changeset/healthy-elephants-own.md @@ -0,0 +1,5 @@ +--- +'@guardian/braze-components': minor +--- + +Broader @guardian/source peer dependency range diff --git a/package.json b/package.json index a92f0c1d..84d25b93 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@guardian/grid-client": "^1.1.1", "@guardian/libs": "^16.0.0", "@guardian/node-riffraff-artifact": "^0.3.2", - "@guardian/source": "^1.0.1", + "@guardian/source": "^6.0.0", "@rollup/plugin-alias": "^3.1.1", "@rollup/plugin-babel": "^5.1.0", "@rollup/plugin-commonjs": "^14.0.0", @@ -96,7 +96,7 @@ "peerDependencies": { "@emotion/react": "^11.1.2", "@guardian/libs": "^16.0.0", - "@guardian/source": "^1.0.1", + "@guardian/source": ">= 1.0.1 < 7", "react": "17.0.2 || 18.2.0" }, "publishConfig": { diff --git a/yarn.lock b/yarn.lock index 8f82f963..2497fec0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3045,10 +3045,10 @@ yaml "^1.7.2" yargs "^15.4.1" -"@guardian/source@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@guardian/source/-/source-1.0.1.tgz#27e3ee2d44a1fbbd7c24705cccdbf643e3958ba4" - integrity sha512-LzOwkpDuKbOmVv7aOldEJhqaaKdNRP3EpWOAlJVfK08jDTwWtdM5CYTOn/8blJHLTUnEAcxZ6dH+S5zalGhFgg== +"@guardian/source@^6.0.0": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@guardian/source/-/source-6.1.0.tgz#9c4e289a4529002e4f3252577a28c237457e52ae" + integrity sha512-Vez2zPyOa6SLNUSQ6XOIwFPGOcgRrg9MgRQTvG9ERUsYamuDFC3WiGi5U3tMll23WEekKSshd8jDZsAyWz5u5w== dependencies: mini-svg-data-uri "1.4.4"