From bde1887fd51fae80b423d2dea9f0d3c4e72c9961 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 29 May 2024 05:12:06 +0000 Subject: [PATCH] Publish packages --- .changeset/itchy-bottles-trade.md | 5 --- .changeset/tiny-olives-complain.md | 6 --- integrations/cloudflare/package.json | 2 +- integrations/deno/package.json | 2 +- packages/async/CHANGELOG.md | 6 +++ packages/async/package.json | 2 +- packages/graphql/CHANGELOG.md | 57 ++++++++++++++++------------ packages/graphql/package.json | 2 +- packages/preact-async/CHANGELOG.md | 9 +++++ packages/preact-async/package.json | 4 +- packages/rollup/CHANGELOG.md | 9 +++++ packages/rollup/package.json | 4 +- pnpm-lock.yaml | 4 +- 13 files changed, 66 insertions(+), 46 deletions(-) delete mode 100644 .changeset/itchy-bottles-trade.md delete mode 100644 .changeset/tiny-olives-complain.md diff --git a/.changeset/itchy-bottles-trade.md b/.changeset/itchy-bottles-trade.md deleted file mode 100644 index 59593daac..000000000 --- a/.changeset/itchy-bottles-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@quilted/rollup': patch ---- - -Add `dequal` to framework bundle diff --git a/.changeset/tiny-olives-complain.md b/.changeset/tiny-olives-complain.md deleted file mode 100644 index dc4a39d35..000000000 --- a/.changeset/tiny-olives-complain.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@quilted/preact-async': patch -'@quilted/async': patch ---- - -Fix async timing issues and added `useAsyncRetry()` diff --git a/integrations/cloudflare/package.json b/integrations/cloudflare/package.json index a0939c1fe..40495cd41 100644 --- a/integrations/cloudflare/package.json +++ b/integrations/cloudflare/package.json @@ -56,7 +56,7 @@ }, "peerDependencies": { "@quilted/quilt": "workspace:^0.7.5", - "@quilted/rollup": "workspace:^0.2.30" + "@quilted/rollup": "workspace:^0.2.31" }, "peerDependenciesMeta": { "@quilted/quilt": { diff --git a/integrations/deno/package.json b/integrations/deno/package.json index f6e5d51cd..b3af0ec39 100644 --- a/integrations/deno/package.json +++ b/integrations/deno/package.json @@ -55,7 +55,7 @@ }, "peerDependencies": { "@quilted/quilt": "workspace:^0.7.5", - "@quilted/rollup": "workspace:^0.2.30" + "@quilted/rollup": "workspace:^0.2.31" }, "peerDependenciesMeta": { "@quilted/quilt": { diff --git a/packages/async/CHANGELOG.md b/packages/async/CHANGELOG.md index 0efd766c1..a6337b0bd 100644 --- a/packages/async/CHANGELOG.md +++ b/packages/async/CHANGELOG.md @@ -1,5 +1,11 @@ # @quilted/async +## 0.4.13 + +### Patch Changes + +- [`df94c4d`](https://github.com/lemonmade/quilt/commit/df94c4dcd79a73c8d71ef11a7edb36b547f139a3) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix async timing issues and added `useAsyncRetry()` + ## 0.4.12 ### Patch Changes diff --git a/packages/async/package.json b/packages/async/package.json index 7ea591f7e..fb8deac02 100644 --- a/packages/async/package.json +++ b/packages/async/package.json @@ -1,7 +1,7 @@ { "name": "@quilted/async", "type": "module", - "version": "0.4.12", + "version": "0.4.13", "license": "MIT", "repository": { "type": "git", diff --git a/packages/graphql/CHANGELOG.md b/packages/graphql/CHANGELOG.md index 25e7a36cf..fe3670771 100644 --- a/packages/graphql/CHANGELOG.md +++ b/packages/graphql/CHANGELOG.md @@ -1,5 +1,12 @@ # @quilted/graphql +## 3.1.2 + +### Patch Changes + +- Updated dependencies [[`df94c4d`](https://github.com/lemonmade/quilt/commit/df94c4dcd79a73c8d71ef11a7edb36b547f139a3)]: + - @quilted/async@0.4.13 + ## 3.1.1 ### Patch Changes @@ -78,14 +85,14 @@ import { createGraphQLHttpFetch, type GraphQLHttpFetchOptions, - } from '@quilted/graphql'; + } from "@quilted/graphql"; // becomes: import { createGraphQLFetchOverHTTP, type GraphQLFetchOverHTTPOptions, - } from '@quilted/graphql'; + } from "@quilted/graphql"; ``` This change is being made as part of a larger effort to use uppercase letters for acronyms and initialisms. @@ -192,72 +199,72 @@ ```ts // This all applies for createGraphQLHttpStreamingFetch, too - import {createGraphQLHttpFetch} from '@quilted/graphql'; + import { createGraphQLHttpFetch } from "@quilted/graphql"; // Importing `.graphql` files automatically generates hashed // identifiers for your operations. If you don’t use this feature, // you must pass the identifier yourself. - import myQuery from './MyQuery.graphql'; + import myQuery from "./MyQuery.graphql"; const fetch = createGraphQLHttpFetch({ source: false, - url: 'https://my-app.com/query', + url: "https://my-app.com/query", }); - const {data} = await fetch(myQuery); + const { data } = await fetch(myQuery); ``` This isn’t typically useful unless you also communicate the operation’s hash identifier. Here’s an example showing how you could pass the identifier as an additional URL parameter: ```ts - import {createGraphQLHttpFetch} from '@quilted/graphql'; - import myQuery from './MyQuery.graphql'; + import { createGraphQLHttpFetch } from "@quilted/graphql"; + import myQuery from "./MyQuery.graphql"; const fetch = createGraphQLHttpFetch({ source: false, url(operation) { - const url = new URL('https://my-app.com/query'); - url.searchParams.set('id', operation.id); + const url = new URL("https://my-app.com/query"); + url.searchParams.set("id", operation.id); return url; }, }); - const {data} = await fetch(myQuery); + const { data } = await fetch(myQuery); ``` Here’s an alternative approach, which sends the operation using a GraphQL `extensions` field, according to Apollo’s [automatic persisted queries protocol](https://www.google.com/search?client=safari&rls=en&q=apollo+autoamtic+persisted+queries&ie=UTF-8&oe=UTF-8): ```ts - import {createGraphQLHttpFetch} from '@quilted/graphql'; - import myQuery from './MyQuery.graphql'; + import { createGraphQLHttpFetch } from "@quilted/graphql"; + import myQuery from "./MyQuery.graphql"; const fetch = createGraphQLHttpFetch({ source: false, - url: 'https://my-app.com/query', + url: "https://my-app.com/query", extensions(operation) { return { - persistedQuery: {version: 1, sha256Hash: operation.id}, + persistedQuery: { version: 1, sha256Hash: operation.id }, }; }, }); - const {data} = await fetch(myQuery); + const { data } = await fetch(myQuery); ``` These `source` and `extension` options can be set globally, as shown above, or per-fetch: ```ts - import {createGraphQLHttpFetch} from '@quilted/graphql'; - import myQuery from './MyQuery.graphql'; + import { createGraphQLHttpFetch } from "@quilted/graphql"; + import myQuery from "./MyQuery.graphql"; const fetch = createGraphQLHttpFetch({ - url: 'https://my-app.com/query', + url: "https://my-app.com/query", }); - const {data} = await fetch(myQuery, { + const { data } = await fetch(myQuery, { source: false, extensions: { - persistedQuery: {version: 1, sha256Hash: myQuery.id}, + persistedQuery: { version: 1, sha256Hash: myQuery.id }, }, }); ``` @@ -265,15 +272,15 @@ You can also now set the `method`, `url`, and `headers` options per fetch. The example below shows how you can set the `method` to `GET` for a single GraphQL operation: ```ts - import {createGraphQLHttpFetch} from '@quilted/graphql'; + import { createGraphQLHttpFetch } from "@quilted/graphql"; const fetch = createGraphQLHttpFetch({ - url: 'https://my-app.com/query', + url: "https://my-app.com/query", }); - const {data} = await fetch(`{ me { name } }`, { + const { data } = await fetch(`{ me { name } }`, { // Default is POST, but this query will run as a GET - method: 'GET', + method: "GET", }); ``` diff --git a/packages/graphql/package.json b/packages/graphql/package.json index 6660df241..52293833f 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -2,7 +2,7 @@ "name": "@quilted/graphql", "description": "Tiny, type-safe helpers for using GraphQL", "type": "module", - "version": "3.1.1", + "version": "3.1.2", "license": "MIT", "repository": { "type": "git", diff --git a/packages/preact-async/CHANGELOG.md b/packages/preact-async/CHANGELOG.md index 9d402a5bd..a3b47c23b 100644 --- a/packages/preact-async/CHANGELOG.md +++ b/packages/preact-async/CHANGELOG.md @@ -1,5 +1,14 @@ # @quilted/preact-async +## 0.1.12 + +### Patch Changes + +- [`df94c4d`](https://github.com/lemonmade/quilt/commit/df94c4dcd79a73c8d71ef11a7edb36b547f139a3) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix async timing issues and added `useAsyncRetry()` + +- Updated dependencies [[`df94c4d`](https://github.com/lemonmade/quilt/commit/df94c4dcd79a73c8d71ef11a7edb36b547f139a3)]: + - @quilted/async@0.4.13 + ## 0.1.11 ### Patch Changes diff --git a/packages/preact-async/package.json b/packages/preact-async/package.json index 5c5edb400..352e9eb82 100644 --- a/packages/preact-async/package.json +++ b/packages/preact-async/package.json @@ -1,7 +1,7 @@ { "name": "@quilted/preact-async", "type": "module", - "version": "0.1.11", + "version": "0.1.12", "repository": { "type": "git", "url": "https://github.com/lemonmade/quilt.git", @@ -26,7 +26,7 @@ "build": "rollup --config configuration/rollup.config.js" }, "dependencies": { - "@quilted/async": "workspace:^0.4.12", + "@quilted/async": "workspace:^0.4.13", "@quilted/preact-browser": "workspace:^0.1.4", "@quilted/preact-context": "workspace:^0.1.0", "@quilted/preact-signals": "workspace:^0.1.0" diff --git a/packages/rollup/CHANGELOG.md b/packages/rollup/CHANGELOG.md index 345bdad7d..562507dff 100644 --- a/packages/rollup/CHANGELOG.md +++ b/packages/rollup/CHANGELOG.md @@ -1,5 +1,14 @@ # @quilted/rollup +## 0.2.31 + +### Patch Changes + +- [`7e355e3`](https://github.com/lemonmade/quilt/commit/7e355e3b2eb0819af8ea4181d40f9462def0d1a0) Thanks [@lemonmade](https://github.com/lemonmade)! - Add `dequal` to framework bundle + +- Updated dependencies []: + - @quilted/graphql@3.1.2 + ## 0.2.30 ### Patch Changes diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 8d0499cbb..3e077cfcc 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -6,7 +6,7 @@ "access": "public", "@quilted/registry": "https://registry.npmjs.org" }, - "version": "0.2.30", + "version": "0.2.31", "engines": { "node": ">=14.0.0" }, @@ -148,7 +148,7 @@ "@rollup/plugin-node-resolve": "^15.2.3", "@quilted/assets": "workspace:^0.1.0", "@quilted/babel": "workspace:^0.2.2", - "@quilted/graphql": "workspace:^3.1.1", + "@quilted/graphql": "workspace:^3.1.2", "@types/babel__preset-env": "^7.9.0", "browserslist": "^4.22.1", "browserslist-useragent-regexp": "^4.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 57f55862b..a438988e2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -413,7 +413,7 @@ importers: packages/preact-async: dependencies: '@quilted/async': - specifier: workspace:^0.4.12 + specifier: workspace:^0.4.13 version: link:../async '@quilted/preact-browser': specifier: workspace:^0.1.4 @@ -776,7 +776,7 @@ importers: specifier: workspace:^0.2.2 version: link:../babel '@quilted/graphql': - specifier: workspace:^3.1.1 + specifier: workspace:^3.1.2 version: link:../graphql '@rollup/plugin-alias': specifier: ^5.0.1