Skip to content

Commit

Permalink
Publish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 29, 2024
1 parent 9c50a0e commit bde1887
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 46 deletions.
5 changes: 0 additions & 5 deletions .changeset/itchy-bottles-trade.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/tiny-olives-complain.md

This file was deleted.

2 changes: 1 addition & 1 deletion integrations/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion integrations/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 6 additions & 0 deletions packages/async/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/async/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@quilted/async",
"type": "module",
"version": "0.4.12",
"version": "0.4.13",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
57 changes: 32 additions & 25 deletions packages/graphql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -192,88 +199,88 @@
```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 },
},
});
```
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",
});
```
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/preact-async/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/preact-async/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions packages/rollup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bde1887

Please sign in to comment.