Skip to content

Releases: adonisjs/application

Stable major release

05 Jan 16:18
a070ef0
Compare
Choose a tag to compare

Please check the following releases to learn more about the breaking changes between @adonisjs/application@6 and @adonisjs/application@8.

Additional breaking changes

  • This release removes support for string based providers, commands and preload files. They must be defined as dynamic import functions inside the .adonisrc.ts file.

Commits

  • chore: publish under latest tag f53d510
  • Merge pull request #27 from adonisjs/next a070ef0
  • chore: add application file removed during merge 07ff4d8
  • Merge branch 'develop' into next ca498c7
  • refactor: deprecate contractsPath method a3af5da
  • refactor: remove support for string based providers, commands and preload files 601f0a3
  • feat: add additional words to the list of singular controller names d4e9949
  • chore: update dependencies c8a00fa
  • chore(release): 5.3.0 53216e1
  • chore(package): update dependencies a2d73e9
  • feat: add assetsDriver to the RcFile properties (#24) f8e1bed
  • fix: add missing inTest method typing (#25) 61718f3

What's Changed

  • refactor: use builtin fs/promises instead of fs-extra by @targos in #26
  • Merge to develop for final release by @thetutlage in #27

New Contributors

Full Changelog: v5.3.0...v8.0.0

Update fold

22 Dec 09:41
Compare
Choose a tag to compare
Update fold Pre-release
Pre-release
  • chore: update dependencies fc77e76

Full Changelog: v8.0.0-4...v8.0.0-5

Add validator action name generator

19 Dec 10:14
Compare
Choose a tag to compare
Pre-release
  • chore: update fold 2a0d47e
  • refactor: validateName generator and add validatorActionName generator 4337662

Full Changelog: v8.0.0-3...v8.0.0-4

Make application class macroable

18 Dec 10:31
Compare
Choose a tag to compare
Pre-release
  • refactor: make application class macroable 772b2a1
  • chore: update dependencies 0ecd2d9
  • chore: update dependencies 46c84a6

Full Changelog: v8.0.0-2...v8.0.0-3

Add new properties and support for app/mails directory

22 Nov 06:52
Compare
Choose a tag to compare
  • feat: add support for mails directory and generator c84ac0f
  • feat: add app.usingVineJS and app.usingEdgeJS flags f43df04
  • chore: publish source maps and use tsc for generating types f59b632
  • chore: update dependencies 7c00b78

Full Changelog: v8.0.0-1...v8.0.0-2

Export generators from main entrypoint

17 Oct 11:32
Compare
Choose a tag to compare
Pre-release

The generators are imported internally by the Application class, hence having a sub-module export for them does not serve any purpose.

This release exports the generators from the main module and removes the /generators sub-module.

- import generators from '@adonisjs/application/generators'
+ import { generators } from '@adonisjs/application'

Commits

  • refactor: improve error message when copying non-existing stubs 578d81f
  • refactor: export generators from the main module 3ba036c

Full Changelog: v8.0.0-0...v8.0.0-1

Breaking change to our stubs system

16 Oct 10:06
Compare
Choose a tag to compare
Pre-release

This release changes they way we export variables from a stub.

Earlier, we were using YAML frontmatter to export variables from a stub. However, I had a realization that using YAML for this simple task was an overkill. Also, the js-yaml package imports esprima (a JavaScript AST parser). Basically, we had a full-blown JS + YAML parser in place to export a couple of variables from stubs.

---
to: {{ app.makePath('app/controllers/foo.ts') }}
---

In this release, we get rid of YAML parsing altogether and use a simple function to define exports. For example:

{{{
  exports({
    to: app.makePath('app/controllers/foo.ts')
  })
}}}

As a result, processing stubs is faster and the bundle size is small. I agree, bundle size is not an issue, but why pack bloat, when you do not need it :)

Difference in bundle size

Earlier

Screenshot 2023-10-16 at 3 37 15 PM

Now

Screenshot 2023-10-16 at 3 37 54 PM

Commits

  • refactor: get rid of the front matter and use a dedicated exports function 62cdaf8
  • fix: escape frontmatter json before parsing it 0447130
  • refactor: split contents by windows and unix new lines 38245ec
  • ci: add log messages to debug ci issues b8b96e6
  • refactor: use EOL when parsing front-matter 7340791
  • ci: fix failing test in ci 0b7c191
  • ci: fix failing test in ci 8d16b67
  • input: refactor: remove front-matter package in favor of custom,simple implementation c38ba2c
  • refactor: rename exceptions.ts to errors.ts 5f238ec
  • chore: use tsup for bundling 31ec5b7
  • chore: update dependencies c94637d

Full Changelog: v7.1.2-16...v8.0.0-0

Allow a partial list of directories when using defineConfig method

06 Sep 12:50
Compare
Choose a tag to compare
  • refactor: allow a partial list of directories in RCFileInput e087867

Full Changelog: v7.1.2-15...v7.1.2-16

Remove RC File JSON Schema

23 Aug 05:40
Compare
Choose a tag to compare
Pre-release
  • refactor: remove rc json schema c1fe0ea
  • chore: update dependencies de3948c

Full Changelog: v7.1.2-14...v7.1.2-15

Remove support for loading .adonisrc.json file

22 Aug 17:14
Compare
Choose a tag to compare
  • refactor: remove support for loading .adonisrc.json file db92990

Full Changelog: v7.1.2-13...v7.1.2-14