Releases: solana-foundation/js-configs
Releases · solana-foundation/js-configs
Release list
@solana-config/prettier@0.1.2
Patch Changes
3966519Thanks @lorisleiva! - Loosen theprettierpeer to^3.0.0. The package only ships a JSON config consumed by Prettier, so any 3.x version is supported.
@solana-config/prettier@0.1.1
Patch Changes
e624fe8Thanks @lorisleiva! - Patch bump test after initial release
@solana-config/oxc@0.1.1
Patch Changes
e624fe8Thanks @lorisleiva! - Patch bump test after initial release
@solana-config/eslint@0.2.3
Patch Changes
d58fb57Thanks @lorisleiva! - Revert the ESLint 10 bump and theeslint-plugin-perfectionistswap from 0.2.x. The rule set and plugin choices are restored to what 0.1.x shipped —eslint-plugin-simple-import-sort,eslint-plugin-sort-keys-fix,eslint-plugin-typescript-sort-keys, and the@typescript-eslint/sort-type-constituentsrule are back, and the ESLint and@eslint/jspeers move back to^9.39.1. The 0.2.0 peer-dependency cleanup is preserved:@types/eslint,@types/eslint__js, andjestpeers remain dropped, and the loose>=floors on the single-rule plugins and onglobals,typescript,typescript-eslint,eslint-plugin-jest, andeslint-plugin-react-hooksare kept. Thetypescript-eslint <8.59.0pin from 0.2.2 is preserved as well to keep theno-unnecessary-type-assertionregression at bay. Net effect: consumers on 0.2.x who were seeing import-sort, key-sort, and union-type churn from perfectionist will see those diffs revert; rule behaviors return to what they were before 0.2.0.
@solana-config/eslint@0.2.2
Patch Changes
4084d83Thanks @lorisleiva! - Pintypescript-eslintto^8.0.0 <8.59.0to avoid ano-unnecessary-type-assertionregression introduced in@typescript-eslint/eslint-plugin@8.59.0by PR #11789, which rewrites the rule to flag any assertion where the source is assignable to the target. Multiple confirmed false-positive regressions remain open on the upstream tracker: #12277 (discriminated unions), #12276 (template literals), #12271 (enums), #12270 (nested optional properties), and #12268 (array type inference). Because the rule is enabled witherrorseverity byrecommendedTypeChecked(which this config extends) and is auto-fixable, consumers runningeslint --fixagainst@solana-config/eslint@0.2.1withtypescript-eslint@8.59.xwould see load-bearing assertions silently stripped, breaking compilation in cases where the cast is what teaches TypeScript a function's return type. The pin can be relaxed once upstream lands fixes for the open issues, likely in a future 8.59.x patch or 8.60.x minor.
@solana-config/eslint@0.2.1
Patch Changes
4b579ddThanks @lorisleiva! - Fix ESLint 10 incompatibility by replacing abandoned sorting plugins witheslint-plugin-perfectionist.eslint-plugin-typescript-sort-keys@3.3.0callscontext.getSourceCode(), which was deprecated in ESLint 9 and removed in ESLint 10, leaving the freshly-released 0.2.0 unable to load under its declared ESLint peer; upstream issue #77 has been open since April 2024 with no fix shipped and no publish in over a year. This release drops theeslint-plugin-typescript-sort-keys,eslint-plugin-sort-keys-fix, andeslint-plugin-simple-import-sortpeers in favor of a singleeslint-plugin-perfectionist >=4.0.0peer that is actively maintained and ESLint 10 compatible. The deprecated@typescript-eslint/sort-type-constituentsrule is also removed in favor ofperfectionist/sort-union-types. Although the peer-dependency surface changes, this ships as a patch because 0.2.0 is non-functional under ESLint 10 and consumers cannot use the package without the swap.
@solana-config/eslint@0.2.0
Minor Changes
3966519Thanks @lorisleiva! - Modernize peer dependencies. Drops the redundant@types/eslintand the deprecated@types/eslint__jspeers — moderneslintand@eslint/jsship their own type definitions. Drops thejestpeer; this package never importsjestdirectly, andeslint-plugin-jestdeclares its ownjestpeer. Bumps to ESLint 10 (eslint ^10.3.0,@eslint/js ^10.0.1). Loosens floors where the API surface we use is stable across a whole major:typescript-eslint ^8.0.0,eslint-plugin-jest ^29.0.0,eslint-plugin-react-hooks ^7.0.0. Loosensglobalsto>=14.0.0(the version where thees2020set we use was added),typescriptto>=5.6.0, and the three single-rule plugins (simple-import-sort,sort-keys-fix,typescript-sort-keys) to open>=floors. Tightens repository Node engines to^22.13 || >=24to match ESLint 10's runtime floor.
@solana-config/eslint@0.1.1
Patch Changes
e624fe8Thanks @lorisleiva! - Patch bump test after initial release