Skip to content

Commit 4349f90

Browse files
committed
Boolean 2.0.0
1 parent 79bb6b0 commit 4349f90

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<a name="2.0.0"></a>
2+
# [2.0.0](https://github.com/faker-javascript/boolean) (2022-01-09)
3+
4+
### BREAKING CHANGES
5+
6+
* New function `boolean` istead of `fakeBoolean`
7+
18
<a name="1.1.1"></a>
29
# [1.1.1](https://github.com/faker-javascript/boolean) (2022-01-08)
310
* Package fixes

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Boolean package provides functionality to generate a fake boolean value.
44
</p>
55

66
<p align="center">
7-
<a href="https://github.com/faker-javascript/boolean/releases"><img alt="Version" src="https://img.shields.io/github/release/faker-javascript/boolean.svg?label=version&color=green"></a> <img src="https://img.shields.io/npm/dt/@fakerjs/boolean"> <a href="https://github.com/faker-javascript/boolean"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=green" alt="License"></a> <img src="https://github.com/faker-javascript/boolean/actions/workflows/tests.yml/badge.svg">
7+
<a href="https://github.com/faker-javascript/random-boolean/releases"><img alt="Version" src="https://img.shields.io/github/release/faker-javascript/boolean.svg?label=version&color=green"></a> <img src="https://img.shields.io/npm/dt/@fakerjs/boolean"> <a href="https://github.com/faker-javascript/boolean"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=green" alt="License"></a> <img src="https://github.com/faker-javascript/boolean/actions/workflows/tests.yml/badge.svg">
88
</p>
99

1010
## Install
@@ -18,10 +18,10 @@ $ npm install --save @fakerjs/boolean
1818
```js
1919
import fakeBoolean from '@fakerjs/boolean';
2020

21-
fakeBoolean();
21+
boolean();
2222
//=> true
2323

24-
fakeBoolean();
24+
boolean();
2525
//=> false
2626
```
2727

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export default function fakeBoolean() {
1+
export default function boolean() {
22
return Math.random() >= 0.5;
33
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fakerjs/boolean",
3-
"version": "1.1.1",
3+
"version": "2.0.0",
44
"description": "Boolean package provides functionality to generate a fake boolean value.",
55
"license": "MIT",
66
"repository": "faker-javascript/boolean",

test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import fakeBoolean from './index.js';
1+
import boolean from './index.js';
22
import test from 'ava';
33

4-
test('fakeBoolean return type to be boolean', t => {
5-
t.is(typeof fakeBoolean(), 'boolean');
4+
test('boolean return type to be boolean', t => {
5+
t.is(typeof boolean(), 'boolean');
66
});

0 commit comments

Comments
 (0)