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

Merged
merged 2 commits into from
May 16, 2023
Merged

Version Packages #213

merged 2 commits into from
May 16, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 2, 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

@cloudflare/[email protected]

Major Changes

  • 3e2dad8: use and rely on AsyncLocalStorage

    previously we've been using the node AsyncLocalStorage in a non-breaking way but now we are committing
    to in and using it to store the global env variables as well

    this is a breaking change since moving forward all app running using @cloudflare/next-on-pages must
    have the nodejs_compat compatibility flag set (before not all needed that)

Minor Changes

  • 6fcb58b: make the experimental minification the default behavior and add an option to disabled it

    as part of this:

    • make --experimental-minify|-e a no-op argument which simply shows a warning which indicates that it is
      a deprecated option (we aren't removing the flag so that we don't break existing build scripts)
    • add a --disable-worker-minification|-m option to disable the minification of the _worker.js script (which
      currently coincides with the experimental minification)
  • e053756: add nodejs_compat runtime check

    add a runtime check for the presence of the nodejs_compat flag at runtime so that if developers
    forget to use such flag instead of receiving an internal server error they receive an error specifically
    telling them that they have not specified the flag

  • 87e183b: New routing system runtime handling and implementation.

    Improves support for advanced routing with Next.js applications on Pages, through leveraging the Vercel build output configuration. The Vercel build output specifies the relevant routing steps that are taken during the lifetime of a request, and this change implements a new system that handles these steps.

  • ea761b8: remove disable-chunks-dedup flag

  • 86df485: Support for the internationalization (i18n) option in next.config.js, and locale redirects.

  • 4d8a708: utilize Wrangler new capability of dynamically importing code to avoid the evaluation/run of javascript code
    when not necessary, reducing the app's startup time (which causes apps to often hit the script startup CPU time limit)

Patch Changes

@dario-piotrowicz dario-piotrowicz added this to the V1 milestone May 2, 2023
@dario-piotrowicz
Copy link
Member

dario-piotrowicz commented May 2, 2023

Package for the V1 release 🙂 😁

@github-actions github-actions bot force-pushed the changeset-release/main branch 11 times, most recently from 7d146ee to 679bd0f Compare May 10, 2023 20:59
@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 1a134f4 to 79a13f5 Compare May 15, 2023 11:36
@github-actions
Copy link
Contributor Author

github-actions bot commented May 15, 2023

🧪 A prerelease is available for testing 🧪

You can install this latest build in your project with:

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

Or you can immediately run this with npx:

npx https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/4991047465/npm-package-next-on-pages-213

@GregBrimble
Copy link
Member

@dario-piotrowicz dario-piotrowicz changed the title Version Packages (rc) Version Package May 16, 2023
@dario-piotrowicz dario-piotrowicz changed the title Version Package Version Packages May 16, 2023
@dario-piotrowicz
Copy link
Member

dario-piotrowicz commented May 16, 2023

Manual Testing

Spot checked on the below

Apps deployed via CI using the v2 beta image

⚠️⚠️⚠️⚠️⚠️⚠️

Warning
the v2 beta image only works if the @cloudflare/next-on-pages dependencies is part of the project
(is present as a (dev) dependency in the package.json), I could not get the build to succeed otherwise
(not much we can do on our side about that)

⚠️⚠️⚠️⚠️⚠️⚠️

Apps deployed via CI using the v1 image

Apps deployed via direct upload

@github-actions github-actions bot changed the title Version Packages Version Packages (rc) May 16, 2023
@dario-piotrowicz dario-piotrowicz changed the title Version Packages (rc) Version Packages May 16, 2023
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.

2 participants