Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: adonisjs/session

Stable major release

09 Jan 04:06
a3b9959

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 4eb791c
  • Merge pull request #82 from adonisjs/next a3b9959
  • refactor: export stubsRoot path f64df34
  • chore: bundle types.ts file via tsup as well 5a3e1ff
  • chore: update dependencies 8c99a2a

What's Changed

Full Changelog: v6.4.0...v7.0.0

Add @inputError and change semantics of @error tag

26 Dec 05:04

Choose a tag to compare

Breaking change

  • The @error tag no longer reads error messages for validation errors. Instead, it is now used to read generic error messages.
  • Use @inputError tag to read validation errors.
  • All message properties scoped inside @error @inputError and the @flashMessage tags are prefixed with $ sign.
@error('E_ACCESS_DENIED')
  {{ $message }}
@end

@inputError('username')
  @each(message in $messages)
     {{ message }}
  @end
@end

@flashMessage('cartTotal')
  {{ $message }}
@end

Commits

Full Changelog: v7.0.0-14...v7.0.0-15

Bundle code using tsup

25 Nov 06:02

Choose a tag to compare

Pre-release
  • ci: update node versions ca94473
  • ci: update node versions 6481870
  • refactor: use app.usingEdgeJS boolean to register edge plugin 55399e0
  • chore: update config stub to create a config var and then export it 0ca5d22
  • chore: publish source maps and use tsc for generating types c5197f8
  • chore: update dependencies 4c3250c

Full Changelog: v7.0.0-13...v7.0.0-14

Fix configure command

19 Oct 07:37

Choose a tag to compare

Fix configure command Pre-release
Pre-release
  • refactor: configure command to only allow cookie and memory drivers aa8faf3
  • chore: update dependencies f6f2202

Full Changelog: v7.0.0-12...v7.0.0-13

Breaking change in config

19 Oct 06:55

Choose a tag to compare

Pre-release

The configuration now uses the concept of stores and configures them using the stores object. This release only impacts the users using the alpha release.

import {
  defineConfig,
+ stores
} from '@adonisjs/session'

export default defineConfig({
  // ...rest of the config remains unchanged.

- driver: env.get('SESSION_DRIVER'),
+ store: env.get('SESSION_DRIVER'),

- file: {},
- redis: {},

+ stores: {
+   cookie: stores.cookie(),
+ },
})
  • refactor: use session stores and get rid of drivers collection 3e967ac
  • fix(cookie): change default config (#81) 3a0a592
  • chore: update dependencies 9edb89e

What's Changed

Full Changelog: v7.0.0-11...v7.0.0-12

Add japa plugins to access and set session via api and browser clients

15 Sep 03:52

Choose a tag to compare

  • chore: pin swc/core as the latest release breaks 066861f
  • refactor: remove unused imports aa07fb5
  • ci: install playwright browser 332f6ec
  • feat: implement session browser client 6cbcbb3
  • feat: add japa api client plugin 339afa6
  • chore: update dependencies ae1cc30

v7.0.0-10...v7.0.0-11

Full Changelog: v7.0.0-10...v7.0.0-11

Export factories

05 Sep 09:28

Choose a tag to compare

Export factories Pre-release
Pre-release

v7.0.0-8...v7.0.0-9

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

Publish factories directory

05 Sep 09:34

Choose a tag to compare

Pre-release
  • chore: publish factories directory 1fa1c92

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

Bug fixes and some improvements

23 Aug 10:08

Choose a tag to compare

Pre-release
  • refactor: fix module augmentation code 52450a5
  • ci: increase test timeout for ci ee56e1d
  • fix: handle case when there are no validation errors in flash messages 489909b
  • refactor: session.get use default value when original value is null d47a0e7
  • test: fix broken test 721e7cc
  • feat: register middleware 10fc5ea
  • fix: stubs and codemods 23a51bf

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

Integrate with Edge

22 Aug 16:58

Choose a tag to compare

Integrate with Edge Pre-release
Pre-release
  • chore: update dependencies 9c4230a
  • feat: add edge tags 610ee1a
  • feat: share session and flash messages with edge template e9e9006
  • ci: increase test timeout for ci ac9c1df

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