Skip to content

Commit 0480480

Browse files
authored
chore(deps): migrate to community @faker-js/faker (#30098)
* chore(deps): migrate to community @faker-js/faker 5.5.3 * revert faker tree-shaking import
1 parent 50335a0 commit 0480480

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@cypress-design/vue-icon": "^0.26.0",
2626
"@cypress-design/vue-statusicon": "^0.5.7",
2727
"@cypress-design/vue-tabs": "^0.5.1",
28+
"@faker-js/faker": "5.5.3",
2829
"@graphql-typed-document-node/core": "^3.1.0",
2930
"@headlessui/vue": "1.4.0",
3031
"@iconify-json/mdi": "1.1.63",
@@ -51,7 +52,6 @@
5152
"dayjs": "^1.9.3",
5253
"disparity": "^3.0.0",
5354
"engine.io-client": "3.5.2",
54-
"faker": "5.5.3",
5555
"fuzzysort": "^1.1.4",
5656
"graphql": "^15.5.1",
5757
"graphql-tag": "^2.12.5",

packages/app/src/components/FileMatchButton.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Defining emits for "Button.vue" removes the native handler on the
33
// <button> element. vue-tsc just can't handle this yet.
44
import FileMatchButton from './FileMatchButton.vue'
5-
import faker from 'faker'
5+
import faker from '@faker-js/faker'
66
import { ref } from 'vue'
77
const fileMatchButtonSelector = '[data-cy=file-match-button]'
88

packages/app/src/components/FileMatchIndicator.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import FileMatchIndicator from './FileMatchIndicator.vue'
2-
import faker from 'faker'
2+
import faker from '@faker-js/faker'
33

44
faker.seed(1)
55

packages/frontend-shared/cypress/fixtures/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
"vue3-file-selector",
285285
"just-my-luck",
286286
"combine-properties",
287-
"faker",
287+
"@faker-js/faker",
288288
"cypress/support/customPercyCommand"
289289
]
290290
}

packages/frontend-shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"devDependencies": {
2424
"@antfu/utils": "^0.7.8",
2525
"@cypress-design/css": "^0.13.3",
26+
"@faker-js/faker": "5.5.3",
2627
"@graphql-typed-document-node/core": "^3.1.0",
2728
"@headlessui/vue": "1.4.0",
2829
"@iconify-json/logos": "1.1.42",
@@ -52,7 +53,6 @@
5253
"cypress-real-events": "1.6.0",
5354
"dayjs": "^1.9.3",
5455
"fake-uuid": "^1.0.0",
55-
"faker": "5.5.3",
5656
"floating-vue": "2.0.0-beta.17",
5757
"fuzzysort": "^1.1.4",
5858
"graphql": "^15.5.1",

packages/frontend-shared/script/testStubSpecs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import JustMyLuck from 'just-my-luck'
2-
import faker from 'faker'
2+
import faker from '@faker-js/faker'
33
import { template, keys, reduce, templateSettings } from 'lodash'
44
import dayjs from 'dayjs'
55
import relativeTime from 'dayjs/plugin/relativeTime'

packages/frontend-shared/src/components/Alert.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import CoffeeIcon from '~icons/mdi/coffee'
22
import LoadingIcon from '~icons/mdi/loading'
3-
import faker from 'faker'
3+
import faker from '@faker-js/faker'
44
import Alert from './Alert.vue'
55
import { defaultMessages } from '../locales/i18n'
66
import { ref } from 'vue'

packages/frontend-shared/src/components/Collapsible.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Collapsible from './Collapsible.vue'
2-
import faker from 'faker'
2+
import faker from '@faker-js/faker'
33

44
faker.seed(1)
55

packages/frontend-shared/src/components/ListRowHeader.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ListRowHeader from './ListRowHeader.vue'
2-
import faker from 'faker'
2+
import faker from '@faker-js/faker'
33
import { IconFileChangesAdded, IconActionAdd } from '@cypress-design/vue-icon'
44
import Button from '@cy/components/Button.vue'
55

packages/frontend-shared/src/warning/Warning.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defaultMessages } from '@cy/i18n'
22
import Warning from './Warning.vue'
3-
import faker from 'faker'
3+
import faker from '@faker-js/faker'
44
import { ref } from 'vue'
55

66
faker.seed(1)

0 commit comments

Comments
 (0)