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

Bump @astrojs/netlify from 3.0.3 to 4.0.1 #63

Open
wants to merge 1 commit into
base: m
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 25, 2023

Bumps @astrojs/netlify from 3.0.3 to 4.0.1.

Release notes

Sourced from @​astrojs/netlify's releases.

@​astrojs/netlify@​4.0.1

Patch Changes

@​astrojs/netlify@​4.0.0

Major Changes

  • #84 ca64544 Thanks @​Skn0tt! - # Netlify Adapter v4 simplifies static + SSR deployments

    This update is a complete overhaul of the Netlify adapter. It simplifies the user-facing config, and resolves a number of bugs along the way.

    Here's what changes:

    Netlify Context is automatically available via Locals

    In v3, you could use netlify-edge-middleware.ts to inject data from the Netlify context into your Astro locals. In v4, this file is no longer needed because the Netlify context is automatically made available via Astro.locals.netlify.context. You can use this context to access information about the user (like geolocation or IP address), your Netlify site (like deploy ID) or the request (like its request ID or the CDN region it's served from).

    Action Required: Remove the netlify-edge-middleware.ts or netlify-edge-middleware.js file. In your codebase, change all usage of locals injected through that file to use Astro.locals.netlify.context instead.

    Image CDN

    v4 of this adapter integrates your Astro site with Netlify Image CDN. This allows transforming images on-the-fly without impacting build times. It's implemented using an Astro Image Service, and enabled by default.

    Replacement for On-Demand Builders

    On-Demand Builders (ODB) allows SSR-Rendered pages to be cached using a Time to Live (TTL) strategy. While the Netlify platform continues to support existing pages with ODBs, we now recommend using the much more powerful Fine-Grained Cache Control going forward.

    In v3, you could deploy your SSR-Rendered Astro pages to ODBs by enabling the builders config option, and then specifying the TTL on a per-page basis. In v4, a new cacheOnDemandPages option replaces this config option. Take a look at the README to learn more about this.

    Action Required: Replace the builders config option with cacheOnDemandPages.

    // astro.config.mjs
    export default defineConfig({
      // ...
      adapter: netlify({
    -   builders: true

... (truncated)

Changelog

Sourced from @​astrojs/netlify's changelog.

4.0.1

Patch Changes

4.0.0

Major Changes

  • #84 ca64544 Thanks @​Skn0tt! - # Netlify Adapter v4 simplifies static + SSR deployments

    This update is a complete overhaul of the Netlify adapter. It simplifies the user-facing config, and resolves a number of bugs along the way.

    Here's what changes:

    Netlify Context is automatically available via Locals

    In v3, you could use netlify-edge-middleware.ts to inject data from the Netlify context into your Astro locals. In v4, this file is no longer needed because the Netlify context is automatically made available via Astro.locals.netlify.context. You can use this context to access information about the user (like geolocation or IP address), your Netlify site (like deploy ID) or the request (like its request ID or the CDN region it's served from).

    Action Required: Remove the netlify-edge-middleware.ts or netlify-edge-middleware.js file. In your codebase, change all usage of locals injected through that file to use Astro.locals.netlify.context instead.

    Image CDN

    v4 of this adapter integrates your Astro site with Netlify Image CDN. This allows transforming images on-the-fly without impacting build times. It's implemented using an Astro Image Service, and enabled by default.

    Replacement for On-Demand Builders

    On-Demand Builders (ODB) allows SSR-Rendered pages to be cached using a Time to Live (TTL) strategy. While the Netlify platform continues to support existing pages with ODBs, we now recommend using the much more powerful Fine-Grained Cache Control going forward.

    In v3, you could deploy your SSR-Rendered Astro pages to ODBs by enabling the builders config option, and then specifying the TTL on a per-page basis. In v4, a new cacheOnDemandPages option replaces this config option. Take a look at the README to learn more about this.

    Action Required: Replace the builders config option with cacheOnDemandPages.

    // astro.config.mjs
    export default defineConfig({
      // ...

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@astrojs/netlify](https://github.com/withastro/adapters/tree/HEAD/packages/netlify) from 3.0.3 to 4.0.1.
- [Release notes](https://github.com/withastro/adapters/releases)
- [Changelog](https://github.com/withastro/adapters/blob/main/packages/netlify/CHANGELOG.md)
- [Commits](https://github.com/withastro/adapters/commits/@astrojs/[email protected]/packages/netlify)

---
updated-dependencies:
- dependency-name: "@astrojs/netlify"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 25, 2023
Copy link

netlify bot commented Dec 25, 2023

Deploy Preview for w-kbystk ready!

Name Link
🔨 Latest commit b6462d2
🔍 Latest deploy log https://app.netlify.com/sites/w-kbystk/deploys/65892bdb47837e000895342c
😎 Deploy Preview https://deploy-preview-63--w-kbystk.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants