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

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Version Packages #365

merged 1 commit into from
Jul 10, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 3, 2023

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

[email protected]

Minor Changes

  • f1f5a95: remove eslint missing-image-loader rule

    the missing-image-loader rule is no longer needed since @cloudflare/next-on-pages
    version 1.3.0 as basic support for the Image component has been introduced
    (in the following PR: feat: images support via /_next/image #357), therefore there isn't
    a real need to warn developers not to use the Image component without a custom loader
    (since the component will just work by default).

    Warning
    This is technically a breaking change to the eslint-plugin-next-on-pages package
    since linting would break for users specifically including the missing-image-loader
    rule (causing Definition for rule 'next-on-pages/missing-loader' was not found errors)
    however currently we don't assume that many people are using the plugin with the rule
    specifically included, moreover the resolution for the breaking change is to simply
    remove the rule from the application's eslint configuration so it is also extremely
    simple to fix, thus we didn't consider this worth a major bump

@cloudflare/[email protected]

Minor Changes

  • cb7ab43: Support for images via /_next/image, falling back to the raw image URL when image resizing is not available.

    Due to limitations with Cloudflare Pages, it is not currently possible to send requests through image resizing.

Patch Changes

  • cf5234a: Prevent the build process from modifying the .vercel/output/functions directory.

  • 92c865b: deduplicate Next.js manifests

    Currently in our functions files we have end up having a number of Next.js internally used manifest objects duplicated.
    These manifests increase as the number of routes increases making the size effects of the duplication quite problematic for medium/large applications
    (for small applications the manifest duplication is not as problematic).

    This change removes such duplication by making sure that we only include each type of manifest once and share such javascript object across the various functions instead (significantly decreasing the output size of medium/large next-on-pages applications).

  • 505be1e: avoid extracting chunks when unnecessary

    As part of our lazy loading implementation (see https://github.com/cloudflare/next-on-pages/blob/main/docs/technical/lazy-loading.md)
    we extract chunks that are used by different routes into separate functions and import those functions in the route files, this allows
    us not to duplicate chunks code.

    This change here makes sure that only the chunks that are actually used by multiple routes get extracted as there isn't a real benefit
    in extracting into separate files chunks that are used by single routes, on the contrary it actually adds overhead and increases
    the number of files produced, which for large next-on-pages applications might be problematic.

@github-actions github-actions bot force-pushed the changeset-release/main branch 8 times, most recently from d4ffa52 to ee373f3 Compare July 10, 2023 14:58
@github-actions github-actions bot force-pushed the changeset-release/main branch from ee373f3 to f3fa7fe Compare July 10, 2023 16:06
@dario-piotrowicz dario-piotrowicz enabled auto-merge (squash) July 10, 2023 16:47
@dario-piotrowicz dario-piotrowicz merged commit b630232 into main Jul 10, 2023
@dario-piotrowicz dario-piotrowicz deleted the changeset-release/main branch July 10, 2023 16:48
Kebab11noel pushed a commit to Likespace-Kft/next-on-pages that referenced this pull request Aug 20, 2023
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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