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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,16 +1,23 @@
import { describe, it, expect, vi } from "vitest";
import { hashInvoiceFilename } from "./hash-invoice-filename";
vi.mock("crypto", () => ({
randomUUID() {
return "RANDOM_UUID_MOCK";
},
}));
vi.mock("crypto", async () => {
const actual = (await vi.importActual("crypto")) as Crypto;
return {
default: {
...actual,
randomUUID() {
return "RANDOM_UUID_MOCK";
},
},
};
});
describe("hashInvoiceFilename", () => {
it("Creates hashed invoice name", () => {
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",
setupFiles: "./src/setup-tests.ts",
css: false,
coverage: {
provider: "c8",
reporter: ["text-summary", "cobertura"],
},
},
});

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

File diff suppressed because it is too large Load diff

View file

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