Skip to content

Commit 5a30bf1

Browse files
committed
chore: rename to vue-jsx-vapor
1 parent cf80fa2 commit 5a30bf1

File tree

19 files changed

+97
-79
lines changed

19 files changed

+97
-79
lines changed

CHANGELOG.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
# [1.7.0](https://github.com/unplugin/unplugin-vue-jsx-vapor/compare/v1.6.0...v1.7.0) (2025-03-11)
1+
# [1.7.0](https://github.com/vuejs/vue-jsx-vapor/compare/v1.6.0...v1.7.0) (2025-03-11)
22

33

44
### Bug Fixes
55

6-
* lint ([a93b1e0](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/a93b1e0f511a2f739d765b922383a09a64f19ae0))
6+
* lint ([a93b1e0](https://github.com/vuejs/vue-jsx-vapor/commit/a93b1e0f511a2f739d765b922383a09a64f19ae0))
77

88

99

10-
# [1.6.0](https://github.com/unplugin/unplugin-vue-jsx-vapor/compare/v1.5.0...v1.6.0) (2025-03-10)
10+
# [1.6.0](https://github.com/vuejs/vue-jsx-vapor/compare/v1.5.0...v1.6.0) (2025-03-10)
1111

1212

1313
### Features
1414

15-
* **volar:** auto infer type for useRef ([0e44f13](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/0e44f131a0138f869c0ffd17e24b04a3e93c0c5f))
15+
* **volar:** auto infer type for useRef ([0e44f13](https://github.com/vuejs/vue-jsx-vapor/commit/0e44f131a0138f869c0ffd17e24b04a3e93c0c5f))
1616

1717

1818

19-
# [](https://github.com/unplugin/unplugin-vue-jsx-vapor/compare/v1.0.9...v) (2025-03-09)
19+
# [](https://github.com/vuejs/vue-jsx-vapor/compare/v1.0.9...v) (2025-03-09)
2020

2121

2222
### Bug Fixes
2323

24-
* **babel:** compatibility with CommonJS ([00744bc](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/00744bcd669830f99af864aa37bb6061ebde294b))
25-
* **babel:** prevent slot errors by excluding conditional expressions ([c8b0171](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/c8b01717545303100eee45710e3b508804ad8ea9))
26-
* build error ([7bea325](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/7bea325bbc8298e63fb80bb88288e1216b14e5f6))
27-
* **compiler:** prevent handle comment node for v-slot ([5919124](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/5919124be144fc0601cd831544e78a0caf736629))
28-
* correct export path for api ([a6ec3a3](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/a6ec3a33aa486220bd317f43b8b1f26afa62eefb))
29-
* lint ([1289392](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/12893921d9f004d31db8f99362ac71a29bebd68e))
30-
* lint ([73c3534](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/73c3534853f5580c5ccee8c5493478b6627fe848))
31-
* lint ([1d08537](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/1d08537f023ae6f4392a1fe1e7d349c1164f79cf))
32-
* lint ([03a7140](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/03a7140b6e89cd34fa6eb746323281e39ede74d4))
33-
* lint ([b9edbb7](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/b9edbb7f2c5e306a71555d13baf27b0246ba6257))
34-
* lint ([1cda436](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/1cda436714faf3f79405771a060f79b3aa4ea804))
35-
* lint ([ba64de1](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/ba64de187f672d9e17f21c4054825f84fa9cfc91))
36-
* lint ([2abc350](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/2abc35088596499343fbd49992dadda727b9fa4b))
37-
* remove any ([abf0d0c](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/abf0d0c6a1ea4991f1627a251163d8a3bc22ef87))
38-
* typecheck ([ecbbbab](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/ecbbbab33145e633561405847efd4bf7cf229c98))
39-
* typecheck ([31787c2](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/31787c2028c53300b5128910d0a8d51e0c41cb27))
40-
* **unplugin:** correct type for raw.ts ([ba206e6](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/ba206e61d66bd73d0fd3c00ef9061c711c592457))
41-
* **unplugin:** typecheck ([ab8cbfe](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/ab8cbfeba1cb4bd2a05f201908c5b2259e223d77))
24+
* **babel:** compatibility with CommonJS ([00744bc](https://github.com/vuejs/vue-jsx-vapor/commit/00744bcd669830f99af864aa37bb6061ebde294b))
25+
* **babel:** prevent slot errors by excluding conditional expressions ([c8b0171](https://github.com/vuejs/vue-jsx-vapor/commit/c8b01717545303100eee45710e3b508804ad8ea9))
26+
* build error ([7bea325](https://github.com/vuejs/vue-jsx-vapor/commit/7bea325bbc8298e63fb80bb88288e1216b14e5f6))
27+
* **compiler:** prevent handle comment node for v-slot ([5919124](https://github.com/vuejs/vue-jsx-vapor/commit/5919124be144fc0601cd831544e78a0caf736629))
28+
* correct export path for api ([a6ec3a3](https://github.com/vuejs/vue-jsx-vapor/commit/a6ec3a33aa486220bd317f43b8b1f26afa62eefb))
29+
* lint ([1289392](https://github.com/vuejs/vue-jsx-vapor/commit/12893921d9f004d31db8f99362ac71a29bebd68e))
30+
* lint ([73c3534](https://github.com/vuejs/vue-jsx-vapor/commit/73c3534853f5580c5ccee8c5493478b6627fe848))
31+
* lint ([1d08537](https://github.com/vuejs/vue-jsx-vapor/commit/1d08537f023ae6f4392a1fe1e7d349c1164f79cf))
32+
* lint ([03a7140](https://github.com/vuejs/vue-jsx-vapor/commit/03a7140b6e89cd34fa6eb746323281e39ede74d4))
33+
* lint ([b9edbb7](https://github.com/vuejs/vue-jsx-vapor/commit/b9edbb7f2c5e306a71555d13baf27b0246ba6257))
34+
* lint ([1cda436](https://github.com/vuejs/vue-jsx-vapor/commit/1cda436714faf3f79405771a060f79b3aa4ea804))
35+
* lint ([ba64de1](https://github.com/vuejs/vue-jsx-vapor/commit/ba64de187f672d9e17f21c4054825f84fa9cfc91))
36+
* lint ([2abc350](https://github.com/vuejs/vue-jsx-vapor/commit/2abc35088596499343fbd49992dadda727b9fa4b))
37+
* remove any ([abf0d0c](https://github.com/vuejs/vue-jsx-vapor/commit/abf0d0c6a1ea4991f1627a251163d8a3bc22ef87))
38+
* typecheck ([ecbbbab](https://github.com/vuejs/vue-jsx-vapor/commit/ecbbbab33145e633561405847efd4bf7cf229c98))
39+
* typecheck ([31787c2](https://github.com/vuejs/vue-jsx-vapor/commit/31787c2028c53300b5128910d0a8d51e0c41cb27))
40+
* **unplugin:** correct type for raw.ts ([ba206e6](https://github.com/vuejs/vue-jsx-vapor/commit/ba206e61d66bd73d0fd3c00ef9061c711c592457))
41+
* **unplugin:** typecheck ([ab8cbfe](https://github.com/vuejs/vue-jsx-vapor/commit/ab8cbfeba1cb4bd2a05f201908c5b2259e223d77))
4242

4343

4444
### Features
4545

46-
* add interop mode ([f46592c](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/f46592c2913d484511d2e067fb079bd3d7a68312))
47-
* **babel:** support nested source maps ([3e69eba](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/3e69eba92a2a5be9a21fc85b6433f1008850d851))
48-
* **babel:** support source map ([17d7ea7](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/17d7ea708c8a313e3811312c348a55b1abce7a6c))
49-
* **compiler:** remove babel/parser ([ac494d1](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/ac494d1ea62ca4f61bc8d0ceee9bc47e1f06e606))
50-
* **compiler:** support native v-if directive ([18b77fc](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/18b77fc49df3a500fafa67ebd69ada729bcb7ab1))
51-
* **compiler:** support native v-slot directive ([9db436d](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/9db436dd04e8e8214c3d179586a3b80f63a52777))
52-
* **compiler:** support nested component slot ([a17e04e](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/a17e04ebb5ecbe8d7b7fd37206ba1fc083351e03))
53-
* **compiler:** support string source ([4293948](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/42939489c6d89d5dce1e7d9c2640ec8c07f3ab44))
54-
* **compiler:** support v-once directive ([16a6b49](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/16a6b49ea976209adfb50abd84d24c5bd4641326))
55-
* **compiler:** support v-text directive ([e1445ae](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/e1445ae907837351fe64419173c1bd10b8e29600))
56-
* introducing babel-plugin ([dd2e384](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/dd2e3840030e3b35b682baa6ea4d84516f7de556))
57-
* support AST node compilation ([06eb0a3](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/06eb0a3a8e8247a1c9c93113a958dd1cdd1cf47b))
58-
* **unplugin:** add filename option for source map ([10a6909](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/10a69095e16f642993eee760d5b44f7d6f0b658f))
59-
* **unplugin:** add volar plugin ([7bf1284](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/7bf1284468483f3567aad6466d363ae2928d6a6c))
60-
* **unplugin:** expose raw to support browser environments ([4dc2ffc](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/4dc2ffcce47f888cfb6f9f66ef1b2863401b606d))
46+
* add interop mode ([f46592c](https://github.com/vuejs/vue-jsx-vapor/commit/f46592c2913d484511d2e067fb079bd3d7a68312))
47+
* **babel:** support nested source maps ([3e69eba](https://github.com/vuejs/vue-jsx-vapor/commit/3e69eba92a2a5be9a21fc85b6433f1008850d851))
48+
* **babel:** support source map ([17d7ea7](https://github.com/vuejs/vue-jsx-vapor/commit/17d7ea708c8a313e3811312c348a55b1abce7a6c))
49+
* **compiler:** remove babel/parser ([ac494d1](https://github.com/vuejs/vue-jsx-vapor/commit/ac494d1ea62ca4f61bc8d0ceee9bc47e1f06e606))
50+
* **compiler:** support native v-if directive ([18b77fc](https://github.com/vuejs/vue-jsx-vapor/commit/18b77fc49df3a500fafa67ebd69ada729bcb7ab1))
51+
* **compiler:** support native v-slot directive ([9db436d](https://github.com/vuejs/vue-jsx-vapor/commit/9db436dd04e8e8214c3d179586a3b80f63a52777))
52+
* **compiler:** support nested component slot ([a17e04e](https://github.com/vuejs/vue-jsx-vapor/commit/a17e04ebb5ecbe8d7b7fd37206ba1fc083351e03))
53+
* **compiler:** support string source ([4293948](https://github.com/vuejs/vue-jsx-vapor/commit/42939489c6d89d5dce1e7d9c2640ec8c07f3ab44))
54+
* **compiler:** support v-once directive ([16a6b49](https://github.com/vuejs/vue-jsx-vapor/commit/16a6b49ea976209adfb50abd84d24c5bd4641326))
55+
* **compiler:** support v-text directive ([e1445ae](https://github.com/vuejs/vue-jsx-vapor/commit/e1445ae907837351fe64419173c1bd10b8e29600))
56+
* introducing babel-plugin ([dd2e384](https://github.com/vuejs/vue-jsx-vapor/commit/dd2e3840030e3b35b682baa6ea4d84516f7de556))
57+
* support AST node compilation ([06eb0a3](https://github.com/vuejs/vue-jsx-vapor/commit/06eb0a3a8e8247a1c9c93113a958dd1cdd1cf47b))
58+
* **unplugin:** add filename option for source map ([10a6909](https://github.com/vuejs/vue-jsx-vapor/commit/10a69095e16f642993eee760d5b44f7d6f0b658f))
59+
* **unplugin:** add volar plugin ([7bf1284](https://github.com/vuejs/vue-jsx-vapor/commit/7bf1284468483f3567aad6466d363ae2928d6a6c))
60+
* **unplugin:** expose raw to support browser environments ([4dc2ffc](https://github.com/vuejs/vue-jsx-vapor/commit/4dc2ffcce47f888cfb6f9f66ef1b2863401b606d))
6161

6262

6363
### Reverts
6464

65-
* **unplugin:** add effectScope for helper code ([dfb640b](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/dfb640b30c59ee0103a84e73f40ba803a25050e9))
66-
* vue/vapor ([ea9f738](https://github.com/unplugin/unplugin-vue-jsx-vapor/commit/ea9f738f6ce1a580d14c0518df29d8cae1041434))
65+
* **unplugin:** add effectScope for helper code ([dfb640b](https://github.com/vuejs/vue-jsx-vapor/commit/dfb640b30c59ee0103a84e73f40ba803a25050e9))
66+
* vue/vapor ([ea9f738](https://github.com/vuejs/vue-jsx-vapor/commit/ea9f738f6ce1a580d14c0518df29d8cae1041434))
6767

6868

6969

README.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# unplugin-vue-jsx-vapor
1+
# vue-jsx-vapor
22

3-
[![NPM version](https://img.shields.io/npm/v/unplugin-vue-jsx-vapor?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-vue-jsx-vapor)
3+
[![NPM version](https://img.shields.io/npm/v/vue-jsx-vapor?color=a1b858&label=)](https://www.npmjs.com/package/vue-jsx-vapor)
44

55
Vue JSX Vapor.
66

@@ -9,7 +9,7 @@ Vue JSX Vapor.
99
## Install
1010

1111
```bash
12-
npm i unplugin-vue-jsx-vapor
12+
npm i vue-jsx-vapor
1313
```
1414

1515
> [!CAUTION]
@@ -41,7 +41,25 @@ export default () => {
4141
}
4242
```
4343

44-
2. ✅ Use the `defineComponent` macro from [@vue-macros/jsx-macros](https://github.com/vue-macros/vue-macros/pull/794) to wrapping.
44+
2. ✅ Set the macros option to true, then use the `defineComponent` macro for wrapping.
45+
46+
Setup
47+
48+
```ts
49+
// vite.config.ts
50+
import VueJsxVapor from 'vue-jsx-vapor/vite'
51+
52+
export default defineConfig({
53+
plugins: [
54+
vueJsxVapor({
55+
macros: true
56+
})
57+
]
58+
})
59+
60+
```
61+
62+
Usage
4563

4664
```tsx
4765
const Comp = defineComponent(({ foo }) => {
@@ -63,7 +81,7 @@ export default () => {
6381

6482
```ts
6583
// vite.config.ts
66-
import VueJsxVapor from 'unplugin-vue-jsx-vapor/vite'
84+
import VueJsxVapor from 'vue-jsx-vapor/vite'
6785

6886
export default defineConfig({
6987
plugins: [VueJsxVapor()],
@@ -79,7 +97,7 @@ Example: [`playground/`](./playground/)
7997

8098
```ts
8199
// rollup.config.js
82-
import VueJsxVapor from 'unplugin-vue-jsx-vapor/rollup'
100+
import VueJsxVapor from 'vue-jsx-vapor/rollup'
83101

84102
export default {
85103
plugins: [VueJsxVapor()],
@@ -95,7 +113,7 @@ export default {
95113
// webpack.config.js
96114
module.exports = {
97115
/* ... */
98-
plugins: [require('unplugin-vue-jsx-vapor/webpack')()],
116+
plugins: [require('vue-jsx-vapor/webpack')()],
99117
}
100118
```
101119

@@ -107,7 +125,7 @@ module.exports = {
107125
```ts
108126
// nuxt.config.js
109127
export default defineNuxtConfig({
110-
modules: ['unplugin-vue-jsx-vapor/nuxt'],
128+
modules: ['vue-jsx-vapor/nuxt'],
111129
})
112130
```
113131

@@ -122,7 +140,7 @@ export default defineNuxtConfig({
122140
// vue.config.js
123141
module.exports = {
124142
configureWebpack: {
125-
plugins: [require('unplugin-vue-jsx-vapor/webpack')()],
143+
plugins: [require('vue-jsx-vapor/webpack')()],
126144
},
127145
}
128146
```
@@ -135,7 +153,7 @@ module.exports = {
135153
```ts
136154
// esbuild.config.js
137155
import { build } from 'esbuild'
138-
import VueJsxVapor from 'unplugin-vue-jsx-vapor/esbuild'
156+
import VueJsxVapor from 'vue-jsx-vapor/esbuild'
139157

140158
build({
141159
plugins: [VueJsxVapor()],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"transform"
1212
],
1313
"license": "MIT",
14-
"homepage": "https://github.com/unplugin/unplugin-vue-jsx-vapor#readme",
14+
"homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
1515
"bugs": {
16-
"url": "https://github.com/unplugin/unplugin-vue-jsx-vapor/issues"
16+
"url": "https://github.com/vuejs/vue-jsx-vapor/issues"
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "git+https://github.com/unplugin/unplugin-vue-jsx-vapor.git"
20+
"url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
2121
},
2222
"scripts": {
2323
"dev": "pnpm run --filter=\"./packages/*\" --parallel dev",

packages/babel/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"babel"
1212
],
1313
"license": "MIT",
14-
"homepage": "https://github.com/unplugin/unplugin-vue-jsx-vapor#readme",
14+
"homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
1515
"bugs": {
16-
"url": "https://github.com/unplugin/unplugin-vue-jsx-vapor/issues"
16+
"url": "https://github.com/vuejs/vue-jsx-vapor/issues"
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "git+https://github.com/unplugin/unplugin-vue-jsx-vapor.git"
20+
"url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
2121
},
2222
"files": [
2323
"dist"

packages/babel/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default (): {
101101
})
102102
if (helpers.length) {
103103
statements.unshift(
104-
`import { ${helpers.map((i) => `${i} as _${i}`).join(', ')} } from 'unplugin-vue-jsx-vapor/helper.js';\n`,
104+
`import { ${helpers.map((i) => `${i} as _${i}`).join(', ')} } from 'vue-jsx-vapor/helper.js';\n`,
105105
)
106106
}
107107

packages/babel/test/transform.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('transform', () => {
1414
)!
1515
expect(code).toMatchInlineSnapshot(`
1616
"import { delegateEvents as _delegateEvents, template as _template, createIf as _createIf } from 'vue';
17-
import { setText as _setText } from 'unplugin-vue-jsx-vapor/helper.js';
17+
import { setText as _setText } from 'vue-jsx-vapor/helper.js';
1818
const _t00 = _template("<div></div>", true);
1919
const _t10 = _template("<div>Hello</div>");
2020
const _t11 = _template("<div>World</div>");

packages/compiler/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"compiler"
1212
],
1313
"license": "MIT",
14-
"homepage": "https://github.com/unplugin/unplugin-vue-jsx-vapor#readme",
14+
"homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
1515
"bugs": {
16-
"url": "https://github.com/unplugin/unplugin-vue-jsx-vapor/issues"
16+
"url": "https://github.com/vuejs/vue-jsx-vapor/issues"
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "git+https://github.com/unplugin/unplugin-vue-jsx-vapor.git"
20+
"url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
2121
},
2222
"files": [
2323
"dist"

packages/macros/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"vapor"
1313
],
1414
"license": "MIT",
15-
"homepage": "https://github.com/unplugin/unplugin-vue-jsx-vapor#readme",
15+
"homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
1616
"bugs": {
17-
"url": "https://github.com/unplugin/unplugin-vue-jsx-vapor/issues"
17+
"url": "https://github.com/vuejs/vue-jsx-vapor/issues"
1818
},
1919
"repository": {
2020
"type": "git",
21-
"url": "git+https://github.com/unplugin/unplugin-vue-jsx-vapor.git"
21+
"url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
2222
},
2323
"files": [
2424
"dist"

packages/macros/src/astro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Options } from './options'
22
import unplugin from '.'
33

44
export default (options: Options) => ({
5-
name: 'unplugin-vue-jsx-vapor',
5+
name: 'vue-jsx-vapor',
66
hooks: {
77
'astro:config:setup': (astro: any) => {
88
astro.config.vite.plugins ||= []

packages/macros/src/nuxt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface ModuleOptions extends Options {}
88

99
export default defineNuxtModule<ModuleOptions>({
1010
meta: {
11-
name: 'nuxt-unplugin-vue-jsx-vapor',
11+
name: 'nuxt-vue-jsx-vapor',
1212
configKey: 'unpluginStarter',
1313
},
1414
setup(options) {

0 commit comments

Comments
 (0)