Skip to content

Commit a1f94e2

Browse files
authored
Merge branch 'next' into fr_jobs
2 parents 367f689 + d53c7ac commit a1f94e2

Some content is hidden

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

41 files changed

+678
-525
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ module.exports = defineConfig({
5656
'unicorn/numeric-separators-style': 'off',
5757
'unicorn/prefer-code-point': 'off',
5858
'unicorn/prefer-export-from': 'off',
59-
'unicorn/prefer-module': 'off',
6059
'unicorn/prefer-string-slice': 'off',
6160
'unicorn/prevent-abbreviations': 'off',
6261
'unicorn/require-array-join-separator': 'off',

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
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+
### [8.3.1](https://github.com/faker-js/faker/compare/v8.3.0...v8.3.1) (2023-11-14)
6+
7+
8+
### Bug Fixes
9+
10+
* remove `[@internal](https://github.com/internal)` from module parent classes ([#2548](https://github.com/faker-js/faker/issues/2548)) ([77f54ad](https://github.com/faker-js/faker/commit/77f54ad78f9d7952b3b315f72878267f18ed1e69))
11+
12+
## [8.3.0](https://github.com/faker-js/faker/compare/v8.2.0...v8.3.0) (2023-11-14)
13+
14+
15+
### Features
16+
17+
* **person:** use fake patterns for jobTitle ([#2528](https://github.com/faker-js/faker/issues/2528)) ([b40ad45](https://github.com/faker-js/faker/commit/b40ad45ad3cca6769968a63264e6d925bf4b328a))
18+
19+
20+
### Bug Fixes
21+
22+
* **date:** ensures correct range for birthdate ([#2535](https://github.com/faker-js/faker/issues/2535)) ([7ce8c28](https://github.com/faker-js/faker/commit/7ce8c285cb5b2d13e95a17be78ecbd52f3c7d9db))
23+
* **finance:** maskedNumber has incorrect defaults ([#2494](https://github.com/faker-js/faker/issues/2494)) ([e0ba50b](https://github.com/faker-js/faker/commit/e0ba50b37e438503ed1899bff35afc92b4f8f49c))
24+
* **locale:** improve Swedish phone numbers format ([#2520](https://github.com/faker-js/faker/issues/2520)) ([e4865df](https://github.com/faker-js/faker/commit/e4865df199359797397cc3c5455f3a1a9c179f93))
25+
26+
27+
### Changed Locales
28+
29+
* **locale:** remove fr_CH data which is identical to fr ([#2526](https://github.com/faker-js/faker/issues/2526)) ([fafcba4](https://github.com/faker-js/faker/commit/fafcba473f8a91eeb8230ebdc1ad5039b25091e1))
30+
31+
32+
### New Locales
33+
34+
* **locale:** add person to fr_SN ([#2537](https://github.com/faker-js/faker/issues/2537)) ([ef965da](https://github.com/faker-js/faker/commit/ef965da48a8089e6bb19bcf260bfcd8af1a43799))
35+
* **locale:** add Senegal locale ([#2525](https://github.com/faker-js/faker/issues/2525)) ([6df70bc](https://github.com/faker-js/faker/commit/6df70bce16500ab74a37f932f2e17a08f297430b))
36+
* **locale:** add streets to location fr_SN ([#2536](https://github.com/faker-js/faker/issues/2536)) ([36fc517](https://github.com/faker-js/faker/commit/36fc517d17591c8ea1d5135d9a93c7591e3d1f74))
37+
* **locale:** and location to fr_SN ([#2533](https://github.com/faker-js/faker/issues/2533)) ([f730125](https://github.com/faker-js/faker/commit/f730125ffb941fe936d6a18c775cbe3a99b312dc))
38+
539
## [8.2.0](https://github.com/faker-js/faker/compare/v8.1.0...v8.2.0) (2023-10-14)
640

741

cypress/e2e/api.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('API Test', () => {
3434
cy.get('.api-group li').each(($el) => {
3535
const anchor = $el.find('a');
3636
const text = anchor.text();
37-
const link = anchor.attr('href').split('#')[0];
37+
const link = anchor.attr('href')?.split('#')[0] ?? 'MISSING';
3838
if (checked.has(link)) {
3939
return;
4040
}

docs/.vitepress/config.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,14 @@ const config = defineConfig({
121121
{ icon: 'github', link: 'https://github.com/faker-js/faker' },
122122
],
123123

124-
algolia: {
125-
apiKey: process.env.API_KEY,
126-
appId: process.env.APP_ID,
127-
indexName: 'fakerjs',
128-
},
124+
algolia:
125+
process.env.API_KEY == null || process.env.APP_ID == null
126+
? undefined
127+
: {
128+
apiKey: process.env.API_KEY,
129+
appId: process.env.APP_ID,
130+
indexName: 'fakerjs',
131+
},
129132

130133
footer: {
131134
message: 'Released under the MIT License.',
@@ -140,7 +143,7 @@ const config = defineConfig({
140143
link: '/api/',
141144
},
142145
{
143-
text: 'Ecosystem',
146+
text: 'Try it',
144147
items: [{ text: 'StackBlitz ', link: 'https://fakerjs.dev/new' }],
145148
},
146149
{

docs/.vitepress/versions.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@ function readOtherLatestReleaseTagNames(): string[] {
1414
.toString('utf8')
1515
.split('\n')
1616
.filter((tag) => semver.valid(tag))
17-
.reduce<Record<number, string[]>>((acc, tag) => {
18-
const majorVersion = semver.major(tag);
17+
.filter((tag) => {
1918
// Only consider tags for our deployed website versions,
2019
// excluding the current major version.
21-
if (majorVersion >= 6 && majorVersion !== currentMajorVersion) {
22-
(acc[majorVersion] = acc[majorVersion] ?? []).push(tag);
20+
const majorVersion = semver.major(tag);
21+
return majorVersion >= 6 && majorVersion !== currentMajorVersion;
22+
})
23+
.reduce<Record<number, string>>((latestTagByMajor, tag) => {
24+
const majorVersion = semver.major(tag);
25+
26+
const latestTag = latestTagByMajor[majorVersion];
27+
if (latestTag == null || semver.lt(latestTag, tag)) {
28+
latestTagByMajor[majorVersion] = tag;
2329
}
24-
return acc;
30+
31+
return latestTagByMajor;
2532
}, {});
26-
return Object.entries(latestReleaseTagNames)
27-
.map(([major, tags]) => semver.maxSatisfying(tags, `^${major}`))
28-
.sort(semver.rcompare);
33+
return Object.values(latestReleaseTagNames).sort(semver.rcompare);
2934
}
3035

3136
// Set by netlify

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@faker-js/faker",
3-
"version": "8.2.0",
3+
"version": "8.3.1",
44
"description": "Generate massive amounts of fake contextual data",
55
"keywords": [
66
"faker",

0 commit comments

Comments
 (0)