Skip to content

v3.0.0

Latest

Choose a tag to compare

@gravity-ui-bot gravity-ui-bot released this 22 Dec 12:30
35a8447

3.0.0 (2025-12-22)

⚠ BREAKING CHANGES

  • use internal types for appFinalErrorHandler and appAuthHandler (#102)
  • csrf: change appCsrfMethods type to HttpMethod[] (#104)
  • make http methods uppercase (#103)
  • remove redirect from AuthPolicy and add authDisable redirect option (#101)

Features

  • remove redirect from AuthPolicy and add authDisable redirect option (#101) (17d113e)

Bug Fixes

  • csrf: change appCsrfMethods type to HttpMethod[] (#104) (31bb591)
  • expose withErrorContract (#99) (c115085)
  • make http methods uppercase (#103) (501210d)
  • use internal types for appFinalErrorHandler and appAuthHandler (#102) (6082a25)

🚚 Migration guide

  • Replace AuthPolicy.redirect value with AuthPolicy.required. Now redirect policy should have the same behaviour as the required policy. You can use appAuthDisableRedirect in global scope and authDisableRedirect in route scope to control redirect behaviour.
  • HTTP methods are now uppercase in the HttpMethod type. Keep this in mind when updating.
  • appCsrfMethods is now HttpMethod[] instead of string[]. Keep this in mind when updating.