Skip to content

Commit

Permalink
Merge branch 'next' into test/image/working-urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Nov 3, 2024
2 parents 3fa1c5d + d31579b commit 66d25d0
Show file tree
Hide file tree
Showing 12 changed files with 361 additions and 225 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## [9.2.0](https://github.com/faker-js/faker/compare/v9.1.0...v9.2.0) (2024-11-03)


### Features

* **animal:** add petName method ([#3196](https://github.com/faker-js/faker/issues/3196)) ([c02beea](https://github.com/faker-js/faker/commit/c02beeadd49e48656a0307451517e9751e3118c3))
* **number:** add romanNumeral method ([#3070](https://github.com/faker-js/faker/issues/3070)) ([72937de](https://github.com/faker-js/faker/commit/72937de55c892c011846bc2b67dc0df61fbdf5a2))


### Changed Locales

* **locale:** improve Spanish color names ([#3230](https://github.com/faker-js/faker/issues/3230)) ([99d81be](https://github.com/faker-js/faker/commit/99d81bed28b36ab525340e32a7349799cbe88eca))

## [9.1.0](https://github.com/faker-js/faker/compare/v9.0.3...v9.1.0) (2024-10-26)


Expand Down
56 changes: 11 additions & 45 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,53 +109,19 @@ const config: UserConfig<DefaultTheme.Config> = {
head: [
['link', { rel: 'icon', href: '/logo.svg' }],
['meta', { name: 'theme-color', content: '#40af7c' }],
[
'meta',
{
name: 'og:description',
content: description,
},
],
[
'meta',
{
name: 'twitter:description',
content: description,
},
],
[
'meta',
{
name: 'og:image',
content: image,
},
],
[
'meta',
{
name: 'twitter:image',
content: image,
},
],
[
'meta',
{
name: 'twitter:card',
content: 'summary_large_image',
},
],
[
'link',
{
rel: 'me',
href: 'https://fosstodon.org/@faker_js',
},
],
['meta', { name: 'og:title', content: 'FakerJS' }],
['meta', { name: 'og:description', content: description }],
['meta', { name: 'og:image', content: image }],
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:title', content: 'FakerJS' }],
['meta', { name: 'twitter:description', content: description }],
['meta', { name: 'twitter:site', content: '@faker_js' }],
['meta', { name: 'twitter:image', content: image }],
['meta', { name: 'twitter:image:alt', content: 'The FakerJS logo' }],
['link', { rel: 'me', href: 'https://fosstodon.org/@faker_js' }],
[
'script',
{
id: 'browser-console-faker',
},
{ id: 'browser-console-faker' },
`
const logStyle = 'background: rgba(16, 183, 127, 0.14); color: rgba(255, 255, 245, 0.86); padding: 0.5rem; display: inline-block;';
console.log(\`%cIf you would like to test Faker in the browser console, you can do so using 'await enableFaker()'.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const randomEmail = faker.internet.email(); // [email protected]
```

::: info Note
It is highly recommended to use version tags when importing libraries in Deno, e.g: `import { faker } from "https://esm.sh/@faker-js/faker@v9.1.0"`.
It is highly recommended to use version tags when importing libraries in Deno, e.g: `import { faker } from "https://esm.sh/@faker-js/faker@v9.2.0"`.
:::

### Alternative CDN links
Expand Down
7 changes: 5 additions & 2 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
],
'@typescript-eslint/switch-exhaustiveness-check': [
'error',
{ requireDefaultForNonUnion: true },
{
considerDefaultExhaustiveForUnions: true, // we consider default cases for unions valid
requireDefaultForNonUnion: true,
},
],
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation
Expand Down Expand Up @@ -144,6 +147,7 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
'unicorn/import-style': 'off', // subjective & doesn't do anything for us
'unicorn/no-array-callback-reference': 'off', // reduces readability
'unicorn/no-nested-ternary': 'off', // incompatible with prettier
'unicorn/no-object-as-default-parameter': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2199
'unicorn/no-null': 'off', // incompatible with TypeScript
'unicorn/no-zero-fractions': 'off', // deactivated to raise awareness of floating operations
'unicorn/number-literal-case': 'off', // incompatible with prettier
Expand All @@ -154,7 +158,6 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
// TODO @Shinigami92 2023-09-23: The following rules currently conflict with our code.
// Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently.
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-object-as-default-parameter': 'off',
'unicorn/prefer-export-from': 'off',
'unicorn/prefer-string-slice': 'off',
'unicorn/prevent-abbreviations': 'off',
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faker-js/faker",
"version": "9.1.0",
"version": "9.2.0",
"description": "Generate massive amounts of fake contextual data",
"scripts": {
"clean": "rimraf coverage .eslintcache dist docs/.vitepress/cache docs/.vitepress/dist node_modules",
Expand Down Expand Up @@ -105,9 +105,9 @@
],
"devDependencies": {
"@actions/github": "6.0.0",
"@eslint/compat": "1.2.1",
"@eslint/js": "9.13.0",
"@stylistic/eslint-plugin": "2.9.0",
"@eslint/compat": "1.2.2",
"@eslint/js": "9.14.0",
"@stylistic/eslint-plugin": "2.10.1",
"@types/eslint__js": "8.42.3",
"@types/node": "22.8.6",
"@types/sanitize-html": "2.13.0",
Expand All @@ -119,7 +119,7 @@
"@vueuse/core": "11.2.0",
"commit-and-tag-version": "12.5.0",
"cypress": "13.15.1",
"eslint": "9.13.0",
"eslint": "9.14.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jsdoc": "50.4.3",
"eslint-plugin-prettier": "5.2.1",
Expand All @@ -136,7 +136,7 @@
"tsup": "8.3.5",
"tsx": "4.19.2",
"typescript": "5.6.3",
"typescript-eslint": "8.11.0",
"typescript-eslint": "8.12.2",
"validator": "13.12.0",
"vitepress": "1.4.3",
"vitest": "2.1.4",
Expand Down
Loading

0 comments on commit 66d25d0

Please sign in to comment.