Skip to content

Commit 5d0b6b9

Browse files
authored
Bump dependencies, migrate to ESLint 9, fix typos (#179)
* Update bun.lock * Bump eslint * Bye ESLint 9 * Update gitignore * Fix typos
1 parent a442e68 commit 5d0b6b9

File tree

10 files changed

+373
-237
lines changed

10 files changed

+373
-237
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 132 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,136 @@
1-
# deps
2-
/node_modules
3-
package-lock.json
4-
5-
# generated content
6-
.contentlayer
7-
.content-collections
8-
.source
9-
10-
# test & build
11-
/coverage
12-
/.next/
13-
/out/
14-
/build
15-
*.tsbuildinfo
16-
17-
# misc
18-
.DS_Store
19-
*.pem
20-
/.pnp
21-
.pnp.js
1+
# Logs
2+
logs
3+
*.log
224
npm-debug.log*
235
yarn-debug.log*
246
yarn-error.log*
25-
**/.obsidian
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# vuepress v2.x temp and cache directory
104+
.temp
105+
.cache
106+
107+
# vitepress build output
108+
**/.vitepress/dist
109+
110+
# vitepress cache directory
111+
**/.vitepress/cache
112+
113+
# Docusaurus cache and generated files
114+
.docusaurus
115+
116+
# Serverless directories
117+
.serverless/
118+
119+
# FuseBox cache
120+
.fusebox/
121+
122+
# DynamoDB Local files
123+
.dynamodb/
124+
125+
# TernJS port file
126+
.tern-port
127+
128+
# Stores VSCode versions used for testing VSCode extensions
129+
.vscode-test
26130

27-
# others
28-
.env*.local
29-
.vercel
30-
next-env.d.ts
131+
# yarn v2
132+
.yarn/cache
133+
.yarn/unplugged
134+
.yarn/build-state.yml
135+
.yarn/install-state.gz
136+
.pnp.*

bun.lock

Lines changed: 202 additions & 188 deletions
Large diffs are not rendered by default.

content/docs/faq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Refer to [Nvidia's RTX Video FAQ](https://nvidia.custhelp.com/app/answers/detail
122122

123123
## Transparency bug
124124

125-
Some users encounter the bug where websites are partialy transparent, to resolve it follow bellow:
125+
Some users encounter the bug where websites are partially transparent, to resolve it follow bellow:
126126

127127
1. **Url `about:config`**
128128
2. Search for `browser.tabs.allow_transparent_browser`

content/docs/guides/generic-optimized.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Optimized builds
33
description: Why have optimized builds been removed?
44
---
55

6-
For Windows and Linux, Zen Browser used to have the option to download optimized builds. These builds utilized AVX2 instructions to improve perfomance. These builds have been removed because of the following reasons:
6+
For Windows and Linux, Zen Browser used to have the option to download optimized builds. These builds utilized AVX2 instructions to improve performance. These builds have been removed because of the following reasons:
77

88
1. **The optimized version isn't necessarily faster**: Profile-guided optimizations (PGO) aren't working with the optimized version because Clang fails to handle them properly, leading to a crash. As a result, we cannot build optimized versions if we want to include both PGO and Link Time Optimization (LTO). Additionally, AVX2 increases power consumption and is not ideal for heavy parallel computations.
99

content/docs/user-manual/bookmarks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Taken from the default behavior of Gecko, Zen offers 3 locations (or, groups) fo
6464

6565
### Bookmarks Sidebar
6666

67-
Your bookmarks are also avaialbe via what is known as the [Firefox Sidebar](https://support.mozilla.org/kb/use-firefox-sidebar-access-bookmarks-history-synced). The Sidebar can be opened by adding a Sidebar button to your controls, or preferably by using the shortcut `Ctr/Cmd + B` to open the Bookmarks Sidebar. You can find all of your bookmarks here including entries from both Bookmarks Toolbar and Bookmarks Menu, in the form of a tree structure explorer with access to a searching function at the top.
67+
Your bookmarks are also available via what is known as the [Firefox Sidebar](https://support.mozilla.org/kb/use-firefox-sidebar-access-bookmarks-history-synced). The Sidebar can be opened by adding a Sidebar button to your controls, or preferably by using the shortcut `Ctr/Cmd + B` to open the Bookmarks Sidebar. You can find all of your bookmarks here including entries from both Bookmarks Toolbar and Bookmarks Menu, in the form of a tree structure explorer with access to a searching function at the top.
6868

6969
{/* TODO: *insert video/image* */}
7070
![Bookmarks Sidebar](/assets/user-manual/bookmarks/bookmarks-sidebar.png)

content/docs/user-manual/glance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Once Glance appeared, there's three buttons on its top left side:
1818

1919
- Close button to close the view (can also be done by clicking outside the Glance area).
2020
- Expand button to move the website into a new tab.
21-
- Split button to add the website as a splitted tab.
21+
- Split button to add the website as a split tab.
2222

2323
You can disable/enable Glance and change the trigger method (from `Alt + Click` to `Ctrl + Click` or `Shift + Click`) by opening `Settings` > `Look and Feel` > `Glance`.
2424

content/docs/user-manual/split-view.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ You can create split view simply by open one tab, drag another tab from sidebar
2121
### Using split view
2222
When split view is enabled, the active tab will have an overlay on its top side, containing two buttons: **Drag Handle** `:::` button and **Unsplit Tab** `` button.
2323

24-
{ /* TODO: `insert gif/video of dragging splitted tab and then pressing ‒ button to unsplit it` */}
24+
{ /* TODO: `insert gif/video of dragging split tab and then pressing ‒ button to unsplit it` */}
2525

26-
- With **Drag Handle** `:::` button, you can move a splitted tab to various directions (left, bottom, right, or top side of another tabs).
26+
- With **Drag Handle** `:::` button, you can move a split tab to various directions (left, bottom, right, or top side of another tabs).
2727
- Meanwhile, clicking **Unsplit Tab** `` button will remove the tab and expand it outside the previous split view.
2828
- Currently, you can **unsplit all tabs within a split view** by pressing `Alt + Ctrl/Cmd + U` shortcut.
2929

eslint.config.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineConfig } from "eslint/config";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default defineConfig([{
16+
extends: compat.extends("next/core-web-vitals", "next/typescript"),
17+
}]);

package.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,28 @@
1111
},
1212
"dependencies": {
1313
"@theguild/remark-mermaid": "^0.3.0",
14-
"fumadocs-core": "15.2.2",
15-
"fumadocs-mdx": "11.5.7",
16-
"fumadocs-ui": "15.2.2",
17-
"lucide-react": "^0.487.0",
18-
"next": "15.2.4",
19-
"octokit": "^4.1.2",
14+
"fumadocs-core": "15.2.12",
15+
"fumadocs-mdx": "11.6.1",
16+
"fumadocs-ui": "15.2.12",
17+
"lucide-react": "^0.503.0",
18+
"next": "15.3.1",
19+
"octokit": "^4.1.3",
2020
"react": "^19.1.0",
2121
"react-dom": "^19.1.0"
2222
},
2323
"devDependencies": {
24-
"@tailwindcss/postcss": "^4.0.17",
24+
"@eslint/eslintrc": "^3.3.1",
25+
"@eslint/js": "^9.25.1",
26+
"@tailwindcss/postcss": "^4.1.4",
2527
"@types/mdx": "^2.0.13",
26-
"@types/node": "22.13.16",
27-
"@types/react": "^19.0.12",
28-
"@types/react-dom": "^19.0.4",
29-
"eslint": "^8",
30-
"eslint-config-next": "15.2.4",
28+
"@types/node": "22.15.3",
29+
"@types/react": "^19.1.2",
30+
"@types/react-dom": "^19.1.2",
31+
"eslint": "^9",
32+
"eslint-config-next": "15.3.1",
3133
"lightningcss": "^1.29.3",
3234
"postcss": "^8.5.3",
33-
"tailwindcss": "^4.0.17",
34-
"typescript": "^5.8.2"
35+
"tailwindcss": "^4.1.4",
36+
"typescript": "^5.8.3"
3537
}
3638
}

0 commit comments

Comments
 (0)