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

Bump @fastly/js-compute from 2.5.0 to 3.0.0 #256

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 10, 2023

Bumps @fastly/js-compute from 2.5.0 to 3.0.0.

Release notes

Sourced from @​fastly/js-compute's releases.

v3.0.0

3.0.0 (2023-07-08)

⚠ BREAKING CHANGES

  • Rename SimpleCache.delete to SimpleCache.purge and require purge options to be supplied as the second parameter

Features

  • add event.client.tlsCipherOpensslName (49b0c99)
  • add event.client.tlsClientCertificate (cf93b62)
  • add event.client.tlsClientHello (3d87cb2)
  • add event.client.tlsJA3MD5 (2ecf4af)
  • add event.client.tlsProtocol (4c91142)
  • Rename SimpleCache.delete to SimpleCache.purge and require purge options to be supplied as the second parameter (20113c1)
Changelog

Sourced from @​fastly/js-compute's changelog.

3.0.0 (2023-07-08)

Changed

⚠ BREAKING CHANGE

  • Rename SimpleCache.delete to SimpleCache.purge and require purge options to be supplied as the second parameter

We are renaming because "purge" is already a well-known and documented concept for removing content from Fastly's cache.

The new addition of a second argument allows the caller to decide what scope to purge the content from, currently they can choose to purge from all of Fastly ("global") or from the POP that contains the currently executing instance ("pop"). We do not provide a default option right now, in the future we may provide a default option, if we discover a common pattern is being used.

Here is an example of migrating an application using SimpleCache.delete to SimpleCache.purge with the same behaviour:

/// <reference types="@fastly/js-compute" />
import { SimpleCache } from 'fastly:cache';
addEventListener('fetch', event => event.respondWith(app(event)));
async function app(event) {
const url = new URL(event.request);
const path = url.pathname;
if (url.searchParams.has('delete')) {

SimpleCache.delete(path);


SimpleCache.purge(path, { scope: "global" });
return new Response(page, { status: 204 });
}

let page = SimpleCache.getOrSet(path, async () => {
return {
value: await render(path),
// Store the page in the cache for 1 minute.
ttl: 60
}
});
return new Response(page, {
headers: {
'content-type': 'text/plain;charset=UTF-8'
}
});
}
async function render(path) {
// expensive/slow function which constructs and returns the contents for a given path
await new Promise(resolve => setTimeout(resolve, 10_000));
return path;
}
</tr></table>

... (truncated)

Commits
  • 8103e27 chore(main): release 3.0.0 (#577)
  • 7691fdf Update fastly:cache.d.ts
  • 40a98e1 Update purge.mdx
  • 20113c1 feat!: Rename SimpleCache.delete to SimpleCache.purge and require purge optio...
  • 0816c39 fix formatting
  • bbfa9ce resize the buffers if they are not the correct size
  • 35c3b9c add client tests to ci
  • fb7d65a formatting
  • fd6ff94 add tests for new event.client fields
  • 2ecf4af feat: add event.client.tlsJA3MD5
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@fastly/js-compute](https://github.com/fastly/js-compute-runtime) from 2.5.0 to 3.0.0.
- [Release notes](https://github.com/fastly/js-compute-runtime/releases)
- [Changelog](https://github.com/fastly/js-compute-runtime/blob/main/CHANGELOG.md)
- [Commits](fastly/js-compute-runtime@v2.5.0...v3.0.0)

---
updated-dependencies:
- dependency-name: "@fastly/js-compute"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 10, 2023
@JakeChampion JakeChampion merged commit cb4a3ea into main Jul 10, 2023
1 of 2 checks passed
@JakeChampion JakeChampion deleted the dependabot/npm_and_yarn/fastly/js-compute-3.0.0 branch July 10, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant