Skip to content

Commit 683dd22

Browse files
authored
Merge pull request #2725 from hey-api/chore/changeset-fix-2
chore: try external link to fix changesets
2 parents 071dc8b + 794315e commit 683dd22

File tree

5 files changed

+28
-146
lines changed

5 files changed

+28
-146
lines changed

.changeset/refactor-pinia-colada-query.md

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,4 @@ feat(pinia-colada): query options use `defineQueryOptions`
66

77
### Updated Pinia Colada query options
88

9-
Pinia Colada query options now use `defineQueryOptions` to improve reactivity support. Instead of calling the query options function, you can use one of the following approaches.
10-
11-
### No params
12-
13-
```ts
14-
useQuery(getPetsQuery);
15-
```
16-
17-
### Constant
18-
19-
```ts
20-
useQuery(getPetByIdQuery, () => ({
21-
path: {
22-
petId: 1,
23-
},
24-
}));
25-
```
26-
27-
### Reactive
28-
29-
```ts
30-
const petId = ref<number | null>(1);
31-
32-
useQuery(getPetByIdQuery, () => ({
33-
path: {
34-
petId: petId.value,
35-
},
36-
}));
37-
```
38-
39-
### Properties
40-
41-
```ts
42-
const petId = ref<number | null>(1);
43-
44-
useQuery(() => ({
45-
...getPetByIdQuery({
46-
path: { petId: petId.value as number },
47-
}),
48-
enabled: () => petId.value != null,
49-
}));
50-
```
9+
Pinia Colada query options now use `defineQueryOptions` to improve reactivity support. Instead of calling the query options function, you can use one of the [following approaches](https://heyapi.dev/openapi-ts/migrating#updated-pinia-colada-query-options).

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
- name: Install dependencies
3636
run: pnpm install
3737

38-
- name: Build library
39-
run: pnpm build
38+
- name: Build packages
39+
run: pnpm build --filter="@hey-api/**"
4040

4141
- name: Run test coverage
4242
run: pnpm test:coverage

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
# prevent lockfile mismatch error
3737
run: pnpm install --frozen-lockfile
3838

39-
- name: Build
40-
run: pnpm build
39+
- name: Build packages
40+
run: pnpm build --filter="@hey-api/**"
4141

4242
- name: Generate GitHub App Token
4343
id: app-token

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"devDependencies": {
4242
"@arethetypeswrong/cli": "0.17.4",
43-
"@changesets/cli": "2.27.8",
43+
"@changesets/cli": "2.29.7",
4444
"@changesets/get-github-info": "0.6.0",
4545
"@changesets/parse": "0.4.1",
4646
"@changesets/types": "6.1.0",

0 commit comments

Comments
 (0)