Releases: ijlee2/ember-codemod-v1-to-v2
Investigated how to simplify project structure
#43 didn't quite work. Ignore this tag.

Fully patched 0.7.0
0.7.1-alpha.1
Investigated how to get blueprints to work.
Introduced TypeScript
I added types to improve documentation and learn how we can write codemods in TypeScript.
A bug may be possible when running npx ember-codemod-v1-to-v2@0.7.0
. I'll update the release notes after testing the release on my local machine.
Separated validation concerns
@codemod-utils/json@0.2.0
allows us to opt in to validating the name and version.
Updated dependencies and latestVersions
0.6.2 Tagged 0.6.2
Updated latestVersions and babel.config.json
A couple of changes to the blueprint files. In effect, I downstreamed the changes in @embroider/addon-blueprint@1.6.2
.
- Updated
latestVersions
- Updated
__addonLocation__/babel.config.json
by removing deprecated syntax
You can update your addon's babel.config.json
as shown below:
/* Before: babel.config.json (TS projects) */
{
"presets": [["@babel/preset-typescript"]],
"plugins": [
"@embroider/addon-dev/template-colocation-plugin",
["@babel/plugin-transform-typescript", { "allowDeclareFields": true }],
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-proposal-class-properties"
]
}
/* After: babel.config.json (TS projects) */
{
"presets": [["@babel/preset-typescript"]],
"plugins": [
"@embroider/addon-dev/template-colocation-plugin",
["@babel/plugin-transform-typescript", { "allowDeclareFields": true }],
["@babel/plugin-proposal-decorators", { "version": "legacy" }],
"@babel/plugin-proposal-class-properties"
]
}
Downstreamed changes from @embroider/addon-blueprint
Features
- Set
allowDeclareFields
for TS projects totrue
by default1
1. See #32 to learn how to keep your v2
addon up-to-date.
Refactored utilities
Some of the utilities have been replaced with those from @codemod-utils
. This should help reduce the maintenance cost.
Downstreamed changes from @embroider/addon-blueprint
Bug fixes
- Added
@babel/runtime
to the addon'spackage.json
1
1. See #29 to learn how to keep your v2
addon up-to-date.