Skip to content
This repository was archived by the owner on Apr 18, 2022. It is now read-only.

Commit c425ab3

Browse files
committed
Remove v from version tag
1 parent ca809eb commit c425ab3

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Mock
22

3-
[![release](https://img.shields.io/badge/release-v0.10.0-success)](https://github.com/udibo/mock/releases/tag/v0.10.0)
4-
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/mock@v0.10.0/mod.ts)
3+
[![release](https://img.shields.io/badge/release-0.10.1-success)](https://github.com/udibo/mock/releases/tag/0.10.1)
4+
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/mock@0.10.1/mod.ts)
55
[![CI](https://github.com/udibo/mock/workflows/CI/badge.svg)](https://github.com/udibo/mock/actions?query=workflow%3ACI)
66
[![codecov](https://codecov.io/gh/udibo/mock/branch/master/graph/badge.svg?token=TXORMSEHM7)](https://codecov.io/gh/udibo/mock)
77
[![license](https://img.shields.io/github/license/udibo/mock)](https://github.com/udibo/mock/blob/master/LICENSE)
@@ -30,22 +30,22 @@ imported directly from GitHub using raw content URLs.
3030

3131
```ts
3232
// Import from Deno's third party module registry
33-
import { spy, Spy } from "https://deno.land/x/mock@v0.10.0/mod.ts";
33+
import { spy, Spy } from "https://deno.land/x/mock@0.10.1/mod.ts";
3434
// Import from GitHub
35-
import { spy, Spy } "https://raw.githubusercontent.com/udibo/mock/v0.10.0/mod.ts";
35+
import { spy, Spy } "https://raw.githubusercontent.com/udibo/mock/0.10.1/mod.ts";
3636
```
3737
3838
If you do not need all of the sub-modules, you can choose to just import the
3939
sub-modules you need.
4040
4141
```ts
4242
// Import from Deno's third party module registry
43-
import { Spy, spy } from "https://deno.land/x/mock@v0.10.0/spy.ts";
43+
import { Spy, spy } from "https://deno.land/x/mock@0.10.1/spy.ts";
4444
// Import from GitHub
4545
import {
4646
Spy,
4747
spy,
48-
} from "https://raw.githubusercontent.com/udibo/mock/v0.10.0/spy.ts";
48+
} from "https://raw.githubusercontent.com/udibo/mock/0.10.1/spy.ts";
4949
```
5050

5151
#### Sub-modules
@@ -69,15 +69,15 @@ If a Node.js package has the type "module" specified in its package.json file,
6969
the JavaScript bundle can be imported as a `.js` file.
7070

7171
```js
72-
import { Spy, spy } from "./mock_v0.10.0.js";
72+
import { Spy, spy } from "./mock_0.10.1.js";
7373
```
7474

7575
The default type for Node.js packages is "commonjs". To import the bundle into a
7676
commonjs package, the file extension of the JavaScript bundle must be changed
7777
from `.js` to `.mjs`.
7878

7979
```js
80-
import { Spy, spy } from "./mock_v0.10.0.mjs";
80+
import { Spy, spy } from "./mock_0.10.1.mjs";
8181
```
8282

8383
See [Node.js Documentation](https://nodejs.org/api/esm.html) for more
@@ -96,15 +96,15 @@ modules must have the type attribute set to "module".
9696

9797
```js
9898
// main.js
99-
import { Spy, spy } from "./mock_v0.10.0.js";
99+
import { Spy, spy } from "./mock_0.10.1.js";
100100
```
101101

102102
You can also embed a module script directly into an HTML file by placing the
103103
JavaScript code within the body of the script tag.
104104

105105
```html
106106
<script type="module">
107-
import { spy, Spy } from "./mock_v0.10.0.js";
107+
import { spy, Spy } from "./mock_0.10.1.js";
108108
</script>
109109
```
110110

@@ -120,7 +120,7 @@ a try block then restore the function in a finally block to ensure the original
120120
instance method is restored before continuing to other tests. The same applies
121121
when using fake time.
122122

123-
See [deno docs](https://doc.deno.land/https/deno.land/x/mock@v0.10.0/mod.ts) for
123+
See [deno docs](https://doc.deno.land/https/deno.land/x/mock@0.10.1/mod.ts) for
124124
more information.
125125

126126
### Spy
@@ -135,9 +135,9 @@ anything, you can create an empty spy. An empty spy will just return undefined
135135
for any calls made to it.
136136

137137
```ts
138-
import { assertEquals } from "https://deno.land/std@0.98.0/testing/asserts.ts";
139-
import { assertSpyCall } from "https://deno.land/x/mock@v0.10.0/asserts.ts";
140-
import { Spy, spy } from "https://deno.land/x/mock@v0.10.0/spy.ts";
138+
import { assertEquals } from "https://deno.land/std@0.107.0/testing/asserts.ts";
139+
import { assertSpyCall } from "https://deno.land/x/mock@0.10.1/asserts.ts";
140+
import { Spy, spy } from "https://deno.land/x/mock@0.10.1/spy.ts";
141141

142142
function add(
143143
a: number,
@@ -163,8 +163,8 @@ If you have a function that takes a callback that needs to still behave
163163
normally, you can wrap it with a spy.
164164

165165
```ts
166-
import { assertEquals } from "https://deno.land/std@0.98.0/testing/asserts.ts";
167-
import { Spy, spy } from "https://deno.land/x/mock@v0.10.0/spy.ts";
166+
import { assertEquals } from "https://deno.land/std@0.107.0/testing/asserts.ts";
167+
import { Spy, spy } from "https://deno.land/x/mock@0.10.1/spy.ts";
168168

169169
function filter<T>(values: T[], callback: (value: T) => boolean): any[] {
170170
return values.filter(callback);
@@ -195,8 +195,8 @@ method. If it is not restored and you attempt to wrap it again, it will throw a
195195
spy error saying "already spying on function".
196196

197197
```ts
198-
import { assertEquals } from "https://deno.land/std@0.98.0/testing/asserts.ts";
199-
import { Spy, spy } from "https://deno.land/x/mock@v0.10.0/spy.ts";
198+
import { assertEquals } from "https://deno.land/std@0.107.0/testing/asserts.ts";
199+
import { Spy, spy } from "https://deno.land/x/mock@0.10.1/spy.ts";
200200

201201
class Database {
202202
private queries: any;
@@ -286,8 +286,8 @@ return values after initialization by replacing or adding to the `stub.returns`
286286
queue. When the returns queue is empty, it will return undefined.
287287

288288
```ts
289-
import { assertEquals } from "https://deno.land/std@0.98.0/testing/asserts.ts";
290-
import { Stub, stub } from "https://deno.land/x/mock@v0.10.0/stub.ts";
289+
import { assertEquals } from "https://deno.land/std@0.107.0/testing/asserts.ts";
290+
import { Stub, stub } from "https://deno.land/x/mock@0.10.1/stub.ts";
291291

292292
class Cat {
293293
action(name: string): any {
@@ -323,8 +323,8 @@ them returned. You can add more return values after initialization by replacing
323323
or adding to the `stub.returns` queue.
324324

325325
```ts
326-
import { assertEquals } from "https://deno.land/std@0.98.0/testing/asserts.ts";
327-
import { Stub, stub } from "https://deno.land/x/mock@v0.10.0/stub.ts";
326+
import { assertEquals } from "https://deno.land/std@0.107.0/testing/asserts.ts";
327+
import { Stub, stub } from "https://deno.land/x/mock@0.10.1/stub.ts";
328328

329329
class Database {
330330
query(query: string, params: any[]): any[][] {
@@ -399,8 +399,8 @@ initialization by replacing or adding to the `stub.returns` queue. When the
399399
returns queue is empty, it will call the replacement function.
400400

401401
```ts
402-
import { assertEquals } from "https://deno.land/std@0.98.0/testing/asserts.ts";
403-
import { Stub, stub } from "https://deno.land/x/mock@v0.10.0/stub.ts";
402+
import { assertEquals } from "https://deno.land/std@0.107.0/testing/asserts.ts";
403+
import { Stub, stub } from "https://deno.land/x/mock@0.10.1/stub.ts";
404404

405405
class Database {
406406
query(query: string, params: any[]): any[][] {
@@ -475,9 +475,9 @@ Overrides the real Date object and timer functions with fake ones that can be
475475
controlled through the fake time instance.
476476

477477
```ts
478-
import { assertEquals } from "https://deno.land/std@0.98.0/testing/asserts.ts";
479-
import { Spy, spy } from "https://deno.land/x/mock@v0.10.0/spy.ts";
480-
import { FakeTime } from "https://deno.land/x/mock@v0.10.0/time.ts";
478+
import { assertEquals } from "https://deno.land/std@0.107.0/testing/asserts.ts";
479+
import { Spy, spy } from "https://deno.land/x/mock@0.10.1/spy.ts";
480+
import { FakeTime } from "https://deno.land/x/mock@0.10.1/time.ts";
481481

482482
function secondInterval(cb: () => void): void {
483483
setInterval(cb, 1000);

0 commit comments

Comments
 (0)