AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more.
Full Changelog: https://github.com/adonisjs/core/compare/v6.9.0...v6.9.0
--unstable-hmr
to --hmr
(40a85f9)Full Changelog: https://github.com/adonisjs/core/compare/v6.7.1...v6.8.0
Full Changelog: https://github.com/adonisjs/core/compare/v6.7.0...v6.7.1
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"
}
}
--unstable-hmr
flag (cdc266a)--hmr
flag (3e11c21)--hmr
flag for the serve
command by @Julien-R44 in https://github.com/adonisjs/core/pull/4504
Full Changelog: https://github.com/adonisjs/core/compare/v6.6.0...v6.7.0
After this release, you will be forced to upgrade to [email protected] 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.
Full Changelog: https://github.com/adonisjs/core/compare/v6.5.0...v6.6.0
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')]
},
})
Full Changelog: https://github.com/adonisjs/core/compare/v6.4.0...v6.5.0
ace
command (df6466d3)ace add
command was incorrectly available under the name ace install
. ace add
command is now availablenode ace install
to node ace add
9e5c21e2Full Changelog: https://github.com/adonisjs/core/compare/v6.3.0...v6.3.1
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 do npm install ...
then node ace configure ...
. This will be documented in more detail in the coming days. See https://github.com/adonisjs/v6-docs/pull/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
and registerJapaPlugin
. 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')
],
}
})
main
as reference for test job ee4babafnext
reference 295061fcnode ace add
command (#4296) e7c668c4node ace add
command by @Julien-R44 in https://github.com/adonisjs/core/pull/4296
Full Changelog: https://github.com/adonisjs/core/compare/v6.2.3...v6.3.0
Full Changelog: https://github.com/adonisjs/core/compare/v6.2.2...v6.2.3