Skip to content

Releases: adonisjs/shield

Fix shieldApiClient plugin export function

02 Feb 11:09
Compare
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
Compare
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
Compare
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
Compare
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

Use session.flashErrors method to flash CSRF error

26 Dec 05:20
Compare
Choose a tag to compare
  • docs: update readme 8725c25
  • refactor: use session.flashErrors method to flash error into error bag 7c600d7
  • chore: update dependencies fe5bd72
  • refactor: use usingEdgeJS flag to detect is edge is installed 0e9e8e0

Full Changelog: v8.0.0-9...v8.0.0-10

Generate bundled types using TSC

27 Nov 05:42
Compare
Choose a tag to compare
Pre-release
  • refactor: assign exported config to a variable 5b5f1c4
  • test: fix breaking test eb17cb5
  • test: improve coverage 401cd68
  • chore: publish source maps and use tsc for generating types e2122ad
  • chore: update dependencies 19ae559

Full Changelog: v8.0.0-8...v8.0.0-9

Add ApiClient plugin to set CSRF tokens during testing

19 Oct 09:17
Compare
Choose a tag to compare
  • chore: add @japa/api-client as a peer dependency 1fa4199
  • feat: add plugin to work with csrfTokens 671ac72
  • fix: augemented types to surface from the middleware e742c22

Full Changelog: v8.0.0-7...v8.0.0-8

Fix for the last broken release

19 Oct 08:15
Compare
Choose a tag to compare
Pre-release
  • fix: published files list 4739a9f

Full Changelog: v8.0.0-6...v8.0.0-7

Use tsup for bundling

19 Oct 08:12
Compare
Choose a tag to compare
Use tsup for bundling Pre-release
Pre-release
  • chore: use tsup for bundling 3c24527
  • test: add tests for the configure command bcc9e34
  • refactor: internals 7582bf3
  • chore: update dependencies 8b7a593

Full Changelog: v8.0.0-5...v8.0.0-6

Define response.nonce property only when CSP guard is enabled

07 Sep 04:35
Compare
Choose a tag to compare
  • chore: downgrade swc/core version as the latest one is broken 2ebcfc9
  • refactor: generate response.nonce only when csp is enabled bfe7610

Full Changelog: v8.0.0-4...v8.0.0-5