Skip to content

v20.7.0

Compare
Choose a tag to compare
@RobinTail RobinTail released this 11 Aug 20:07
· 74 commits to master since this release

Changes to migration plugin (single-use tool, regardless SemVer)

  • Better migration plugin by @RobinTail in #1982
    • Requirements: eslint@^9 and typescript-eslint@^8 (may work with previous versions, but it's no longer tested);
    • rules and files have to be defined explicitly;
    • For migrating from v19 use the following minimal config and run eslint --fix:
// eslint.config.js (or .mjs if you're developing in a CommonJS environment)
import parser from "@typescript-eslint/parser";
import migration from "express-zod-api/migration";

export default [
  { languageOptions: { parser }, plugins: { migration } },
  {
    files: ["**/*.ts"], // define the files need to be migrated (source code)
    rules: { "migration/v20": "error" }, // enable the rule explicitly
  },
];

Chores

Full Changelog: v20.6.2...v20.7.0