Skip to content

web: Update dependencies. Fix categories.#15748

Merged
GirlBossRush merged 5 commits intomainfrom
web/consistent-dependency-grouping
Jul 24, 2025
Merged

web: Update dependencies. Fix categories.#15748
GirlBossRush merged 5 commits intomainfrom
web/consistent-dependency-grouping

Conversation

@GirlBossRush
Copy link
Contributor

@GirlBossRush GirlBossRush commented Jul 23, 2025

Details

This PR resolves several NPM package warnings in @goauthentik/web.

Update outdated dependencies (where possible)

Generally, any dependency outside of the SFE and WebDriver test suite is bumped to the latest version.

Consistently use our own Vite Lit CSS Plugin

We’ve had trouble with peer dependencies depending on outdated versions of Vite during the Storybook v9 upgrade. This was partially fixed by using our own Vite plugin to rewrite CSS imports.

The change here moves our plugin out of Storybook and into a separate module for shared use in the upcoming Playwright branch.

Move away from devDependencies

tl;dr Developer dependencies needed to generate a bundle are implicitly dependencies, insofar as NPM understands them.

We've recently performed this change in the Docusaurus package.json, and it's a good idea to do the same here since @goauthentik/web depends on its developer dependencies to lint, format, test, and bundle with ESBuild.

Generally, the only packages that should continue to use devDependencies are those that we publish to NPM. In the case of a publishable package needing a dependency during type checking, we should list them in both devDependencies and peerDependencies, such as...

  • @goauthentik/eslint-config
    • Has a developer dependency on ESLint to "lint itself"
    • Has a peer dependency on ESLint so that the consumer can specify a version of ESLint they want to use
  • @goauthentik/prettier-config
    • Has a developer dependency on Prettier to "format itself"
    • Has a peer dependency on Prettier for a consumer
  • @goauthentik/docusaurus-config
    • Has a developer dependency on Docusaurus for type checking before publishing
    • Has a peer dependency on Docusaurus for a consumer

Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@GirlBossRush GirlBossRush self-assigned this Jul 23, 2025
@GirlBossRush GirlBossRush requested review from a team as code owners July 23, 2025 10:21
@netlify
Copy link

netlify bot commented Jul 23, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 03ac5d5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68824e8fa04cc50008ffda78
😎 Deploy Preview https://deploy-preview-15748--authentik-docs.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.

@netlify
Copy link

netlify bot commented Jul 23, 2025

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 03ac5d5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/68824e8fa04cc50008ffda7c
😎 Deploy Preview https://deploy-preview-15748--authentik-integrations.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.

@netlify
Copy link

netlify bot commented Jul 23, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 03ac5d5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/68824e8fa04cc50008ffda74

@codecov
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.18%. Comparing base (068bd34) to head (03ac5d5).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15748      +/-   ##
==========================================
+ Coverage   93.16%   93.18%   +0.01%     
==========================================
  Files         831      831              
  Lines       44226    44226              
==========================================
+ Hits        41204    41211       +7     
+ Misses       3022     3015       -7     
Flag Coverage Δ
e2e 46.59% <ø> (+0.05%) ⬆️
integration 23.46% <ø> (+<0.01%) ⬆️
unit 91.28% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@GirlBossRush GirlBossRush requested a review from a team as a code owner July 23, 2025 10:30
@github-actions
Copy link
Contributor

github-actions bot commented Jul 23, 2025

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-03ac5d53c91e22ce087739ad76a92c3ac38fc5a4
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-03ac5d53c91e22ce087739ad76a92c3ac38fc5a4

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush GirlBossRush force-pushed the web/consistent-dependency-grouping branch from 7549ef4 to ee88fbb Compare July 23, 2025 14:41
@GirlBossRush GirlBossRush force-pushed the web/consistent-dependency-grouping branch from ee88fbb to 5bcf379 Compare July 24, 2025 14:58
@GirlBossRush GirlBossRush force-pushed the web/consistent-dependency-grouping branch from 5bcf379 to 03ac5d5 Compare July 24, 2025 15:17
@GirlBossRush GirlBossRush merged commit 4a933b8 into main Jul 24, 2025
108 checks passed
@GirlBossRush GirlBossRush deleted the web/consistent-dependency-grouping branch July 24, 2025 16:11
tanberry pushed a commit to stazio/authentik that referenced this pull request Jul 24, 2025
* web: Update deps. Avoid devDependencies.

* web: Replace deprecated package with our own.

* web: Clean up dev deps.

* web: Clean up root packages.

* web: Dedupe plugin.
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