web: Update dependencies. Fix categories.#15748
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your 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)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-03ac5d53c91e22ce087739ad76a92c3ac38fc5a4Afterwards, run the upgrade commands from the latest release notes. |
7549ef4 to
ee88fbb
Compare
ee88fbb to
5bcf379
Compare
5bcf379 to
03ac5d5
Compare
* 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.
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
devDependenciestl;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/webdepends on its developer dependencies to lint, format, test, and bundle with ESBuild.Generally, the only packages that should continue to use
devDependenciesare those that we publish to NPM. In the case of a publishable package needing a dependency during type checking, we should list them in bothdevDependenciesandpeerDependencies, such as...@goauthentik/eslint-config@goauthentik/prettier-config@goauthentik/docusaurus-configChecklist
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make docs)