Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 18, 2022

Bumps undici and miniflare. These dependencies needed to be updated together.
Updates undici from 5.5.1 to 5.9.1

Release notes

Sourced from undici's releases.

v5.9.1

What's Changed

New Contributors

Full Changelog: nodejs/undici@v5.8.2...v5.9.1

v5.8.2

⚠️ Security Release ⚠️

What's Changed

New Contributors

Full Changelog: nodejs/undici@v5.8.1...v5.8.2

v5.8.1

What's Changed

New Contributors

... (truncated)

Commits

Updates miniflare from 2.6.0 to 2.10.0

Release notes

Sourced from miniflare's releases.

v2.10.0

Features

Fixes

v2.9.0

Features

  • 💾 Add support for D1. Closes [issue #277](cloudflare/miniflare#277), thanks @​geelen for the PR. Docs coming soon™... 👀

  • 🚪 Add getMiniflareDurableObjectState() and runWithMiniflareDurableObjectGates() functions to the Jest/Vitest environments. This allows you to construct and call instance methods of Durable Objects directly, without having to fetch through a stub. Closes [issue #157](cloudflare/miniflare#157), thanks @​jorroll.

    // Durable Object class, would probably come from an import
    class Counter {
      constructor(state) {
        this.storage = state.storage;
      }
      async fetch() {
        const count = ((await this.storage.get("count")) ?? 0) + 1;
        void this.storage.put("count", count);
        return new Response(String(count));
      }
    }
    const env = getMiniflareBindings();
    // Use standard Durable Object bindings to generate IDs
    const id = env.COUNTER.newUniqueId();
    // Get DurableObjectState, and seed data
    const state = await getMiniflareDurableObjectState(id);
    await state.storage.put("count", 3);
    // Construct object directly
    const object = new Counter(state, env);
    // Call instance method directly, closing input gate,
    // and waiting for output gate to open
    const res = await runWithMiniflareDurableObjectGates(state, () =>
    object.fetch(new Request("http://localhost/"))
    );
    expect(await res.text()).toBe("4");

  • 🥷 Don't construct corresponding Durable Object instance when calling Miniflare#getDurableObjectStorage(). This allows you to seed data before your Durable Object's constructor is invoked. Closes [issue #300](cloudflare/miniflare#300), thanks @​spigaz.

  • ☑️ Add support for WebSocket#readyState and WebSocket.READY_STATE_{CONNECTING,OPEN,CLOSING,CLOSED} constants. Note these constant names intentionally deviate from the spec to match the Workers runtime.

... (truncated)

Changelog

Sourced from miniflare's changelog.

2.10.0

Features

Fixes

2.9.0

Features

  • 💾 Add support for D1. Closes [issue #277](cloudflare/miniflare#277), thanks @​geelen for the PR. Docs coming soon™... 👀

  • 🚪 Add getMiniflareDurableObjectState() and runWithMiniflareDurableObjectGates() functions to the Jest/Vitest environments. This allows you to construct and call instance methods of Durable Objects directly, without having to fetch through a stub. Closes [issue #157](cloudflare/miniflare#157), thanks @​jorroll.

    // Durable Object class, would probably come from an import
    class Counter {
      constructor(state) {
        this.storage = state.storage;
      }

... (truncated)

Commits
  • b55ab40 Bump versions to 2.10.0, update CHANGELOG.md and docs
  • 9265fa4 Fix port 0 logging (#382)
  • 974c7c2 Bump versions to 2.9.0, update CHANGELOG.md and docs
  • 6bace6b D1 beta support (#329)
  • 2ca8115 Add persistent history to REPL, closes #304
  • 6299d1d Don't construct object on getDurableObjectStorage, closes #300
  • 3c9763b Make StorageFactory#storage synchronous
  • 14095e5 Bump versions to 2.8.2, update CHANGELOG.md
  • e340868 Bump versions to 2.8.1, update CHANGELOG.md
  • 5bb6195 fix: add missing @​miniflare/queues dependency references (#361)
  • Additional commits viewable in compare view

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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [undici](https://github.com/nodejs/undici) and [miniflare](https://github.com/cloudflare/miniflare/tree/HEAD/packages/miniflare). These dependencies needed to be updated together.

Updates `undici` from 5.5.1 to 5.9.1
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.5.1...v5.9.1)

Updates `miniflare` from 2.6.0 to 2.10.0
- [Release notes](https://github.com/cloudflare/miniflare/releases)
- [Changelog](https://github.com/cloudflare/miniflare/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/miniflare/commits/v2.10.0/packages/miniflare)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
- dependency-name: miniflare
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 18, 2022
@silentworks silentworks merged commit 0bb3948 into main Oct 18, 2022
@silentworks silentworks deleted the dependabot/npm_and_yarn/supabase-js-v1/with-cloudflare-workers/undici-and-miniflare-5.9.1 branch October 18, 2022 22:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant