Skip to content

Releases: ijlee2/ember-codemod-v1-to-v2

Investigated how to simplify project structure

13 Jun 16:56
Compare
Choose a tag to compare

#43 didn't quite work. Ignore this tag.

Fully patched 0.7.0

12 Jun 14:47
Compare
Choose a tag to compare

Looks better. 😓

0.7.1-alpha.1

12 Jun 14:40
Compare
Choose a tag to compare
0.7.1-alpha.1 Pre-release
Pre-release

Investigated how to get blueprints to work.

Introduced TypeScript

12 Jun 14:23
Compare
Choose a tag to compare

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

10 Jun 14:00
Compare
Choose a tag to compare

@codemod-utils/json@0.2.0 allows us to opt in to validating the name and version.

Updated dependencies and latestVersions

10 Jun 11:32
Compare
Choose a tag to compare

Updated latestVersions and babel.config.json

31 May 12:21
Compare
Choose a tag to compare

A couple of changes to the blueprint files. In effect, I downstreamed the changes in @embroider/addon-blueprint@1.6.2.

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

23 May 06:28
Compare
Choose a tag to compare

Features

  • Set allowDeclareFields for TS projects to true by default1

1. See #32 to learn how to keep your v2 addon up-to-date.

Refactored utilities

17 May 12:18
Compare
Choose a tag to compare

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

03 May 05:54
Compare
Choose a tag to compare

Bug fixes

  • Added @babel/runtime to the addon's package.json1

1. See #29 to learn how to keep your v2 addon up-to-date.