Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #228

Merged
merged 3 commits into from
Dec 1, 2024
Merged

Version Packages #228

merged 3 commits into from
Dec 1, 2024

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Oct 24, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release, this PR will be updated.

Releases

meteor-vite@1.12.1

Patch Changes

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

vite-bundler@2.3.0

Minor Changes

  • 6900bcf: 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: node:child_process issues on the client #239

    Migration steps

    If your app is using @vitejs/plugin-react and was created using the Meteor-Vite React example app,
    make sure you remove the server/react-refresh.js compatability module from your app.

    // 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.

@github-actions github-actions bot force-pushed the changeset-release/release branch 3 times, most recently from a525e34 to 1f5aa69 Compare November 14, 2024 23:56
@github-actions github-actions bot force-pushed the changeset-release/release branch 14 times, most recently from 6310c5f to fdeba1b Compare December 1, 2024 19:47
@github-actions github-actions bot force-pushed the changeset-release/release branch from fdeba1b to e105112 Compare December 1, 2024 19:51
@JorgenVatle JorgenVatle merged commit 04aac9f into release Dec 1, 2024
@JorgenVatle JorgenVatle deleted the changeset-release/release branch December 1, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant