Skip to content

Commit

Permalink
Merge pull request #228 from JorgenVatle/changeset-release/release
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
JorgenVatle authored Dec 1, 2024
2 parents 41b483f + e105112 commit 04aac9f
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 80 deletions.
43 changes: 0 additions & 43 deletions .changeset/chatty-teachers-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-students-sleep.md

This file was deleted.

39 changes: 10 additions & 29 deletions changeset-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,38 @@
"type": "minor"
}
],
"summary": "Store temporary client builds in project root directory to allow all files generated by Vite to be kept in the same `.gitignore` directory.",
"id": "cuddly-lions-eat"
"summary": "Use any available IPC interface for workers instead of relying on one transport strategy\n\n- Automatically include React preamble in apps that depend on `@vitejs/plugin-react`. You no longer need to manually modify your Meteor HTML to inject this yourself. See migration steps below.\n- Use `semver` package instead of a custom parser when determining whether `meteor-vite` is out of date.\n- Use `package-lock.json` instead of `package.json` when determining whether `meteor-vite` is out of date.\n- Added a check to warn you if your app is missing `meteor-node-stubs`. Addresses some potentially confusing runtime errors: #239\n\n## Migration steps\n\nIf your app is using `@vitejs/plugin-react` and was created using the [Meteor-Vite React example app](https://github.com/JorgenVatle/meteor-vite/tree/d3633cb015206cb61168fa135c33b89331afeb04/examples/react), \nmake sure you remove the [`server/react-refresh.js`](https://github.com/JorgenVatle/meteor-vite/blob/d3633cb015206cb61168fa135c33b89331afeb04/examples/react/server/react-refresh.js) compatability module from your app. \n\n```diff\n// server/react-refresh.js\n- /**\n- * Inject React Refresh snippet into HTML served by Meteor in development mode.\n- * Without this snippet, React HMR will not work with Meteor-Vite.\n- *\n- * {@link https://github.com/JorgenVatle/meteor-vite/issues/29}\n- * {@link https://github.com/vitejs/vite-plugin-react/issues/11#discussion_r430879201}\n- */\n- if (Meteor.isDevelopment) {\n- WebAppInternals.registerBoilerplateDataCallback('react-preamble', async (request, data) => {\n- const { host, port } = await getConfig();\n- data.dynamicHead = data.dynamicHead || '';\n- data.dynamicHead += `\n- <script type=\"module\">\n- import RefreshRuntime from \"http://${host}:${port}/@react-refresh\"\n- RefreshRuntime.injectIntoGlobalHook(window)\n- window.$RefreshReg$ = () => {}\n- window.$RefreshSig$ = () => (type) => type\n- window.__vite_plugin_react_preamble_installed__ = true\n- </script>\n- `\n- })\n- }\n```\n\nThe boilerplate is now added automatically by Meteor-Vite when `@vitejs/plugin-react` is detected as a dependency.",
"id": "chatty-teachers-build"
},
{
"releases": [
{
"name": "meteor-vite",
"type": "minor"
}
],
"summary": "Build `serverEntry` bundles using Vite's SSR build process instead of using an inline browser build config.\n- Resolves some of the configuration necessary to get the new server builds to work correctly. Default settings should now work for most users.\n- SSR with Meteor can now be done entirely through Vite's build system.\n- Import aliases no longer need to be defined in a Babel config if you intend to use them in server code. \n\n#### SSR example\n- See the new [Vue + SSR](/examples/vue-ssr) example app to see it in action. Or check the [live preview](https://vue-ssr--meteor-vite.wcaserver.com)! \n\n#### Related issues\n- #195\n- #215\n\nRelated release notes: https://github.com/JorgenVatle/meteor-vite/releases/tag/vite-bundler%402.1.2",
"id": "large-rings-serve"
},
{
"releases": [
{
"name": "@meteor-vite/plugin-zodern-relay",
"type": "patch"
}
],
"summary": "Fix server-side transpilation when building Meteor server with Vite. Fixes an issue where server bundles would use client stubs from babel-plugin-zodern-relay.\n\nRelated issues\n- #195\n- #182",
"id": "yellow-bikes-smoke"
"summary": "Use any available IPC interface for workers instead of relying on one transport strategy",
"id": "orange-students-sleep"
}
],
"releases": [
{
"name": "vite-bundler",
"type": "minor",
"oldVersion": "2.1.3",
"oldVersion": "2.2.0",
"changesets": [
"cuddly-lions-eat"
"chatty-teachers-build"
],
"newVersion": "2.2.0"
"newVersion": "2.3.0"
},
{
"name": "meteor-vite",
"type": "minor",
"oldVersion": "1.11.2",
"changesets": [
"large-rings-serve"
],
"newVersion": "1.12.0"
},
{
"name": "@meteor-vite/plugin-zodern-relay",
"type": "patch",
"oldVersion": "1.0.5",
"oldVersion": "1.12.0",
"changesets": [
"yellow-bikes-smoke"
"orange-students-sleep"
],
"newVersion": "1.0.6"
"newVersion": "1.12.1"
}
]
}
6 changes: 6 additions & 0 deletions npm-packages/meteor-vite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# meteor-vite

## 1.12.1

### Patch Changes

- 32c6ee64: Use any available IPC interface for workers instead of relying on one transport strategy

## 1.12.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/meteor-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meteor-vite",
"version": "1.12.0",
"version": "1.12.1",
"description": "",
"files": [
"dist"
Expand Down
44 changes: 44 additions & 0 deletions packages/vite-bundler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# vite-bundler

## 2.3.0

### Minor Changes

- 6900bcfd: Use any available IPC interface for workers instead of relying on one transport strategy

- Automatically include React preamble in apps that depend on `@vitejs/plugin-react`. You no longer need to manually modify your Meteor HTML to inject this yourself. See migration steps below.
- Use `semver` package instead of a custom parser when determining whether `meteor-vite` is out of date.
- Use `package-lock.json` instead of `package.json` when determining whether `meteor-vite` is out of date.
- Added a check to warn you if your app is missing `meteor-node-stubs`. Addresses some potentially confusing runtime errors: #239

## Migration steps

If your app is using `@vitejs/plugin-react` and was created using the [Meteor-Vite React example app](https://github.com/JorgenVatle/meteor-vite/tree/d3633cb015206cb61168fa135c33b89331afeb04/examples/react),
make sure you remove the [`server/react-refresh.js`](https://github.com/JorgenVatle/meteor-vite/blob/d3633cb015206cb61168fa135c33b89331afeb04/examples/react/server/react-refresh.js) compatability module from your app.

```diff
// server/react-refresh.js
- /**
- * Inject React Refresh snippet into HTML served by Meteor in development mode.
- * Without this snippet, React HMR will not work with Meteor-Vite.
- *
- * {@link https://github.com/JorgenVatle/meteor-vite/issues/29}
- * {@link https://github.com/vitejs/vite-plugin-react/issues/11#discussion_r430879201}
- */
- if (Meteor.isDevelopment) {
- WebAppInternals.registerBoilerplateDataCallback('react-preamble', async (request, data) => {
- const { host, port } = await getConfig();
- data.dynamicHead = data.dynamicHead || '';
- data.dynamicHead += `
- <script type="module">
- import RefreshRuntime from "http://${host}:${port}/@react-refresh"
- RefreshRuntime.injectIntoGlobalHook(window)
- window.$RefreshReg$ = () => {}
- window.$RefreshSig$ = () => (type) => type
- window.__vite_plugin_react_preamble_installed__ = true
- </script>
- `
- })
- }
```

The boilerplate is now added automatically by Meteor-Vite when `@vitejs/plugin-react` is detected as a dependency.

## 2.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-bundler/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'jorgenvatle:vite-bundler',
version: '2.2.0',
version: '2.3.0',
summary: 'Integrate the Vite.js bundler with Meteor',
git: 'https://github.com/JorgenVatle/meteor-vite',
documentation: 'README.md',
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-bundler/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vite-bundler",
"private": true,
"version": "2.2.0",
"version": "2.3.0",
"scripts": {
"publish": "VITE_METEOR_DISABLED=true meteor publish"
}
Expand Down

0 comments on commit 04aac9f

Please sign in to comment.