Skip to content

Releases: mailosaur/cypress-mailosaur

2.3.3

24 Jun 09:11
Compare
Choose a tag to compare
Update test lib reference

2.3.2

06 May 22:22
0e4c667
Compare
Choose a tag to compare
Fixed typo

2.3.1

06 May 17:17
Compare
Choose a tag to compare
Add clearer README instructions

2.3.0

05 May 19:14
Compare
Choose a tag to compare
Add mailosaurSetApiKey command

2.2.1

21 Apr 17:27
Compare
Choose a tag to compare
Add server password support

2.2.0

14 Apr 05:51
Compare
Choose a tag to compare
Remove password from Server object

2.1.3

19 Mar 11:37
66d709a
Compare
Choose a tag to compare
 Fix global Cypress namespace augumentation (#14)

* Update version in package-lock.json

* Fix global Cypress namespace augumentation

This is fixed with 2 things:

1. For global namespace augumentation to work correctly, the augumentation needs to be in an "ambient" context (vs module context).
You can achieve ambient context in d.ts files in 2 ways:
  a.) by not using import/export keywords (using them toggles module context)
  b.) by wrapping namespace augumentation in `declare global {}` block - ambient context is inside this block.

See more info here:
- https://www.typescriptlang.org/docs/handbook/release-notes/typescript-1-8.html#augmenting-globalmodule-scope-from-modules
- https://github.com/Microsoft/TypeScript-Handbook/issues/180#issuecomment-195452691

2. For Typescript to be able to use provided type declarations, we need to point it to a correct d.ts file.
This is done by specifying path to this file in package.json's field "types".
With this, an application just needs to `import 'cypress-mailosaur'` and types just work

Co-authored-by: Milos Lajtman <[email protected]>

2.1.2

15 Feb 09:01
d39d8bc
Compare
Choose a tag to compare
Update error handling

2.1.1

26 Jan 02:07
fd8df7b
Compare
Choose a tag to compare
Update peerDependencies

2.1.0

25 Jan 22:27
Compare
Choose a tag to compare
Remove server forwarding rule reference