Skip to content

Releases: adonisjs/core

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 [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.

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

Add test_utils submodule

26 Jan 11:16
Compare
Choose a tag to compare
  • feat: add @adonisjs/core/test_utils submodule 9fa0de3
  • chore: update dependencies cdef23a

Full Changelog: v6.2.1...v6.2.2

Add all helpers to REPL context via loadHelpers method

22 Jan 13:11
Compare
Choose a tag to compare
  • refactor: update 'http:server_ready' event payload to include duration f5afe9c
  • feat: add all helpers to repl context via loadHelpers command 1e3d6e4
  • chore: update dependencies 6f60fee

Full Changelog: v6.2.0...v6.2.1

v6.2.0

08 Jan 03:09
Compare
Choose a tag to compare

Warning

During the public release on 24th of January, we will also create a proper changelog with a migration guide from AdonisJS v5 to AdonisJS v6. Even though the new version is public on npm, please do not install it until the migration guide is out.

Please consult the following releases to view the list of breaking changes and new additions.

Commits

  • chore: publish under the latest tag 31668b7
  • Merge pull request #4335 from adonisjs/next b7f8547
  • ci: update workflow file name 22f8e40
  • docs: update badges urls 66e96c7
  • Merge branch 'develop' into next 4d2026f
  • test: remove optional importer param 2f53731
  • test: do not use withCoreProviders method internally 05d56dd
  • chore: cleanup dependencies 9613852
  • refactor: remove ace shell child process runner 0a45d5b
  • feat: export types for helpers exported from poppinns/utils eeb31cf
  • refactor: remove deprecated type helpers usage 7b43060
  • chore: update dependencies 72fe65c
  • chore: update dependencies 87c2554
  • change: add PATCH as a default method for CORS headers (#4244) b5f0606
  • Update app.txt (#4169) 617200b
  • docs(contributing): fix content table link (#4085) a83daa3
  • Update README.md (#4069) 0ae2620
  • fix: default hasher mismatch fix (#4005) cbd734e

What's Changed

New Contributors

Full Changelog: v5.9.0...v6.2.0