Skip to content

build(deps-dev): bump miniflare from 2.7.1 to 2.12.0#259

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/miniflare-2.12.0
Closed

build(deps-dev): bump miniflare from 2.7.1 to 2.12.0#259
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/miniflare-2.12.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 15, 2023

Bumps miniflare from 2.7.1 to 2.12.0.

Release notes

Sourced from miniflare's releases.

v2.11.0

Features

  • Add support for dead-letter queues. Thanks @​jbw1991 for the PR.
  • Add getMiniflareDurableObjectIds() global function to Miniflare's Jest/Vitest environments for listing active Durable Objects. Calling getMiniflareDurableObjectIds("TEST_OBJECT") will return a Promise that resolves to an array of active DurableObjectIds for the TEST_OBJECT namespace. Closes [issue #384](cloudflare/miniflare#384), thanks @​DaniFoldi for the PR.

Fixes

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

... (truncated)

Changelog

Sourced from miniflare's changelog.

2.12.0

Features

  • Add support for R2 multipart upload bindings.

  • Add support for dynamic import()s. Closes [issue #456](cloudflare/miniflare#456), thanks @​calebmer.

  • Add support for the new WebSocket() constructor. This is an alternative standard API to fetch-with-Upgrade: websocket for creating WebSocket clients.

  • Add support for the nodejs_compat compatibility flag, specifically the node:assert, node:async_hooks, node:buffer, node:events, and node:util modules. For now, the experimental compatibility flag must also be enabled to use node:assert, node:buffer or node:events. Thanks @​GregBrimble for the PR.

  • Extract out types for test environment global helper functions. Add either jest-environment-miniflare/globals or vitest-environment-miniflare/globals to your tsconfig.json's types array to include them. Closes [issue #94](cloudflare/miniflare#94), thanks @​ryan-mars.

    // tsconfig.json
    {
      "compilerOptions": {
        // ...
        "types": [
          "@cloudflare/workers-types",
          // For Jest...
          "jest",
          "jest-environment-miniflare/globals"
          // ...or for Vitest
          "vitest-environment-miniflare/globals"
        ]
      }
    }
  • Allow direct access to Durable Object instances inside testing environments. Thanks @​cdrx for the PR. See 🤹 Jest Environment or ⚡️ Vitest Environment for more details.

  • Forward /cdn-cgi/scripts/* to Cloudflare. This allows scripts such as rocket-loader.min.js to be loaded during development. Closes

... (truncated)

Commits
  • f671590 Bump versions to 2.12.0, update CHANGELOG.md and docs (#502)
  • f3f1ae9 Bump undici to 5.11.0. closes #351
  • 07f3122 Bump versions to 2.11.0, update CHANGELOG.md and docs
  • 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
  • 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 [miniflare](https://github.com/cloudflare/miniflare/tree/HEAD/packages/miniflare) from 2.7.1 to 2.12.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.12.0/packages/miniflare)

---
updated-dependencies:
- dependency-name: miniflare
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 15, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 21, 2023

Superseded by #261.

@dependabot dependabot bot closed this Feb 21, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/miniflare-2.12.0 branch February 21, 2023 00:07
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants