Skip to content

Commit 009e439

Browse files
committed
chore: update deps
1 parent 09c1e74 commit 009e439

File tree

16 files changed

+4043
-2971
lines changed

16 files changed

+4043
-2971
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"private": true,
99
"homepage": "http://quasar-framework.org",
1010
"devDependencies": {
11-
"@types/node": "^12.20.47",
12-
"@typescript-eslint/eslint-plugin": "^5.41.0",
13-
"@typescript-eslint/parser": "^5.41.0",
14-
"eslint": "^8.26.0",
15-
"eslint-config-prettier": "^8.5.0",
11+
"@types/node": "^16.11.7",
12+
"@typescript-eslint/eslint-plugin": "^5.54.0",
13+
"@typescript-eslint/parser": "^5.54.0",
14+
"eslint": "^8.35.0",
15+
"eslint-config-prettier": "^8.6.0",
1616
"lerna": "^4.0.0",
17-
"prettier": "^2.7.1",
18-
"typescript": "^4.6.3"
17+
"prettier": "^2.8.4",
18+
"typescript": "^4.9.5"
1919
},
2020
"engines": {
2121
"node": ">= 12.22.1",

packages/e2e-cypress/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"cross-env": "^7.0.3",
3636
"lodash": "^4.17.21",
3737
"nyc": "^15.1.0",
38-
"start-server-and-test": "^1.15.2",
39-
"vite-plugin-istanbul": "^3.0.4"
38+
"start-server-and-test": "^2.0.0",
39+
"vite-plugin-istanbul": "^4.0.1"
4040
},
4141
"devDependencies": {
4242
"@types/lodash": "^4.14.191",
43-
"cypress": "^12.2.0",
43+
"cypress": "^12.7.0",
4444
"eslint-plugin-cypress": "^2.12.1",
45-
"rimraf": "^3.0.2"
45+
"rimraf": "^4.1.2"
4646
},
4747
"peerDependencies": {
4848
"cypress": "^12.2.0",
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Types are not supported for `@cypress/code-coverage`
3-
*
4-
* @see https://github.com/cypress-io/code-coverage/issues/257
5-
*/
6-
declare module '@cypress/code-coverage/task' {
7-
export default function registerCodeCoverageTasks(
8-
on: Cypress.PluginEvents,
9-
config: Cypress.PluginConfigOptions,
10-
): void;
11-
}
1+
/**
2+
* Types are not supported for `@cypress/code-coverage`
3+
*
4+
* @see https://github.com/cypress-io/code-coverage/issues/257
5+
*/
6+
declare module '@cypress/code-coverage/task' {
7+
export default function registerCodeCoverageTasks(
8+
on: Cypress.PluginEvents,
9+
config: Cypress.PluginConfigOptions,
10+
): void;
11+
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import { mount } from 'cypress/vue';
2-
3-
declare global {
4-
// eslint-disable-next-line @typescript-eslint/no-namespace
5-
namespace Cypress {
6-
interface Chainable {
7-
/**
8-
* Helper mount function for Vue Components
9-
* @param component Vue Component or JSX Element to mount
10-
* @param options Options passed to Vue Test Utils
11-
*/
12-
mount: typeof mount;
13-
}
14-
}
15-
}
16-
17-
export function registerMount() {
18-
Cypress.Commands.add('mount', mount);
19-
}
1+
import { mount } from 'cypress/vue';
2+
3+
declare global {
4+
// eslint-disable-next-line @typescript-eslint/no-namespace
5+
namespace Cypress {
6+
interface Chainable {
7+
/**
8+
* Helper mount function for Vue Components
9+
* @param component Vue Component or JSX Element to mount
10+
* @param options Options passed to Vue Test Utils
11+
*/
12+
mount: typeof mount;
13+
}
14+
}
15+
}
16+
17+
export function registerMount() {
18+
Cypress.Commands.add('mount', mount);
19+
}
Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
1-
declare global {
2-
// eslint-disable-next-line @typescript-eslint/no-namespace
3-
namespace Cypress {
4-
interface Chainable {
5-
/**
6-
* Selects a given date into a QDate.
7-
* @example cy.get('.q-date').selectDate('11/02/2021')
8-
* @example cy.dataCy('start-date').selectDate(new Date())
9-
*/
10-
selectDate<E extends HTMLElement = HTMLElement>(
11-
value: string | Date,
12-
): Chainable<JQueryWithSelector<E>>;
13-
}
14-
}
15-
}
16-
17-
export function registerSelectDate() {
18-
Cypress.Commands.add(
19-
'selectDate',
20-
{ prevSubject: 'element' },
21-
(subject, value) => {
22-
if (!subject.hasClass('q-date')) {
23-
throw new Error('Subject is not a QDate');
24-
}
25-
26-
const targetDate = typeof value === 'string' ? new Date(value) : value;
27-
28-
cy.wrap(subject).within(() => {
29-
cy.get('.q-date__navigation div:not(.q-date__arrow)')
30-
.last()
31-
.as('yearSelector');
32-
cy.get('.q-date__navigation div:not(.q-date__arrow)')
33-
.first()
34-
.as('monthSelector');
35-
36-
const targetYear = targetDate.getFullYear();
37-
const targetMonth = targetDate.getMonth();
38-
const targetDay = targetDate.getDate();
39-
40-
// Since it's easy to detect it with the year selector,
41-
// we avoid selecting the year if it's already the target one
42-
cy.get('@yearSelector')
43-
.invoke('text')
44-
.then((currentYear) => {
45-
if (currentYear !== targetYear.toString()) {
46-
cy.get('@yearSelector').click();
47-
cy.contains(targetYear).click();
48-
}
49-
});
50-
51-
cy.get('@monthSelector').click();
52-
cy.get('.q-date__months-item').eq(targetMonth).click();
53-
54-
// The target day number is searched only into days buttons,
55-
// skipping filler and out of range days
56-
cy.get('.q-date__calendar-item--in').contains(targetDay).click();
57-
});
58-
59-
return cy.wrap(subject);
60-
},
61-
);
62-
}
1+
declare global {
2+
// eslint-disable-next-line @typescript-eslint/no-namespace
3+
namespace Cypress {
4+
interface Chainable {
5+
/**
6+
* Selects a given date into a QDate.
7+
* @example cy.get('.q-date').selectDate('11/02/2021')
8+
* @example cy.dataCy('start-date').selectDate(new Date())
9+
*/
10+
selectDate<E extends HTMLElement = HTMLElement>(
11+
value: string | Date,
12+
): Chainable<JQueryWithSelector<E>>;
13+
}
14+
}
15+
}
16+
17+
export function registerSelectDate() {
18+
Cypress.Commands.add(
19+
'selectDate',
20+
{ prevSubject: 'element' },
21+
(subject, value) => {
22+
if (!subject.hasClass('q-date')) {
23+
throw new Error('Subject is not a QDate');
24+
}
25+
26+
const targetDate = typeof value === 'string' ? new Date(value) : value;
27+
28+
cy.wrap(subject).within(() => {
29+
cy.get('.q-date__navigation div:not(.q-date__arrow)')
30+
.last()
31+
.as('yearSelector');
32+
cy.get('.q-date__navigation div:not(.q-date__arrow)')
33+
.first()
34+
.as('monthSelector');
35+
36+
const targetYear = targetDate.getFullYear();
37+
const targetMonth = targetDate.getMonth();
38+
const targetDay = targetDate.getDate();
39+
40+
// Since it's easy to detect it with the year selector,
41+
// we avoid selecting the year if it's already the target one
42+
cy.get('@yearSelector')
43+
.invoke('text')
44+
.then((currentYear) => {
45+
if (currentYear !== targetYear.toString()) {
46+
cy.get('@yearSelector').click();
47+
cy.contains(targetYear).click();
48+
}
49+
});
50+
51+
cy.get('@monthSelector').click();
52+
cy.get('.q-date__months-item').eq(targetMonth).click();
53+
54+
// The target day number is searched only into days buttons,
55+
// skipping filler and out of range days
56+
cy.get('.q-date__calendar-item--in').contains(targetDay).click();
57+
});
58+
59+
return cy.wrap(subject);
60+
},
61+
);
62+
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
import { Ref, watch } from 'vue';
2-
3-
// VTU won't accept reactive v-model binding, this adapter manually
4-
// set the model prop each time a new value is emitted
5-
// See https://github.com/vuejs/test-utils/discussions/279
6-
7-
// See https://github.com/vuejs/test-utils/issues/871
8-
export function vModelAdapter<T>(
9-
modelRef: Ref<T>,
10-
modelName = 'modelValue',
11-
// Without this, TS will start complaining as it cannot understand the dynamic type of
12-
// the returned object and match it with the component props this helper is applied to.
13-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
14-
): any {
15-
watch(modelRef, (value) =>
16-
Cypress.vueWrapper.setProps({ [modelName]: value }),
17-
);
18-
19-
return {
20-
[modelName]: modelRef.value,
21-
[`onUpdate:${modelName}`]: (emittedValue: T) => {
22-
modelRef.value = emittedValue;
23-
},
24-
};
25-
}
1+
import { Ref, watch } from 'vue';
2+
3+
// VTU won't accept reactive v-model binding, this adapter manually
4+
// set the model prop each time a new value is emitted
5+
// See https://github.com/vuejs/test-utils/discussions/279
6+
7+
// See https://github.com/vuejs/test-utils/issues/871
8+
export function vModelAdapter<T>(
9+
modelRef: Ref<T>,
10+
modelName = 'modelValue',
11+
// Without this, TS will start complaining as it cannot understand the dynamic type of
12+
// the returned object and match it with the component props this helper is applied to.
13+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
14+
): any {
15+
watch(modelRef, (value) =>
16+
Cypress.vueWrapper.setProps({ [modelName]: value }),
17+
);
18+
19+
return {
20+
[modelName]: modelRef.value,
21+
[`onUpdate:${modelName}`]: (emittedValue: T) => {
22+
modelRef.value = emittedValue;
23+
},
24+
};
25+
}

packages/unit-jest/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
},
4242
"devDependencies": {
4343
"@types/lodash-es": "^4.17.6",
44-
"@vue/test-utils": "^2.2.0",
44+
"@vue/test-utils": "^2.3.0",
4545
"copyfiles": "^2.4.1",
4646
"eslint-plugin-jest": "^27.1.3",
4747
"jest": "^29.2.2",
48-
"quasar": "^2.10.0",
49-
"rimraf": "^3.0.2",
50-
"vue": "^3.2.41"
48+
"quasar": "^2.11.6",
49+
"rimraf": "^4.1.2",
50+
"vue": "^3.2.47"
5151
},
5252
"peerDependencies": {
5353
"@vue/test-utils": "^2.2.0",
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// This module provide typings to the deep import, since the original file isn't written in TS
2-
// This should be a .ts file (instead of a .d.ts) to not being elided at compile time by TS,
3-
// which would make it useless
4-
declare module '@quasar/quasar-app-extension-testing-unit-jest/jest-preset.mjs' {
5-
import { Config } from 'jest';
6-
7-
export const quasarEsModulesPackageNames: string;
8-
export const config: Config;
9-
export default Config;
10-
}
1+
// This module provide typings to the deep import, since the original file isn't written in TS
2+
// This should be a .ts file (instead of a .d.ts) to not being elided at compile time by TS,
3+
// which would make it useless
4+
declare module '@quasar/quasar-app-extension-testing-unit-jest/jest-preset.mjs' {
5+
import { Config } from 'jest';
6+
7+
export const quasarEsModulesPackageNames: string;
8+
export const config: Config;
9+
export default Config;
10+
}

packages/unit-vitest/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
"yarn": ">= 1.17.3"
3030
},
3131
"dependencies": {
32-
"happy-dom": "^7.7.0",
32+
"happy-dom": "^8.9.0",
3333
"lodash-es": "^4.17.21",
3434
"vite-jsconfig-paths": "^2.0.1",
3535
"vite-tsconfig-paths": "^3.5.0"
3636
},
3737
"devDependencies": {
3838
"@types/lodash-es": "^4.17.4",
39-
"@vue/test-utils": "^2.0.0",
40-
"quasar": "^2.10.2",
41-
"rimraf": "^3.0.2",
42-
"vitest": "^0.25.2",
43-
"vue": "^3.2.0"
39+
"@vue/test-utils": "^2.3.0",
40+
"quasar": "^2.11.6",
41+
"rimraf": "^4.1.2",
42+
"vitest": "^0.29.1",
43+
"vue": "^3.2.47"
4444
},
4545
"peerDependencies": {
4646
"@vitest/ui": "^0.25.2",

test-project-app/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,33 @@
3939
"test:unit:watchAll": "jest --watchAll"
4040
},
4141
"dependencies": {
42-
"@quasar/extras": "^1.0.0",
42+
"@quasar/extras": "^1.15.11",
4343
"axios": "^0.27.2",
44-
"core-js": "^3.6.5",
45-
"quasar": "^2.0.0",
46-
"vue-i18n": "^9.0.0",
47-
"vue-router": "^4.0.0",
48-
"vuex": "^4.0.1"
44+
"core-js": "^3.29.0",
45+
"quasar": "^2.11.6",
46+
"vue-i18n": "^9.2.2",
47+
"vue-router": "^4.1.6",
48+
"vuex": "^4.1.0"
4949
},
5050
"devDependencies": {
51-
"@babel/eslint-parser": "^7.13.14",
52-
"@quasar/app": "^3.0.0",
51+
"@babel/eslint-parser": "^7.19.1",
52+
"@quasar/app": "^3.3.3",
5353
"@quasar/quasar-app-extension-testing": "../packages/testing",
5454
"@quasar/quasar-app-extension-testing-e2e-cypress": "../packages/e2e-cypress",
5555
"@quasar/quasar-app-extension-testing-unit-jest": "../packages/unit-jest",
5656
"@types/node": "^12.20.21",
57-
"@typescript-eslint/eslint-plugin": "^5.27.0",
58-
"@typescript-eslint/parser": "^5.27.0",
59-
"@vue/test-utils": "^2.2.0",
60-
"cypress": "^12.2.0",
61-
"eslint": "^8.16.0",
62-
"eslint-config-prettier": "^8.1.0",
57+
"@typescript-eslint/eslint-plugin": "^5.54.0",
58+
"@typescript-eslint/parser": "^5.54.0",
59+
"@vue/test-utils": "^2.3.0",
60+
"cypress": "^12.7.0",
61+
"eslint": "^8.35.0",
62+
"eslint-config-prettier": "^8.6.0",
6363
"eslint-plugin-cypress": "^2.12.1",
6464
"eslint-plugin-jest": "^27.1.3",
65-
"eslint-plugin-vue": "^9.1.0",
65+
"eslint-plugin-vue": "^9.9.0",
6666
"jest": "^29.2.2",
67-
"majestic": "^1.7.0",
68-
"prettier": "^2.6.2"
67+
"majestic": "^1.8.1",
68+
"prettier": "^2.8.4"
6969
},
7070
"browserslist": [
7171
"last 10 Chrome versions",

0 commit comments

Comments
 (0)