Core Versions Save

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.

v6.9.0

2 weeks ago
  • 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: https://github.com/adonisjs/core/compare/v6.9.0...v6.9.0

v6.8.0

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

Full Changelog: https://github.com/adonisjs/core/compare/v6.7.1...v6.8.0

v6.7.1

1 month ago

Commits

  • chore: update dependencies (ab980960)
  • chore: add a citgm script (51d5c274)

Full Changelog: https://github.com/adonisjs/core/compare/v6.7.0...v6.7.1

v6.7.0

1 month ago

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: https://github.com/adonisjs/core/compare/v6.6.0...v6.7.0

v6.6.0

1 month ago

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

  • chore: downgrade eslint (323152d0)
  • refactor: upgrade @vinejs/vine@2 (a986b0c6)
  • fix(docs): update broken link (#4479) (94f894c9)

What's Changed

New Contributors

Full Changelog: https://github.com/adonisjs/core/compare/v6.5.0...v6.6.0

v6.5.0

1 month ago

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 (82ecae3b)

Full Changelog: https://github.com/adonisjs/core/compare/v6.4.0...v6.5.0

v6.4.0

1 month ago
  • chore: remove support for VineJS 2.0 (b49f28f3)
  • chore: switch to release-it (0c9216dd)
  • chore: update dependencies (2d2bac79)
  • chore: allow to use new VineJS major release (e1d0325a)
  • chore: allow to use new VineJS major release (071254f2)
  • refactor: pass flags and arguments as array in ace command (df6466d3)

v6.3.1

2 months ago

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 9e5c21e2
  • chore: update assembler b3775534

Full Changelog: https://github.com/adonisjs/core/compare/v6.3.0...v6.3.1

v6.3.0

2 months ago

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 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')
      ],
    }
    })
    

Commits

  • ci: use main as reference for test job ee4babaf
  • test: fix test that fails when runned locally cf796885
  • ci: remove test job next reference 295061fc
  • chore: migrate to husky 9 1ca3b459
  • chore: update dependencies fdd332ea
  • chore: update minimum node version e33b342a
  • feat: add getTsMorphProject method (#4414) ee96efec
  • feat: add registerVitePlugin and registerJapaPlugin (#4412) db03e4ce
  • feat: do not run assets bundler when disabled in rc file (#4429) be6ca038
  • chore: add extraneous package c0a86f35
  • feat: add hooks for build and dev server (#4428) ca600cea
  • style: lint file f01d683f
  • feat: add node ace add command (#4296) e7c668c4
  • fix: description of --api and --resource flags d83e9709
  • fix(commands): swapped description in make:controller 8848191f

What's Changed

New Contributors

Full Changelog: https://github.com/adonisjs/core/compare/v6.2.3...v6.3.0

v6.2.3

3 months ago
  • fix: respect singular command flag to create singular controller 05d23e8

Full Changelog: https://github.com/adonisjs/core/compare/v6.2.2...v6.2.3