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 #847

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Version Packages #847

merged 1 commit into from
Aug 7, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 2, 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 main, this PR will be updated.

Releases

@cloudflare/[email protected]

Patch Changes

  • 968171a: Fix autogenerated content also getting appended to the original public/_headers file

  • 2115b9e: fix: implement route specific global scoping strategy

    currently routes all share the same global scope, this can be problematic and cause
    race conditions and failures

    One example of this is the following code that is present in route function files:

    self.webpackChunk_N_E = ...

    and

    self.webpackChunk_N_E.push(...)

    this indicates that an in-memory global collection of the webpack chunks is shared by all routes,
    this combined with the fact that chunks can have their own module state this can easily cause routes to conflict with each other at runtime.

    So, in order to solve the above issue, all route functions are wrapped in a function which accepts as parameters, thus overrides, the self, globalThis and global symbols. The symbols
    will be resolved with proxies that redirect setters to route-scoped in-memory maps and
    getters to the above mentioned map's values and fallback to the original symbol values otherwise
    (i.e. globalThis will be overridden by a proxy that, when setting values, sets them in a separate
    location and, when getting values, gets them from said location if present there or from the real
    globalThis otherwise)

[email protected]

Copy link
Contributor Author

github-actions bot commented Aug 7, 2024

🧪 Prereleases are available for testing 🧪

@cloudflare/next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/10284912486/npm-package-next-on-pages-847

@cloudflare/eslint-plugin-next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/10284912486/npm-package-eslint-plugin-next-on-pages-847

@dario-piotrowicz dario-piotrowicz merged commit 12080f6 into main Aug 7, 2024
8 checks passed
@dario-piotrowicz dario-piotrowicz deleted the changeset-release/main branch August 7, 2024 15:15
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