Skip to content

Commit

Permalink
release: v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Feb 2, 2023
1 parent 9e0cc7c commit a72dc8e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules/
dist/
playground-temp/
.swc/
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 3 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

## 3.1.0

- Update embedded refresh runtime to 0.14 (fixes [#46](https://github.com/vitejs/vite-plugin-react-swc/issues/46))

## 3.1.0-beta.2

- Fix HMR for styled components exported alongside other components
- Support TypeScript decorators via the new `tsDecorators` option. This requires `experimentalDecorators` in tsconfig.
- Support plugins via the new `plugins` options
- Support TypeScript decorators via the new `tsDecorators` option. This requires `experimentalDecorators` in tsconfig.
- Fix HMR for styled components exported alongside other components
- Update embedded refresh runtime to 0.14 (fixes [#46](https://github.com/vitejs/vite-plugin-react-swc/issues/46))

## 3.0.1

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vitejs/plugin-react-swc-monorepo",
"version": "3.1.0-beta.2",
"version": "3.1.0",
"type": "module",
"private": true,
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ release({
},
generateChangelog: (_, version) => {
console.log(colors.dim("Write package.json & CHANGELOG.md"));
const pkg = JSON.parse(readFileSync("package.json", "utf-8"));
pkg.version = version;
writeFileSync("package.json", `${JSON.stringify(pkg, null, 2)}\n`);
writeFileSync(
"CHANGELOG.md",
changelog.replace("## Unreleased", `## Unreleased\n\n## ${version}`),
Expand Down

0 comments on commit a72dc8e

Please sign in to comment.