Skip to content

Releases: adonisjs/application

`unstable_assembler` retro-compatibility

02 Jun 10:10
Compare
Choose a tag to compare

Changes

The unstable_assembler configuration is now hooks, see the previous release.

This release also adds backward compatibility for unstable_assembler, which is now deprecated, and will be removed in a future release.

Commits

  • refactor: keep supporting unstable_assembler for now (ea767dd)

Full Changelog: v8.3.0...v8.3.1

Stable assembler hooks

02 Jun 09:51
Compare
Choose a tag to compare

Changes

We're stabilising the API for assembler hooks. A few breaking changes :

  • The RC file property is no longer unstable_assembler but hooks. You'll need to make this change in your adonisrc.ts file
defineConfig({
- unstable_assembler: {
+ hooks: {
   onBuildStarting: [() => import(‘@adonisjs/vite/build_hook’)]
  }
})
  • The onHttpServerMessage hook has been removed as it is no longer used. This property was never documented.
  • The runner property has also been removed but has never been used or documented.

Commits

  • chore: update dependencies (4f7443e)
  • refactor!: remove onHttpServerMessage hook (c8f7878)
  • refactor!: rename from unstable_assembler to hooks (02d4ef1)
  • feat: add new process.send parameter (d3e1662)

Full Changelog: v8.2.2...v8.3.0

Update dependencies

22 Apr 05:28
Compare
Choose a tag to compare
  • chore: update dependencies (479e3c4)

Full Changelog: v8.2.1...v8.2.2

Fix onHttpServerMessage type

31 Mar 10:17
Compare
Choose a tag to compare

Commits

  • fix: wrong type for onHttpServerMessage hook (c45b411)

Full Changelog: v8.2.0...v8.2.1

add onHttpServerMessage hook

31 Mar 10:07
Compare
Choose a tag to compare

Commits

  • feat: add onHttpServerMessage hook configuration (1dd6e55)
  • chore: migrate to release-it (fde3104)
  • fix: onSourceFileChanged hook not registered (63900d5)
  • refactor: stricter typing for AssemblerHookNode (884dcc9)

Full Changelog: v8.1.0...v8.2.0

Assembler configuration

24 Feb 10:51
Compare
Choose a tag to compare

Changes

A new configuration section has been added for the Assembler in the RC file. currently unstable, so use at your own risk: breakings changes are probable

We can use it to configure two things :

  • A "runner". The runner is the command that will be executed to launch your dev server and your tests.
  • Several hooks, such as onBuildStarting, onSourceFileChanged, onDevServerStarted, onBuildCompleted, which will allow you to execute code at certain times.

For example:

import { defineConfig } from '@adonisjs/core/app'

export default defineConfig({
  unstable_assembler: {
    runner: {
      name: 'bun',
      command: 'bun',
      args: [],
    },

    onBuildStarting: [
      () => import('@adonisjs/vite/build_hook')
    ],
  },
})

What's Changed

Full Changelog: v8.0.4...v8.1.0

Bug fix with stub exports parsing

02 Feb 10:42
Compare
Choose a tag to compare
  • fix: handle case when exports expression has contents before it 8b6b16a

Full Changelog: v8.0.3...v8.0.4

Fix stub exports parser and use dash-case for command names

27 Jan 08:59
Compare
Choose a tag to compare

This release fixes a bug with the stub exports parser and also uses dash-case convention for naming long commands.

For example node ace make create_admin_user will output create:admin-user and not create:admin_user. The dash-case in command names is a widely adopted standard, so let's stick with it.

Commits

  • fix: commandTerminalName generator e5bd6bc
  • fix: stub exports parsers 6a58756
  • refactor: generate command names in dash-case 3d2f6f1
  • chore: update dependencies 8cd675f

Full Changelog: v8.0.2...v8.0.3

Update dependencies

23 Jan 10:25
Compare
Choose a tag to compare

Full Changelog: v8.0.1...v8.0.2

Add string helpers to string builder shared with stubs

22 Jan 14:37
Compare
Choose a tag to compare

After this release, the string function shared with stubs will have other string helpers like string.camelCase, string.random and so on.

Commits

  • feat: add string helpers to the string builder shared with stubs a6d5433
  • chore: update dependencies 5ab6fb9

Full Changelog: v8.0.0...v8.0.1