Skip to content

Commit

Permalink
Broaden @guardian/source peer dep requirements up to v6 (#506)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tjmw authored Aug 28, 2024
1 parent b1a13db commit 8f55394
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-elephants-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/braze-components': minor
---

Broader @guardian/source peer dependency range
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 8f55394

Please sign in to comment.