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

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

+6
.changeset/dry-planets-report.md
···
+
---
+
'@urql/preact': patch
+
---
+
+
Switch over to using @urql/core package
+
See: [`75323c0`](https://github.com/FormidableLabs/urql/commit/75323c0)
+6
.changeset/fresh-owls-hide.md
···
+
---
+
'@urql/exchange-graphcache': patch
+
---
+
+
Fix updates not being triggered when optimistic updates diverge from the actual result.
+
See: [#160](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/160)
+6
.changeset/gentle-cows-kiss.md
···
+
---
+
'@urql/exchange-graphcache': patch
+
---
+
+
Refactor away SchemaPredicates helper to reduce bundlesize.
+
See: [#161](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/161)
+6
.changeset/green-files-prove.md
···
+
---
+
'urql': patch
+
---
+
+
Fix more concurrent-mode and strict-mode edge cases and bugs by switching to useSubscription.
+
See: [#514](https://github.com/FormidableLabs/urql/pull/514)
+7
.changeset/large-baboons-train.md
···
+
---
+
'urql': patch
+
---
+
+
Fix client-side suspense support (as minimally as possible) by altering
+
the useBehaviourSubject behaviour.
+
See: [#512](https://github.com/FormidableLabs/urql/pull/521)
+6
.changeset/sour-actors-sniff.md
···
+
---
+
'@urql/core': minor
+
---
+
+
Add support for sending queries using GET instead of POST method
+
See: [#519](https://github.com/FormidableLabs/urql/pull/519)
+6
.changeset/tame-pumas-peel.md
···
+
---
+
'@urql/core': patch
+
---
+
+
Fix ssrExchange not serialising networkError on CombinedErrors correctly.
+
See: [#515](https://github.com/FormidableLabs/urql/pull/515)
+6
.changeset/thin-lies-brush.md
···
+
---
+
'@urql/core': patch
+
---
+
+
Add explicit error when creating Client without a URL in development.
+
See: [#512](https://github.com/FormidableLabs/urql/pull/512)
+7
.changeset/weak-beds-heal.md
···
+
---
+
'@urql/exchange-graphcache': patch
+
---
+
+
Ensure that pagination helpers don't confuse pages that have less params with a
+
query that has more params.
+
See: [#156](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/156)
+6
.changeset/wicked-badgers-fetch.md
···
+
---
+
'@urql/core': minor
+
---
+
+
Add client.readQuery method
+
See: [#518](https://github.com/FormidableLabs/urql/pull/518)
-4
packages/preact-urql/CHANGELOG.md
···
- Update urql to 1.8.0
- Update wonka to 4.0.0 (and incorporate breaking changes)
-
-
## 1.0.0
-
-
Releaased!
+22 -13
scripts/changesets/changelog.js
···
const REPO = 'FormidableLabs/urql';
const SEE_LINE = /^See:\s*(.*)/i;
+
const getSummaryLines = cs =>
+
cs.summary
+
.trim()
+
.split(/[\r\n]+/)
+
.map(l => l.trim())
+
.filter(Boolean);
+
/** Creates a "(See X)" string from a template */
const templateSeeRef = links => {
const humanReadableLinks = links
···
const dependenciesLinks = await Promise.all(
changesets.map(async cs => {
-
if (cs.commit) {
-
const { links } = await getInfo({
-
repo: REPO,
-
commit: cs.commit
-
});
+
if (!cs.commit) return undefined;
-
return links;
+
const lines = getSummaryLines(cs);
+
const prLine = lines.find(line => SEE_LINE.test(line));
+
if (prLine) {
+
const match = prLine.match(SEE_LINE);
+
return (match && match[1].trim()) || undefined;
}
+
+
const { links } = await getInfo({
+
repo: REPO,
+
commit: cs.commit
+
});
+
+
return links;
})
);
···
getReleaseLine: async (changeset, type) => {
let pull, commit, user;
-
const lines = changeset.summary
-
.trim()
-
.split(/[\r\n]+/)
-
.map(l => l.trim())
-
.filter(Boolean);
-
+
const lines = getSummaryLines(changeset);
const prLineIndex = lines.findIndex(line => SEE_LINE.test(line));
if (prLineIndex > -1) {
const match = lines[prLineIndex].match(SEE_LINE);
···
annotation = '⚠️ ';
}
-
let str = `\n- ${annotation}${firstLine}`;
+
let str = `- ${annotation}${firstLine}`;
if (futureLines.length > 0) {
str += `\n${futureLines.map(l => ` ${l}`).join('\n')}`;
}