Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add changesets for pre-monorepo changes (#536)

* Add changeset for urql-exchange-graphcache/pull/156

* Add changeset for urql-exchange-graphcache/pull/160

* Add changeset for urql-exchange-graphcache/pull/161

* Add changeset for urql/pull/512

* Add changeset for urql/pull/515

* Add changeset urql/pull/514

* Add changeset for urql/pull/518

* Add changeset for urql/pull/519

* Add changeset for urql/pull/512

* Fix manual "see links" for dependency release lines in Changelog gen

* Add changeset for @urql/preact

authored by

Phil Plückthun and committed by
GitHub
077fb43e 77c8e3e6

+84 -17
+6
.changeset/dry-planets-report.md
··· 1 + --- 2 + '@urql/preact': patch 3 + --- 4 + 5 + Switch over to using @urql/core package 6 + See: [`75323c0`](https://github.com/FormidableLabs/urql/commit/75323c0)
+6
.changeset/fresh-owls-hide.md
··· 1 + --- 2 + '@urql/exchange-graphcache': patch 3 + --- 4 + 5 + Fix updates not being triggered when optimistic updates diverge from the actual result. 6 + See: [#160](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/160)
+6
.changeset/gentle-cows-kiss.md
··· 1 + --- 2 + '@urql/exchange-graphcache': patch 3 + --- 4 + 5 + Refactor away SchemaPredicates helper to reduce bundlesize. 6 + See: [#161](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/161)
+6
.changeset/green-files-prove.md
··· 1 + --- 2 + 'urql': patch 3 + --- 4 + 5 + Fix more concurrent-mode and strict-mode edge cases and bugs by switching to useSubscription. 6 + See: [#514](https://github.com/FormidableLabs/urql/pull/514)
+7
.changeset/large-baboons-train.md
··· 1 + --- 2 + 'urql': patch 3 + --- 4 + 5 + Fix client-side suspense support (as minimally as possible) by altering 6 + the useBehaviourSubject behaviour. 7 + See: [#512](https://github.com/FormidableLabs/urql/pull/521)
+6
.changeset/sour-actors-sniff.md
··· 1 + --- 2 + '@urql/core': minor 3 + --- 4 + 5 + Add support for sending queries using GET instead of POST method 6 + See: [#519](https://github.com/FormidableLabs/urql/pull/519)
+6
.changeset/tame-pumas-peel.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Fix ssrExchange not serialising networkError on CombinedErrors correctly. 6 + See: [#515](https://github.com/FormidableLabs/urql/pull/515)
+6
.changeset/thin-lies-brush.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Add explicit error when creating Client without a URL in development. 6 + See: [#512](https://github.com/FormidableLabs/urql/pull/512)
+7
.changeset/weak-beds-heal.md
··· 1 + --- 2 + '@urql/exchange-graphcache': patch 3 + --- 4 + 5 + Ensure that pagination helpers don't confuse pages that have less params with a 6 + query that has more params. 7 + See: [#156](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/156)
+6
.changeset/wicked-badgers-fetch.md
··· 1 + --- 2 + '@urql/core': minor 3 + --- 4 + 5 + Add client.readQuery method 6 + See: [#518](https://github.com/FormidableLabs/urql/pull/518)
-4
packages/preact-urql/CHANGELOG.md
··· 4 4 5 5 - Update urql to 1.8.0 6 6 - Update wonka to 4.0.0 (and incorporate breaking changes) 7 - 8 - ## 1.0.0 9 - 10 - Releaased!
+22 -13
scripts/changesets/changelog.js
··· 6 6 const REPO = 'FormidableLabs/urql'; 7 7 const SEE_LINE = /^See:\s*(.*)/i; 8 8 9 + const getSummaryLines = cs => 10 + cs.summary 11 + .trim() 12 + .split(/[\r\n]+/) 13 + .map(l => l.trim()) 14 + .filter(Boolean); 15 + 9 16 /** Creates a "(See X)" string from a template */ 10 17 const templateSeeRef = links => { 11 18 const humanReadableLinks = links ··· 33 40 34 41 const dependenciesLinks = await Promise.all( 35 42 changesets.map(async cs => { 36 - if (cs.commit) { 37 - const { links } = await getInfo({ 38 - repo: REPO, 39 - commit: cs.commit 40 - }); 43 + if (!cs.commit) return undefined; 41 44 42 - return links; 45 + const lines = getSummaryLines(cs); 46 + const prLine = lines.find(line => SEE_LINE.test(line)); 47 + if (prLine) { 48 + const match = prLine.match(SEE_LINE); 49 + return (match && match[1].trim()) || undefined; 43 50 } 51 + 52 + const { links } = await getInfo({ 53 + repo: REPO, 54 + commit: cs.commit 55 + }); 56 + 57 + return links; 44 58 }) 45 59 ); 46 60 ··· 58 72 getReleaseLine: async (changeset, type) => { 59 73 let pull, commit, user; 60 74 61 - const lines = changeset.summary 62 - .trim() 63 - .split(/[\r\n]+/) 64 - .map(l => l.trim()) 65 - .filter(Boolean); 66 - 75 + const lines = getSummaryLines(changeset); 67 76 const prLineIndex = lines.findIndex(line => SEE_LINE.test(line)); 68 77 if (prLineIndex > -1) { 69 78 const match = lines[prLineIndex].match(SEE_LINE); ··· 89 98 annotation = '⚠️ '; 90 99 } 91 100 92 - let str = `\n- ${annotation}${firstLine}`; 101 + let str = `- ${annotation}${firstLine}`; 93 102 if (futureLines.length > 0) { 94 103 str += `\n${futureLines.map(l => ` ${l}`).join('\n')}`; 95 104 }