Skip to content

Commit

Permalink
refactor: ⬆️ upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Nov 21, 2024
1 parent 029033a commit a74643d
Show file tree
Hide file tree
Showing 9 changed files with 8,910 additions and 6,504 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --prefer-offline
Expand All @@ -47,7 +47,7 @@ jobs:
DOCS_BASE: '/sodesu/'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: pnpm
registry-url: 'https://registry.npmjs.org'

Expand Down
10 changes: 5 additions & 5 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pnpm add solid-js
当然,你也可以选择引入已经包含了 Solid.js 的 Sodesu:

```js
import Sodesu from 'sodesu/dist/sodesu.aio.mjs';
import Sodesu from 'sodesu/aio';
Sodesu.init({
el: '#sodesu',
serverURL: 'https://your-domain.vercel.app',
Expand All @@ -68,15 +68,15 @@ Sodesu.init({
无论是哪一种方式,都没有引入样式。所以你可以参考 CDN 引入时的办法,在 html 中引入它。但如果你的项目足够工程化,那么你可以直接在你的页面中引入样式:

```js
import 'sodesu-comment/dist/sodesu.css';
import 'sodesu-comment/sodesu.css';
```

或者,如果你的项目已经在使用 UnoCSS,那么你可以将它配置一下:

```js
import { defineConfig, presetWind } from 'unocss';
import presetSodesu from 'sodesu-comment/dist/preset';
import safeList from 'sodesu-comment/dist/safeList';
import presetSodesu from 'sodesu-comment/preset';
import safeList from 'sodesu-comment/safeList';

export default defineConfig({
presets: [presetWind(), presetSodesu()],
Expand All @@ -90,7 +90,7 @@ export default defineConfig({

```js
import { defineConfig, presetWind } from 'unocss';
import presetSodesu from 'sodesu-comment/dist/preset';
import presetSodesu from 'sodesu-comment/preset';

export default defineConfig({
presets: [presetWind(), presetSodesu()],
Expand Down
2 changes: 1 addition & 1 deletion docs/special-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Sodesu.init({

## 自定义 Markdown 渲染器

Sodesu 默认使用 [snarkdown](https://www.npmjs.com/package/@bpmn-io/snarkdown) 渲染 Markdown 预览。作为一个体积只有 1.15kB Gzipped 的 Markdown 渲染器,snarkdown 存在一些缺陷,例如不支持代码高亮。
Sodesu 默认使用 [starkdown](https://www.npmjs.com/package/starkdown) 渲染 Markdown 预览。作为一个体积只有 1.6kB Gzipped 的 Markdown 渲染器,starkdown 存在一些缺陷,例如不支持代码高亮。

Sodesu 提供了自定义 Markdown 渲染器的功能,你可以使用任何你喜欢的 Markdown 渲染器,例如 [marked](https://www.npmjs.com/package/marked)[markdown-it](https://www.npmjs.com/package/markdown-it)[remark](https://www.npmjs.com/package/remark) 等。

Expand Down
109 changes: 47 additions & 62 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sodesu-comment",
"version": "0.0.4",
"description": "Comment system with SolidJS",
"packageManager": "pnpm@8.15.3",
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387",
"type": "module",
"scripts": {
"start": "vite",
Expand All @@ -25,6 +25,13 @@
"blog",
"solid"
],
"typesVersions": {
"*": {
"*": [
"dist/*"
]
}
},
"repository": {
"url": "https://github.com/BeiyanYunyi/sodesu"
},
Expand All @@ -45,111 +52,89 @@
"require": "./dist/sodesu.aio.umd.js",
"default": "./dist/sodesu.aio.umd.js"
},
"./dist/aio": {
"import": "./dist/sodesu.aio.mjs",
"types": "./dist/sodesu.d.ts",
"require": "./dist/sodesu.aio.umd.js",
"default": "./dist/sodesu.aio.umd.js"
},
"./preset": {
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts",
"require": "./dist/preset.cjs",
"default": "./dist/preset.cjs"
},
"./dist/preset": {
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts",
"require": "./dist/preset.cjs",
"default": "./dist/preset.cjs"
},
"./component": {
"import": "./dist/component.mjs",
"types": "./dist/component.d.ts",
"default": "./dist/component.mjs"
},
"./dist/component": {
"import": "./dist/component.mjs",
"types": "./dist/component.d.ts",
"default": "./dist/component.mjs"
},
"./safeList": {
"import": "./dist/safeList.mjs",
"types": "./dist/safeList.d.ts",
"require": "./dist/safeList.cjs",
"default": "./dist/safeList.cjs"
},
"./dist/safeList": {
"import": "./dist/safeList.mjs",
"types": "./dist/safeList.d.ts",
"require": "./dist/safeList.cjs",
"default": "./dist/safeList.cjs"
},
"./dist/*": "./dist/*",
"./src/*": "./src/*",
"./package.json": "./package.json"
},
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@babel/core": "^7.23.9",
"@bpmn-io/snarkdown": "^2.2.0",
"@babel/core": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@solid-primitives/date": "^2.0.19",
"@solid-primitives/storage": "^2.1.2",
"@rollup/plugin-typescript": "^12.1.1",
"@solid-primitives/date": "^2.0.24",
"@solid-primitives/storage": "^4.2.1",
"@traptitech/markdown-it-katex": "^3.6.0",
"@types/babel__core": "^7.20.5",
"@types/node": "^20.11.20",
"@types/node": "^22.9.1",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@unocss/core": "^0.58.5",
"@vite-pwa/vitepress": "^0.4.0",
"@unocss/core": "^0.64.1",
"@vite-pwa/vitepress": "^0.5.3",
"cross-env": "^7.0.3",
"esbuild": "^0.20.1",
"esbuild": "^0.24.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-solid": "^0.13.1",
"katex": "^0.16.9",
"prettier": "^3.2.5",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-solid": "^0.14.4",
"katex": "^0.16.11",
"prettier": "^3.3.3",
"rehype-document": "^7.0.3",
"rehype-format": "^5.0.0",
"rehype-katex": "^7.0.0",
"rehype-stringify": "^10.0.0",
"rehype-format": "^5.0.1",
"rehype-katex": "^7.0.1",
"rehype-stringify": "^10.0.1",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.0",
"rimraf": "^5.0.5",
"rollup": "^4.12.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-summary": "^2.0.0",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"unified": "^11.0.4",
"unocss": "^0.58.5",
"remark-rehype": "^11.1.1",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-summary": "^3.0.0",
"starkdown": "^3.2.9",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"unified": "^11.0.5",
"unocss": "^0.64.1",
"user-agent-data-types": "^0.4.2",
"vite": "^5.1.4",
"vite-plugin-pwa": "^0.19.0",
"vite-plugin-solid": "^2.10.1",
"vitepress": "1.0.0-rc.44",
"vue": "^3.4.20",
"workbox-window": "^7.0.0"
"vite": "^5.4.11",
"vite-plugin-pwa": "^0.21.0",
"vite-plugin-solid": "^2.10.2",
"vitepress": "1.5.0",
"vue": "^3.5.13",
"workbox-window": "^7.3.0"
},
"peerDependencies": {
"solid-js": "^1.7.6"
"solid-js": "^1.9.3"
},
"dependencies": {
"@waline/api": "1.0.0-alpha.7",
"@waline/client": "3.1.3"
"@waline/api": "1.0.0-alpha.8",
"@waline/client": "3.3.2"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit a74643d

Please sign in to comment.