Skip to content

Releases: adonisjs/core

Add env:add command to define environment variable and its validation rules

30 Apr 08:44
Compare
Choose a tag to compare
  • Merge pull request #4533 from adonisjs/feat/set-env (c8251b5)
  • fix: fix breaking test (d80d7bf)
  • refactor: defineEnvVariables with omitFromExample (9cd7183)
  • feat: insert empty example in the .env.example (5a1a4e9)
  • feat: add env:add command (4508128)

Full Changelog: v6.9.0...v6.9.0

Moving HMR out of experimental phase

22 Apr 07:00
Compare
Choose a tag to compare

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

  • chore: update dependencies (c370640)
  • refactor: move from --unstable-hmr to --hmr (40a85f9)

Full Changelog: v6.7.1...v6.8.0

Add a specific citgm script

16 Apr 08:13
a3a5e1e
Compare
Choose a tag to compare

Commits

  • chore: update dependencies (ab98096)
  • chore: add a citgm script (51d5c27)

Full Changelog: v6.7.0...v6.7.1

Experimental support for HMR

15 Apr 10:58
Compare
Choose a tag to compare

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

Full Changelog: v6.6.0...v6.7.0

Upgrade to VineJS 2.0

15 Apr 04:19
Compare
Choose a tag to compare

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

What's Changed

New Contributors

Full Changelog: v6.5.0...v6.6.0

OnHttpServerMessage hook

31 Mar 10:59
Compare
Choose a tag to compare

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

30 Mar 16:01
Compare
Choose a tag to compare
  • 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

26 Feb 15:09
Compare
Choose a tag to compare

Changes

  • The ace add command was incorrectly available under the name ace install. ace add command is now available

Commits

  • fix: rename node ace install to node ace add 9e5c21e
  • chore: update assembler b377553

Full Changelog: v6.3.0...v6.3.1

New codemods APIs, ace add command, and experimental assembler hooks

24 Feb 16:46
Compare
Choose a tag to compare

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 do npm install ... then node 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 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')
       ],
     }
    })

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

New Contributors

Full Changelog: v6.2.3...v6.3.0

Respect singular CLI flag when creating a new controller

05 Feb 04:19
Compare
Choose a tag to compare
  • fix: respect singular command flag to create singular controller 05d23e8

Full Changelog: v6.2.2...v6.2.3