Skip to content

Commit

Permalink
Merge branch 'next' into es-county
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Jun 17, 2023
2 parents 83b0528 + 2fa60de commit 142d5ba
Show file tree
Hide file tree
Showing 91 changed files with 1,777 additions and 1,095 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = defineConfig({
{
files: ['src/**/*.ts'],
plugins: ['jsdoc'],
extends: ['plugin:jsdoc/recommended'],
extends: ['plugin:jsdoc/recommended-error'],
rules: {
'jsdoc/no-types': 'error',
'jsdoc/require-param-type': 'off',
Expand Down Expand Up @@ -128,6 +128,7 @@ module.exports = defineConfig({
],

'vitest/expect-expect': 'off',
'vitest/prefer-each': 'error',
'vitest/valid-expect': ['error', { maxArgs: 2 }],
},
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ jobs:
run: pnpm vitest run --coverage

- name: Upload coverage to Codecov
uses: codecov/[email protected].3
uses: codecov/[email protected].4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

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.

### [8.0.2](https://github.com/faker-js/faker/compare/v8.0.1...v8.0.2) (2023-05-27)


### Bug Fixes

* **git:** limit need for Intl to specific method ([#2172](https://github.com/faker-js/faker/issues/2172)) ([a5e73f8](https://github.com/faker-js/faker/commit/a5e73f8a11baeefcf03f344cb5e4dde096a0b364))
* **locale:** en_HK last_name_patterns should be last_name_pattern ([#2154](https://github.com/faker-js/faker/issues/2154)) ([03cc391](https://github.com/faker-js/faker/commit/03cc39154886a0708e13ee2db239c001ce20aa6e))
* **locale:** ro_MD city should be city_pattern ([#2155](https://github.com/faker-js/faker/issues/2155)) ([c173150](https://github.com/faker-js/faker/commit/c173150a96a95818b0c4fd6cb2d41daea7e9ad0a))

## [8.0.1](https://github.com/faker-js/faker/compare/v8.0.0...v8.0.1) (2023-05-15)


* **docs:** switch doc links to stable ([#2152](https://github.com/faker-js/faker/pull/2152)) ([8f741bd](https://github.com/faker-js/faker/commit/8f741bd4bda455517fd048b83d76bd8e6d89d78e))

## [8.0.0](https://github.com/faker-js/faker/compare/v8.0.0-beta.1...v8.0.0) (2023-05-11)


Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Please proceed to the [Getting Started Guide](https://fakerjs.dev/guide/) for th

For detailed API documentation, please select the version of the documentation you are looking for.

| Version | Website |
| :---------: | :------------------------ |
| v8 (next) | https://next.fakerjs.dev/ |
| v7 (stable) | https://fakerjs.dev/ |
| v6 (old) | https://v6.fakerjs.dev/ |
| Version | Website |
| :----------: | :------------------------ |
| v8.\* (next) | https://next.fakerjs.dev/ |
| v8 (stable) | https://fakerjs.dev/ |
| v7 (old) | https://v7.fakerjs.dev/ |

---

Expand Down Expand Up @@ -64,7 +64,7 @@ const { faker } = require('@faker-js/faker');

export function createRandomUser(): User {
return {
userId: faker.datatype.uuid(),
userId: faker.string.uuid(),
username: faker.internet.userName(),
email: faker.internet.email(),
avatar: faker.image.avatar(),
Expand All @@ -87,7 +87,7 @@ Thus, limiting the import to a single locale can speed up startup times.

## 💎 Modules

An in-depth overview of the API methods is available in the documentation for [v7 (stable)](https://fakerjs.dev/api/) and [v8 (next)](https://next.fakerjs.dev/api/).
An in-depth overview of the API methods is available in the documentation for [v8 (stable)](https://fakerjs.dev/api/) and [v8.\* (next)](https://next.fakerjs.dev/api/).

### Templates

Expand Down
2 changes: 2 additions & 0 deletions docs/guide/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,14 @@ By default, `faker.number.float` no longer defaults to a precision of 0.01

```js
// OLD
faker.datatype.number(); // 88999 (NOTE: The default max was 99999)
faker.datatype.number({ max: 100 }); // 35
faker.datatype.number({ max: 100, precision: 0.01 }); // 35.21
faker.datatype.float({ max: 100 }); // 35.21
faker.datatype.float({ max: 100, precision: 0.001 }); // 35.211

// NEW
faker.number.int({ max: 99999 }); // 88999 (NOTE: the default max is now Number.MAX_SAFE_INTEGER)
faker.number.int({ max: 100 }); // 35
faker.number.float({ max: 100 }); // 35.21092065742612
faker.number.float({ max: 100, precision: 0.01 }); // 35.21
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ interface User { ... }

function createRandomUser(): User {
return {
_id: faker.datatype.uuid(),
_id: faker.string.uuid(),
avatar: faker.image.avatar(),
birthday: faker.date.birthdate(),
email: faker.internet.email(),
Expand Down Expand Up @@ -198,7 +198,7 @@ function createRandomUser(): User {
const email = faker.internet.email({ firstName, lastName });

return {
_id: faker.datatype.uuid(),
_id: faker.string.uuid(),
avatar: faker.image.avatar(),
birthday: faker.date.birthdate(),
email,
Expand Down Expand Up @@ -238,7 +238,7 @@ function createRandomUser(): User {
]);

return {
_id: faker.datatype.uuid(),
_id: faker.string.uuid(),
avatar: faker.image.avatar(),
birthday: faker.date.birthdate(),
email,
Expand Down
49 changes: 24 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faker-js/faker",
"version": "8.0.0",
"version": "8.0.2",
"description": "Generate massive amounts of fake contextual data",
"keywords": [
"faker",
Expand Down Expand Up @@ -93,53 +93,52 @@
},
"devDependencies": {
"@actions/github": "~5.1.1",
"@algolia/client-search": "~4.17.0",
"@types/glob": "~8.1.0",
"@algolia/client-search": "~4.17.1",
"@types/markdown-it": "~12.2.3",
"@types/node": "~20.1.2",
"@types/prettier": "~2.7.2",
"@types/react": "~18.2.6",
"@types/node": "~20.2.5",
"@types/prettier": "~2.7.3",
"@types/react": "~18.2.8",
"@types/sanitize-html": "~2.9.0",
"@types/semver": "~7.5.0",
"@types/validator": "~13.7.17",
"@typescript-eslint/eslint-plugin": "~5.59.5",
"@typescript-eslint/parser": "~5.59.5",
"@vitest/coverage-c8": "~0.31.0",
"@vitest/ui": "~0.31.0",
"@typescript-eslint/eslint-plugin": "~5.59.8",
"@typescript-eslint/parser": "~5.59.8",
"@vitest/coverage-c8": "~0.31.4",
"@vitest/ui": "~0.31.4",
"@vueuse/core": "~10.1.2",
"c8": "~7.13.0",
"c8": "~7.14.0",
"conventional-changelog-cli": "~2.2.2",
"cypress": "~12.12.0",
"esbuild": "~0.17.18",
"eslint": "~8.40.0",
"cypress": "~12.13.0",
"esbuild": "~0.17.19",
"eslint": "~8.42.0",
"eslint-config-prettier": "~8.8.0",
"eslint-define-config": "~1.20.0",
"eslint-gitignore": "~0.1.0",
"eslint-plugin-deprecation": "~1.4.1",
"eslint-plugin-jsdoc": "~44.1.0",
"eslint-plugin-jsdoc": "~46.2.4",
"eslint-plugin-prettier": "~4.2.1",
"eslint-plugin-vitest": "~0.2.2",
"glob": "~10.2.3",
"eslint-plugin-vitest": "~0.2.5",
"glob": "~10.2.6",
"npm-run-all": "~4.1.5",
"picocolors": "~1.0.0",
"prettier": "2.8.8",
"prettier-plugin-organize-imports": "~3.2.2",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"rimraf": "~5.0.0",
"rimraf": "~5.0.1",
"sanitize-html": "~2.10.0",
"semver": "~7.5.0",
"semver": "~7.5.1",
"standard-version": "~9.5.0",
"tsx": "~3.12.7",
"typedoc": "~0.24.7",
"typedoc": "~0.24.8",
"typescript": "~4.9.5",
"validator": "~13.9.0",
"vite": "~4.3.5",
"vitepress": "1.0.0-alpha.75",
"vitest": "~0.31.0",
"vue": "~3.2.47"
"vite": "~4.3.9",
"vitepress": "1.0.0-beta.1",
"vitest": "~0.31.4",
"vue": "~3.3.4"
},
"packageManager": "[email protected].0",
"packageManager": "[email protected].1",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=6.14.13"
Expand Down
Loading

0 comments on commit 142d5ba

Please sign in to comment.