Skip to content

Commit e03229b

Browse files
✨ feat: Update remark
1 parent f7b795b commit e03229b

File tree

10 files changed

+87
-84
lines changed

10 files changed

+87
-84
lines changed

package.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@
2121
"dev": "lerna run dev --parallel",
2222
"dev:commit": "npm run dev --prefix=packages/lobe-commit",
2323
"dev:i18n": "npm run dev --prefix=packages/lobe-i18n",
24+
"dev:label": "npm run dev --prefix=packages/lobe-label",
25+
"dev:seo": "npm run dev --prefix=packages/lobe-seo",
2426
"dev:ui": "npm run dev --prefix=packages/lobe-cli-ui",
2527
"link:commit": "npm run link --prefix=packages/lobe-commit",
2628
"link:i18n": "npm run link --prefix=packages/lobe-i18n",
29+
"link:label": "npm run link --prefix=packages/lobe-label",
30+
"link:seo": "npm run link --prefix=packages/lobe-seo",
2731
"lint": "eslint \"{src,packages}/**/*.{js,jsx,ts,tsx}\" --fix",
2832
"lint:md": "remark . --quiet --output",
2933
"prepare": "husky",
@@ -51,29 +55,29 @@
5155
]
5256
},
5357
"devDependencies": {
54-
"@commitlint/cli": "^19.6.0",
58+
"@commitlint/cli": "^19.6.1",
5559
"@lobehub/cli-shebang": "^1.0.2",
56-
"@lobehub/lint": "^1.24.4",
60+
"@lobehub/lint": "^1.25.3",
5761
"@sindresorhus/tsconfig": "^5.1.1",
5862
"@types/lodash-es": "^4.17.12",
59-
"@types/node": "^20.17.7",
63+
"@types/node": "^20.17.12",
6064
"@types/pangu": "^4.0.2",
61-
"@types/react": "^18.3.12",
65+
"@types/react": "^19.0.3",
6266
"@types/update-notifier": "^6.0.8",
63-
"@umijs/lint": "^4.3.35",
67+
"@umijs/lint": "^4.4.4",
6468
"@vitest/coverage-v8": "~1.2.2",
6569
"clean-pkg-json": "^1.2.0",
66-
"commitlint": "^19.6.0",
70+
"commitlint": "^19.6.1",
6771
"eslint": "^8.57.1",
6872
"husky": "^9.1.7",
6973
"ink-testing-library": "^3.0.0",
7074
"lerna": "^8.1.9",
71-
"lint-staged": "^15.2.10",
75+
"lint-staged": "^15.3.0",
7276
"multi-semantic-release": "^3.0.2",
73-
"pkgroll": "^2.5.1",
74-
"prettier": "^3.3.3",
75-
"remark": "^14.0.3",
76-
"remark-cli": "^11.0.0",
77+
"pkgroll": "^2.6.1",
78+
"prettier": "^3.4.2",
79+
"remark": "^15.0.1",
80+
"remark-cli": "^12.0.1",
7781
"semantic-release": "^21.1.2",
7882
"stylelint": "^15.11.0",
7983
"ts-node": "^10.9.2",

packages/lobe-cli-shebang/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"type-check": "tsc --noEmit"
3737
},
3838
"dependencies": {
39-
"commander": "^12.1.0",
39+
"commander": "^13.0.0",
4040
"consola": "^3.2.3",
4141
"update-notifier": "^7.2.0"
4242
},

packages/lobe-cli-ui/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
"type-check": "tsc --noEmit"
3838
},
3939
"dependencies": {
40-
"@inkjs/ui": "^1",
41-
"arr-rotate": "^1",
42-
"consola": "^3",
43-
"fast-deep-equal": "^3",
44-
"figures": "^6",
40+
"@inkjs/ui": "^1.0.0",
41+
"arr-rotate": "^1.0.0",
42+
"consola": "^3.3.3",
43+
"fast-deep-equal": "^3.1.3",
44+
"figures": "^6.1.0",
4545
"ink": "^4.4.1",
4646
"react": "^18.3.1"
4747
},

packages/lobe-commit/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,27 @@
4848
},
4949
"dependencies": {
5050
"@inkjs/ui": "^1.0.0",
51-
"@langchain/core": "^0.2.20",
52-
"@langchain/openai": "^0.2.5",
51+
"@langchain/core": "^0.3.27",
52+
"@langchain/openai": "^0.3.16",
5353
"@lobehub/cli-ui": "1.10.1",
54-
"chalk": "^5.3.0",
55-
"commander": "^12.1.0",
56-
"conf": "^12.0.0",
57-
"dotenv": "^16.4.5",
58-
"execa": "^8.0.1",
54+
"chalk": "^5.4.1",
55+
"commander": "^13.0.0",
56+
"conf": "^13.1.0",
57+
"dotenv": "^16.4.7",
58+
"execa": "^9.5.2",
5959
"fast-deep-equal": "^3.1.3",
6060
"gitconfig": "^2.0.8",
61-
"gpt-tokenizer": "^2.2.1",
61+
"gpt-tokenizer": "^2.8.1",
6262
"ink": "^4.4.1",
63-
"langchain": "^0.2.12",
63+
"langchain": "^0.3.10",
6464
"lodash-es": "^4.17.21",
65-
"octokit": "^3.2.1",
65+
"octokit": "^4.0.3",
6666
"pangu": "^4.0.7",
6767
"path-exists": "^5.0.0",
6868
"react": "^18.3.1",
69-
"swr": "^2.2.5",
70-
"update-notifier": "^7.2.0",
71-
"zustand": "^4.5.4",
69+
"swr": "^2.3.0",
70+
"update-notifier": "^7.3.1",
71+
"zustand": "^5.0.3",
7272
"zustand-utils": "^1.3.2"
7373
},
7474
"engines": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"buttons": {
33
"cancel": "取消",
4-
"ok": "好的"
4+
"ok": "确定"
55
}
66
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Lobe i18n
22

3-
- [x] 🤖 Automate i18n using ChatGPT
4-
- [x] ✂️ Support automatic splitting of large files to avoid ChatGPT token limitations
5-
- [x] ♻️ Support incremental updates for i18n, automatically extract new content based on `entry` files
6-
- [x] 🗂️ Support both single file mode `en.json` and folder `en/common.json`, works well with `i18next`
7-
- [x] 🌲 Support `flat` and `tree` style locale files
8-
- [x] 🛠️ Customize OpenAI model, API proxy, and temperature support
3+
- [x] 🤖 Automate i18n translation using ChatGPT
4+
- [x] ✂️ Support automatic splitting of large files, eliminating concerns about ChatGPT token limits
5+
- [x] ♻️ Support incremental i18n updates, automatically extracting new content according to the `entry` file
6+
- [x] 🗂️ Support single file mode `en.json` and folder mode `en/common.json`, perfectly compatible with `i18next`
7+
- [x] 🌲 Support for `flat` and `tree` locale files
8+
- [x] 🛠️ Support for custom OpenAI models, API proxies, and temperature settings

packages/lobe-i18n/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,42 +55,42 @@
5555
},
5656
"dependencies": {
5757
"@inkjs/ui": "^1.0.0",
58-
"@langchain/core": "^0.2.20",
59-
"@langchain/openai": "^0.2.5",
58+
"@langchain/core": "^0.3.27",
59+
"@langchain/openai": "^0.3.16",
6060
"@lobehub/cli-ui": "1.10.1",
61-
"chalk": "^5.3.0",
62-
"commander": "^12.1.0",
63-
"conf": "^12.0.0",
64-
"consola": "^3.2.3",
61+
"chalk": "^5.4.1",
62+
"commander": "^13.0.0",
63+
"conf": "^13.1.0",
64+
"consola": "^3.3.3",
6565
"cosmiconfig": "^9.0.0",
6666
"dirty-json": "^0.9.2",
67-
"dotenv": "^16.4.5",
67+
"dotenv": "^16.4.7",
6868
"fast-deep-equal": "^3.1.3",
69-
"glob": "^10.4.5",
70-
"gpt-tokenizer": "^2.2.1",
69+
"glob": "^11.0.0",
70+
"gpt-tokenizer": "^2.8.1",
7171
"gray-matter": "^4.0.3",
7272
"ink": "^4.4.1",
73-
"json-stable-stringify": "^1.1.1",
73+
"json-stable-stringify": "^1.2.1",
7474
"just-diff": "^6.0.2",
75-
"langchain": "^0.2.12",
75+
"langchain": "^0.3.10",
7676
"lodash-es": "^4.17.21",
77-
"p-map": "^7.0.2",
77+
"p-map": "^7.0.3",
7878
"pangu": "^4.0.7",
7979
"react": "^18.3.1",
80-
"remark-frontmatter": "^4.0.1",
81-
"remark-gfm": "^3.0.1",
82-
"remark-parse": "^10.0.2",
83-
"remark-stringify": "^10.0.3",
84-
"swr": "^2.2.5",
80+
"remark-frontmatter": "^5.0.0",
81+
"remark-gfm": "^4.0.0",
82+
"remark-parse": "^11.0.0",
83+
"remark-stringify": "^11.0.0",
84+
"swr": "^2.3.0",
8585
"unified": "^11.0.5",
8686
"unist-util-visit": "^5.0.0",
87-
"update-notifier": "^7.2.0",
88-
"zustand": "^4.5.4"
87+
"update-notifier": "^7.3.1",
88+
"zustand": "^5.0.3"
8989
},
9090
"devDependencies": {
91-
"@types/json-stable-stringify": "^1.0.36",
91+
"@types/json-stable-stringify": "^1.1.0",
9292
"@types/lodash-es": "^4.17.12",
93-
"@types/node": "^20.16.13",
93+
"@types/node": "^22.10.5",
9494
"@types/unist": "^3.0.3"
9595
},
9696
"engines": {

packages/lobe-i18n/src/utils/convertMarkdown.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export const convertMdastToMarkdown = async (json: any): Promise<string> => {
6060
bullet: '-',
6161
emphasis: '*',
6262
fences: true,
63-
listItemIndent: 1,
6463
rule: '-',
6564
strong: '*',
6665
tightDefinitions: true,

packages/lobe-label/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
"dependencies": {
4242
"@inkjs/ui": "^1.0.0",
4343
"@lobehub/cli-ui": "1.10.1",
44-
"@octokit/rest": "^20.1.1",
45-
"commander": "^12.1.0",
46-
"conf": "^12.0.0",
47-
"consola": "^3.2.3",
44+
"@octokit/rest": "^21.0.2",
45+
"commander": "^13.0.0",
46+
"conf": "^13.1.0",
47+
"consola": "^3.3.3",
4848
"ink": "^4.4.1",
4949
"lodash-es": "^4.17.21",
5050
"react": "^18.3.1",
51-
"update-notifier": "^7.2.0"
51+
"update-notifier": "^7.3.1"
5252
},
5353
"engines": {
5454
"node": ">=18"

packages/lobe-seo/package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,39 +56,39 @@
5656
},
5757
"dependencies": {
5858
"@inkjs/ui": "^1.0.0",
59-
"@langchain/core": "^0.2.20",
60-
"@langchain/openai": "^0.2.5",
59+
"@langchain/core": "^0.3.27",
60+
"@langchain/openai": "^0.3.16",
6161
"@lobehub/cli-ui": "1.10.1",
62-
"chalk": "^5.3.0",
63-
"commander": "^12.1.0",
64-
"conf": "^12.0.0",
65-
"consola": "^3.2.3",
62+
"chalk": "^5.4.1",
63+
"commander": "^13.0.0",
64+
"conf": "^13.1.0",
65+
"consola": "^3.3.3",
6666
"cosmiconfig": "^9.0.0",
67-
"dotenv": "^16.4.5",
67+
"dotenv": "^16.4.7",
6868
"fast-deep-equal": "^3.1.3",
69-
"glob": "^10.4.5",
70-
"gpt-tokenizer": "^2.2.1",
69+
"glob": "^11.0.0",
70+
"gpt-tokenizer": "^2.8.1",
7171
"gray-matter": "^4.0.3",
7272
"ink": "^4.4.1",
73-
"json-stable-stringify": "^1.1.1",
73+
"json-stable-stringify": "^1.2.1",
7474
"just-diff": "^6.0.2",
75-
"langchain": "^0.2.12",
75+
"langchain": "^0.3.10",
7676
"lodash-es": "^4.17.21",
77-
"p-map": "^7.0.2",
77+
"p-map": "^7.0.3",
7878
"pangu": "^4.0.7",
7979
"react": "^18.3.1",
80-
"remark-frontmatter": "^4.0.1",
81-
"remark-gfm": "^3.0.1",
82-
"remark-parse": "^10.0.2",
83-
"remark-stringify": "^10.0.3",
84-
"swr": "^2.2.5",
80+
"remark-frontmatter": "^5.0.0",
81+
"remark-gfm": "^4.0.0",
82+
"remark-parse": "^11.0.0",
83+
"remark-stringify": "^11.0.0",
84+
"swr": "^2.3.0",
8585
"unified": "^11.0.5",
8686
"unist-util-visit": "^5.0.0",
87-
"update-notifier": "^7.2.0",
88-
"zustand": "^4.5.4"
87+
"update-notifier": "^7.3.1",
88+
"zustand": "^5.0.3"
8989
},
9090
"devDependencies": {
91-
"@types/json-stable-stringify": "^1.0.36"
91+
"@types/json-stable-stringify": "^1.1.0"
9292
},
9393
"engines": {
9494
"node": ">=18"

0 commit comments

Comments
 (0)