Skip to content

Commit

Permalink
Update dev dependencies (#845)
Browse files Browse the repository at this point in the history
* update prettier and syncpack

* update turbo

* Update various dev deps

* improve syncpack config

* remove c8 reporter from invoices

* fix test packages

* Fix invocies test
  • Loading branch information
lkostrowski authored Aug 4, 2023
1 parent fc5e639 commit 261957f
Show file tree
Hide file tree
Showing 20 changed files with 1,305 additions and 1,096 deletions.
18 changes: 18 additions & 0 deletions .changeset/pink-dolphins-collect.md
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions apps/cms-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions apps/crm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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"
Expand Down
9 changes: 4 additions & 5 deletions apps/data-importer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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"
},
Expand Down
10 changes: 5 additions & 5 deletions apps/emails-and-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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"
},
Expand Down
11 changes: 5 additions & 6 deletions apps/invoices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
);
});
});
4 changes: 0 additions & 4 deletions apps/invoices/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ export default defineConfig({
environment: "jsdom",
setupFiles: "./src/setup-tests.ts",
css: false,
coverage: {
provider: "c8",
reporter: ["text-summary", "cobertura"],
},
},
});
6 changes: 3 additions & 3 deletions apps/klaviyo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions apps/products-feed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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"
},
Expand Down
8 changes: 4 additions & 4 deletions apps/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions apps/slack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions apps/taxes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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"
},
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-saleor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-hook-form-macaw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"storybook": "storybook dev -p 6006"
},
"dependencies": {
"eslint": "8.44.0"
"eslint": "8.46.0"
},
"devDependencies": {
"@babel/core": "^7.21.8",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
Loading

0 comments on commit 261957f

Please sign in to comment.