File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed
Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
1919import fakeBoolean from ' @fakerjs/boolean' ;
2020
21- fakeBoolean ();
21+ boolean ();
2222// => true
2323
24- fakeBoolean ();
24+ boolean ();
2525// => false
2626```
2727
Original file line number Diff line number Diff line change 1- export default function fakeBoolean ( ) {
1+ export default function boolean ( ) {
22 return Math . random ( ) >= 0.5 ;
33} ;
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- import fakeBoolean from './index.js' ;
1+ import boolean from './index.js' ;
22import 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} ) ;
You can’t perform that action at this time.
0 commit comments