Releases: adonisjs/assembler
Update Env module allowing us to use Identifier
Fix addVitePlugin when using defineConfig
- fix(codemods): fails to add Vite plugin when using
defineConfig
0e92531
Full Changelog: v7.2.2...v7.2.3
Hooks fix
- test: increase timeouts for hooks registering tests a0612a2
- fix: wait for assembler hooks node to be resolved de9a026
Full Changelog: v7.2.1...v7.2.2
DevServer hooks bugfix
Full Changelog: v7.2.0...v7.2.1
Hooks and Codemods
Changes
This version adds several new features:
- An
addVitePlugin
method in the Codemods API that can be used by package creators to add a new Vite plugin to the end-user configuration - Makes the
project
property of the codemods api public. This allows package authors to have direct access to ts-morph when they need to perform more specific modifications in the end-user code. - Added bundler and dev server hooks. See #75
Commits
- feat: add bundler and dev server hooks (#75) 38a2835
- refactor: make
project
public 5a476d6 - chore: update readme db8b35a
- feat: add
addVitePlugin
method 95f0cfa
What's Changed
- feat: add
addVitePlugin
method by @Julien-R44 in #73 - refactor: make
project
public inCodeTransformer
by @Julien-R44 in #74 - feat: add bundler and devserver hooks by @Julien-R44 in #75
Full Changelog: v7.1.1...v7.2.0
Rewrite builded Ace file
During the build process, we now rewrite from-scratch the ace.js
file included in the build
folder so as to remove all references to ts-node
. That way, you can now run node ace my-command
in your build project without having to install ts-node
.
See this issue that explains the problem : adonisjs/core#4361
Warning
Any modifications to the ace.js
file will be lost during the build process since the file is rewritten from scratch. If you want to have any additional code that runs before Ace starts, you should instead do it inside the bin/console.ts
file.
Commits
Disable experimental warnings
As of today, TSNode exports a loader hook which must be applied using the --loader
Node.js CLI flag. However, the --loader
flag was experimental and emits a warning. This release disables that warning for a nicer CLI experience.
With that said, we are waiting on Ts-node to export an import hook that can be applied using the --import
Node.js CLI flag and then we can safely remove the flags in use to suppress warnings.
Commits
Stable major release
Please consult the following release to learn more about the breaking changes
Commits
- chore: publish under latest tag 22d6926
- Merge pull request #66 from adonisjs/next 14aab7b
- Merge branch 'develop' into next 9a8d68e
- test: fix failing tests a02eaf5
- refactor: remove usage --expiremental-meta-resolve flag 831d361
- chore: bundle types.ts file via tsup as well b4ed967
- chore: update dependencies 7dad0d4
- chore(release): 5.9.6 5f23411
- test: fix breaking tests 0572331
- refactor: install @japa/runner@2.5.1 as the latest one is ESM only 330aa21
- chore: add engine key 7189b93
- chore: update dependencies 189d7b9
- fix: remove deprecated string options on examples d261515
- chore: update dependencies 4f11032
What's Changed
- refactor: use builtin
fs/promises
instead offs-extra
by @targos in #58 - fix: metafiles copying by @Julien-R44 in #60
- Add code transformer APIs by @Julien-R44 in #61
- fix(transformer): addCommand method was not using correct property name by @RomainLanz in #62
- Add
addJapaPlugin
to Codemods by @Julien-R44 in #63 - Fix metafile copying when lock file is not found by @Julien-R44 in #64
- Bundler automatically detect used package manager by @Julien-R44 in #65
- Merge to develop for final release by @thetutlage in #66
New Contributors
- @thetutlage made their first contribution in #66
Full Changelog: v5.9.6...v7.0.0
Add addPolicies codemod
Full Changelog: v7.0.0-0...v7.0.0-1
v7.0.0-0
Breaking changes
- Renamed
assets.serve
property toassets.enabled
. Since the same property is used by the bundler, theserve
is not an appropriate name. - The
addJapaPlugin
method now accepts an array of import declarations. Earlier it was a single import declaration as an object.
Features
- Use package detection when copying lockfiles to the build folder.
Commits
- test: update snapshots 9f7860f
- refactor: ignore snapshots from prettier e408ab1
- test: fix test broken on windows f455e35
- refactor: fix linting errors ba48335
- refactor: small internal refactors and add documentation 05ba15b
What's Changed
- Bundler automatically detect used package manager by @Julien-R44 in #65
Full Changelog: v6.1.3-29...v7.0.0-0