Skip to content

web: Update Deprecated NPM Packages#18335

Merged
GirlBossRush merged 37 commits intomainfrom
bump-core-npm-packages
Nov 24, 2025
Merged

web: Update Deprecated NPM Packages#18335
GirlBossRush merged 37 commits intomainfrom
bump-core-npm-packages

Conversation

@GirlBossRush
Copy link
Contributor

@GirlBossRush GirlBossRush commented Nov 24, 2025

Details

This PR upgrades several long-standing packages which report outdated and deprecation warnings during installation.

Web packages

SFE Rollup

  • The FormData polyfill package has been vendored to remove several warnings about dependencies which the author needed to build the package. The code executed during runtime is quite small.
  • Replaced rollup-plugin-copy with Node's built-in fs API. We're only copying a single Bootstrap.css file so this was pretty painless.

Lex (QL Search)

This package has been marked as deprecated but is required for our QL search. Lex is quite small and has been vendored into a single JS file.

*-config packages

Our shared config files for ESLint, Prettier, and TypeScript have had all their peer dependencies bumped to the latest ranges, allowing Dependabot's PRs to work again.

Additionally, each of these dependencies now supports linting and formatting before publishing.

E2E Test Dependencies

The diamond-shaped dependency graph of ESBuild, Vitest, Storybook, and Playwright has been detangled, for now. ESBuild's sub-zero package numbers continues to make this a recurring issue, but this gets us on the latest everything.

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 2c02f85
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69249489c119f800083a8248

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 2c02f85
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6924948991da4d0008f51c03
😎 Deploy Preview https://deploy-preview-18335--authentik-storybook.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 Nov 24, 2025

Deploy Preview for authentik-integrations canceled.

Name Link
🔨 Latest commit 2c02f85
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69249489b0e0370008c746b9

dispatcher.addEventListener("esbuild:error", listener);
dispatcher.addEventListener("esbuild:end", listener);

const keepAliveInterval = setInterval(() => {
Copy link
Contributor Author

@GirlBossRush GirlBossRush Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes linter error about variable hoisting

"no-func-assign": "error",
"no-implied-eval": "error",
"no-implicit-coercion": "error",
"no-implicit-coercion": ["error", { allow: ["!!"] }],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more consistent with the usage we use in web where the rule is disabled.

* ESLint configuration for JavaScript authentik projects.
*/
export const javaScriptConfig = tseslint.config({
export const javaScriptConfig = defineConfig({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes TSLint's warning about the deprecated config helper.

{
ignores: ignorePatterns,
languageOptions: {
parserOptions,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows consumer of this package to provide a root directory to resolve types. This allows VS Code's ESLint extension to correctly report errors.

@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.97%. Comparing base (e002243) to head (2c02f85).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18335      +/-   ##
==========================================
+ Coverage   92.71%   92.97%   +0.25%     
==========================================
  Files         894      894              
  Lines       48920    48920              
==========================================
+ Hits        45356    45482     +126     
+ Misses       3564     3438     -126     
Flag Coverage Δ
e2e 45.34% <ø> (+0.67%) ⬆️
integration 23.14% <ø> (+<0.01%) ⬆️
unit 91.11% <ø> (+<0.01%) ⬆️
unit-migrate 91.16% <ø> (+<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.

Comment on lines +42 to +43
"@goauthentik/prettier-config": "../prettier-config",
"@goauthentik/tsconfig": "../tsconfig",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*-config packages are published without developer dependencies, allowing us to avoid a hard version here. This also fixes an timing issue when attempting to bump the version of multiple packages at the same time.

@@ -0,0 +1,17 @@
/**
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This technically isn't used, but it is a transitive dependency of rapidoc via Swagger API. The original package is a linchpin for several legacy dependencies which are either no longer in use, or have a more recent patch without reported vulnerabilities.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in authentik Core Nov 24, 2025
@GirlBossRush GirlBossRush requested a review from a team as a code owner November 24, 2025 15:32
@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 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-2c02f853270d0e472f8fd2d3804d263a20df0995
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-2c02f853270d0e472f8fd2d3804d263a20df0995

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

@GirlBossRush GirlBossRush merged commit a8e7652 into main Nov 24, 2025
136 of 138 checks passed
@GirlBossRush GirlBossRush deleted the bump-core-npm-packages branch November 24, 2025 18:31
@github-project-automation github-project-automation bot moved this from In Progress to Done in authentik Core Nov 24, 2025
@BeryJu BeryJu self-assigned this Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants