Skip to content

Migration help

SteffenBlake edited this page Nov 22, 2026 · 1 revision

Migration help

This guide helps you migrate an existing PoeFilterX project to a newer release. Follow the section for the version you are upgrading to, updating your project files and build scripts where needed.

3.30.1

Upgrading from 3.30.0 to 3.30.1 changes package management, entrypoint discovery, command-line syntax, and some styling behavior.

Replace npm packages with Git imports

PoeFilterX no longer uses npm or node_modules to resolve packages. You no longer need package.json (sometimes called packages.json), package-lock.json, or Node.js to build a filter.

For each dependency, find the Git repository containing its source files and declare an alias at the top level of your entrypoint:

import theme from "https://github.com/YourName/YourFilter.git";
using @theme/styles/main.fss;

Replace old @ paths into node_modules with @alias/path, using paths relative to the Git repository's root. An npm package name or version is not a Git import; check the repository's file layout when updating these paths.

Declare all packages in the selected entrypoint, including packages used by imported files. Imported files cannot declare their own packages, and paths inside a package must stay within that package.

Replace npm install with poefilterx restore, and npm run build with poefilterx. Builds also restore packages automatically. Once you have moved any other scripts or tooling you still need, remove the old npm manifest, lockfile, and node_modules directory if they served only PoeFilterX.

Commit the new lockfile beside your entrypoint, such as entrypoint.filterx.lock.json. It records the Git commits used by your packages. Use poefilterx restore --update to update unpinned packages, or poefilterx build --locked to require a matching lockfile. To pin a package explicitly, use at followed by a full Git commit ID:

import theme from "https://github.com/YourName/YourFilter.git" at "0123456789abcdef0123456789abcdef01234567";

Git must be installed and available in your terminal to restore packages. See Packages for the full workflow.

Choose an entrypoint

Previously, a build without an input path searched for a single .filterx file. Automatic discovery now requires entrypoint.filterx or a filename ending in .entrypoint.filterx, in the current directory.

Rename your main file accordingly, or keep its name and pass it explicitly:

poefilterx build my-filter.filterx

If several entrypoints exist, specify which one to build. In VS Code, use PoeFilterX: Select Entrypoint.

The default output filename follows the input filename, so renaming my-filter.filterx to entrypoint.filterx also changes the output to entrypoint.filter. Preserve your old output name with:

poefilterx build --output my-filter.filter

New projects created with poefilterx init contain entrypoint.filterx and a stylesheet, without an npm manifest.

Update command-line scripts

3.30.0 3.30.1
poefilterx help poefilterx --help
poefilterx help build poefilterx build --help
poefilterx version or poefilterx -v poefilterx --version
poefilterx build --verbose true or --v true poefilterx build --verbosity Debug
npm run build poefilterx or poefilterx build
npm install for filter dependencies poefilterx restore

-v and --v now set verbosity and require a log level. Accepted levels are Trace, Debug, Information, Warning, Error, Critical, and None; the default is Information.

The --path / --p and --output / --o build options remain available. Build variables still use --VariableName value, and environment variables still use the POEFILTERX_ prefix.

See Commands for the current syntax.

Review styles and generated output

  • Font sizes: font-size now accepts 1–45, replacing 18–100. Reduce any values above 45.
  • Background opacity: numeric bg-color values without an explicit alpha now default to 240, previously 255. Change bg-color: 30 20 10; to bg-color: 30 20 10 255; to preserve full opacity. Six-digit hex colors remain fully opaque.
  • Style precedence: selected styles now apply in stylesheet declaration order, with later declarations winning. Previously, the order of names in Style ...; could determine precedence. Move overrides after the styles they override, including across stylesheet imports, rather than relying on the order of names in a filter block.
  • Multiple HasValue guards: each guard must now contain a value. Previously, one nonempty guard could keep a block enabled even when another was empty. Review blocks with multiple or inherited guards if you relied on that behavior.

Rebuild your project and review the generated .filter, especially overlapping styles and conditional blocks. Use Inspecting Items to check representative items and trace their matching rules and styles.

Update your installation

If you installed the old global npm version, uninstall it before installing its replacement:

npm uninstall --global poefilterx

This removes the old CLI, which could otherwise shadow the new executable on your PATH. It does not remove your filter projects. After installing the replacement, open a new terminal and check that poefilterx --version reports the expected version.

The .NET tool now targets .NET 11, replacing .NET 6. Install the .NET 11 SDK before installing or updating the tool:

dotnet tool update --global PoeFilterX
poefilterx --version

If you have not installed the .NET tool before, use dotnet tool install --global PoeFilterX instead of update.

The VS Code extension bundles its server, and standalone executables are also available. See Installation for the available downloads.

Clone this wiki locally