Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperse-net committed Jun 5, 2024
1 parent 5da0188 commit 50a15f3
Show file tree
Hide file tree
Showing 14 changed files with 513 additions and 443 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.3",
"@changesets/cli": "2.27.5",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@hyperse/eslint-config-hyperse": "^1.0.5",
"@hyperse/eslint-config-hyperse": "^1.0.6",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"husky": "9.0.11",
"lint-staged": "15.2.4",
"lint-staged": "15.2.5",
"npm-run-all": "4.1.5",
"rimraf": "5.0.7",
"typescript": "5.4.5"
Expand Down
21 changes: 7 additions & 14 deletions packages/next-auth/lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/**
* This files overrides the base lint-staged.config.cjs present in the root directory.
* It allows to run eslint based the package specific requirements.
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo}
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md}
*/
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import {
concatFilesForPrettier,
getEslintFixCmd,
} from '../../lint-staged.common.cjs';
/**
* This is the base lint-staged rules config and just includes prettier by default.
* A good practice is to override this base configuration in each package and/or application
* where we are able to add customization depending on the nature of the project (eslint...).
*/
import { getEslintFixCmd } from '../../lint-staged.common.mjs';

/**
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
*/
const rules = {
'**/*.{js,jsx,ts,tsx,mjs,cjs}': (filenames) => {
Expand All @@ -27,9 +23,6 @@ const rules = {
files: filenames,
});
},
'**/*.{json,md,mdx,css,html,yml,yaml,scss}': (filenames) => {
return [`prettier --write ${concatFilesForPrettier(filenames)}`];
},
};

export default rules;
14 changes: 7 additions & 7 deletions packages/next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,25 @@
"oslo": "1.2.0"
},
"devDependencies": {
"@hyperse/eslint-config-hyperse": "^1.0.5",
"@prisma/client": "^5.14.0",
"@types/node": "20.12.12",
"@hyperse/eslint-config-hyperse": "^1.0.6",
"@prisma/client": "^5.15.0",
"@types/node": "20.14.1",
"@vitest/coverage-istanbul": "1.6.0",
"@vitest/ui": "1.6.0",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"next": "^14.2.3",
"npm-run-all": "4.1.5",
"prisma": "^5.14.0",
"prisma": "^5.15.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"rimraf": "5.0.7",
"typescript": "5.4.5",
"vite": "5.2.11",
"vite": "5.2.12",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
},
"peerDependencies": {
"@prisma/client": "^5.14.0",
"@prisma/client": "^5.15.0",
"next": "^14.2.3"
},
"peerDependenciesMeta": {
Expand Down
21 changes: 7 additions & 14 deletions packages/next-core/lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/**
* This files overrides the base lint-staged.config.cjs present in the root directory.
* It allows to run eslint based the package specific requirements.
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo}
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md}
*/
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import {
concatFilesForPrettier,
getEslintFixCmd,
} from '../../lint-staged.common.cjs';
/**
* This is the base lint-staged rules config and just includes prettier by default.
* A good practice is to override this base configuration in each package and/or application
* where we are able to add customization depending on the nature of the project (eslint...).
*/
import { getEslintFixCmd } from '../../lint-staged.common.mjs';

/**
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
*/
const rules = {
'**/*.{js,jsx,ts,tsx,mjs,cjs}': (filenames) => {
Expand All @@ -27,9 +23,6 @@ const rules = {
files: filenames,
});
},
'**/*.{json,md,mdx,css,html,yml,yaml,scss}': (filenames) => {
return [`prettier --write ${concatFilesForPrettier(filenames)}`];
},
};

export default rules;
12 changes: 6 additions & 6 deletions packages/next-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
"superjson": "^2.2.1"
},
"devDependencies": {
"@hyperse/eslint-config-hyperse": "^1.0.5",
"@hyperse/eslint-config-hyperse": "^1.0.6",
"@tanstack/query-core": "^5.x",
"@tanstack/react-query": "^5.37.1",
"@tanstack/react-query": "^5.40.1",
"@trpc/server": "next",
"@types/node": "20.12.12",
"@types/node": "20.14.1",
"@vitest/coverage-istanbul": "1.6.0",
"@vitest/ui": "1.6.0",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"next": "^14.2.3",
"npm-run-all": "4.1.5",
"react": "^18.3.1",
Expand All @@ -69,13 +69,13 @@
"rollup": "^4.18.0",
"rollup-plugin-preserve-directives": "0.4.0",
"typescript": "5.4.5",
"vite": "5.2.11",
"vite": "5.2.12",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
},
"peerDependencies": {
"@tanstack/query-core": "^5.x",
"@tanstack/react-query": "^5.37.1",
"@tanstack/react-query": "^5.40.1",
"@trpc/server": "*",
"next": "^14.2.3",
"react": "^18.3.1"
Expand Down
25 changes: 15 additions & 10 deletions packages/next-demo/lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
/**
* This is the base lint-staged rules config and just includes prettier by default.
* A good practice is to override this base configuration in each package and/or application
* where we are able to add customization depending on the nature of the project (eslint...).
*
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo}
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md}
*/

import { concatFilesForPrettier } from '../../lint-staged.common.cjs';
import { getEslintFixCmd } from '../../lint-staged.common.mjs';

/**
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
*/
const rules = {
'**/*.{json,md,mdx,css,html,yml,yaml,scss,ts,js,tsx,jsx,mjs}': (
filenames
) => {
return [`prettier --write ${concatFilesForPrettier(filenames)}`];
'**/*.{js,jsx,ts,tsx,mjs,cjs}': (filenames) => {
return getEslintFixCmd({
cwd: dirname(fileURLToPath(import.meta.url)),
fix: true,
cache: true,
// when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause
// a change here can potentially break things without proper visibility.
rules: ['react-hooks/exhaustive-deps: off'],
maxWarnings: 25,
files: filenames,
});
},
};

Expand Down
28 changes: 14 additions & 14 deletions packages/next-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
}
},
"dependencies": {
"@hookform/resolvers": "3.4.2",
"@hookform/resolvers": "3.5.0",
"@hyperse/next-auth": "workspace:*",
"@hyperse/next-core": "workspace:*",
"@hyperse/next-env": "workspace:*",
"@hyperse/next-prisma": "workspace:*",
"@next/bundle-analyzer": "14.2.3",
"@prisma/client": "^5.14.0",
"@prisma/client": "^5.15.0",
"@tanstack/query-core": "^5.x",
"@tanstack/react-query": "^5.37.1",
"@tanstack/react-query": "^5.40.1",
"@trpc/client": "next",
"@trpc/next": "next",
"@trpc/react-query": "next",
Expand All @@ -60,7 +60,7 @@
"dayjs": "1.11.11",
"graphql": "16.8.1",
"next": "^14.2.3",
"next-intl": "^3.14.0",
"next-intl": "^3.14.1",
"next-runtime-env": "^3.2.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand All @@ -71,34 +71,34 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@changesets/cli": "2.27.3",
"@changesets/cli": "2.27.5",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@graphql-codegen/add": "5.0.2",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/typescript": "4.0.7",
"@graphql-codegen/typescript-operations": "4.2.1",
"@hyperse/eslint-config-hyperse": "^1.0.5",
"@hyperse/eslint-config-hyperse": "^1.0.6",
"@hyperse/tailwind-layer": "^1.0.4",
"@playwright/test": "^1.44.0",
"@types/node": "^20.12.12",
"@playwright/test": "^1.44.1",
"@types/node": "^20.14.1",
"@types/prettier": "3.0.0",
"@types/react": "^18.3.2",
"@types/react": "^18.3.3",
"autoprefixer": "^10.4.19",
"commitizen": "4.3.0",
"cross-env": "7.0.3",
"cz-conventional-changelog": "3.3.0",
"dotenv": "^16.4.5",
"es-check": "7.1.1",
"eslint": "^9.3.0",
"es-check": "7.2.1",
"eslint": "^9.4.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.38",
"prisma": "^5.14.0",
"prisma": "^5.15.0",
"size-limit": "11.1.4",
"start-server-and-test": "^2.0.3",
"start-server-and-test": "^2.0.4",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vite-tsconfig-paths": "4.3.2",
"vitest": "^1.6.0"
},
Expand Down
21 changes: 7 additions & 14 deletions packages/next-env/lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/**
* This files overrides the base lint-staged.config.cjs present in the root directory.
* It allows to run eslint based the package specific requirements.
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo}
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md}
*/
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import {
concatFilesForPrettier,
getEslintFixCmd,
} from '../../lint-staged.common.cjs';
/**
* This is the base lint-staged rules config and just includes prettier by default.
* A good practice is to override this base configuration in each package and/or application
* where we are able to add customization depending on the nature of the project (eslint...).
*/
import { getEslintFixCmd } from '../../lint-staged.common.mjs';

/**
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
*/
const rules = {
'**/*.{js,jsx,ts,tsx,mjs,cjs}': (filenames) => {
Expand All @@ -27,9 +23,6 @@ const rules = {
files: filenames,
});
},
'**/*.{json,md,mdx,css,html,yml,yaml,scss}': (filenames) => {
return [`prettier --write ${concatFilesForPrettier(filenames)}`];
},
};

export default rules;
8 changes: 4 additions & 4 deletions packages/next-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
"picocolors": "^1.0.1"
},
"devDependencies": {
"@hyperse/eslint-config-hyperse": "^1.0.5",
"@types/node": "20.12.12",
"@hyperse/eslint-config-hyperse": "^1.0.6",
"@types/node": "20.14.1",
"@vitest/coverage-istanbul": "1.6.0",
"@vitest/ui": "1.6.0",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"next": "^14.2.3",
"npm-run-all": "4.1.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"rimraf": "5.0.7",
"typescript": "5.4.5",
"vite": "5.2.11",
"vite": "5.2.12",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0",
"zod": "^3.23.8"
Expand Down
21 changes: 7 additions & 14 deletions packages/next-graphql/lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/**
* This files overrides the base lint-staged.config.cjs present in the root directory.
* It allows to run eslint based the package specific requirements.
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo}
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md}
*/
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import {
concatFilesForPrettier,
getEslintFixCmd,
} from '../../lint-staged.common.cjs';
/**
* This is the base lint-staged rules config and just includes prettier by default.
* A good practice is to override this base configuration in each package and/or application
* where we are able to add customization depending on the nature of the project (eslint...).
*/
import { getEslintFixCmd } from '../../lint-staged.common.mjs';

/**
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
*/
const rules = {
'**/*.{js,jsx,ts,tsx,mjs,cjs}': (filenames) => {
Expand All @@ -27,9 +23,6 @@ const rules = {
files: filenames,
});
},
'**/*.{json,md,mdx,css,html,yml,yaml,scss}': (filenames) => {
return [`prettier --write ${concatFilesForPrettier(filenames)}`];
},
};

export default rules;
8 changes: 4 additions & 4 deletions packages/next-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@
"is-plain-obj": "^4.1.0"
},
"devDependencies": {
"@hyperse/eslint-config-hyperse": "^1.0.5",
"@types/node": "20.12.12",
"@hyperse/eslint-config-hyperse": "^1.0.6",
"@types/node": "20.14.1",
"@vitest/coverage-istanbul": "1.6.0",
"@vitest/ui": "1.6.0",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"fastify": "^4.27.0",
"graphql": "16.8.1",
"mercurius": "14.1.0",
"npm-run-all": "4.1.5",
"rimraf": "5.0.7",
"typescript": "5.4.5",
"vite": "5.2.11",
"vite": "5.2.12",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
},
Expand Down
Loading

0 comments on commit 50a15f3

Please sign in to comment.