Skip to content

Conversation

@github-actions
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to beta, this PR will be updated.

Releases

@data-client/core@0.15.1-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

Patch Changes

  • #3622 ad3964d Thanks @ntucker! - Add @data-client/core/mock

    New exports:

    • MockController - Controller wrapper for mocking endpoints
    • collapseFixture - Resolves fixture responses (handles function responses)
    • createFixtureMap - Separates fixtures into static map and interceptors
    • Types: MockProps, Fixture, SuccessFixture, ErrorFixture, Interceptor, ResponseInterceptor, FetchInterceptor, FixtureEndpoint, SuccessFixtureEndpoint, ErrorFixtureEndpoint

@data-client/rest@0.15.1-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

Patch Changes

  • #3623 8be3b17 Thanks @ntucker! - Add RestEndpoint.remove

    Creates a PATCH endpoint that both removes an entity from a Collection and updates the entity with the provided body data.

    const getTodos = new RestEndpoint({
      path: '/todos',
      schema: new schema.Collection([Todo]),
    });
    
    // Removes Todo from collection AND updates it with new data
    await ctrl.fetch(
      getTodos.remove,
      {},
      { id: '123', title: 'Done', completed: true },
    );
    // Remove user from group list and update their group
    await ctrl.fetch(
      UserResource.getList.remove,
      { group: 'five' },
      { id: 2, username: 'user2', group: 'newgroup' },
    );
    // User is removed from the 'five' group list
    // AND the user entity is updated with group: 'newgroup'
  • Updated dependencies []:

    • @data-client/endpoint@0.15.1-beta-20251110013913-ef632c49a03da67187b6097fe8154893cd930d30

@data-client/vue@0.3.2-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

Patch Changes

  • #3622 ad3964d Thanks @ntucker! - Add MockPlugin

    Example usage:

    import { createApp } from 'vue';
    import { DataClientPlugin } from '@data-client/vue';
    import { MockPlugin } from '@data-client/vue/test';
    
    const app = createApp(App);
    app.use(DataClientPlugin);
    app.use(MockPlugin, {
      fixtures: [
        {
          endpoint: MyResource.get,
          args: [{ id: 1 }],
          response: { id: 1, name: 'Test' },
        },
      ],
    });
    app.mount('#app');

    Interceptors allow dynamic responses based on request arguments:

    app.use(MockPlugin, {
      fixtures: [
        {
          endpoint: MyResource.get,
          response: (...args) => {
            const [{ id }] = args;
            return {
              id,
              name: `Dynamic ${id}`,
            };
          },
        },
      ],
    });

    Interceptors can also maintain state across calls:

    const interceptorData = { count: 0 };
    
    app.use(MockPlugin, {
      fixtures: [
        {
          endpoint: MyResource.get,
          response: function (this: { count: number }, ...args) {
            this.count++;
            const [{ id }] = args;
            return {
              id,
              name: `Call ${this.count}`,
            };
          },
        },
      ],
      getInitialInterceptorData: () => interceptorData,
    });
  • Updated dependencies [ad3964d]:

    • @data-client/core@0.15.1-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

example-benchmark@0.4.75-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

Patch Changes

  • Updated dependencies [ad3964d]:
    • @data-client/core@0.15.1-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4
    • @data-client/endpoint@0.15.1-beta-20251110013913-ef632c49a03da67187b6097fe8154893cd930d30

coinbase-lite@0.0.10-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

Patch Changes

  • Updated dependencies [8be3b17]:
    • @data-client/rest@0.15.1-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

test-bundlesize@0.1.1-beta-20251116224907-3174fe59b114d2037762a6458f5576d23e483ba4

Patch Changes

@codecov
Copy link

codecov bot commented Nov 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.29%. Comparing base (3174fe5) to head (f9e5c49).
⚠️ Report is 1 commits behind head on beta.

Additional details and impacted files
@@           Coverage Diff           @@
##             beta    #3624   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files         147      147           
  Lines        2581     2581           
  Branches      501      501           
=======================================
  Hits         2537     2537           
  Misses         10       10           
  Partials       34       34           

☔ 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.

@ntucker ntucker merged commit 4569d31 into beta Nov 16, 2025
19 checks passed
@ntucker ntucker deleted the changeset-release/beta branch November 16, 2025 22:54
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.

2 participants