Skip to content

Releases: typed-ember/ember-cli-typescript

v5.3.0 (Stop whining about ember-cli-babel 8)

05 Mar 21:28
2befe3a
Compare
Choose a tag to compare

Changed 💥

Added ⭐️

Fixed 🔧

  • #1537 Airlift updatePathsForAddon from the blueprints package (@dfreeman)

Under the hood 🚗

Committers: 11

I guess you get one more chance (…with Node 12)

26 Oct 14:22
6c443fa
Compare
Choose a tag to compare

Fixed 🔧

  • Add back missing function expected from ember-cli-typescript-blueprints #1537, (@dfreeman)

End of the line (…for Node 12)

25 Oct 18:49
bd1758f
Compare
Choose a tag to compare

Added ⭐️

Fixed 🔧

  • Fix import/newline-after-import lint violation in global.d.ts (#1520), @bmish
  • Fix no-use-before-define lint violation in environment.d.ts (#1521), @bmish

Documentation 📖

  • Update testing.md to refer to ember-cli-htmlbars instead of ember-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 🚗

v5.1.1

06 Sep 12:45
cf843e7
Compare
Choose a tag to compare

Fixed 🔧

  • Use ember-cli-htmlbars rather than htmlbars-inline-precompile in blueprints (#1519)
  • Fix import/newline-after-import lint violation in global.d.ts (#1520)
  • Fix no-use-before-define lint violation in environment.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 📖

  • Update discord channel name, fix typos (#1506)
  • Fix spelling resolveable -> resolvable (#1504)

Docs ’n’ blueprints

20 Apr 22:44
538b46b
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v5.0.0...v5.1.0

Ember 4 support and addon.moduleName() shenanigans

04 Feb 18:43
544e327
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v4.2.1...v5.0.0

Auto-import suggestions are handy

04 Feb 14:59
feea3d8
Compare
Choose a tag to compare

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

02 Sep 22:01
0dd078b
Compare
Choose a tag to compare

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 💥

  • Drop support for Node 8 (#1017)
  • Don't configure Babel for TS transpilation (#1018)

Added ⭐️

  • Don't run type-checking middleware when an existing build is used via --path ([#1148])

Changed 💥

  • Update tsconfig.json blueprint target value to 2020 ([#1108])
  • Use prepack and postpack instead of prepublishOnly and postpublish ([#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 willTypechecks 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 to ember-cli-typescript@^4.0.0 directly and skip the blueprint.

Ready for prime time?

16 Jul 20:16
c68d6af
Compare
Choose a tag to compare
Ready for prime time? Pre-release
Pre-release

Added ⭐️

  • Don't run type-checking middleware when an existing build is used via --path (#1148)

Changed 💥

  • Update tsconfig.json blueprint target value to 2020 (#1108)
  • Use prepack and postpack instead of prepublishOnly and postpublish (#1196)

Fixed 🔧

  • Bring apps closer to type-checking out of the box (#1169)

Under the hood 🚗

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 to ember-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

29 May 20:00
1c22c0a
Compare
Choose a tag to compare

Fixed 🔧

  • Use temp dir in project for precompile (#1153)

Under the hood 🚗

Upgrading ⚙️

ember install ember-cli-typescript@latest

Contributors 🙇

Thanks to everyone who contributed to this release in any way! In randomly shuffled order: