Skip to content

Commit 1dd51f1

Browse files
authored
patch changesets (#3344)
1 parent 595525c commit 1dd51f1

File tree

3 files changed

+117
-17
lines changed

3 files changed

+117
-17
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"lint": "yarn eslint && yarn pretty-check && yarn lint-cspell",
6363
"lint-cspell": "cspell --unique --no-progress --no-must-find-files",
6464
"lint-fix": "yarn eslint --fix",
65+
"postinstall": "patch-package --patch-dir resources/patches",
6566
"postbuild": "yarn workspace codemirror-graphql postbuild && yarn workspace monaco-graphql postbuild",
6667
"prebuild-bundles": "yarn build-bundles-clean",
6768
"prepublishOnly": "./scripts/prepublish.sh",
@@ -93,8 +94,8 @@
9394
"@babel/preset-react": "^7.18.6",
9495
"@babel/preset-typescript": "^7.21.0",
9596
"@babel/register": "^7.21.0",
96-
"@changesets/changelog-github": "^0.4.7",
97-
"@changesets/cli": "^2.25.2",
97+
"@changesets/changelog-github": "0.4.7",
98+
"@changesets/cli": "2.25.2",
9899
"@manypkg/get-packages": "^1.1.3",
99100
"@shopify/eslint-plugin": "^42.1.0",
100101
"@strictsoftware/typedoc-plugin-monorepo": "^0.3.1",
@@ -135,6 +136,8 @@
135136
"js-green-licenses": "3.0.0",
136137
"lint-staged": "^10.1.2",
137138
"mkdirp": "^1.0.4",
139+
"patch-package": "^7.0.2",
140+
"postinstall-postinstall": "^2.1.0",
138141
"prettier": "3.0.0-alpha.12",
139142
"rimraf": "^3.0.2",
140143
"ts-jest": "^27.1.5",
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js
2+
index 3a37c62..a352a93 100644
3+
--- a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js
4+
+++ b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js
5+
@@ -251,7 +251,7 @@ function shouldBumpMajor({
6+
// we check if it is a peerDependency because if it is, our dependent bump type might need to be major.
7+
return depType === "peerDependencies" && nextRelease.type !== "none" && nextRelease.type !== "patch" && ( // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range.
8+
// 2. If onlyUpdatePeerDependentsWhenOutOfRange set to false, bump major regardless whether or not the version is leaving the range.
9+
- !onlyUpdatePeerDependentsWhenOutOfRange || !semver__default['default'].satisfies(incrementVersion(nextRelease, preInfo), versionRange)) && ( // bump major only if the dependent doesn't already has a major release.
10+
+ !onlyUpdatePeerDependentsWhenOutOfRange) && ( // bump major only if the dependent doesn't already has a major release.
11+
!releases.has(dependent) || releases.has(dependent) && releases.get(dependent).type !== "major");
12+
}
13+
14+
diff --git a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.prod.js b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.prod.js
15+
index 87b4c10..80a6364 100644
16+
--- a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.prod.js
17+
+++ b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.prod.js
18+
@@ -130,7 +130,7 @@ function getDependencyVersionRanges(dependentPkgJSON, dependencyRelease) {
19+
}
20+
21+
function shouldBumpMajor({dependent: dependent, depType: depType, versionRange: versionRange, releases: releases, nextRelease: nextRelease, preInfo: preInfo, onlyUpdatePeerDependentsWhenOutOfRange: onlyUpdatePeerDependentsWhenOutOfRange}) {
22+
- return "peerDependencies" === depType && "none" !== nextRelease.type && "patch" !== nextRelease.type && (!onlyUpdatePeerDependentsWhenOutOfRange || !semver__default.default.satisfies(incrementVersion(nextRelease, preInfo), versionRange)) && (!releases.has(dependent) || releases.has(dependent) && "major" !== releases.get(dependent).type);
23+
+ return "peerDependencies" === depType && "none" !== nextRelease.type && "patch" !== nextRelease.type && !onlyUpdatePeerDependentsWhenOutOfRange && (!releases.has(dependent) || releases.has(dependent) && "major" !== releases.get(dependent).type);
24+
}
25+
26+
function flattenReleases(changesets, packagesByName, ignoredPackages) {

yarn.lock

Lines changed: 86 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2422,7 +2422,7 @@
24222422
dependencies:
24232423
"@changesets/types" "^5.2.0"
24242424

2425-
"@changesets/changelog-github@^0.4.7":
2425+
"@changesets/[email protected]":
24262426
version "0.4.7"
24272427
resolved "https://registry.yarnpkg.com/@changesets/changelog-github/-/changelog-github-0.4.7.tgz#4da67472eaa0dc1ccff91fe8ecd9846ce818ec7b"
24282428
integrity sha512-UUG5sKwShs5ha1GFnayUpZNcDGWoY7F5XxhOEHS62sDPOtoHQZsG3j1nC5RxZ3M1URHA321cwVZHeXgu99Y3ew==
@@ -2431,7 +2431,7 @@
24312431
"@changesets/types" "^5.2.0"
24322432
dotenv "^8.1.0"
24332433

2434-
"@changesets/cli@^2.25.2":
2434+
"@changesets/[email protected]":
24352435
version "2.25.2"
24362436
resolved "https://registry.yarnpkg.com/@changesets/cli/-/cli-2.25.2.tgz#fc5e894aa6f85c60749a035352dec3dcbd275c71"
24372437
integrity sha512-ACScBJXI3kRyMd2R8n8SzfttDHi4tmKSwVwXBazJOylQItSRSF4cGmej2E4FVf/eNfGy6THkL9GzAahU9ErZrA==
@@ -6311,6 +6311,11 @@
63116311
resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
63126312
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
63136313

6314+
"@yarnpkg/lockfile@^1.1.0":
6315+
version "1.1.0"
6316+
resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31"
6317+
integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==
6318+
63146319
63156320
version "2.6.0"
63166321
resolved "https://registry.yarnpkg.com/@zeit/schemas/-/schemas-2.6.0.tgz#004e8e553b4cd53d538bd38eac7bcbf58a867fe3"
@@ -7774,7 +7779,7 @@ ci-info@^3.2.0:
77747779
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6"
77757780
integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A==
77767781

7777-
ci-info@^3.8.0:
7782+
ci-info@^3.7.0, ci-info@^3.8.0:
77787783
version "3.8.0"
77797784
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.8.0.tgz#81408265a5380c929f0bc665d62256628ce9ef91"
77807785
integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==
@@ -10727,6 +10732,13 @@ [email protected]:
1072710732
micromatch "^4.0.2"
1072810733
pkg-dir "^4.2.0"
1072910734

10735+
find-yarn-workspace-root@^2.0.0:
10736+
version "2.0.0"
10737+
resolved "https://registry.yarnpkg.com/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz#f47fb8d239c900eb78179aa81b66673eac88f7bd"
10738+
integrity sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==
10739+
dependencies:
10740+
micromatch "^4.0.2"
10741+
1073010742
flat-cache@^3.0.4:
1073110743
version "3.0.4"
1073210744
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11"
@@ -10919,25 +10931,25 @@ fs-extra@^8.1.0:
1091910931
jsonfile "^4.0.0"
1092010932
universalify "^0.1.0"
1092110933

10922-
fs-extra@^9.0.1:
10923-
version "9.0.1"
10924-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
10925-
integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==
10934+
fs-extra@^9.0.0, fs-extra@^9.1.0:
10935+
version "9.1.0"
10936+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
10937+
integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
1092610938
dependencies:
1092710939
at-least-node "^1.0.0"
1092810940
graceful-fs "^4.2.0"
1092910941
jsonfile "^6.0.1"
10930-
universalify "^1.0.0"
10942+
universalify "^2.0.0"
1093110943

10932-
fs-extra@^9.1.0:
10933-
version "9.1.0"
10934-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
10935-
integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
10944+
fs-extra@^9.0.1:
10945+
version "9.0.1"
10946+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
10947+
integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==
1093610948
dependencies:
1093710949
at-least-node "^1.0.0"
1093810950
graceful-fs "^4.2.0"
1093910951
jsonfile "^6.0.1"
10940-
universalify "^2.0.0"
10952+
universalify "^1.0.0"
1094110953

1094210954
fs-monkey@^1.0.3:
1094310955
version "1.0.3"
@@ -11382,6 +11394,11 @@ got@^9.6.0:
1138211394
to-readable-stream "^1.0.0"
1138311395
url-parse-lax "^3.0.0"
1138411396

11397+
graceful-fs@^4.1.11:
11398+
version "4.2.11"
11399+
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
11400+
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
11401+
1138511402
graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.5, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9:
1138611403
version "4.2.10"
1138711404
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
@@ -12587,7 +12604,7 @@ is-windows@^1.0.0:
1258712604
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
1258812605
integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==
1258912606

12590-
is-wsl@^2.2.0:
12607+
is-wsl@^2.1.1, is-wsl@^2.2.0:
1259112608
version "2.2.0"
1259212609
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
1259312610
integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
@@ -13507,6 +13524,13 @@ kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3:
1350713524
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
1350813525
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
1350913526

13527+
klaw-sync@^6.0.0:
13528+
version "6.0.0"
13529+
resolved "https://registry.yarnpkg.com/klaw-sync/-/klaw-sync-6.0.0.tgz#1fd2cfd56ebb6250181114f0a581167099c2b28c"
13530+
integrity sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==
13531+
dependencies:
13532+
graceful-fs "^4.1.11"
13533+
1351013534
kleur@^3.0.3:
1351113535
version "3.0.3"
1351213536
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
@@ -15293,6 +15317,14 @@ onetime@^6.0.0:
1529315317
dependencies:
1529415318
mimic-fn "^4.0.0"
1529515319

15320+
open@^7.4.2:
15321+
version "7.4.2"
15322+
resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321"
15323+
integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==
15324+
dependencies:
15325+
is-docker "^2.0.0"
15326+
is-wsl "^2.1.1"
15327+
1529615328
open@^8.0.9:
1529715329
version "8.4.2"
1529815330
resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9"
@@ -15596,6 +15628,26 @@ pascal-case@^3.1.1, pascal-case@^3.1.2:
1559615628
no-case "^3.0.4"
1559715629
tslib "^2.0.3"
1559815630

15631+
patch-package@^7.0.2:
15632+
version "7.0.2"
15633+
resolved "https://registry.yarnpkg.com/patch-package/-/patch-package-7.0.2.tgz#c01589bb6964854b5210506a5845d47900641f5a"
15634+
integrity sha512-PMYfL8LXxGIRmxXLqlEaBxzKPu7/SdP13ld6GSfAUJUZRmBDPp8chZs0dpzaAFn9TSPnFiMwkC6PJt6pBiAl8Q==
15635+
dependencies:
15636+
"@yarnpkg/lockfile" "^1.1.0"
15637+
chalk "^4.1.2"
15638+
ci-info "^3.7.0"
15639+
cross-spawn "^7.0.3"
15640+
find-yarn-workspace-root "^2.0.0"
15641+
fs-extra "^9.0.0"
15642+
klaw-sync "^6.0.0"
15643+
minimist "^1.2.6"
15644+
open "^7.4.2"
15645+
rimraf "^2.6.3"
15646+
semver "^7.5.3"
15647+
slash "^2.0.0"
15648+
tmp "^0.0.33"
15649+
yaml "^2.2.2"
15650+
1559915651
path-case@^3.0.4:
1560015652
version "3.0.4"
1560115653
resolved "https://registry.yarnpkg.com/path-case/-/path-case-3.0.4.tgz#9168645334eb942658375c56f80b4c0cb5f82c6f"
@@ -16376,6 +16428,11 @@ postcss@^8.4.23:
1637616428
picocolors "^1.0.0"
1637716429
source-map-js "^1.0.2"
1637816430

16431+
postinstall-postinstall@^2.1.0:
16432+
version "2.1.0"
16433+
resolved "https://registry.yarnpkg.com/postinstall-postinstall/-/postinstall-postinstall-2.1.0.tgz#4f7f77441ef539d1512c40bd04c71b06a4704ca3"
16434+
integrity sha512-7hQX6ZlZXIoRiWNrbMQaLzUUfH+sSx39u8EJ9HYuDc1kLo9IXKWjM5RSquZN1ad5GnH8CGFM78fsAAQi3OKEEQ==
16435+
1637916436
prebuild-install@^7.0.1:
1638016437
version "7.0.1"
1638116438
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.0.1.tgz#c10075727c318efe72412f333e0ef625beaf3870"
@@ -17294,6 +17351,13 @@ rfdc@^1.3.0:
1729417351
resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b"
1729517352
integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==
1729617353

17354+
rimraf@^2.6.3:
17355+
version "2.7.1"
17356+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
17357+
integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
17358+
dependencies:
17359+
glob "^7.1.3"
17360+
1729717361
rimraf@^3.0.0, rimraf@^3.0.2:
1729817362
version "3.0.2"
1729917363
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
@@ -17582,6 +17646,13 @@ semver@^7.5.0:
1758217646
dependencies:
1758317647
lru-cache "^6.0.0"
1758417648

17649+
semver@^7.5.3:
17650+
version "7.5.4"
17651+
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
17652+
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
17653+
dependencies:
17654+
lru-cache "^6.0.0"
17655+
1758517656
1758617657
version "0.17.2"
1758717658
resolved "https://registry.yarnpkg.com/send/-/send-0.17.2.tgz#926622f76601c41808012c8bf1688fe3906f7820"
@@ -20405,7 +20476,7 @@ yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2:
2040520476
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
2040620477
integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==
2040720478

20408-
yaml@^2.0.0:
20479+
yaml@^2.0.0, yaml@^2.2.2:
2040920480
version "2.3.1"
2041020481
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b"
2041120482
integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==

0 commit comments

Comments
 (0)