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

feat: add purgeCache helper #433

Merged
merged 8 commits into from
Oct 12, 2023
Merged

feat: add purgeCache helper #433

merged 8 commits into from
Oct 12, 2023

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

Adds a purgeCache helper for https://www.notion.so/netlify/Cache-Purge-API-12b8eb7359c549a4aad56d528f19feb0, using the environment variable added in https://github.com/netlify/serverless-functions-api/pull/161.

I still need to add some tests, but wanted to get the PR up sooner rather than later to get feedback on the approach.

@eduardoboucas eduardoboucas requested a review from a team as a code owner October 11, 2023 14:41
src/lib/purge_cache.ts Outdated Show resolved Hide resolved
src/lib/purge_cache.ts Outdated Show resolved Hide resolved
interface PurgeCacheOptions {
apiURL?: string
siteID?: string
tags: string[]
Copy link
Contributor

Choose a reason for hiding this comment

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

paulo
paulo previously approved these changes Oct 11, 2023
paulo
paulo previously approved these changes Oct 11, 2023
@eduardoboucas eduardoboucas merged commit f6098c0 into main Oct 12, 2023
6 checks passed
@eduardoboucas eduardoboucas deleted the feat/purge-cache-helper branch October 12, 2023 08:42
eduardoboucas pushed a commit that referenced this pull request Oct 12, 2023
🤖 I have created a release *beep* *boop*
---


## [2.3.0](v2.2.1...v2.3.0)
(2023-10-12)


### Features

* add `purgeCache` helper
([#433](#433))
([f6098c0](f6098c0))


### Bug Fixes

* **deps:** update dependency @netlify/serverless-functions-api to
v1.9.0 ([#431](#431))
([82f6c12](82f6c12))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
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.

3 participants