Releases: typed-ember/ember-cli-typescript
v5.3.0 (Stop whining about ember-cli-babel 8)
Changed 💥
- #1570 Use the current Node LTS (@chriskrycho)
- #1533 Update to use Node 14+ (drop support for Node 12) (@chriskrycho)
Added ⭐️
- #1569 Loosen version check against ember-cli-babel (@chriskrycho)
Fixed 🔧
Under the hood 🚗
- #1577 Upgrade release-it packages (@gitKrystan)
- #1536 Set up release-it for publishing (@chriskrycho)
- #1535 Fix tests on current Ember CLI (@chriskrycho)
- #1534 Use volta action v4 for all targets (@chriskrycho)
Committers: 11
- Alon Bukai (@Alonski)
- Asa Kusuma (@asakusuma)
- Chris Krycho (@chriskrycho)
- Dan Freeman (@dfreeman)
- Ignace Maes (@IgnaceMaes)
- Krystan HuffMenne (@gitKrystan)
- Matt Edwards (@wondersloth)
- Maxim Dietz (@kiosion)
- Simon Ihmig (@simonihmig)
- Tyler Sengia (@tsengia)
- @NullVoxPopuli
I guess you get one more chance (…with Node 12)
End of the line (…for Node 12)
Added ⭐️
- Include
@types/ember__destroyable
when running the default blueprint (#1526), @bertdeblock - Remove blueprints package (#1509), @NullVoxPopuli
Fixed 🔧
- Fix
import/newline-after-import
lint violation inglobal.d.ts
(#1520), @bmish - Fix no-use-before-define lint violation in environment.d.ts (#1521), @bmish
Documentation 📖
- Update
testing.md
to refer toember-cli-htmlbars
instead ofember-cli-htmlbars-inline-precompile
(#1517), @ChristopheTiet - docs: use prepack and postpack instead of prepublishOnly and postpublish (#1527), @bertdeblock
- Reflect the introduction of Component Signatures (#1530), @rooman
Under the hood 🚗
- Update
@types
dependencies to latest (#1531), @bertdeblock and @chriskrycho
v5.1.1
Fixed 🔧
- Use
ember-cli-htmlbars
rather thanhtmlbars-inline-precompile
in blueprints (#1519) - Fix
import/newline-after-import
lint violation inglobal.d.ts
(#1520) - Fix
no-use-before-define
lint violation inenvironment.d.ts
(#1521) - Add
@types/ember
to installed packages from blueprint (#1508) - Update blueprint to use
@tsconfig/ember
(#1507) - Clarify babel version error message (#1500)
Documentation 📖
Docs ’n’ blueprints
Overview
Added ⭐️
- Update tsconfig and corresponding docs (#1488)
Fixed 🔧
- Ignore no-empty-interface in the default app index.d.ts (#1484)
Documentation 📖
- docs: Remove references to DS and DS imports. (#1483)
- Encourage the use of type-only imports (#1485)
- typo: comment should be pluralized. (#1489)
- docs: fix typos (#1490)
- docs: Add link to transforms page (#1491)
Full Change List
- chore(deps): bump mout from 1.2.2 to 1.2.3 by @dependabot in #1478
- Encourage the use of type-only imports by @muziejus in #1485
- Ignore no-empty-interface in the default app index.d.ts by @muziejus in #1484
- docs: Remove references to DS and DS imports. by @muziejus in #1483
- chore(deps): bump pathval from 1.1.0 to 1.1.1 by @dependabot in #1480
- chore(deps): bump follow-redirects from 1.14.7 to 1.14.9 by @dependabot in #1486
- Update tsconfig and corresponding docs by @chriskrycho in #1488
- typo: comment should be pluralized. by @muziejus in #1489
- docs: Add link to transforms page by @muziejus in #1491
- docs: fix typos by @muziejus in #1490
New Contributors
Full Changelog: v5.0.0...v5.1.0
Ember 4 support and addon.moduleName() shenanigans
Overview
Changed 💥
This now requires Node 12+! That's the only technically breaking change.
- Update types & ember to 4.x(#1472)
Fixed 🔧
- Fix type of
locationType
for Ember v4 (#1466) - fix: Use moduleName() to determine addon's referenced name. (#1476)
Documentation 📖
- docs: fix links to tsconfig.json blueprint (#1445)
ember-test-helpers
->@ember/test-helpers
(#1473)
Under the hood 🚗
- Update .npmignore to ignore .github and test folders (#1460)
Full change list
- chore(deps): bump glob-parent from 5.1.1 to 5.1.2 by @dependabot in #1433
- chore(deps): bump socket.io-parser from 3.3.0 to 3.3.2 by @dependabot in #1438
- chore(deps): bump path-parse from 1.0.6 to 1.0.7 by @dependabot in #1442
- docs: fix links to tsconfig.json blueprint by @jamescdavis in #1445
- Update .npmignore to ignore .github and test folders by @SergeAstapov in #1460
- Update types & ember to 4.x by @mydea in #1472
- Fix type of
locationType
by @NullVoxPopuli in #1466 - fix: Use
moduleName()
to determine addon's referenced name. by @timlindvall in #1476 - Docs: Fix incorrect Route Models link in Routes doc by @gabrielgrant in #1403
- chore(deps): bump follow-redirects from 1.11.0 to 1.14.7 by @dependabot in #1464
- chore(deps): bump tmpl from 1.0.4 to 1.0.5 by @dependabot in #1450
- docs: add Ember Data transform page by @SergeAstapov in #1410
- docs: Update configuration.md to include an example of generating sourcemaps with Embroider by @johanrd in #1391
- chore(deps): bump socket.io from 2.3.0 to 2.4.1 by @dependabot in #1399
New Contributors
- @SergeAstapov made their first contribution in #1460
- @NullVoxPopuli made their first contribution in #1466
- @timlindvall made their first contribution in #1476
- @johanrd made their first contribution in #1391
Full Changelog: v4.2.1...v5.0.0
Auto-import suggestions are handy
Added ⭐️
- Install @types/ember packages separately via blueprint (#1383)
Documentation 📖
- Octane and much polish and clarification (#935)
- Fix working with ember outline links (#1394)
- Docs fixes (#1395)
- Fix typos in the Ember Routes docs (#1400)
Under the hood 🚗
- Fix qunit types conflict (#1344)
- Bump @types/ember-qunit & @types/qunit to resolve types conflict (#1380)
- Fix commitlint action config (#1388)
- Dependency updates (4.1.0-deps-bumps)
No relation to TypeScript 4.0
Overview
ember-cli-typescript no longer manages your Babel configuration, because ember-cli-babel does. This is an early step toward officially supporting TS across the Ember ecosystem. It also means that we now use Babel’s default configuration, which also comes with a small change to align better with the JavaScript spec around class fields.
For most cases, you won’t notice the difference, but if you were previously using TypeScript’s constructor property shorthand to define default values and using those values in a class field initializer, like this—
class Demo {
constructor(public name = '') {}
public nameLen = this.name.length;
}
—you will find that the initializer now fails. This is because the spec requires that class field initializers run before anything in the class constructor’s body except a super
call, and TS’s custom syntax here is not part of the spec, and Babel therefore runs it after all other class field initializers.
This particular pattern was always a refactoring hazard: class field initializers should not refer to this
because they can be broken by unrelated changes in surprising ways. This particular code will now not work at all, so you will need to migrate away from it. You can replace it with this code instead:
class Demo {
public nameLen: number;
constructor(public name = '') {
this.nameLen = this.name.length;
}
}
Changelog
Breaking 💥
Added ⭐️
- Don't run type-checking middleware when an existing build is used via
--path
([#1148])
Changed 💥
- Update
tsconfig.json
blueprinttarget
value to2020
([#1108]) - Use
prepack
andpostpack
instead ofprepublishOnly
andpostpublish
([#1196])
Fixed 🔧
- Bring apps closer to type-checking out of the box ([#1169])
Under the hood 🚗
- Upgrade ✨ Prettier ✨ to a version that supports optional chaining and nullish coalescing (#1018)
- Add test for optional chaining and nullish coalescing (#1018)
- Add test for class field declaration (#1018)
- Add RFCs to repo ([#1157])
- Fix description of ts:precompile ([#1162])
- Fix dead link to "packages this addon installs" ([#1164])
- Get CI passing ([#1167])
- Avoid false-positive
willTypecheck
s on Linux ([#1198]) - Dependency updates (4.0.0-deps-bumps, [#1191])
Upgrading ⚙️
- Make sure you are using at least ember-cli-babel@^7.17.0 or your
.ts
files will be ignored completely! - If you are using
ember-auto-import
, make sure you are using at least ember-auto-import@^1.6.0. - Run
ember install ember-cli-typescript@^4.0.0
or use your package manager to upgrade toember-cli-typescript@^4.0.0
directly and skip the blueprint.
Ready for prime time?
Added ⭐️
- Don't run type-checking middleware when an existing build is used via
--path
(#1148)
Changed 💥
- Update
tsconfig.json
blueprinttarget
value to2020
(#1108) - Use
prepack
andpostpack
instead ofprepublishOnly
andpostpublish
(#1196)
Fixed 🔧
- Bring apps closer to type-checking out of the box (#1169)
Under the hood 🚗
- Add RFCs to repo (#1157)
- Fix description of ts:precompile (#1162)
- Fix dead link to "packages this addon installs" (#1164)
- Get CI passing (#1167)
- Avoid false-positive
willTypecheck
s on Linux (#1198) - Dependency updates (4.0.0-rc.1-deps-bumps, #1191)
Upgrading ⚙️
- Make sure you are using at least ember-cli-babel@^7.17.0 or your
.ts
files will be ignored completely! - If you are using
ember-auto-import
, make sure you are using at least ember-auto-import@^1.6.0. - Run
ember install ember-cli-typescript@next
or use your package manager to upgrade toember-cli-typescript@next
directly and skip the blueprint.
Contributors 🙇
Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
Keep it local
Fixed 🔧
- Use temp dir in project for precompile (#1153)
Under the hood 🚗
- Bumped 52 dependency versions
Upgrading ⚙️
ember install ember-cli-typescript@latest
Contributors 🙇
Thanks to everyone who contributed to this release in any way! In randomly shuffled order: