Releases: adonisjs/session
Make session class macroable and update main exports
- fix: call super b743db5
- feat: make session class macroable 1d85cee
- feat: export ValuesStore, Session and ReadOnlyValuesStore classes 51d5e22
- chore: update peer dependencies fd7987f
- chore: update dependencies fb6289f
- feat: export ValuesStore, Session and ReadOnlyValuesStore classes 10a04b6
What's Changed
New Contributors
Full Changelog: v7.3.0...v7.4.0
Display validation error summary in flash messages errorsBag
After this release, the session package will add the validation errors summary inside the errorsBag
property of flash message. Therefore using the @errors
tag will display a global error message for validation errors too.
Commits
- feat: flash validation errors summary to errorsBag badda3f
Full Changelog: v7.0.0...v7.3.0
Add @errors tag
The @errors
edge tag can be used to grab all errors from the flash messages errorsBag
. You can use it as follows.
@errors()
@each(error in $messages)
{{ error }}
@end
@end
Commits
Full Changelog: v7.0.0...v7.2.0
Make session.config property public
Since the config/session.ts
file exports a config provider, there is no way to get configuration raw configuration from it. Instead, you can use the ctx.session.config
to get a hold of the raw configuration.
Commits
- refactor: make session.config property public 4395100
Full Changelog: v7.1.0...v7.1.1
Do not flash password fields when using flashValidationErrors
The session.flashValidationErrors
will not flash _method
, _csrf
, password
, password_confirmation
fields.
Commits
- refactor: update flashExcept list to exlcude password fields 9e1d030
- chore: update dependencies 4809acb
Full Changelog: v7.0.0...v7.1.0
Stable major release
Please consult the following releases to learn more about the breaking changes and new additions
- Breaking changes - https://github.com/adonisjs/session/releases/tag/v7.0.0-0
- Breaking changes - https://github.com/adonisjs/session/releases/tag/v7.0.0-3
- New additions - https://github.com/adonisjs/session/releases/tag/v7.0.0-7
- New additions - https://github.com/adonisjs/session/releases/tag/v7.0.0-11
- Breaking changes - https://github.com/adonisjs/session/releases/tag/v7.0.0-12
- New additions - https://github.com/adonisjs/session/releases/tag/v7.0.0-15
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
- chore: update dependencies by @targos in #76
- fix(cookie): change default config by @RomainLanz in #81
- Merge to develop for final release by @thetutlage in #82
Full Changelog: v6.4.0...v7.0.0
Add @inputError and change semantics of @error tag
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
- feat: add @InputError tag and change how other edge tags work 8d895c1
- fix: stubs to use latests APIs 9a98c1f
- chore: update dependencies 244cef7
Full Changelog: v7.0.0-14...v7.0.0-15
Bundle code using tsup
- 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
- 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
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
- fix(cookie): change default config by @RomainLanz in #81
Full Changelog: v7.0.0-11...v7.0.0-12