Skip to content

Conversation

vicary
Copy link
Member

@vicary vicary commented Sep 13, 2025

No description provided.

@vicary vicary force-pushed the feat(package/gqty)-cache-subscribe-all branch from 8ab1fdb to b677797 Compare September 13, 2025 09:16
@vicary vicary force-pushed the feat(package/gqty)-cache-subscribe-all branch from b677797 to 184e8ed Compare September 13, 2025 14:45
Copy link
Contributor

🚀 Snapshot Release (canary)

The latest changes of this PR are available as canary on npm (based on the declared changesets):

Package Version Info
@gqty/cli 4.3.1-canary-20250913144609.184e8ed2c8cb8bc29df4d95faf656d3adaa99cf7 npm ↗︎ unpkg ↗︎
gqty 4.0.0-canary-20250913144609.184e8ed2c8cb8bc29df4d95faf656d3adaa99cf7 npm ↗︎ unpkg ↗︎
@gqty/logger 4.0.0-canary-20250913144609.184e8ed2c8cb8bc29df4d95faf656d3adaa99cf7 npm ↗︎ unpkg ↗︎
@gqty/react 4.0.0-canary-20250913144609.184e8ed2c8cb8bc29df4d95faf656d3adaa99cf7 npm ↗︎ unpkg ↗︎
@gqty/solid 1.0.0-canary-20250913144609.184e8ed2c8cb8bc29df4d95faf656d3adaa99cf7 npm ↗︎ unpkg ↗︎

@vicary vicary merged commit dc521da into main Oct 9, 2025
3 checks passed
@vicary vicary deleted the feat(package/gqty)-cache-subscribe-all branch October 9, 2025 05:37
@vicary vicary requested a review from Copilot October 9, 2025 05:37
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to allow global subscription to all cache changes in the GQty library, enabling listeners to be notified of any cache modifications without specifying specific paths.

  • Added method overload to subscribe() for global subscriptions that receive all cache change notifications
  • Updated cache notification logic to include global subscribers alongside path-specific subscribers
  • Added comprehensive test coverage for the new global subscription functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/gqty/src/Cache/index.ts Implements global subscription functionality with method overloads and notification updates
packages/gqty/test/cache.test.ts Adds test coverage for global subscription behavior and updates existing test assertion
.changeset/pretty-bats-shave.md Documents the feature addition as a major version change
.vscode/settings.json Separates formatter configuration by language type

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

1 participant