Releases: ijlee2/ember-codemod-v1-to-v2
Fixed bugs for scoped packages
Thanks to @phndiaye.
Bug fixes
- The
workspacesfield in the rootpackage.jsonnow list the package locations. A bug (listing the package names instead) would have surfaced when (1) the package is scoped or (2) an end-developer passes the argument--addon-location,--test-app-location, or--test-app-name.1 - The regular expression for computing the relative path has been updated. A bug would have occurred when the package is scoped.1
1. See #17 to learn how to keep your v2 addon up-to-date.
Fixed a bug for TypeScript projects
Bug fixes
- Listed the
defaultkey as the last (the bug didn't affect JavaScript projects)1
1. See #16 to learn how to keep your v2 addon up-to-date.
Downstreamed changes from @embroider/addon-blueprint
Features
- Replicated the changes made in embroider-build/addon-blueprint#1031
- Kept
latestVersionsup-to-date
Bug fixes
1. See #14 to learn how to keep your v2 addon up-to-date.
Added files from addon-test-support to addon.publicEntrypoints()
Features
- When a v1 addon has
addon-test-support, the codemod adds its files toaddon.publicEntrypoints(). In other words, the codemod takes care of a configuration step forrollup.config.{js,mjs}.1
1. See #11 to learn how to keep your v2 addon up-to-date.
Added tests and refactored code. Fixed a bug.
Improved documentation
I made a few refactors to help with future maintenance and onboarding:
- Reorganized helpers for test fixtures
- Renamed the two types of options
- Reorganized utility functions and wrote unit tests
Bug fixes
There is 1 bug fix:
- Handled multiline comments in
tsconfig.json
(At the moment, both inline and multiline comments are removed so that JSON.parse() doesn't cause a runtime error. In the future, I may look at whether there's an easy way to preserve comments and partially update a JSON.)
Added tests and refactored code. Fixed a few bugs.
Improved documentation
All migration steps are now tested at an "integration" level. This will help with future maintenance and onboarding. Certain steps are tested more rigorously because the file contents are checked.
Bug fixes
The following migration steps have been updated:
-
createFilesFromBlueprint- Fixed typos in
__addonLocation__/unpublished-development-types/index.d.ts - Fixed typos in
package.json
- Fixed typos in
-
updateAddonPackageJson- Fixed the calculation of desired version
-
updateTestAppPackageJson- Fixed the calculation of desired version
Added tests and refactored code
0.1.3 Marked v0.1.3 release for npm
Accounted for the location of the installed package
0.1.2 Marked v0.1.2 release for npm
Ensured that .gitignore is added to the workspace root
0.1.1 Marked v0.1.1 release for npm
Initial release
0.1.0 Marked v0.1.0 release for npm