Skip to content

Commit

Permalink
chore(deps): update all deps to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Balvajs committed Nov 7, 2024
1 parent d809a25 commit 578602a
Show file tree
Hide file tree
Showing 9 changed files with 15,792 additions and 11,326 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bunx lint-staged
File renamed without changes.
Binary file modified bun.lockb
Binary file not shown.
27,021 changes: 15,755 additions & 11,266 deletions dist/main.cjs

Large diffs are not rendered by default.

21 changes: 1 addition & 20 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
import tsEslint from 'typescript-eslint'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import stylistic from '@stylistic/eslint-plugin'
import js from '@eslint/js'

import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
})

const recommendedConfig = [
{
files: ['**/*.ts', '**/*.tsx'],
...tsEslint.configs.base,
languageOptions: {
...tsEslint.configs.base.languageOptions,
parserOptions: {
EXPERIMENTAL_useProjectService: true,
projectService: true,
sourceType: 'module',
},
},
Expand Down Expand Up @@ -49,13 +37,6 @@ export default [
...recommendedConfig,
stylistic.configs['recommended-flat'],
js.configs.recommended,
...compat
.config({
extends: ['prettier'],
})
.map(config => ({
...config,
})),
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
Expand Down
63 changes: 31 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"package": "tsup src/main.ts --clean",
"test": "jest --passWithNoTests",
"generate": "graphql-codegen-esm --config codegen.ts",
"all": "bun run type-check && bun run format-check && bun run lint && bun run package && bun run test",
"all": "bun run type-check && bun run format-check && bun run lint && bun run package",
"semantic-release": "semantic-release",
"prepare": "husky"
},
Expand All @@ -29,45 +29,44 @@
"author": "Balvajs",
"license": "MIT",
"devDependencies": {
"@actions/core": "1.10.1",
"@actions/core": "1.11.1",
"@actions/github": "6.0.0",
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.4.0",
"@graphql-codegen/add": "5.0.2",
"@graphql-codegen/cli": "5.0.2",
"@eslint/js": "9.14.0",
"@graphql-codegen/add": "5.0.3",
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/near-operation-file-preset": "3.0.0",
"@graphql-codegen/typescript": "4.0.7",
"@graphql-codegen/typescript-operations": "4.2.1",
"@octokit/action": "6.0.7",
"@octokit/graphql": "7.0.2",
"@octokit/graphql-schema": "14.58.0",
"@octokit/plugin-paginate-graphql": "4.0.1",
"@semantic-release/commit-analyzer": "12.0.0",
"@graphql-codegen/typescript": "4.1.1",
"@graphql-codegen/typescript-operations": "4.3.1",
"@octokit/action": "7.0.0",
"@octokit/graphql": "8.1.1",
"@octokit/graphql-schema": "15.25.0",
"@octokit/plugin-paginate-graphql": "5.2.4",
"@semantic-release/commit-analyzer": "13.0.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/release-notes-generator": "13.0.0",
"@stylistic/eslint-plugin": "1.8.1",
"@swc/core": "1.5.27",
"@swc/jest": "0.2.36",
"@types/jest": "29.5.12",
"@types/node": "20.12.6",
"@semantic-release/release-notes-generator": "14.0.1",
"@stylistic/eslint-plugin": "2.10.1",
"@swc/core": "1.9.1",
"@swc/jest": "0.2.37",
"@types/jest": "29.5.14",
"@types/node": "22.9.0",
"chalk": "5.3.0",
"codeowners": "5.1.1",
"dayjs": "1.11.11",
"eslint": "9.4.0",
"eslint-config-prettier": "9.1.0",
"graphql": "16.8.1",
"husky": "9.0.11",
"dayjs": "1.11.13",
"eslint": "9.14.0",
"graphql": "16.9.0",
"husky": "9.1.6",
"jest": "29.7.0",
"lint-staged": "15.2.5",
"minimatch": "9.0.4",
"lint-staged": "15.2.10",
"minimatch": "10.0.1",
"node-fetch": "3.3.2",
"prettier": "3.3.1",
"semantic-release": "23.1.1",
"prettier": "3.3.3",
"semantic-release": "24.2.0",
"semantic-release-major-tag": "0.3.2",
"simple-git": "3.24.0",
"ts-node": "10.9.2",
"tsup": "8.0.2",
"typescript": "5.4.5",
"typescript-eslint": "7.12.0"
"simple-git": "3.27.0",
"ts-node-dev": "2.0.0",
"tsup": "8.3.5",
"typescript": "5.6.3",
"typescript-eslint": "8.13.0"
}
}
4 changes: 2 additions & 2 deletions src/base-graphql-types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Maybe } from '@octokit/graphql-schema/schema.js'
import type { Maybe } from '@octokit/graphql-schema'

export * from '@octokit/graphql-schema/schema.js'
export * from '@octokit/graphql-schema'

export type InputMaybe<T> = Maybe<T>
2 changes: 1 addition & 1 deletion src/get-head-diff-since-review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getHeadDiffSinceReview = async ({
// find if files from intersectionFiles changed between head and review associated commit relatively to base branch
await Promise.all(
intersectionFiles.map(async file => {
const fileRenameMatch = file.match(fileRenameRegex)
const fileRenameMatch = fileRenameRegex.exec(file)

if (fileRenameMatch) {
const path1 = normalize(
Expand Down
4 changes: 2 additions & 2 deletions src/get-octokit.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Octokit } from '@octokit/action'
import { paginateGraphql } from '@octokit/plugin-paginate-graphql'
import { paginateGraphQL } from '@octokit/plugin-paginate-graphql'
import fetch from 'node-fetch'

export const getOctokit = ({ ghToken }: { ghToken: string }) => {
const OctokitWithPlugins = Octokit.plugin(paginateGraphql)
const OctokitWithPlugins = Octokit.plugin(paginateGraphQL)

Check failure on line 6 in src/get-octokit.ts

View workflow job for this annotation

GitHub Actions / build

Argument of type '(octokit: Octokit) => paginateGraphQLInterface' is not assignable to parameter of type 'OctokitPlugin'.
return new OctokitWithPlugins({ auth: ghToken, request: { fetch } })
}

0 comments on commit 578602a

Please sign in to comment.