Skip to content

Releases: adonisjs/shield

Remove helmet-csp and do not flash input data for Inertia requests

25 Feb 07:47

Choose a tag to compare

9.0.0 (2026-02-25)

Features

  • remove helmet-csp in favor of inline implementation (c71cdef)
  • do not flash input data for Inertia requests (f7daa82)
  • generate and share csrf token on error as well (c1531f6)
  • flash error under error key (25d3099)

Full Changelog: v8.1.2...v9.0.0

Update dependencies

19 Dec 07:11

Choose a tag to compare

Update dependencies Pre-release
Pre-release

9.0.0-next.2 (2025-12-19)

Full Changelog: v9.0.0-next.1...v9.0.0-next.2

Remove helmet-csp package in favor of inline implementation

22 Sep 12:37

Choose a tag to compare

9.0.0-next.1 (2025-09-22)

Features

  • remove helmet-csp in favor of inline implementation (c71cdef)

Full Changelog: v9.0.0-next.0...v9.0.0-next.1

Target v7 and do not flash input data during Inertia requests

10 Sep 07:31

Choose a tag to compare

9.0.0-next.0 (2025-09-10)

Features

  • do not flash input data for Inertia requests (f7daa82)
  • generate and share csrf token on error as well (c1531f6)

Full Changelog: v8.1.2...v9.0.0-next.0

Generate CSRF token even when the validation has failed

25 Mar 12:20

Choose a tag to compare

8.2.0 (2025-03-25)

Features

  • generate and share csrf token on error as well (c1531f6)

Full Changelog: v8.1.2...v8.2.0

Work with @japa/api-client 3.0

30 Jan 08:33

Choose a tag to compare

8.1.2 (2025-01-30)

What's Changed

New Contributors

Full Changelog: v8.1.1...v8.1.2

Fix shieldApiClient plugin export function

02 Feb 11:09

Choose a tag to compare

  • fix: japa plugin export function 7e7f6c7
  • chore: update dependencies 7c64030
  • docs: update readme e4bc2b8
  • chore: update dependencies 6073a54

Full Changelog: v8.1.0...v8.1.1

Optionally read CSRF exception error message via i18n

22 Jan 14:09

Choose a tag to compare

This release adds support for reading CSRF error message from i18n integration. You can define the translation message for CSRF errors inside the errors.json file as follows.

{
  "E_BAD_CSRF_TOKEN": "Session expired"
}

Also, fixed the bug to include input data when sending CSRF error via flash messages

Commits

  • feat: add csrf error message using i18n 49537e7
  • refactor: move tests_helpers file to test directory as helpers.ts 9d462f6
  • test: update failing tests d5141ae
  • chore: update dependencies 68e2da9
  • fix: flash input data on CSRF error 0273f51
  • chore: update dependencies bbb1d94

Full Changelog: v8.0.1...v8.1.0

Fix peer dependencies range

09 Jan 05:03

Choose a tag to compare

  • fix: peer dependencies range f3c7818

Full Changelog: v8.0.0...v8.0.1

Stable major release

09 Jan 04:59

Choose a tag to compare

Please consult the following releases to learn more about the breaking changes and new additions.

Commits

  • chore: publish under latest tag f9c6235
  • Merge pull request #40 from adonisjs/next bf81729
  • refactor: export stubsRoot and bundle types using tsup as well 910b768
  • chore: update dependencies 681cafd

What's Changed

Full Changelog: v7.1.1...v8.0.0