Skip to content

Commit

Permalink
Merge branch 'main' into fix/ts-version-user-saved
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored Feb 18, 2025
2 parents 3e45be1 + bbc740b commit c9048cc
Show file tree
Hide file tree
Showing 14 changed files with 912 additions and 763 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: '.node-version'
cache: 'pnpm'

- name: Install dependencies
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ jobs:
with:
fetch-depth: 0

- run: corepack enable
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: '.node-version'
cache: pnpm
registry-url: 'https://registry.npmjs.org'

Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# [4.5.0](https://github.com/vuejs/repl/compare/v4.4.3...v4.5.0) (2025-02-03)


### Features

* pass on descriptor vapor flag when compiling template ([adaaceb](https://github.com/vuejs/repl/commit/adaaceb24984435ae02ab3eda071f10dba9e0362))



## [4.4.3](https://github.com/vuejs/repl/compare/v4.4.2...v4.4.3) (2025-01-02)


Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,28 @@ productionMode.value = true
<Repl :store="store" :editor="Monaco" :showCompileOutput="true" />
</template>
```

Use only the Preview without the editor

```vue
<script setup>
import { ref } from 'vue'
import { Sandbox, useStore } from '@vue/repl'
// retrieve some configuration options from the URL
const query = new URLSearchParams(location.search)
const store = useStore(
{
// custom vue version
vueVersion: ref(query.get('vue')),
},
// initialize repl with previously serialized state
location.hash,
)
</script>
<template>
<Sandbox :store="store" />
</template>
```
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@vue/repl",
"version": "4.4.3",
"version": "4.5.0",
"description": "Vue component for editing Vue components",
"packageManager": "[email protected].2",
"packageManager": "[email protected].5",
"type": "module",
"main": "dist/ssr-stub.js",
"module": "dist/vue-repl.js",
Expand Down Expand Up @@ -71,40 +71,40 @@
},
"homepage": "https://github.com/vuejs/repl#readme",
"devDependencies": {
"@babel/standalone": "^7.26.4",
"@babel/types": "^7.26.3",
"@eslint/js": "^9.17.0",
"@babel/standalone": "^7.26.9",
"@babel/types": "^7.26.9",
"@eslint/js": "^9.20.0",
"@rollup/plugin-replace": "^6.0.2",
"@shikijs/monaco": "^1.25.1",
"@shikijs/monaco": "^1.29.2",
"@types/babel__standalone": "^7.1.9",
"@types/codemirror": "^5.60.15",
"@types/hash-sum": "^1.0.2",
"@types/node": "^22.10.3",
"@types/node": "^22.13.4",
"@vitejs/plugin-vue": "^5.2.1",
"@volar/jsdelivr": "~2.4.11",
"@volar/monaco": "~2.4.11",
"@vue/babel-plugin-jsx": "^1.2.5",
"@vue/language-service": "~2.2.0",
"@vue/language-service": "~2.2.2",
"assert": "^2.1.0",
"bumpp": "^9.9.2",
"bumpp": "^9.11.1",
"codemirror": "^5.65.18",
"conventional-changelog-cli": "^5.0.0",
"eslint": "^9.17.0",
"eslint": "^9.20.1",
"eslint-plugin-vue": "^9.32.0",
"fflate": "^0.8.2",
"hash-sum": "^2.0.0",
"lint-staged": "^15.3.0",
"lint-staged": "^15.4.3",
"monaco-editor-core": "^0.52.2",
"prettier": "^3.4.2",
"shiki": "^1.25.1",
"prettier": "^3.5.1",
"shiki": "^1.29.2",
"simple-git-hooks": "^2.11.1",
"sucrase": "^3.35.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.19.0",
"vite": "^6.0.6",
"vite-plugin-dts": "^4.4.0",
"vscode-uri": "^3.0.8",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.1",
"vite": "^6.1.0",
"vite-plugin-dts": "^4.5.0",
"vscode-uri": "^3.1.0",
"vue": "^3.5.13",
"vue-tsc": "~2.2.0"
"vue-tsc": "~2.2.2"
}
}
Loading

0 comments on commit c9048cc

Please sign in to comment.