Skip to content

Commit 7a21e2b

Browse files
committed
feat!: drop node 18
1 parent e40c2c5 commit 7a21e2b

File tree

10 files changed

+2272
-2081
lines changed

10 files changed

+2272
-2081
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
permissions: {}
5+
6+
jobs:
7+
release:
8+
uses: sxzz/workflows/.github/workflows/release-commit.yml@v1
9+
with:
10+
compact: true

.github/workflows/release.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-latest
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
1113
permissions:
1214
contents: write
13-
steps:
14-
- uses: actions/checkout@v4
15-
with:
16-
fetch-depth: 0
17-
18-
- name: Set node
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: lts/*
22-
23-
- run: npx changelogithub
24-
env:
25-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
15+
id-token: write

.github/workflows/unit-test.yml

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,8 @@ on:
66
pull_request:
77
branches: [main]
88

9-
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- name: Set node
15-
uses: actions/setup-node@v4
16-
with:
17-
node-version: lts/*
18-
19-
- name: Setup
20-
run: npm i -g @antfu/ni
21-
22-
- name: Install
23-
run: nci
24-
25-
- name: Lint
26-
run: nr lint
27-
28-
test:
29-
runs-on: ${{ matrix.os }}
30-
31-
strategy:
32-
matrix:
33-
os: [ubuntu-latest, windows-latest]
34-
node: [18, 20, 22]
35-
fail-fast: false
9+
permissions: {}
3610

37-
steps:
38-
- uses: actions/checkout@v4
39-
- name: Set node ${{ matrix.node }}
40-
uses: actions/setup-node@v4
41-
with:
42-
node-version: ${{ matrix.node }}
43-
44-
- name: Setup
45-
run: npm i -g @antfu/ni
46-
47-
- name: Install
48-
run: nci
49-
50-
- name: Build
51-
run: nr build
52-
53-
- name: Test
54-
run: nr test
11+
jobs:
12+
unit-test:
13+
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2022-PRESENT 三咲智子 (https://github.com/sxzz)
3+
Copyright © 2022-PRESENT Kevin Deng (https://github.com/sxzz)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# unplugin-jsx-string [![npm](https://img.shields.io/npm/v/unplugin-jsx-string.svg)](https://npmjs.com/package/unplugin-jsx-string)
1+
# unplugin-jsx-string
2+
3+
[![npm version][npm-version-src]][npm-version-href]
4+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
5+
[![Unit Test][unit-test-src]][unit-test-href]
26

3-
[![Unit Test](https://github.com/unplugin/unplugin-jsx-string/actions/workflows/unit-test.yml/badge.svg)](https://github.com/unplugin/unplugin-jsx-string/actions/workflows/unit-test.yml)
47

58
Converts JSX to HTML strings at compile time.
69

@@ -151,4 +154,13 @@ _More samples are welcome._
151154

152155
## License
153156

154-
[MIT](./LICENSE) License © 2022-PRESENT [三咲智子](https://github.com/sxzz)
157+
[MIT](./LICENSE) License © 2022-PRESENT [Kevin Deng](https://github.com/sxzz)
158+
159+
<!-- Badges -->
160+
161+
[npm-version-src]: https://img.shields.io/npm/v/unplugin-jsx-string.svg
162+
[npm-version-href]: https://npmjs.com/package/unplugin-jsx-string
163+
[npm-downloads-src]: https://img.shields.io/npm/dm/unplugin-jsx-string
164+
[npm-downloads-href]: https://www.npmcharts.com/compare/unplugin-jsx-string?interval=30
165+
[unit-test-src]: https://github.com/unplugin/unplugin-jsx-string/actions/workflows/unit-test.yml/badge.svg
166+
[unit-test-href]: https://github.com/unplugin/unplugin-jsx-string/actions/workflows/unit-test.yml

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unplugin-jsx-string",
33
"version": "0.9.1",
4-
"packageManager": "pnpm@10.6.1",
4+
"packageManager": "pnpm@10.16.1",
55
"description": "Converts JSX to HTML strings at compile time.",
66
"type": "module",
77
"keywords": [
@@ -22,7 +22,7 @@
2222
"type": "git",
2323
"url": "git+https://github.com/unplugin/unplugin-jsx-string.git"
2424
},
25-
"author": "三咲智子 Kevin Deng <sxzz@sxzz.moe>",
25+
"author": "Kevin Deng <sxzz@sxzz.moe>",
2626
"funding": "https://github.com/sponsors/sxzz",
2727
"files": [
2828
"dist"
@@ -64,34 +64,34 @@
6464
"prepublishOnly": "pnpm run build"
6565
},
6666
"dependencies": {
67-
"@babel/parser": "^7.26.9",
68-
"@babel/types": "^7.26.9",
69-
"entities": "^6.0.0",
67+
"@babel/parser": "^7.28.4",
68+
"@babel/types": "^7.28.4",
69+
"entities": "^7.0.0",
7070
"estree-walker": "^3.0.3",
7171
"jsesc": "^3.1.0",
72-
"magic-string": "^0.30.17",
73-
"unplugin": "^2.2.0",
74-
"unplugin-utils": "^0.2.4"
72+
"magic-string": "^0.30.19",
73+
"unplugin": "^2.3.10",
74+
"unplugin-utils": "^0.3.0"
7575
},
7676
"devDependencies": {
77-
"@sxzz/eslint-config": "^5.3.0",
78-
"@sxzz/prettier-config": "^2.2.1",
77+
"@sxzz/eslint-config": "^7.1.4",
78+
"@sxzz/prettier-config": "^2.2.4",
7979
"@types/benchmark": "^2.1.5",
8080
"@types/jsesc": "^3.0.3",
81-
"@types/node": "^22.13.10",
82-
"@types/react": "^19.0.10",
81+
"@types/node": "^24.5.0",
82+
"@types/react": "^19.1.13",
8383
"benchmark": "^2.1.4",
84-
"bumpp": "^10.0.3",
85-
"eslint": "^9.22.0",
86-
"prettier": "^3.5.3",
87-
"tsdown": "^0.6.4",
88-
"tsx": "^4.19.3",
89-
"typescript": "^5.8.2",
90-
"vite": "^7.0.0",
91-
"vitest": "^3.0.8"
84+
"bumpp": "^10.2.3",
85+
"eslint": "^9.35.0",
86+
"prettier": "^3.6.2",
87+
"tsdown": "^0.15.1",
88+
"tsx": "^4.20.5",
89+
"typescript": "^5.9.2",
90+
"vite": "^7.1.5",
91+
"vitest": "^3.2.4"
9292
},
9393
"engines": {
94-
"node": ">=18.12.0"
94+
"node": ">=20.19.0"
9595
},
9696
"prettier": "@sxzz/prettier-config"
9797
}

playground/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
"typecheck": "vue-tsc --noEmit"
1212
},
1313
"dependencies": {
14-
"@unocss/reset": "^66.1.0-beta.3",
15-
"@vueuse/core": "^13.0.0",
14+
"@unocss/reset": "^66.5.1",
15+
"@vueuse/core": "^13.9.0",
1616
"unplugin-jsx-string": "workspace:*",
17-
"vue": "^3.5.13"
17+
"vue": "^3.5.21"
1818
},
1919
"devDependencies": {
20-
"@iconify-json/carbon": "^1.2.8",
21-
"@vitejs/plugin-vue": "^6.0.0",
22-
"@vue-macros/reactivity-transform": "^3.0.0-beta.3",
23-
"unocss": "^66.1.0-beta.3",
24-
"unplugin-auto-import": "^19.1.1",
25-
"unplugin-vue-components": "^28.4.1",
26-
"vite": "^7.0.0",
27-
"vue-tsc": "^3.0.1"
20+
"@iconify-json/carbon": "^1.2.13",
21+
"@vitejs/plugin-vue": "^6.0.1",
22+
"@vue-macros/reactivity-transform": "^3.0.0-rc.0",
23+
"unocss": "^66.5.1",
24+
"unplugin-auto-import": "^20.1.0",
25+
"unplugin-vue-components": "^29.0.0",
26+
"vite": "^7.1.5",
27+
"vue-tsc": "^3.0.7"
2828
}
2929
}

0 commit comments

Comments
 (0)