Skip to content

Commit

Permalink
Tagged 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlee2 committed Apr 24, 2024
1 parent a4d3945 commit 76cf4b2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
5 changes: 0 additions & 5 deletions .changeset/bright-emus-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pink-lobsters-sleep.md

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.1.0

### Minor Changes

- [#2](https://github.com/ijlee2/ember-codemod-remove-inject-as-service/pull/2) Allowed codemod to run on test files ([@ijlee2](https://github.com/ijlee2))

### Patch Changes

- [#1](https://github.com/ijlee2/ember-codemod-remove-inject-as-service/pull/1) Removed duplicated code ([@ijlee2](https://github.com/ijlee2))

## 1.0.1

### Patch Changes
Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,10 @@ npx ember-codemod-remove-inject-as-service <arguments>

Step 2. Fix formatting issues.

- Optional: Do a find-and-replace-all in TS files, if you want to place `@service()` and `declare` on the same line when possible.
- Optional: Do a find-and-replace-all in TS files, if you want to place `@service` and `declare` on the same line whenever possible.

- Find: `@service\((.+)\)[\n\s]+declare`
- Replace: `@service($1) declare`

- Optional: Do a find-and-replace-all in TS files, if you want to place `@service` and `declare` on the same line when possible.

- Find: `@service[\n\s]+declare`
- Replace: `@service declare`
- Find: `@service(\(.*\))?[\n\s]+declare`
- Replace: `@service$1 declare`

- Run `lint:js:fix` (i.e. autofix from `eslint` and `prettier`).

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-codemod-remove-inject-as-service",
"version": "1.0.1",
"version": "1.1.0",
"description": "Codemod to remove `inject as service`",
"keywords": [
"codemod",
Expand Down

0 comments on commit 76cf4b2

Please sign in to comment.