Skip to content

Commit cf4a334

Browse files
authored
Merge pull request #417 from ember-codemods/release-preview
Prepare Release
2 parents 4e4a9ba + 1757458 commit cf4a334

File tree

4 files changed

+157
-1
lines changed

4 files changed

+157
-1
lines changed

.release-plan.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"solution": {
3+
"ember-no-implicit-this-codemod": {
4+
"impact": "major",
5+
"oldVersion": "2.1.0",
6+
"newVersion": "3.0.0",
7+
"constraints": [
8+
{
9+
"impact": "major",
10+
"reason": "Appears in changelog section :boom: Breaking Change"
11+
},
12+
{
13+
"impact": "minor",
14+
"reason": "Appears in changelog section :rocket: Enhancement"
15+
},
16+
{
17+
"impact": "patch",
18+
"reason": "Appears in changelog section :house: Internal"
19+
}
20+
],
21+
"pkgJSONPath": "./package.json"
22+
}
23+
},
24+
"description": "## Release (2024-01-19)\n\nember-no-implicit-this-codemod 3.0.0 (major)\n\n#### :boom: Breaking Change\n* `ember-no-implicit-this-codemod`\n * [#405](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/405) drop support for Node < 16 ([@mansona](https://github.com/mansona))\n\n#### :rocket: Enhancement\n* `ember-no-implicit-this-codemod`\n * [#400](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/400) Update ember-codemods-telemetry-helpers for Mac M support ([@Mikek2252](https://github.com/Mikek2252))\n\n#### :house: Internal\n* `ember-no-implicit-this-codemod`\n * [#418](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/418) Typescript ([@mansona](https://github.com/mansona))\n * [#416](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/416) setup release-plan ([@mansona](https://github.com/mansona))\n * [#401](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/401) swap to pnpm ([@mansona](https://github.com/mansona))\n * [#409](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/409) add grouping to dependabot config ([@mansona](https://github.com/mansona))\n\n#### Committers: 2\n- Chris Manson ([@mansona](https://github.com/mansona))\n- Michael Kerr ([@Mikek2252](https://github.com/Mikek2252))\n"
25+
}

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
# Changelog
2+
## Release (2024-01-19)
3+
4+
ember-no-implicit-this-codemod 3.0.0 (major)
5+
6+
#### :boom: Breaking Change
7+
* `ember-no-implicit-this-codemod`
8+
* [#405](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/405) drop support for Node < 16 ([@mansona](https://github.com/mansona))
9+
10+
#### :rocket: Enhancement
11+
* `ember-no-implicit-this-codemod`
12+
* [#400](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/400) Update ember-codemods-telemetry-helpers for Mac M support ([@Mikek2252](https://github.com/Mikek2252))
13+
14+
#### :house: Internal
15+
* `ember-no-implicit-this-codemod`
16+
* [#418](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/418) Typescript ([@mansona](https://github.com/mansona))
17+
* [#416](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/416) setup release-plan ([@mansona](https://github.com/mansona))
18+
* [#401](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/401) swap to pnpm ([@mansona](https://github.com/mansona))
19+
* [#409](https://github.com/ember-codemods/ember-no-implicit-this-codemod/pull/409) add grouping to dependabot config ([@mansona](https://github.com/mansona))
20+
21+
#### Committers: 2
22+
- Chris Manson ([@mansona](https://github.com/mansona))
23+
- Michael Kerr ([@Mikek2252](https://github.com/Mikek2252))
224

325
## v2.1.0 (2022-01-11)
426

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-no-implicit-this-codemod",
3-
"version": "2.1.0",
3+
"version": "3.0.0",
44
"description": "Codemods for transforming variable usage to be prefixed with `this`, when appropriate",
55
"keywords": [
66
"codemod-cli"

transforms/no-implicit-this/README.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ ember-no-implicit-this-codemod no-implicit-this path/of/files/ or/some**/*glob.j
2828
* [handlebars-with-wall-street-syntax](#handlebars-with-wall-street-syntax)
2929
* [handlebars-without-params](#handlebars-without-params)
3030
* [has-block](#has-block)
31+
* [paths](#paths)
32+
* [tagged-templates-js](#tagged-templates-js)
33+
* [tagged-templates-ts](#tagged-templates-ts)
3134
* [void-elements](#void-elements)
3235
<!--FIXTURES_TOC_END-->
3336

@@ -424,6 +427,112 @@ ember-no-implicit-this-codemod no-implicit-this path/of/files/ or/some**/*glob.j
424427
{{if (has-block-params "main") "block"}}
425428
{{#if (has-block-params "main")}}block{{/if}}
426429
430+
```
431+
---
432+
<a id="paths">**paths**</a>
433+
434+
**Input** (<small>[paths.input.hbs](transforms/no-implicit-this/__testfixtures__/paths.input.hbs)</small>):
435+
```hbs
436+
{{foo-bar-baz}}
437+
{{baz}}
438+
439+
```
440+
441+
**Output** (<small>[paths.output.hbs](transforms/no-implicit-this/__testfixtures__/paths.output.hbs)</small>):
442+
```hbs
443+
{{foo-bar-baz}}
444+
{{this.baz}}
445+
446+
```
447+
---
448+
<a id="tagged-templates-js">**tagged-templates-js**</a>
449+
450+
**Input** (<small>[tagged-templates-js.input.js](transforms/no-implicit-this/__testfixtures__/tagged-templates-js.input.js)</small>):
451+
```js
452+
import { hbs as echHBS } from 'ember-cli-htmlbars';
453+
import hipHBS from 'htmlbars-inline-precompile';
454+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
455+
import { hbs } from 'unknown-tag-source';
456+
457+
echHBS`
458+
Hello,
459+
{{target}}!
460+
\n
461+
`;
462+
463+
hipHBS`Hello, {{target}}!`;
464+
465+
echipHBS`Hello, {{target}}!`;
466+
467+
hbs`Hello, {{target}}!`;
468+
469+
```
470+
471+
**Output** (<small>[tagged-templates-js.output.js](transforms/no-implicit-this/__testfixtures__/tagged-templates-js.output.js)</small>):
472+
```js
473+
import { hbs as echHBS } from 'ember-cli-htmlbars';
474+
import hipHBS from 'htmlbars-inline-precompile';
475+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
476+
import { hbs } from 'unknown-tag-source';
477+
478+
echHBS`
479+
Hello,
480+
{{this.target}}!
481+
\n
482+
`;
483+
484+
hipHBS`Hello, {{this.target}}!`;
485+
486+
echipHBS`Hello, {{this.target}}!`;
487+
488+
hbs`Hello, {{target}}!`;
489+
490+
```
491+
---
492+
<a id="tagged-templates-ts">**tagged-templates-ts**</a>
493+
494+
**Input** (<small>[tagged-templates-ts.input.ts](transforms/no-implicit-this/__testfixtures__/tagged-templates-ts.input.ts)</small>):
495+
```ts
496+
import { hbs as echHBS } from 'ember-cli-htmlbars';
497+
import hipHBS from 'htmlbars-inline-precompile';
498+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
499+
500+
declare const hbs: unknown;
501+
502+
echHBS`
503+
Hello,
504+
{{target}}!
505+
\n
506+
`;
507+
508+
hipHBS`Hello, {{target}}!`;
509+
510+
echipHBS`Hello, {{target}}!`;
511+
512+
hbs`Hello, {{target}}!`;
513+
514+
```
515+
516+
**Output** (<small>[tagged-templates-ts.output.ts](transforms/no-implicit-this/__testfixtures__/tagged-templates-ts.output.ts)</small>):
517+
```ts
518+
import { hbs as echHBS } from 'ember-cli-htmlbars';
519+
import hipHBS from 'htmlbars-inline-precompile';
520+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
521+
522+
declare const hbs: unknown;
523+
524+
echHBS`
525+
Hello,
526+
{{this.target}}!
527+
\n
528+
`;
529+
530+
hipHBS`Hello, {{this.target}}!`;
531+
532+
echipHBS`Hello, {{this.target}}!`;
533+
534+
hbs`Hello, {{target}}!`;
535+
427536
```
428537
---
429538
<a id="void-elements">**void-elements**</a>

0 commit comments

Comments
 (0)