Skip to content

v0.32.0

Choose a tag to compare

@github-actions github-actions released this 22 Apr 19:15
· 9 commits to main since this release
d32093d

Minor Changes

  • a5d54d9: Migrate format and Knip presets from JSON to TypeScript with full type safety

    Both adamantite/format and adamantite/analyze exports now resolve to typed TypeScript modules instead of JSON files. New projects get oxfmt.config.ts and knip.config.ts that import and spread the presets, making it easy to override individual options with autocomplete.

    Breaking: Existing JSON-based configs are now legacy formats:

    • .oxfmtrc.json / .oxfmtrc.jsoncoxfmt.config.ts
    • knip.json / knip.jsoncknip.config.ts

    Run adamantite update to migrate automatically. The migration preserves custom overrides and removes the old files.

Patch Changes

  • f22cdfd: Upgrade the bundled oxfmt version to 0.46.0 and enable the new JSDoc formatting option in the Adamantite formatter preset.

    Upgrade the bundled oxlint version to 1.61.0 and update oxlint-tsgolint to 0.21.1 to satisfy oxlint's peer dependency requirement.

    The lint presets now remove these rules:

    • Core: comma-dangle, which is no longer recognized by oxlint
    • Vitest: vitest/prefer-to-be-truthy and vitest/prefer-to-be-falsy, replaced by exact boolean assertions through vitest/prefer-strict-boolean-matchers

    The lint presets also enable these new rules added in recent oxlint releases:

    • Core: no-useless-assignment, object-shorthand, unicorn/consistent-template-literal-escape, unicorn/custom-error-definition, unicorn/no-useless-iterator-to-array, unicorn/prefer-import-meta-properties, and unicorn/switch-case-break-position
    • React: react/hook-use-state and react/prefer-function-component
    • Jest: jest/padding-around-after-all-blocks, jest/prefer-ending-with-an-expect, and jest/valid-expect-in-promise
    • Vitest: vitest/prefer-called-exactly-once-with, vitest/prefer-strict-boolean-matchers, vitest/require-awaited-expect-poll, and vitest/require-mock-type-parameters

    Upgrade the bundled knip version to 6.6.1. This release range improves framework plugin coverage, config hints, workspace handling, and analysis performance.

    The analyze preset now explicitly reports unused catalog entries with catalog: "error" and unused namespace members with namespaceMembers: "warn".

  • cda39ae: Update the bundled Knip config for Knip v6 and refresh the bundled linting and formatting tool versions.

    Newly generated Knip configs now use the v6 schema URLs and drop the removed classMembers rule.

  • 0ae2d85: Rename CI matrix entry from "lint" to "check" for consistency with the adamantite check command