Skip to content

Commit c3f3fba

Browse files
committed
Merge branch 'main' into feat/console
2 parents 54b315f + 5e092b6 commit c3f3fba

17 files changed

+1844
-1636
lines changed

.github/workflows/release-continuous.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ jobs:
99
- name: Checkout code
1010
uses: actions/checkout@v4
1111

12-
- run: corepack enable
13-
- uses: actions/setup-node@v4
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v4
14+
15+
- name: Install Node.js
16+
uses: actions/setup-node@v4
1417
with:
15-
node-version: lts/*
18+
node-version-file: '.node-version'
1619
cache: 'pnpm'
1720

1821
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20-
- run: corepack enable
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
2122

22-
- name: Set node
23+
- name: Install Node.js
2324
uses: actions/setup-node@v4
2425
with:
25-
node-version: lts/*
26+
node-version-file: '.node-version'
2627
cache: pnpm
2728
registry-url: 'https://registry.npmjs.org'
2829

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
## [4.5.1](https://github.com/vuejs/repl/compare/v4.5.0...v4.5.1) (2025-02-19)
2+
3+
4+
### Bug Fixes
5+
6+
* apply builtin import map after deserialize ([#315](https://github.com/vuejs/repl/issues/315)) ([e62ddda](https://github.com/vuejs/repl/commit/e62ddda06fe3339a467f88b13b0271c2a5c7e96d))
7+
* handle `showOutput` work with `layoutReverse: false` mobile-only edge case ([#307](https://github.com/vuejs/repl/pull/307))([0bd4c17](https://github.com/vuejs/repl/commit/0bd4c17b6dd26d4e17387f50e089dd3ffefaf054))
8+
9+
10+
### Features
11+
12+
* add core entry for node usage ([#310](https://github.com/vuejs/repl/issues/310)) ([da105a4](https://github.com/vuejs/repl/commit/da105a42618899d214701a5fb6549719f73331bb))
13+
* scrollbar style for firefox ([#320](https://github.com/vuejs/repl/issues/320)) ([bbc740b](https://github.com/vuejs/repl/commit/bbc740bfa840dfb6c77824470f1ffdc4a6261e85))
14+
* export `Sandbox` as standalone output component ([#309](https://github.com/vuejs/repl/issues/309)) ([b549715](https://github.com/vuejs/repl/commit/b5497152fefe8f190eca59755bedb27b2f3178f2))
15+
* expose `setImportMap` ([#314](https://github.com/vuejs/repl/pull/314))([9f53bd1](https://github.com/vuejs/repl/commit/9f53bd11aee1d75984e5597878e53bec4ae168e5))
16+
* support cache selected typescript version ([#305](https://github.com/vuejs/repl/issues/305)) ([33ca3c0](https://github.com/vuejs/repl/commit/33ca3c0317aa0418c094ec8f9e6712d81fa11465))
17+
* support vapor template-only component ([#322](https://github.com/vuejs/repl/issues/322)) ([9ae056b](https://github.com/vuejs/repl/commit/9ae056b701ff54446c5c1ec9f29444d5239e0931))
18+
19+
20+
21+
# [4.5.0](https://github.com/vuejs/repl/compare/v4.4.3...v4.5.0) (2025-02-03)
22+
23+
24+
### Features
25+
26+
* pass on descriptor vapor flag when compiling template ([adaaceb](https://github.com/vuejs/repl/commit/adaaceb24984435ae02ab3eda071f10dba9e0362))
27+
28+
29+
30+
## [4.4.3](https://github.com/vuejs/repl/compare/v4.4.2...v4.4.3) (2025-01-02)
31+
32+
33+
### Bug Fixes
34+
35+
* transform jsx for entire file ([48325f9](https://github.com/vuejs/repl/commit/48325f99e010c3065c99efd4fb3e95950cda9596)), closes [#301](https://github.com/vuejs/repl/issues/301) [#300](https://github.com/vuejs/repl/issues/300)
36+
37+
38+
139
## [4.4.2](https://github.com/vuejs/repl/compare/v4.4.1...v4.4.2) (2024-09-16)
240

341

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,28 @@ productionMode.value = true
107107
<Repl :store="store" :editor="Monaco" :showCompileOutput="true" />
108108
</template>
109109
```
110+
111+
Use only the Preview without the editor
112+
113+
```vue
114+
<script setup>
115+
import { ref } from 'vue'
116+
import { Sandbox, useStore } from '@vue/repl'
117+
118+
// retrieve some configuration options from the URL
119+
const query = new URLSearchParams(location.search)
120+
121+
const store = useStore(
122+
{
123+
// custom vue version
124+
vueVersion: ref(query.get('vue')),
125+
},
126+
// initialize repl with previously serialized state
127+
location.hash,
128+
)
129+
</script>
130+
131+
<template>
132+
<Sandbox :store="store" />
133+
</template>
134+
```

package.json

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@vue/repl",
3-
"version": "4.4.2",
3+
"version": "4.5.1",
44
"description": "Vue component for editing Vue components",
5-
"packageManager": "pnpm@9.12.1",
5+
"packageManager": "pnpm@9.15.5",
66
"type": "module",
77
"main": "dist/ssr-stub.js",
88
"module": "dist/vue-repl.js",
@@ -26,6 +26,11 @@
2626
"import": "./dist/codemirror-editor.js",
2727
"require": null
2828
},
29+
"./core": {
30+
"types": "./dist/core.d.ts",
31+
"import": "./dist/core.js",
32+
"require": null
33+
},
2934
"./package.json": "./package.json",
3035
"./style.css": "./dist/vue-repl.css",
3136
"./dist/style.css": "./dist/vue-repl.css"
@@ -71,41 +76,41 @@
7176
},
7277
"homepage": "https://github.com/vuejs/repl#readme",
7378
"devDependencies": {
74-
"@babel/standalone": "^7.25.7",
75-
"@babel/types": "^7.25.7",
76-
"@eslint/js": "^9.12.0",
77-
"@rollup/plugin-replace": "^6.0.1",
78-
"@shikijs/monaco": "^1.22.0",
79-
"@types/babel__standalone": "^7.1.7",
79+
"@babel/standalone": "^7.26.9",
80+
"@babel/types": "^7.26.9",
81+
"@eslint/js": "^9.20.0",
82+
"@rollup/plugin-replace": "^6.0.2",
83+
"@shikijs/monaco": "^1.29.2",
84+
"@types/babel__standalone": "^7.1.9",
8085
"@types/codemirror": "^5.60.15",
8186
"@types/hash-sum": "^1.0.2",
82-
"@types/node": "^22.7.5",
83-
"@vitejs/plugin-vue": "^5.1.4",
84-
"@volar/jsdelivr": "~2.4.6",
85-
"@volar/monaco": "~2.4.6",
87+
"@types/node": "^22.13.4",
88+
"@vitejs/plugin-vue": "^5.2.1",
89+
"@volar/jsdelivr": "~2.4.11",
90+
"@volar/monaco": "~2.4.11",
8691
"@vue/babel-plugin-jsx": "^1.2.5",
87-
"@vue/language-service": "~2.1.6",
92+
"@vue/language-service": "~2.2.2",
8893
"assert": "^2.1.0",
89-
"bumpp": "^9.7.1",
94+
"bumpp": "^9.11.1",
9095
"codemirror": "^5.65.18",
9196
"conventional-changelog-cli": "^5.0.0",
92-
"eslint": "^9.12.0",
93-
"eslint-plugin-vue": "^9.28.0",
97+
"eslint": "^9.20.1",
98+
"eslint-plugin-vue": "^9.32.0",
9499
"fflate": "^0.8.2",
95100
"hash-sum": "^2.0.0",
96-
"lint-staged": "^15.2.10",
97-
"monaco-editor-core": "^0.52.0",
98-
"prettier": "^3.3.3",
99-
"shiki": "^1.22.0",
101+
"lint-staged": "^15.4.3",
102+
"monaco-editor-core": "^0.52.2",
103+
"prettier": "^3.5.1",
104+
"shiki": "^1.29.2",
100105
"simple-git-hooks": "^2.11.1",
101106
"sucrase": "^3.35.0",
102-
"typescript": "^5.6.3",
103-
"typescript-eslint": "^8.8.1",
104-
"vite": "^5.4.8",
105-
"vite-plugin-dts": "^4.2.3",
106-
"vscode-uri": "^3.0.8",
107-
"vue": "^3.5.11",
108-
"vue-tsc": "~2.1.6",
107+
"typescript": "^5.7.3",
108+
"typescript-eslint": "^8.24.1",
109+
"vite": "^6.1.0",
110+
"vite-plugin-dts": "^4.5.0",
111+
"vscode-uri": "^3.1.0",
112+
"vue": "^3.5.13",
113+
"vue-tsc": "~2.2.2",
109114
"luna-console": "^1.3.5",
110115
"luna-data-grid": "^1.3.0",
111116
"luna-dom-viewer": "^1.4.0",

0 commit comments

Comments
 (0)