Releases: adonisjs/application
`unstable_assembler` retro-compatibility
Changes
The unstable_assembler
configuration is now hooks
, see the previous release.
This release also adds backward compatibility for unstable_assembler
, which is now deprecated, and will be removed in a future release.
Commits
- refactor: keep supporting
unstable_assembler
for now (ea767dd)
Full Changelog: v8.3.0...v8.3.1
Stable assembler hooks
Changes
We're stabilising the API for assembler hooks. A few breaking changes :
- The RC file property is no longer
unstable_assembler
buthooks
. You'll need to make this change in youradonisrc.ts
file
defineConfig({
- unstable_assembler: {
+ hooks: {
onBuildStarting: [() => import(‘@adonisjs/vite/build_hook’)]
}
})
- The
onHttpServerMessage
hook has been removed as it is no longer used. This property was never documented. - The
runner
property has also been removed but has never been used or documented.
Commits
- chore: update dependencies (4f7443e)
- refactor!: remove onHttpServerMessage hook (c8f7878)
- refactor!: rename from
unstable_assembler
tohooks
(02d4ef1) - feat: add new
process.send
parameter (d3e1662)
Full Changelog: v8.2.2...v8.3.0
Update dependencies
- chore: update dependencies (479e3c4)
Full Changelog: v8.2.1...v8.2.2
Fix onHttpServerMessage type
add onHttpServerMessage hook
Commits
- feat: add onHttpServerMessage hook configuration (1dd6e55)
- chore: migrate to release-it (fde3104)
- fix:
onSourceFileChanged
hook not registered (63900d5) - refactor: stricter typing for AssemblerHookNode (884dcc9)
Full Changelog: v8.1.0...v8.2.0
Assembler configuration
Changes
A new configuration section has been added for the Assembler in the RC file. currently unstable, so use at your own risk: breakings changes are probable
We can use it to configure two things :
- A "runner". The runner is the command that will be executed to launch your dev server and your tests.
- Several hooks, such as
onBuildStarting
,onSourceFileChanged
,onDevServerStarted
,onBuildCompleted
, which will allow you to execute code at certain times.
For example:
import { defineConfig } from '@adonisjs/core/app'
export default defineConfig({
unstable_assembler: {
runner: {
name: 'bun',
command: 'bun',
args: [],
},
onBuildStarting: [
() => import('@adonisjs/vite/build_hook')
],
},
})
What's Changed
- feat: allow false value for assetsBundler by @Julien-R44 in #31
- feat: add assembler configuration (unstable) by @Julien-R44 in #32
Full Changelog: v8.0.4...v8.1.0
Bug fix with stub exports parsing
- fix: handle case when exports expression has contents before it 8b6b16a
Full Changelog: v8.0.3...v8.0.4
Fix stub exports parser and use dash-case for command names
This release fixes a bug with the stub exports parser and also uses dash-case
convention for naming long commands.
For example node ace make create_admin_user
will output create:admin-user
and not create:admin_user
. The dash-case in command names is a widely adopted standard, so let's stick with it.
Commits
- fix: commandTerminalName generator e5bd6bc
- fix: stub exports parsers 6a58756
- refactor: generate command names in dash-case 3d2f6f1
- chore: update dependencies 8cd675f
Full Changelog: v8.0.2...v8.0.3
Update dependencies
Full Changelog: v8.0.1...v8.0.2
Add string helpers to string builder shared with stubs
After this release, the string
function shared with stubs will have other string helpers like string.camelCase
, string.random
and so on.
Commits
- feat: add string helpers to the string builder shared with stubs a6d5433
- chore: update dependencies 5ab6fb9
Full Changelog: v8.0.0...v8.0.1