Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upcoming Release Changes #37

Merged
merged 1 commit into from
Mar 5, 2023
Merged

Upcoming Release Changes #37

merged 1 commit into from
Mar 5, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 5, 2023

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 master, this PR will be updated.

Releases

@defer/client@1.1.0

Minor Changes

  • #36 ccc39dd Thanks @charlypoly! - expose getExecution(id) to poll for an execution status and result:

    import { type FetchExecutionResponse, getExecution } from "@defer/client";
    import type { NextApiRequest, NextApiResponse } from "next";
    
    type Response = {
      res: FetchExecutionResponse;
    };
    
    export default async function handler(
      req: NextApiRequest,
      res: NextApiResponse<Response>
    ) {
      const executionId = req.query.id;
      const ret = await getExecution(executionId as string);
      res.status(200).json({ res: ret });
    }

@charlypoly charlypoly merged commit 5fd6423 into master Mar 5, 2023
@charlypoly charlypoly deleted the changeset-release/master branch March 5, 2023 06:11
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