Skip to content

chore(deps): update dependency @pinia/colada to v0.21.2#3162

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pinia-colada-0.x
Open

chore(deps): update dependency @pinia/colada to v0.21.2#3162
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pinia-colada-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 31, 2025

This PR contains the following updates:

Package Change Age Confidence
@pinia/colada (source) 0.19.10.21.2 age confidence

Release Notes

posva/pinia-colada (@​pinia/colada)

v0.21.2

Compare Source

Bug Fixes
  • correct GC time display for prefetched queries (#​464) (80e2c5a)
  • query: gc prefetched queries (ba1e90c)

v0.21.1

Compare Source

Bug Fixes
Features

v0.21.0

Compare Source

Features
  • expose internal utility types (bb3a7d0)
BREAKING CHANGES

v0.20.0

Compare Source

This release completely changed how useInfiniteQuery() works, the parameters and returned values:

  • The merge option has been removed and data contains an object with pages and pageParams arrays that can be flattened.
  • initialPage has now been replaced with initialPageParam
  • loadMore has been renamed loadNextPage
  • getNextPageParam is now a required option
  • Invalidating now works just as with regular queries, which means that you probably want to set stale value higher (or disable it) to avoid refetching multiple pages when an infinite query is invalidated. Also, you might want to set refetchOn* options to false.
  • It's now possible to have bi-directional navigation
  • There is now hasNextPage and hasPreviousPage

Any feedback on the feature and improvements is welcome!

Here is a complete example of what it looks in action:

<script setup lang="ts">
import { useInfiniteQuery } from '@&#8203;pinia/colada'
import { onWatcherCleanup, useTemplateRef, watch } from 'vue'

const {
  state: factsPages,
  loadNextPage,
  asyncStatus,
  isDelaying,
  hasNextPage,
} = useInfiniteQuery({
  key: ['feed'],
  query: async ({ pageParam }) => factsApi.get<CatFacts>({ query: { page: pageParam, limit: 10 } }),
  initialPageParam: 1,
  getNextPageParam(lastPage) {
    return lastPage.next_page_url
  }
  // plugins
  retry: 0,
  delay: 0,
})

// we only need an array
const facts = computed(() => factPages.value.data?.pages.flat())
const loadMoreEl = useTemplateRef('load-more')

watch(loadMoreEl, (el) => {
  if (el) {
    const observer = new IntersectionObserver(
      (entries) => {
        if (entries[0]?.isIntersecting) {
          loadNextPage()
        }
      },
      {
        rootMargin: '300px',
        threshold: [0],
      },
    )
    observer.observe(el)
    onWatcherCleanup(() => {
      observer.disconnect()
    })
  }
})
</script>

<template>
  <div>
    <button :disabled="asyncStatus === 'loading' || isDelaying" @&#8203;click="loadMore()">
      Load more (or scroll down)
    </button>
    <template v-if="facts?.length">
      <p>We have loaded {{ facts.length }} facts</p>
      <details>
        <summary>Show raw</summary>
        <pre>{{ facts }}</pre>
      </details>

      <blockquote v-for="fact in facts">
        {{ fact }}
      </blockquote>

      <p v-if="hasNextPage" ref="load-more">Loading more...</p>
    </template>
  </div>
</template>
Bug Fixes
Features

0.19.1 (2025-12-17)

Features

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link

vercel bot commented Dec 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hey-api-docs Ready Ready Preview, Comment Feb 6, 2026 6:03pm

Request Review

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Dec 31, 2025

⚠️ No Changeset found

Latest commit: 5c89462

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.68%. Comparing base (3429250) to head (5c89462).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3162   +/-   ##
=======================================
  Coverage   28.68%   28.68%           
=======================================
  Files         309      309           
  Lines        9760     9760           
  Branches     2735     2735           
=======================================
  Hits         2800     2800           
  Misses       5777     5777           
  Partials     1183     1183           
Flag Coverage Δ
unittests 28.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 31, 2025

Open in StackBlitz

@hey-api/codegen-core

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/codegen-core@3162

@hey-api/nuxt

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/nuxt@3162

@hey-api/openapi-ts

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/openapi-ts@3162

@hey-api/shared

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/shared@3162

@hey-api/types

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/types@3162

@hey-api/vite-plugin

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/vite-plugin@3162

commit: 373c446

@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from d9adcd6 to c723fc2 Compare December 31, 2025 13:58
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from c723fc2 to 9bf165d Compare January 2, 2026 04:53
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 9bf165d to 843c917 Compare January 2, 2026 22:04
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 843c917 to a5ebb95 Compare January 4, 2026 01:25
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from a5ebb95 to 1b4051a Compare January 8, 2026 18:47
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 1b4051a to da29c92 Compare January 9, 2026 17:28
@renovate renovate bot changed the title chore(deps): update dependency @pinia/colada to v0.20.0 chore(deps): update dependency @pinia/colada to v0.21.0 Jan 9, 2026
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from da29c92 to e7302e5 Compare January 12, 2026 21:28
@renovate renovate bot changed the title chore(deps): update dependency @pinia/colada to v0.21.0 chore(deps): update dependency @pinia/colada to v0.21.1 Jan 12, 2026
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from e7302e5 to d08aea9 Compare January 19, 2026 15:36
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from d08aea9 to ea7f9bd Compare January 23, 2026 09:05
@renovate renovate bot changed the title chore(deps): update dependency @pinia/colada to v0.21.1 chore(deps): update dependency @pinia/colada to v0.21.2 Jan 23, 2026
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from ea7f9bd to 39e7956 Compare January 23, 2026 18:38
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 39e7956 to 23403ce Compare February 2, 2026 19:32
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 23403ce to 0f25714 Compare February 4, 2026 20:09
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 0f25714 to 2f68346 Compare February 4, 2026 21:14
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 2f68346 to 1f85392 Compare February 5, 2026 14:49
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 1f85392 to 156f6fa Compare February 6, 2026 12:41
@renovate renovate bot changed the title chore(deps): update dependency @pinia/colada to v0.21.2 fix(deps): update dependency @pinia/colada to v0.21.2 Feb 6, 2026
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 156f6fa to 373c446 Compare February 6, 2026 16:50
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from 373c446 to d7b17fb Compare February 6, 2026 16:57
@renovate renovate bot changed the title fix(deps): update dependency @pinia/colada to v0.21.2 chore(deps): update dependency @pinia/colada to v0.21.2 Feb 6, 2026
@renovate renovate bot force-pushed the renovate/pinia-colada-0.x branch from d7b17fb to a38457d Compare February 6, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants