Update dev dependencies (#845)

* update prettier and syncpack

* update turbo

* Update various dev deps

* improve syncpack config

* remove c8 reporter from invoices

* fix test packages

* Fix invocies test
This commit is contained in:
Lukasz Ostrowski 2023-08-04 08:39:44 +02:00 committed by GitHub
parent fc5e6396d2
commit 261957fda4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 1311 additions and 1102 deletions

View file

@ -0,0 +1,18 @@
---
"@saleor/react-hook-form-macaw": patch
"eslint-config-saleor": patch
"saleor-app-emails-and-messages": patch
"saleor-app-data-importer": patch
"saleor-app-products-feed": patch
"@saleor/apps-shared": patch
"saleor-app-invoices": patch
"saleor-app-klaviyo": patch
"saleor-app-cms-v2": patch
"saleor-app-search": patch
"@saleor/apps-ui": patch
"saleor-app-slack": patch
"saleor-app-taxes": patch
"saleor-app-crm": patch
---
Updated dependencies: vite, vitest, eslint, prettier, dotenv, turbo, syncpack, changesets, lint staged

View file

@ -26,7 +26,7 @@
"@trpc/react-query": "10.34.0", "@trpc/react-query": "10.34.0",
"@trpc/server": "10.34.0", "@trpc/server": "10.34.0",
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"contentful-management": "10.38.3", "contentful-management": "10.38.3",
"graphql": "16.7.1", "graphql": "16.7.1",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
@ -42,8 +42,8 @@
"strapi-sdk-js": "2.2.0", "strapi-sdk-js": "2.2.0",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3", "vitest": "0.34.1",
"zod": "3.21.4" "zod": "3.21.4"
}, },
"devDependencies": { "devDependencies": {
@ -58,7 +58,7 @@
"@testing-library/react-hooks": "^8.0.1", "@testing-library/react-hooks": "^8.0.1",
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"node-mocks-http": "^1.12.2", "node-mocks-http": "^1.12.2",
"typescript": "5.1.6" "typescript": "5.1.6"

View file

@ -23,7 +23,7 @@
"@trpc/react-query": "10.34.0", "@trpc/react-query": "10.34.0",
"@trpc/server": "10.34.0", "@trpc/server": "10.34.0",
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"graphql": "16.7.1", "graphql": "16.7.1",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
@ -37,8 +37,8 @@
"react-is": "^18.2.0", "react-is": "^18.2.0",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3", "vitest": "0.34.1",
"zod": "3.21.4" "zod": "3.21.4"
}, },
"devDependencies": { "devDependencies": {
@ -54,7 +54,7 @@
"@types/mailchimp__mailchimp_marketing": "^3.0.7", "@types/mailchimp__mailchimp_marketing": "^3.0.7",
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"node-mocks-http": "^1.12.2", "node-mocks-http": "^1.12.2",
"typescript": "5.1.6" "typescript": "5.1.6"

View file

@ -20,7 +20,7 @@
"@saleor/macaw-ui": "0.8.0-pre.106", "@saleor/macaw-ui": "0.8.0-pre.106",
"@sentry/nextjs": "7.55.2", "@sentry/nextjs": "7.55.2",
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"dot-object": "^2.1.4", "dot-object": "^2.1.4",
"graphql": "16.7.1", "graphql": "16.7.1",
@ -35,8 +35,8 @@
"react-dom": "18.2.0", "react-dom": "18.2.0",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3", "vitest": "0.34.1",
"zod": "3.21.4" "zod": "3.21.4"
}, },
"devDependencies": { "devDependencies": {
@ -53,8 +53,7 @@
"@types/dot-object": "^2.1.2", "@types/dot-object": "^2.1.2",
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"@vitest/coverage-c8": "^0.28.4", "eslint": "8.46.0",
"eslint": "8.44.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"typescript": "5.1.6" "typescript": "5.1.6"
}, },

View file

@ -28,9 +28,9 @@
"@trpc/react-query": "10.34.0", "@trpc/react-query": "10.34.0",
"@trpc/server": "10.34.0", "@trpc/server": "10.34.0",
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"dotenv": "^16.0.3", "dotenv": "^16.3.1",
"graphql": "16.7.1", "graphql": "16.7.1",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"handlebars": "^4.7.7", "handlebars": "^4.7.7",
@ -47,8 +47,8 @@
"react-is": "^18.2.0", "react-is": "^18.2.0",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3", "vitest": "0.34.1",
"zod": "3.21.4" "zod": "3.21.4"
}, },
"devDependencies": { "devDependencies": {
@ -67,7 +67,7 @@
"@types/nodemailer": "^6.4.7", "@types/nodemailer": "^6.4.7",
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"typescript": "5.1.6" "typescript": "5.1.6"
}, },

View file

@ -25,7 +25,7 @@
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"@web-std/file": "^3.0.2", "@web-std/file": "^3.0.2",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"eslint": "8.44.0", "eslint": "8.46.0",
"graphql": "16.7.1", "graphql": "16.7.1",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"microinvoice": "^1.0.6", "microinvoice": "^1.0.6",
@ -52,15 +52,14 @@
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"@types/rimraf": "^3.0.2", "@types/rimraf": "^3.0.2",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"@vitest/coverage-c8": "^0.28.4", "dotenv": "^16.3.1",
"dotenv": "^16.0.3",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"jsdom": "^20.0.3", "jsdom": "^20.0.3",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"typescript": "5.1.6", "typescript": "5.1.6",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3" "vitest": "0.34.1"
}, },
"private": true, "private": true,
"saleor": { "saleor": {

View file

@ -1,16 +1,23 @@
import { describe, it, expect, vi } from "vitest"; import { describe, it, expect, vi } from "vitest";
import { hashInvoiceFilename } from "./hash-invoice-filename"; import { hashInvoiceFilename } from "./hash-invoice-filename";
vi.mock("crypto", () => ({ vi.mock("crypto", async () => {
randomUUID() { const actual = (await vi.importActual("crypto")) as Crypto;
return "RANDOM_UUID_MOCK";
}, return {
})); default: {
...actual,
randomUUID() {
return "RANDOM_UUID_MOCK";
},
},
};
});
describe("hashInvoiceFilename", () => { describe("hashInvoiceFilename", () => {
it("Creates hashed invoice name", () => { it("Creates hashed invoice name", () => {
expect(hashInvoiceFilename("1/12/2022", "1234-xxxx-zzzz-1234")).toBe( expect(hashInvoiceFilename("1/12/2022", "1234-xxxx-zzzz-1234")).toBe(
"1/12/2022_1234-xxxx-zzzz-1234_RANDOM_UUID_MOCK" "1/12/2022_1234-xxxx-zzzz-1234_RANDOM_UUID_MOCK",
); );
}); });
}); });

View file

@ -8,9 +8,5 @@ export default defineConfig({
environment: "jsdom", environment: "jsdom",
setupFiles: "./src/setup-tests.ts", setupFiles: "./src/setup-tests.ts",
css: false, css: false,
coverage: {
provider: "c8",
reporter: ["text-summary", "cobertura"],
},
}, },
}); });

View file

@ -31,8 +31,8 @@
"react-helmet": "^6.1.0", "react-helmet": "^6.1.0",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3" "vitest": "0.34.1"
}, },
"devDependencies": { "devDependencies": {
"@graphql-codegen/cli": "4.0.1", "@graphql-codegen/cli": "4.0.1",
@ -47,7 +47,7 @@
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"autoprefixer": "^10.4.7", "autoprefixer": "^10.4.7",
"clean-publish": "^4.0.1", "clean-publish": "^4.0.1",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"postcss": "^8.4.14", "postcss": "^8.4.14",
"pretty-quick": "^3.1.3", "pretty-quick": "^3.1.3",

View file

@ -26,7 +26,7 @@
"@trpc/react-query": "10.34.0", "@trpc/react-query": "10.34.0",
"@trpc/server": "10.34.0", "@trpc/server": "10.34.0",
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"fast-xml-parser": "^4.0.15", "fast-xml-parser": "^4.0.15",
"graphql": "16.7.1", "graphql": "16.7.1",
@ -41,8 +41,8 @@
"react-is": "^18.2.0", "react-is": "^18.2.0",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3", "vitest": "0.34.1",
"zod": "3.21.4" "zod": "3.21.4"
}, },
"devDependencies": { "devDependencies": {
@ -58,7 +58,7 @@
"@testing-library/react-hooks": "^8.0.1", "@testing-library/react-hooks": "^8.0.1",
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"typescript": "5.1.6" "typescript": "5.1.6"
}, },

View file

@ -48,13 +48,13 @@
"@graphql-typed-document-node/core": "3.2.0", "@graphql-typed-document-node/core": "3.2.0",
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"node-mocks-http": "^1.12.2", "node-mocks-http": "^1.12.2",
"typescript": "5.1.6", "typescript": "5.1.6",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3" "vitest": "0.34.1"
}, },
"private": true, "private": true,
"saleor": { "saleor": {

View file

@ -22,7 +22,7 @@
"@sentry/nextjs": "7.55.2", "@sentry/nextjs": "7.55.2",
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"eslint": "8.44.0", "eslint": "8.46.0",
"graphql": "16.7.1", "graphql": "16.7.1",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"jose": "^4.11.2", "jose": "^4.11.2",
@ -34,8 +34,8 @@
"react-helmet": "^6.1.0", "react-helmet": "^6.1.0",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3" "vitest": "0.34.1"
}, },
"devDependencies": { "devDependencies": {
"@graphql-codegen/cli": "4.0.1", "@graphql-codegen/cli": "4.0.1",

View file

@ -27,7 +27,7 @@
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"avatax": "^23.3.2", "avatax": "^23.3.2",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"dotenv": "^16.0.3", "dotenv": "^16.3.1",
"graphql": "16.7.1", "graphql": "16.7.1",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"jotai": "^2.0.0", "jotai": "^2.0.0",
@ -41,8 +41,8 @@
"taxjar": "^4.0.1", "taxjar": "^4.0.1",
"urql": "^4.0.4", "urql": "^4.0.4",
"usehooks-ts": "^2.9.1", "usehooks-ts": "^2.9.1",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3", "vitest": "0.34.1",
"zod": "3.21.4" "zod": "3.21.4"
}, },
"devDependencies": { "devDependencies": {
@ -58,8 +58,8 @@
"@testing-library/react-hooks": "^8.0.1", "@testing-library/react-hooks": "^8.0.1",
"@types/react": "18.2.5", "@types/react": "18.2.5",
"@types/react-dom": "18.2.5", "@types/react-dom": "18.2.5",
"@vitejs/plugin-react": "4.0.0", "@vitejs/plugin-react": "4.0.4",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"typescript": "5.1.6" "typescript": "5.1.6"
}, },

View file

@ -16,16 +16,16 @@
"test": "turbo run test" "test": "turbo run test"
}, },
"devDependencies": { "devDependencies": {
"@changesets/cli": "^2.26.0", "@changesets/cli": "^2.26.2",
"@types/node": "18.15.3", "@types/node": "18.15.3",
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-saleor": "workspace:*", "eslint-config-saleor": "workspace:*",
"husky": "^8.0.3", "husky": "^8.0.3",
"lint-staged": "^13.1.2", "lint-staged": "^13.2.3",
"next": "13.4.8", "next": "13.4.8",
"prettier": "^2.8.4", "prettier": "3.0.1",
"syncpack": "10.5.1", "syncpack": "10.9.3",
"turbo": "1.10.3" "turbo": "1.10.12"
}, },
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"

View file

@ -2,7 +2,7 @@
"name": "eslint-config-saleor", "name": "eslint-config-saleor",
"version": "0.4.4", "version": "0.4.4",
"devDependencies": { "devDependencies": {
"eslint": "8.44.0", "eslint": "8.46.0",
"eslint-config-next": "13.4.8", "eslint-config-next": "13.4.8",
"eslint-config-prettier": "8.8.0", "eslint-config-prettier": "8.8.0",
"eslint-config-turbo": "1.10.3", "eslint-config-turbo": "1.10.3",

View file

@ -8,7 +8,7 @@
"storybook": "storybook dev -p 6006" "storybook": "storybook dev -p 6006"
}, },
"dependencies": { "dependencies": {
"eslint": "8.44.0" "eslint": "8.46.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.21.8", "@babel/core": "^7.21.8",
@ -30,7 +30,7 @@
"react-hook-form": "^7.43.9", "react-hook-form": "^7.43.9",
"storybook": "^7.0.12", "storybook": "^7.0.12",
"typescript": "5.1.6", "typescript": "5.1.6",
"vite": "4.3.9", "vite": "4.4.8",
"webpack": "^5.82.1" "webpack": "^5.82.1"
}, },
"main": "index.ts", "main": "index.ts",

View file

@ -6,7 +6,7 @@
}, },
"dependencies": { "dependencies": {
"@urql/exchange-auth": "^2.1.4", "@urql/exchange-auth": "^2.1.4",
"eslint": "8.44.0", "eslint": "8.46.0",
"pino": "^8.14.1", "pino": "^8.14.1",
"pino-pretty": "^10.0.0", "pino-pretty": "^10.0.0",
"semver": "^7.5.1", "semver": "^7.5.1",
@ -27,8 +27,8 @@
"next": "13.4.8", "next": "13.4.8",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"vite": "4.3.9", "vite": "4.4.8",
"vitest": "0.31.3" "vitest": "0.34.1"
}, },
"main": "index.ts", "main": "index.ts",
"peerDependencies": { "peerDependencies": {

View file

@ -5,7 +5,7 @@
"lint:fix": "eslint --fix ." "lint:fix": "eslint --fix ."
}, },
"dependencies": { "dependencies": {
"eslint": "8.44.0", "eslint": "8.46.0",
"typescript": "5.1.6" "typescript": "5.1.6"
}, },
"devDependencies": { "devDependencies": {

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@ const config = {
indent: " ", indent: " ",
semverGroups: [], semverGroups: [],
semverRange: "", semverRange: "",
dependencyTypes: ["dev", "overrides", "peer", "prod", "resolutions", "workspace"], dependencyTypes: ["dev", "overrides", "peer", "prod", "resolutions"],
sortAz: [ sortAz: [
"scripts", "scripts",
"contributors", "contributors",