Releases: adonisjs/core
Add env:add command to define environment variable and its validation rules
Moving HMR out of experimental phase
The support for HMR is now stable and you can start using it. For existing projects, you must upgrade the @adonisjs/core
and the @adonisjs/assembler
packages to their latest releases before you can start using the HMR mode.
This is what you need to do.
npm i -D hot-hook @adonisjs/assembler@latest
npm i @adonisjs/core@latest
Next update the package.json
file with the following configuration
"hotHook": {
"boundaries": [
"./app/controllers/**/*.ts",
"./app/middlewares/*.ts"
]
}
And start the HTTP server as follows.
node ace serve --hmr
If you use npm scripts, then make sure to update the dev
script as well in the package.json
file.
{
"scripts": {
"dev": "node ace serve --hmr"
}
}
Commits
Full Changelog: v6.7.1...v6.8.0
Add a specific citgm script
Commits
Full Changelog: v6.7.0...v6.7.1
Experimental support for HMR
Alright, so we have finally landed support for HMR in experimental mode. Once you upgrade the @adonisjs/core
and the @adonisjs/assembler
packages to their latest releases, you can start using the HMR mode.
This is what you need to do.
npm i -D hot-hook @adonisjs/assembler@latest
npm i @adonisjs/core@latest
Next update the package.json
file with the following configuration
"hotHook": {
"boundaries": [
"./app/controllers/**/*.ts",
"./app/middlewares/*.ts"
]
}
And start the HTTP server as follows.
node ace serve --unstable-hmr
If you use npm scripts, then make sure to update the dev
script as well in the package.json
file.
{
"scripts": {
"dev": "node ace serve --unstable-hmr"
}
}
Commits
- Merge pull request #4504 from adonisjs/feat/hmr (e472091)
- refactor: remove unused symbols (fbdae40)
- chore: update dependencies (4a9d201)
- Merge branch 'develop' into feat/hmr (9b2aadc)
- refactor: move to
--unstable-hmr
flag (cdc266a) - test: add test (6c2bff9)
- feat: add serve
--hmr
flag (3e11c21)
What's Changed
- feat: add
--hmr
flag for theserve
command by @Julien-R44 in #4504
Full Changelog: v6.6.0...v6.7.0
Upgrade to VineJS 2.0
After this release, you will be forced to upgrade to VineJS@2.0 in your apps. Even though VineJS had a major release, the breaking changes are related to types only and should not impact your application code at all. So we recommend you to follow VineJS release notes and upgrade it.
Commits
- chore: downgrade eslint (323152d)
- refactor: upgrade @vinejs/vine@2 (a986b0c)
- fix(docs): update broken link (#4479) (94f894c)
What's Changed
- fix(docs): update broken link by @aarhusgregersen in #4479
New Contributors
- @aarhusgregersen made their first contribution in #4479
Full Changelog: v6.5.0...v6.6.0
OnHttpServerMessage hook
Changes
Added a new onHttpServerMessage
hook that can be used to intercept the message sent by your HTTP Server. This hook must be defined in the adonisrc.ts
file, like other hooks.
import { defineConfig } from '@adonisjs/core/app';
export default defineConfig({
unstable_assembler: {
onHttpServerMessage: [() => import('./my_http_server_message_hook.js')]
},
})
Commits
- feat: pass onHttpServerMessage hook from rcFile to assembler DevServer (82ecae3)
Full Changelog: v6.4.0...v6.5.0
Update Env module allowing us to use Identifier
- chore: remove support for VineJS 2.0 (b49f28f)
- chore: switch to release-it (0c9216d)
- chore: update dependencies (2d2bac7)
- chore: allow to use new VineJS major release (e1d0325)
- chore: allow to use new VineJS major release (071254f)
- refactor: pass flags and arguments as array in
ace
command (df6466d)
Fix `add` command
Changes
- The
ace add
command was incorrectly available under the nameace install
.ace add
command is now available
Commits
Full Changelog: v6.3.0...v6.3.1
New codemods APIs, ace add command, and experimental assembler hooks
Changes
-
We now have a
node ace add
command which allows you to install and configure a package. In a single command, where before you would have had to donpm install ...
thennode ace configure ...
. This will be documented in more detail in the coming days. See adonisjs/v6-docs#44 -
The Codemods API now exposes the
getTsMorphProject
method, which retrieves an instance of tsmorph. This allows package authors to have direct access to ts-morph when they need to perform more specific modifications in the end-user code. Documentation https://docs.adonisjs.com/guides/scaffolding#gettsmorphproject -
The Codemods API also introduces two new methods:
registerVitePlugin
andregisterJapaPlugin
. See documentation here: https://docs.adonisjs.com/guides/scaffolding#registerviteplugin -
Added experimental assembler hooks. These hooks must be defined in the
adonisrc.ts
file and enable certain pieces of code to be executed at specific times during the build or dev server lifecycle. This feature will be useful for the new Vite integration we are experimenting :// adonisrc.ts export default defineConfig({ unstable_assembler: { onBuildStart: [ () => import('@my-package/hooks/build_start') ], onBuildEnd: [ () => import('@my-package/hooks/build_end') ], onSourceFileChanged: [ () => import('@my-package/hooks/source_file_changed') ], onDevServerStart: [ () => import('@my-package/hooks/dev_server_start') ], } })
Commits
- ci: use
main
as reference for test job ee4baba - test: fix test that fails when runned locally cf79688
- ci: remove test job
next
reference 295061f - chore: migrate to husky 9 1ca3b45
- chore: update dependencies fdd332e
- chore: update minimum node version e33b342
- feat: add getTsMorphProject method (#4414) ee96efe
- feat: add registerVitePlugin and registerJapaPlugin (#4412) db03e4c
- feat: do not run assets bundler when disabled in rc file (#4429) be6ca03
- chore: add extraneous package c0a86f3
- feat: add hooks for build and dev server (#4428) ca600ce
- style: lint file f01d683
- feat: add
node ace add
command (#4296) e7c668c - fix: description of --api and --resource flags d83e970
- fix(commands): swapped description in make:controller 8848191
What's Changed
- fix(commands): swapped description -a & -r for make:controller by @Blackwidow-sudo in #4420
- Add an
node ace add
command by @Julien-R44 in #4296 - feat: add hooks for build and dev server by @Julien-R44 in #4428
- feat: do not run assets bundler when explicitely disabled in rc file by @Julien-R44 in #4429
- feat: add registerVitePlugin and registerJapaPlugin by @Julien-R44 in #4412
- feat: add getTsMorphProject method by @Julien-R44 in #4414
New Contributors
- @Blackwidow-sudo made their first contribution in #4420
Full Changelog: v6.2.3...v6.3.0
Respect singular CLI flag when creating a new controller
- fix: respect singular command flag to create singular controller 05d23e8
Full Changelog: v6.2.2...v6.2.3