Skip to content

Commit 37463b0

Browse files
committed
feat: support jsr
1 parent f0e7e4b commit 37463b0

File tree

10 files changed

+985
-965
lines changed

10 files changed

+985
-965
lines changed

README.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
</p>
1414

1515
<p align="center">
16+
<a href="https://npmjs.com/package/json-editor-vue"><img alt="npm" src="https://img.shields.io/npm/v/json-editor-vue.svg"></a>
17+
<a href="https://jsr.io/@cloydlau/json-editor-vue"><img alt="jsr" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fjsr-api.sxzz.moe%2Fversion%2F%40cloydlau%2Fjson-editor-vue&query=version&prefix=v&label=jsr&color=%23f7df1e"></a>
18+
<br>
1619
<a href="https://github.com/cloydlau/json-editor-vue/actions/workflows/ci.yml"><img alt="build status" src="https://github.com/cloydlau/json-editor-vue/actions/workflows/ci.yml/badge.svg?branch=main"></a>
1720
<a href="https://bundlephobia.com/package/json-editor-vue"><img alt="minzipped size" src="https://img.shields.io/bundlephobia/minzip/json-editor-vue"></a>
1821
<a href="https://github.com/cloydlau/json-editor-vue#develop"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"></a>
@@ -24,7 +27,7 @@
2427
<a><img src="https://img.shields.io/badge/A_world_of_difference_between-white?style=flat-square"></a> <a href="https://npmcharts.com/compare/json-editor-vue"><img alt="npm downloads" src="https://img.shields.io/npm/dt/json-editor-vue?logo=npm&color=rgba(203,0,0,0.9)"></a> <a><img src="https://img.shields.io/badge/and-white?style=flat-square"></a> <a href="https://github.com/cloydlau/json-editor-vue/stargazers"><img alt="github stars" src="https://img.shields.io/github/stars/cloydlau/json-editor-vue?color=eac54f&logo=github"></a> <a><img src="https://img.shields.io/badge/,_please_hit_the_Star_if_it_helps_🙏-white?style=flat-square"></a>
2528
</p>
2629

27-
<img width="48.5%" src="./docs/text mode.png" alt="text mode">&nbsp;<img width="48.5%" src="./docs/tree mode.png" alt="table mode">
30+
<img width="48.5%" src="./docs/text-mode.png" alt="text mode">&nbsp;<img width="48.5%" src="./docs/tree-mode.png" alt="table mode">
2831

2932
<br>
3033

@@ -106,7 +109,11 @@ Or scoped:
106109
### Vue 3
107110

108111
```shell
112+
# npm
109113
npm i json-editor-vue
114+
115+
# jsr
116+
npx jsr add @cloydlau/json-editor-vue
110117
```
111118

112119
#### Local Registration
@@ -220,7 +227,11 @@ createApp()
220227
### Vue 2.7
221228

222229
```shell
230+
# npm
223231
npm i json-editor-vue
232+
233+
# jsr
234+
npx jsr add @cloydlau/json-editor-vue
224235
```
225236

226237
#### Local Registration
@@ -332,7 +343,12 @@ Vue.use(JsonEditorVue, {
332343
### Vue 2.6 or Earlier
333344

334345
```shell
335-
npm i json-editor-vue @vue/composition-api
346+
# npm
347+
npm i @vue/composition-api json-editor-vue
348+
349+
# jsr
350+
npm i @vue/composition-api
351+
npx jsr add @cloydlau/json-editor-vue
336352
```
337353

338354
#### Local Registration
@@ -466,7 +482,11 @@ Vue.use(JsonEditorVue, {
466482
### Nuxt 3
467483

468484
```shell
485+
# npm
469486
npm i json-editor-vue
487+
488+
# jsr
489+
npx jsr add @cloydlau/json-editor-vue
470490
```
471491

472492
#### Local Registration
@@ -553,7 +573,11 @@ const value = ref()
553573
### Nuxt 2 + Vue 2.7
554574

555575
```shell
576+
# npm
556577
npm i json-editor-vue
578+
579+
# jsr
580+
npx jsr add @cloydlau/json-editor-vue
557581
```
558582

559583
#### Local Registration
@@ -655,7 +679,12 @@ const value = ref()
655679
### Nuxt 2 + Vue 2.6 or Earlier
656680

657681
```shell
658-
npm i json-editor-vue @vue/composition-api
682+
# npm
683+
npm i @vue/composition-api json-editor-vue
684+
685+
# jsr
686+
npm i @vue/composition-api
687+
npx jsr add @cloydlau/json-editor-vue
659688
```
660689

661690
#### Local Registration

docs/README.zh-CN.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
</p>
1414

1515
<p align="center">
16+
<a href="https://npmjs.com/package/json-editor-vue"><img alt="npm" src="https://img.shields.io/npm/v/json-editor-vue.svg"></a>
17+
<a href="https://jsr.io/@cloydlau/json-editor-vue"><img alt="jsr" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fjsr-api.sxzz.moe%2Fversion%2F%40cloydlau%2Fjson-editor-vue&query=version&prefix=v&label=jsr&color=%23f7df1e"></a>
18+
<br>
1619
<a href="https://github.com/cloydlau/json-editor-vue/actions/workflows/ci.yml"><img alt="build status" src="https://github.com/cloydlau/json-editor-vue/actions/workflows/ci.yml/badge.svg?branch=main"></a>
1720
<a href="https://bundlephobia.com/package/json-editor-vue"><img alt="minzipped size" src="https://img.shields.io/bundlephobia/minzip/json-editor-vue"></a>
1821
<a href="https://github.com/cloydlau/json-editor-vue#develop"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"></a>
@@ -24,7 +27,7 @@
2427
<a><img src="https://img.shields.io/badge/可能是整个开源世界-white?style=flat-square"></a> <a href="https://npmcharts.com/compare/json-editor-vue"><img alt="npm downloads" src="https://img.shields.io/npm/dt/json-editor-vue?logo=npm&color=rgba(203,0,0,0.9)"></a> <a><img src="https://img.shields.io/badge/与-white?style=flat-square"></a> <a href="https://github.com/cloydlau/json-editor-vue/stargazers"><img alt="github stars" src="https://img.shields.io/github/stars/cloydlau/json-editor-vue?color=eac54f&logo=github"></a> <a><img src="https://img.shields.io/badge/悬殊最大的仓库,如有帮助,点亮一下星星哦_🙏-white?style=flat-square"></a>
2528
</p>
2629

27-
<img width="48.5%" src="./text mode.png" alt="text mode">&nbsp;<img width="48.5%" src="./tree mode.png" alt="table mode">
30+
<img width="48.5%" src="./text-mode.png" alt="text mode">&nbsp;<img width="48.5%" src="./tree-mode.png" alt="table mode">
2831

2932
<br>
3033

@@ -104,7 +107,11 @@
104107
### Vue 3
105108

106109
```shell
110+
# npm
107111
npm i json-editor-vue
112+
113+
# jsr
114+
npx jsr add @cloydlau/json-editor-vue
108115
```
109116

110117
#### 局部注册
@@ -218,7 +225,11 @@ createApp()
218225
### Vue 2.7
219226

220227
```shell
228+
# npm
221229
npm i json-editor-vue
230+
231+
# jsr
232+
npx jsr add @cloydlau/json-editor-vue
222233
```
223234

224235
#### 局部注册
@@ -330,7 +341,12 @@ Vue.use(JsonEditorVue, {
330341
### Vue 2.6 或更早版本
331342

332343
```shell
333-
npm i json-editor-vue @vue/composition-api
344+
# npm
345+
npm i @vue/composition-api json-editor-vue
346+
347+
# jsr
348+
npm i @vue/composition-api
349+
npx jsr add @cloydlau/json-editor-vue
334350
```
335351

336352
#### 局部注册
@@ -464,7 +480,11 @@ Vue.use(JsonEditorVue, {
464480
### Nuxt 3
465481

466482
```shell
483+
# npm
467484
npm i json-editor-vue
485+
486+
# jsr
487+
npx jsr add @cloydlau/json-editor-vue
468488
```
469489

470490
#### 局部注册
@@ -551,7 +571,11 @@ const value = ref()
551571
### Nuxt 2 + Vue 2.7
552572

553573
```shell
574+
# npm
554575
npm i json-editor-vue
576+
577+
# jsr
578+
npx jsr add @cloydlau/json-editor-vue
555579
```
556580

557581
#### 局部注册
@@ -653,7 +677,12 @@ const value = ref()
653677
### Nuxt 2 + Vue 2.6 或更早版本
654678

655679
```shell
656-
npm i json-editor-vue @vue/composition-api
680+
# npm
681+
npm i @vue/composition-api json-editor-vue
682+
683+
# jsr
684+
npm i @vue/composition-api
685+
npx jsr add @cloydlau/json-editor-vue
657686
```
658687

659688
#### 局部注册
File renamed without changes.
File renamed without changes.

jsr.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@cloydlau/json-editor-vue",
3+
"version": "0.12.0",
4+
"exports": "./dist/json-editor-vue.mjs",
5+
"include": [
6+
"LICENSE",
7+
"README.md",
8+
"package.json",
9+
"jsr.json",
10+
"dist/**",
11+
"docs/**",
12+
"nuxt.ts"
13+
],
14+
"exclude": ["**"]
15+
}

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,52 +72,52 @@
7272
}
7373
},
7474
"dependencies": {
75-
"vanilla-jsoneditor": "^0.21.5",
75+
"vanilla-jsoneditor": "^0.22.0",
7676
"vue-demi": "^0.14.7"
7777
},
7878
"devDependencies": {
79-
"@antfu/eslint-config": "^2.6.4",
80-
"@commitlint/cli": "^18.6.0",
81-
"@commitlint/config-conventional": "^18.6.0",
79+
"@antfu/eslint-config": "^2.7.0",
80+
"@commitlint/cli": "^19.0.3",
81+
"@commitlint/config-conventional": "^19.0.3",
8282
"@types/cross-spawn": "^6.0.6",
8383
"@types/lodash-es": "^4.17.12",
84-
"@types/node": "^20.11.16",
84+
"@types/node": "^20.11.24",
8585
"@types/prompts": "^2.4.9",
86-
"@types/semver": "^7.5.6",
87-
"@vitejs/plugin-vue": "^5.0.3",
88-
"@vitest/ui": "^1.2.2",
89-
"@vue/compiler-sfc": "^3.4.15",
86+
"@types/semver": "^7.5.8",
87+
"@vitejs/plugin-vue": "^5.0.4",
88+
"@vitest/ui": "^1.3.1",
89+
"@vue/compiler-sfc": "^3.4.21",
9090
"@vue/test-utils": "^2.4.4",
9191
"case-police": "^0.6.1",
9292
"cross-spawn": "^7.0.3",
9393
"del": "^7.1.0",
94-
"eslint": "npm:eslint-ts-patch@8.56.0-0",
94+
"eslint": "npm:eslint-ts-patch@8.57.0-0",
9595
"eslint-plugin-format": "^0.1.0",
96-
"eslint-ts-patch": "8.56.0-0",
97-
"esno": "^4.0.0",
98-
"happy-dom": "^13.3.8",
96+
"eslint-ts-patch": "8.57.0-0",
97+
"esno": "^4.7.0",
98+
"happy-dom": "^13.6.2",
9999
"json-editor-vue": "workspace:*",
100100
"kolorist": "^1.8.0",
101101
"lint-staged": "^15.2.2",
102102
"lodash-es": "^4.17.21",
103103
"lossless-json": "^4.0.1",
104104
"magicast": "^0.3.3",
105105
"only-allow": "^1.2.1",
106-
"open": "^10.0.3",
106+
"open": "^10.0.4",
107107
"prompts": "^2.4.2",
108108
"rollup-plugin-visualizer": "^5.12.0",
109109
"semver": "^7.6.0",
110-
"simple-git-hooks": "^2.9.0",
110+
"simple-git-hooks": "^2.10.0",
111111
"typescript": "^5.3.3",
112112
"unplugin-auto-import": "^0.17.5",
113113
"unplugin-vue-components": "^0.26.0",
114-
"vite": "^5.0.12",
115-
"vite-plugin-dts": "^3.7.2",
116-
"vitepress": "1.0.0-rc.41",
117-
"vitest": "^1.2.2",
118-
"vue": "^3.4.15",
114+
"vite": "^5.1.4",
115+
"vite-plugin-dts": "^3.7.3",
116+
"vitepress": "1.0.0-rc.44",
117+
"vitest": "^1.3.1",
118+
"vue": "^3.4.21",
119119
"vue-global-config": "^0.6.0",
120-
"zhlint": "^0.7.4"
120+
"zhlint": "0.7.4"
121121
},
122122
"simple-git-hooks": {
123123
"pre-commit": "pnpm lint-staged",

0 commit comments

Comments
 (0)