Skip to content

Commit 74419e6

Browse files
authored
Update package (#71)
* chore(packages): update to latest non-breaking versions * chore(packages): update to latest breaking versions * chore(packages): update to latest non-breaking versions * chore(packages): update to latest breaking versions * lint(apps/web): fix eslint error * lint(apps/cli): remove unnecessary `return` * fix(react-toastify): import proper css file * fix(workflows): change `ubuntu-latest` to `ubuntu-22.04`
1 parent d7b7e79 commit 74419e6

File tree

10 files changed

+2711
-3766
lines changed

10 files changed

+2711
-3766
lines changed

.github/workflows/root.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
all:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-22.04
88
strategy:
99
fail-fast: false
1010
matrix:

apps/cli/src/cli/keywords/subcommand/template/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Update {
7171
pub fn parse(&self, option_pairs: OptionPairs) -> UpdateTemplateResult {
7272
let option_pair = option_pairs
7373
.into_iter()
74-
.find(|pair| return self.keyword_same_as_argument(pair.key()))
74+
.find(|pair| self.keyword_same_as_argument(pair.key()))
7575
.map(|pair| pair.to_option_values());
7676

7777
match option_pair {

apps/web/eslint.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import process from 'process';
22

3-
// eslint-disable-next-line import/no-extraneous-dependencies
43
import { includeIgnoreFile } from '@eslint/compat';
5-
// eslint-disable-next-line import/no-extraneous-dependencies
64
import eslint from '@eslint/js';
75
import { node, next } from '@poolofdeath20/eslint-config';
86
import tseslint from 'typescript-eslint';
@@ -17,7 +15,6 @@ export default tseslint.config(
1715
node,
1816
{
1917
...next,
20-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
2118
rules: {
2219
...next.rules,
2320
'react/jsx-child-element-spacing': 'off',

apps/web/next-sitemap.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const url = process.env.NEXT_PUBLIC_ORIGIN;
33

44
/** @type {import('next-sitemap').IConfig} */
5-
// eslint-disable-next-line no-undef, import/no-commonjs
5+
// eslint-disable-next-line no-undef
66
module.exports = {
77
siteUrl: url,
88
generateRobotsTxt: true, // (optional)

apps/web/package.json

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,59 +13,57 @@
1313
"generate-type-for-ci": "make generate-type-for-ci"
1414
},
1515
"dependencies": {
16-
"@chakra-ui/react": "^2.8.2",
17-
"@emotion/react": "^11.13.3",
18-
"@emotion/styled": "^11.13.0",
16+
"@chakra-ui/react": "^2.10.4",
17+
"@emotion/react": "^11.14.0",
18+
"@emotion/styled": "^11.14.0",
1919
"@poolofdeath20/util": "^0.8.2",
20-
"@supabase/supabase-js": "^2.45.4",
20+
"@supabase/supabase-js": "^2.47.10",
2121
"@tanstack/react-query": "^4.36.1",
2222
"@trpc/client": "^10.45.2",
2323
"@trpc/next": "^10.45.2",
2424
"@trpc/react-query": "^10.45.2",
2525
"@trpc/server": "^10.45.2",
26-
"axios": "^1.7.7",
26+
"axios": "^1.7.9",
2727
"cors": "^2.8.5",
28-
"dotenv": "^16.4.5",
28+
"dotenv": "^16.4.7",
2929
"file-saver": "^2.0.5",
3030
"fuse.js": "^7.0.0",
3131
"hex-rgb": "^5.0.0",
3232
"iwanthue": "^2.0.0",
3333
"jszip": "^3.10.1",
34-
"next": "^14.2.13",
34+
"next": "^15.1.2",
3535
"next-seo": "^6.6.0",
36-
"react": "^18.3.1",
37-
"react-dom": "^18.3.1",
38-
"react-icons": "^5.3.0",
39-
"react-select": "^5.8.1",
40-
"react-syntax-highlighter": "^15.5.0",
41-
"react-toastify": "^10.0.5",
42-
"superjson": "^2.2.1",
36+
"react": "^19.0.0",
37+
"react-dom": "^19.0.0",
38+
"react-icons": "^5.4.0",
39+
"react-select": "^5.9.0",
40+
"react-syntax-highlighter": "^15.6.1",
41+
"react-toastify": "^11.0.2",
42+
"superjson": "^2.2.2",
4343
"valibot": "^0.42.1"
4444
},
4545
"devDependencies": {
4646
"@ducanh2912/next-pwa": "^10.2.9",
47-
"@poolofdeath20/eslint-config": "^0.4.1",
47+
"@poolofdeath20/eslint-config": "^0.4.2",
4848
"@poolofdeath20/tsconfig": "^0.1.1",
4949
"@types/cors": "^2.8.17",
5050
"@types/file-saver": "^2.0.7",
5151
"@types/jest-image-snapshot": "^6.4.0",
52-
"@types/react": "^18.3.10",
53-
"@types/react-dom": "^18.3.0",
52+
"@types/react": "^19.0.2",
53+
"@types/react-dom": "^19.0.2",
5454
"@types/react-syntax-highlighter": "^15.5.13",
55-
"@typescript-eslint/eslint-plugin": "^8.7.0",
56-
"@typescript-eslint/parser": "^8.7.0",
57-
"ci-info": "^4.0.0",
58-
"eslint": "^9.11.1",
55+
"ci-info": "^4.1.0",
56+
"eslint": "^9.17.0",
5957
"gen-env-type-def": "^0.0.4",
6058
"jest-image-snapshot": "^6.4.0",
61-
"knip": "^5.30.6",
59+
"knip": "^5.41.1",
6260
"next-sitemap": "^4.2.3",
63-
"prettier": "^3.3.3",
61+
"prettier": "^3.4.2",
6462
"puppeteer": "^22.15.0",
65-
"sql-formatter": "15.4.2",
66-
"supabase": "^1.200.3",
67-
"typescript": "^5.6.2",
68-
"vite-node": "^2.1.1",
69-
"vitest": "^2.1.1"
63+
"sql-formatter": "15.4.8",
64+
"supabase": "^2.1.1",
65+
"typescript": "^5.7.2",
66+
"vite-node": "^2.1.8",
67+
"vitest": "^2.1.8"
7068
}
7169
}

apps/web/pages/templates/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import React from 'react';
2525
import { ToastContainer, toast } from 'react-toastify';
2626
import { parse, string } from 'valibot';
2727

28-
import 'react-toastify/dist/ReactToastify.min.css';
28+
import 'react-toastify/dist/ReactToastify.css';
2929

3030
import Layout from '../../src/web/components/layout';
3131
import Seo from '../../src/web/components/seo';

apps/web/script/site/webmanifest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from 'fs';
22

3-
// eslint-disable-next-line import/no-relative-packages
43
import pkg from '../../../../package.json';
54

65
const main = () => {

apps/web/src/api/database/persistence/util.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
1-
import type { PostgrestError } from '@supabase/supabase-js';
2-
31
import { AsyncOperation } from '@poolofdeath20/util';
42

53
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
64
class DatabaseOperation {
75
static readonly succeed = AsyncOperation.succeed;
86

9-
static readonly failed = (error: string | PostgrestError | Error) => {
10-
return AsyncOperation.failed(
11-
typeof error === 'string'
12-
? error
13-
: error instanceof Error
14-
? error
15-
: `${error.code + error.message}\n${error.details}\n${
16-
error.hint
17-
}`
18-
);
7+
static readonly failed = (error: string | Error) => {
8+
return AsyncOperation.failed(error);
199
};
2010
}
2111

apps/web/src/api/scrapper/index.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,11 @@ class Scrapper {
6060
};
6161

6262
readonly latestTimeCommitted = async () => {
63-
return (
64-
axios
65-
.get(
66-
'https://api.github.com/repos/github/gitignore/branches/main'
67-
)
68-
.then(singleFlowParser(schemas.latestTimeCommitted))
69-
.then(AsyncOperation.succeed)
70-
// eslint-disable-next-line @typescript-eslint/use-unknown-in-catch-callback-variable
71-
.catch(AsyncOperation.failed)
72-
);
63+
return axios
64+
.get('https://api.github.com/repos/github/gitignore/branches/main')
65+
.then(singleFlowParser(schemas.latestTimeCommitted))
66+
.then(AsyncOperation.succeed)
67+
.catch(AsyncOperation.failed);
7368
};
7469

7570
readonly templates = async () => {
@@ -107,7 +102,6 @@ class Scrapper {
107102
);
108103
})
109104
.then(AsyncOperation.succeed)
110-
// eslint-disable-next-line @typescript-eslint/use-unknown-in-catch-callback-variable
111105
.catch(AsyncOperation.failed);
112106

113107
return result.map((list) => {

0 commit comments

Comments
 (0)