Skip to content

Update dependencies and security improvements#589

Open
jakebellacera wants to merge 3 commits intomainfrom
upgrade-deps
Open

Update dependencies and security improvements#589
jakebellacera wants to merge 3 commits intomainfrom
upgrade-deps

Conversation

@jakebellacera
Copy link
Copy Markdown
Collaborator

@jakebellacera jakebellacera commented Mar 31, 2026

What changed?

This PR includes a number of upgrades and enhancements to how we handle dependencies:

  • Pinning npm and Github action dependency versions. Moving forward, npm package dependencies will be pinned to specific versions and Github Action workflows will be pinned to specific SHAs to avoid unintentional "upgrades" and potential supply chain attacks. Every version will be tested moving forward.
  • Upgraded to Astro 6. No major breaking changes to report aside from zod being upgraded to v4.
  • Improved compatibility with Netlify. The current version of Astro has a known issue with the Netlify adapter double-rendering the Search component. A workaround has been put in place until Problem after upgrading from Astro 5 to 6: imported scripts run twice when imported multiple times using the Netlify adapter withastro/astro#16173 is fixed (should be resolved in the next version of Astro).
  • Introduced lint:fix and format:fix scripts. Previously, pnpm lint was writing changes. In CI contexts we should not rewrite changes, as that can introduce false-positives. CI should fail if lint and format checks fail.

Other packages were updated to their latest versions - no issues to report as well.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for deltaio-site ready!

Name Link
🔨 Latest commit a00f956
🔍 Latest deploy log https://app.netlify.com/projects/deltaio-site/deploys/69cd5d3514c1840008fbf2b2
😎 Deploy Preview https://deploy-preview-589--deltaio-site.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 project configuration.

- Upgrade all dependencies, including major version bumps for astro and
  eslint.
- Pin all dependency versions to exact versions in package.json (removed
  ^ ranges) and configure pnpm to use exact versions by default via
  savePrefix in pnpm-workspace.yaml. Pin GitHub Actions dependencies to
  commit SHAs for supply chain security.
- Remove eslint-plugin-import, which is not compatible with ESLint 10.
- Add lint:fix and format:fix npm scripts; change format script to run
  prettier with --check instead of --write to avoid unintentionally
  writing in ci contexts.
- Only use the @astrojs/netlify adapter in Netlify environments so that
  local production builds can be previewed without it.
- Update _headers to use Netlify's path-matching syntax.
- Update README.md with improved setup instructions and documentation around
  dependency upgrade process. Remove orphaned workflows/pull-request.yml
  from a previous migration.

Signed-off-by: Jake Bellacera <hi@jakebellacera.com>
- Move the inline platform-detection script into the SearchContainer
  custom element's connectedCallback so it runs in the correct lifecycle.
- Add a guard around customElements.define to work around a bug in
  @astrojs/netlify that causes the component to be imported twice (this
  will be fixed in astro@6.1.3 - see
  withastro/astro#16173)

Signed-off-by: Jake Bellacera <hi@jakebellacera.com>
- Import z from astro/zod instead of astro:content
- Replace deprecated z.string().url() with z.url() per Astro 6 migration guide.

Signed-off-by: Jake Bellacera <hi@jakebellacera.com>
@jakebellacera jakebellacera changed the title Update dependencies, switch to npm Update dependencies and security improvements Apr 1, 2026
@jakebellacera jakebellacera requested a review from newfront April 1, 2026 18:03
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