Skip to content

Commit 9ceccb9

Browse files
authored
Merge branch 'main' into feat_en_prefix_suffix
2 parents f65c914 + f22b93a commit 9ceccb9

77 files changed

Lines changed: 2065 additions & 1857 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# These owners will be the default owners for everything in the repo.
2-
# Unless a later match takes precedence, @faker-js/maintainers will
2+
# Unless a later match takes precedence, @faker-js/maintainers will
33
# be requested for review when someone opens a pull request.
44

5-
* @faker-js/maintainers
5+
* @faker-js/maintainers
66

77
# ================================================
88
# Docs owners ...
99
# ================================================
1010

11-
/docs/ @faker-js/maintainers-docs
12-
netlify.toml @faker-js/maintainers-docs
13-
README.md @faker-js/maintainers-docs @faker-js/maintainers
14-
CONTRIBUTING.md @faker-js/maintainers-docs
11+
/docs/ @faker-js/maintainers-docs @faker-js/maintainers
12+
netlify.toml @faker-js/maintainers-docs @faker-js/maintainers
13+
README.md @faker-js/maintainers-docs @faker-js/maintainers
14+
CONTRIBUTING.md @faker-js/maintainers-docs @faker-js/maintainers
1515

1616
# ================================================
1717
# CODEOWNERS owners ...
1818
# ================================================
1919

20-
/.github/CODEOWNERS @faker-js/maintainers
20+
/.github/CODEOWNERS @faker-js/maintainers

.github/workflows/issue-labeling.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,66 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [6.1.2](https://github.com/faker-js/faker/compare/v6.1.1...v6.1.2) (2022-04-04)
6+
7+
8+
### Features
9+
10+
* FakerError ([#718](https://github.com/faker-js/faker/issues/718)) ([c3be3b1](https://github.com/faker-js/faker/commit/c3be3b1945248ed422342b046ad765d252bbac05))
11+
12+
13+
### Bug Fixes
14+
15+
* datatype.number when min = max + precision, throw when max > min ([#664](https://github.com/faker-js/faker/issues/664)) ([0304120](https://github.com/faker-js/faker/commit/03041201c21ad599bbe1874c375f4f41b94961ba))
16+
* deterministic results for address.nearbyGPSCoordinate ([#737](https://github.com/faker-js/faker/issues/737)) ([bc7bd57](https://github.com/faker-js/faker/commit/bc7bd571d8d6c70b046a3bda23c61c527ddb1d4a))
17+
* random word fails on undefined ([#771](https://github.com/faker-js/faker/issues/771)) ([fb1b87e](https://github.com/faker-js/faker/commit/fb1b87e2249798c6257cb5383f73a15022f438f0))
18+
* remove doubled extension in system.filePath ([#300](https://github.com/faker-js/faker/issues/300)) ([2532eb9](https://github.com/faker-js/faker/commit/2532eb9f5a6f73bbc1786ec91952f838d98fd72a))
19+
20+
## [6.1.1](https://github.com/faker-js/faker/compare/v6.1.0...v6.1.1) (2022-03-28)
21+
22+
### Bug Fixes
23+
24+
* forgot to run `pnpm run build`
25+
26+
## [6.1.0](https://github.com/faker-js/faker/compare/v6.0.0-alpha.6...v6.1.0) (2022-03-28)
27+
28+
**WARNING**: This build is broken due to missing build files. Please don't use this version!
29+
30+
### Features
31+
32+
* **types:** generate all locales index files with non-any types ([#494](https://github.com/faker-js/faker/issues/494)) ([b611ca1](https://github.com/faker-js/faker/commit/b611ca1c6f7d756f224a1a7b641e36b531d169be))
33+
* **types:** provide strong typing for locales 2 ([#398](https://github.com/faker-js/faker/issues/398)) ([419e9e2](https://github.com/faker-js/faker/commit/419e9e20a570b44909faf24c9019bf7f232ee7a9))
34+
35+
36+
### Bug Fixes
37+
38+
* accept dates as params for Date methods ([#200](https://github.com/faker-js/faker/issues/200)) ([91a1aab](https://github.com/faker-js/faker/commit/91a1aaba954b7d172c3dd3346567078644b74189))
39+
* alphaNumeric all chars banned ([#550](https://github.com/faker-js/faker/issues/550)) ([c51fb15](https://github.com/faker-js/faker/commit/c51fb1570669284e14915916636de97b7f644e17))
40+
* corrected the Costa Rican IBAN format ([#646](https://github.com/faker-js/faker/issues/646)) ([3f3de78](https://github.com/faker-js/faker/commit/3f3de78c83ae919fd44531ac7ae9caed885800d4))
41+
* correcting the readme file ([#529](https://github.com/faker-js/faker/issues/529)) ([6c9dcdd](https://github.com/faker-js/faker/commit/6c9dcdd03050ef70554fc2bb6ccc0c883fd1edc9))
42+
* datatype.datetime should use static boundaries ([#343](https://github.com/faker-js/faker/issues/343)) ([7141cd7](https://github.com/faker-js/faker/commit/7141cd7d8a2fd505d3338d13ca29fd1ab7a5dc80))
43+
* enable algolia search ([#641](https://github.com/faker-js/faker/issues/641)) ([a759c87](https://github.com/faker-js/faker/commit/a759c8707c2e3758e64e1c174c2de7aad51cd64b))
44+
* fake behavior with special replacement patterns ([#688](https://github.com/faker-js/faker/issues/688)) ([8d1aefb](https://github.com/faker-js/faker/commit/8d1aefbda070265909cedb07af564ea143be74a7))
45+
* fake is unable to return empty strings ([#347](https://github.com/faker-js/faker/issues/347)) ([301a6d2](https://github.com/faker-js/faker/commit/301a6d2024816bf40f1091ccffe6bb81cb7ba7b0))
46+
* **finance:** update iso-3166-1 country codes for IBAN/BIC ([#168](https://github.com/faker-js/faker/issues/168)) ([6050d7a](https://github.com/faker-js/faker/commit/6050d7acbb991568cbdac7b0c16a088aef200abc))
47+
* fix bicycle_types files being named incorrectly ([#477](https://github.com/faker-js/faker/issues/477)) ([7a2a522](https://github.com/faker-js/faker/commit/7a2a522c181dc696f6e9b4767ca18d39bad4476d))
48+
* fix time.recent method signature ([#586](https://github.com/faker-js/faker/issues/586)) ([60d3cc5](https://github.com/faker-js/faker/commit/60d3cc519cd2cab061a23fbe09164d8b59e177ff))
49+
* fix unique method types ([#457](https://github.com/faker-js/faker/issues/457)) ([14df7d3](https://github.com/faker-js/faker/commit/14df7d3f70b54c4a153f5dcf111ef90575bbbe9e))
50+
* force passed locales into faker constructor ([#580](https://github.com/faker-js/faker/issues/580)) ([5ed963f](https://github.com/faker-js/faker/commit/5ed963f1e4928eb2df36f230faf7f9d63b51bef1))
51+
* handle missing or broken locales main index files ([#478](https://github.com/faker-js/faker/issues/478)) ([ff97431](https://github.com/faker-js/faker/commit/ff974319a63acbcbbb96cf1a67a48616de9fd9da))
52+
* mersenne rand invalid input argument ([#577](https://github.com/faker-js/faker/issues/577)) ([486c76e](https://github.com/faker-js/faker/commit/486c76e34f22cf1fd66fa2c99e605d52c7077760))
53+
* move el credit card information to the expected location ([#484](https://github.com/faker-js/faker/issues/484)) ([dcbd18e](https://github.com/faker-js/faker/commit/dcbd18e13ab53e837de17cec7b3f8e51ba479d0e))
54+
* name module gender ([#644](https://github.com/faker-js/faker/issues/644)) ([7675abe](https://github.com/faker-js/faker/commit/7675abe5a62c8d44ecfd4a6f50bfb5fa50f40efa))
55+
* normalize provider in finance.creditCardNumber ([#662](https://github.com/faker-js/faker/issues/662)) ([9ce1551](https://github.com/faker-js/faker/commit/9ce1551ab7c9cafc97e3d051f0632591e34eb3ce))
56+
* only return word with desirable alpha characters ([#654](https://github.com/faker-js/faker/issues/654)) ([b7b2e4f](https://github.com/faker-js/faker/commit/b7b2e4f8dbd40b6bb2678fb60ee95e198838d08a))
57+
* remove invalid aliases ([#488](https://github.com/faker-js/faker/issues/488)) ([58fbfe3](https://github.com/faker-js/faker/commit/58fbfe3835b0f27949e7eb262d246eb9d84bb870))
58+
* remove unreachable code finance ([#508](https://github.com/faker-js/faker/issues/508)) ([1bc622a](https://github.com/faker-js/faker/commit/1bc622a9499bf236052809610ecabe80f87de482))
59+
* replaced placeimg.com on loremflickr.com ([#692](https://github.com/faker-js/faker/issues/692)) ([2a49e82](https://github.com/faker-js/faker/commit/2a49e8215a81ef284a2955f7f9a51d6f2bd76f5f))
60+
* solve various todos ([#649](https://github.com/faker-js/faker/issues/649)) ([d0a473f](https://github.com/faker-js/faker/commit/d0a473f7ca6b525391ca8ab17e029335c66ed99e))
61+
* test random.alphaNumeric ([#517](https://github.com/faker-js/faker/issues/517)) ([41ec6f0](https://github.com/faker-js/faker/commit/41ec6f08784afc2a674568328a0ea2bfb033a411))
62+
* use require/import export map in package.json ([#697](https://github.com/faker-js/faker/issues/697)) ([0f74908](https://github.com/faker-js/faker/commit/0f74908a5ac16d4a9b73d747a275a9399a131757))
63+
* Vehicle vin is always 17 characters long ([#320](https://github.com/faker-js/faker/issues/320)) ([d2fc1e6](https://github.com/faker-js/faker/commit/d2fc1e6b5ba55242d16b9b8a1e9f42c7b24957b0))
64+
565
## [6.0.0](https://github.com/faker-js/faker/compare/v6.0.0-beta.0...v6.0.0) (2022-03-15)
666

767

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Faker - Copyright (c) 2022
22

3-
This software consists of voluntary contributions made by many individuals.
3+
This software consists of voluntary contributions made by many individuals.
44
For exact contribution history, see the revision history
55
available at https://github.com/faker-js/faker
66

@@ -23,7 +23,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
2323
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2424
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525

26-
===
26+
===
2727

2828
From: https://github.com/faker-js/faker/commit/a9f98046c7d5eeaabe12fc587024c06d683800b8
2929
To: https://github.com/faker-js/faker/commit/29234378807c4141588861f69421bf20b5ac635e
@@ -58,4 +58,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
5858
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
5959
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
6060
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
61-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
61+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pnpm install @faker-js/faker -D
5454

5555
```js
5656
const { faker } = require('@faker-js/faker');
57+
5758
const randomName = faker.name.findName(); // Rowan Nikolaus
5859
const randomEmail = faker.internet.email(); // Kassandra.Haley@erich.biz
5960
const randomPhoneNumber = faker.phone.phoneNumber(); // (279) 329-8663 x30233
@@ -95,6 +96,12 @@ In order to have faker working properly, you need to check if these `compilerOpt
9596
}
9697
```
9798

99+
And then simply import it like everything else:
100+
101+
```ts
102+
import { faker } from '@faker-js/faker';
103+
```
104+
98105
If you want for whatever reason the versions prior to `v6`,
99106
you can use `@types/faker` and rebind the declarations to the `@faker-js/faker` package with a `faker.d.ts` file in your e.g. src folder.
100107

@@ -117,7 +124,7 @@ An in-depth overview of the API methods is available in the [documentation](http
117124
| Commerce | `faker.commerce.product()` | Polo t-shirt |
118125
| Company | `faker.company.companyName()` | Zboncak and Sons |
119126
| Database | `faker.database.engine()` | MyISAM |
120-
| Datatype | `faker.datatype.uuid()` | 1oijf8-3iuhiu-21jddj-1092jf |
127+
| Datatype | `faker.datatype.uuid()` | 7b16dd12-935e-4acc-8381-b1e457bf0176 |
121128
| Date | `faker.date.past()` | Sat Oct 20 2018 04:19:38 GMT-0700 (Pacific Daylight Time) |
122129
| Finance | `faker.finance.amount()` | ¥23400 (After setting locale) |
123130
| Git | `faker.git.commitMessage()` | feat: add products list page |

docs/.vitepress/config.ts

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,53 @@ import { apiPages } from './api-pages';
44

55
const nav: DefaultTheme.NavItem[] = [
66
{ text: 'Guide', link: '/guide/' },
7+
// { text: 'Playground', link: '/playground/' },
78
{
89
text: 'Ecosystem',
910
items: [
10-
{ text: 'Discord', link: 'https://chat.fakerjs.dev' },
11-
{ text: 'StackBlitz', link: 'https://fakerjs.dev/new' },
12-
{ text: 'Twitter', link: 'https://twitter.com/faker_js' },
11+
{ text: 'Discord ', link: 'https://chat.fakerjs.dev' },
12+
{ text: 'StackBlitz ', link: 'https://fakerjs.dev/new' },
13+
{ text: 'Twitter ', link: 'https://twitter.com/faker_js' },
14+
],
15+
},
16+
{
17+
text: 'About',
18+
items: [
19+
{
20+
text: 'Announcements',
21+
link: '/about/announcements',
22+
},
23+
{
24+
text: 'Team',
25+
link: '/about/team',
26+
},
1327
],
1428
},
15-
// { text: 'Playground', link: '/playground/' },
1629
];
1730

1831
const sidebar: DefaultTheme.MultiSideBarConfig = {
19-
'/': [
32+
'/about': [
2033
{
21-
text: 'Guide',
34+
text: 'About',
2235
children: [
2336
{
24-
text: 'Recent Statement and FAQs',
25-
link: '/update.html',
37+
text: 'Announcements',
38+
link: '/about/announcements',
39+
children: [
40+
{ text: '2022-01-14', link: '/about/announcements/2022-01-14' },
41+
],
42+
},
43+
{
44+
text: 'Team',
45+
link: '/about/team',
2646
},
47+
],
48+
},
49+
],
50+
'/': [
51+
{
52+
text: 'Guide',
53+
children: [
2754
{
2855
text: 'Getting Started',
2956
link: '/guide/',

docs/about/announcements.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
editLink: false
3+
---
4+
5+
# Announcements
6+
7+
- [2022-01-14 - An update from the Faker team](./announcements/2022-01-14)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ He gave us permission to re-use his work to create **[fakerjs.dev](https://faker
6868

6969
9. Done a TON of issue triage and many, many PR reviews.
7070

71-
<div style="text-align: center;"><img src="./public/first-week-wins.png" width="600" alt="64 pull requests were opened. 34 were merged. 44 issues were opened. 25 were closed." /></div>
71+
<div style="text-align: center;"><img src="/first-week-wins.png" width="600" alt="64 pull requests were opened. 34 were merged. 44 issues were opened. 25 were closed." /></div>
7272

7373
10. We've gotten in contact with the [Open Collective](https://opencollective.com) and discussed a transition plan for the project.
7474

docs/about/team.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Team
3+
---
4+
5+
<script setup>
6+
import TeamPage from './team/TeamPage.vue'
7+
</script>
8+
9+
<TeamPage />

docs/about/team/TeamMember.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export interface Member {
2+
readonly name: string;
3+
readonly github: string;
4+
readonly gitlab?: string;
5+
readonly twitter?: string;
6+
readonly roles: readonly string[];
7+
}

0 commit comments

Comments
 (0)