udacity / cloudflare-typescript-workers

Types and mocks for building a tested Typescript Cloudflare Worker, generates three NPM packages
Apache License 2.0
139 stars 12 forks source link

Incompatible with service-worker-mock 2.0.5 #20

Closed sdorazio closed 4 years ago

sdorazio commented 4 years ago

service-worker-mock version 2.0.5 changed the signature for trigger('fetch', request) to return a single Response instead of Response[]. As a result, the type definitions are out of sync depending which version you are running.

13rac1 commented 4 years ago

Is this a breaking change in a patch version? Sounds like it. At least it is a simple fix. Thanks!