Skip to content

Releases: typed-ember/ember-cli-typescript

The order of things matters

02 Nov 22:01
231ab92
Compare
Choose a tag to compare
Pre-release

What Changed?

For details on the changes since 1.x, see the 2.0.0-beta.1 release notes.

Fixed 🔧

  • Ensure consistency with tsc re: class property initialization order (#365)

Upgrading ⚙️

ember install ember-cli-typescript@beta

Contributors 🙇

Thanks to everyone who opened/discovered an issue we fixed or PR we merged in this release!

Babeling in Parallel

26 Oct 17:58
6a693fa
Compare
Choose a tag to compare
Babeling in Parallel Pre-release
Pre-release

What Changed?

For details on the changes since 1.x, see the 2.0.0-beta.1 release notes.

Fixed 🔧

  • Ensure that ember-cli-typescript doesn't interfere with parallelizing the Babel transpilation process (#351)

Upgrading ⚙️

ember install ember-cli-typescript@beta

Contributors 🙇

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

2.0.0 Beta 1: Hello, Babel!

25 Oct 20:41
88358a5
Compare
Choose a tag to compare
Pre-release

What Changed?

This is a major release with 💥 breaking changes 💥! However, most apps will compile with minimal (or no) changes! 🎉 They'll also tend to compile much faster in many cases. ⚡️

We now use Babel 7's support for TypeScript to build apps and addons. Most of the horrible hacks we had to do before are now gone, and the error outputs you will see for type errors are much nicer as well. (As a particular note, we should work better with ember-auto-import now, since we're just part of the normal Broccoli/Babel pipeline Ember CLI uses.)

THIS IS A BETA! Please test this out in your apps! Please do not use this for your production apps!

Added ⭐️

  • Much nicer reporting of type errors both in the console and in your browser
  • Type errors now use the "pretty" type error format stabilized in TypeScript 2.9

Changed 💥

  • We now build the application using Babel 7's TypeScript plugin. This has a few important limitations – some of them bugs (linked below); others are conscious decisions on the part of Babel. The changes:

    • const enum types are unsupported. You should switch to constants or regular enums.

    • trailing commas after rest function parameters (function foo(...bar[],) {}) are disallowed by the ECMAScript spec, so Babel also disallows them.

    • re-exports of types have to be disambiguated to be types, rather than values. Neither of these will work:

      export { FooType } from 'foo';
      import { FooType } from 'foo';
      export { FooType };

      In both cases, Babel attempts to emit a value export, not just a type export, and fails because there is no actual value to emit. You can do this instead as a workaround:

      import * as Foo from 'foo';
      export type FooType = Foo.FooType;
    • this types in ES5 getters and setters are do not work (babel/babel#8069)

    • destructuring of parameters in function signatures currently do not work (babel/babel#8099)

    Other bugs you should be aware of:

    • if an enum has a member with the same name as an imported type (babel/babel#8881), it will fail to compile
  • ember-cli-typescript must be in dependencies instead of devDependencies for addons, since we now hook into the normal Broccoli + Babel build pipeline instead of doing an end-run around it

  • Addons can no longer use .ts in app, because an addon's app directory gets merged with and uses the host's (i.e. the other addon or app's) preprocessors, and we cannot guarantee the host has TS support. Note that in-repo-addons will continue to work for in-repo addons because of the app build works with the host's (i.e. the app's, not the addon's) preprocessors.

  • Apps need to use .js for overrides in app, since the different file extension means apps no long consistently "win" over addon versions (a limitation of how Babel + app merging interact) – note that this won’t be a problem with Module Unification apps

Fixed 🔧

  • Type errors now show properly in the browser when running tests

Upgrading ⚙️

ember install ember-cli-typescript@beta

Contributors 🙇

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

Polish, polish, polish.

25 Oct 20:42
f3b9e71
Compare
Choose a tag to compare

What Changed?

Just some fixes and polishes!

Fixed 🔧

  • We now provide better user feedback when installing ember-cli-typescript from a git version (i.e. for testing prereleases)
  • Updated to ember-cli-typescript-blueprints so types in generated files correctly match the latest Ember Data types
  • Updated to latest Ember CLI blueprint (as of 3.5.0)

Upgrading ⚙️

ember install [email protected]

Contributors 🙇‍♀️

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

We're *not* the center of the universe?

01 Oct 23:19
51b7cb2
Compare
Choose a tag to compare

What Changed?

Fixed

  • We no longer claim the absolute highest priority when ember-cli is selecting blueprints (see #323)

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

Don't reuse system temp directories!

24 Sep 19:39
c20f5ef
Compare
Choose a tag to compare

What Changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Changed

  • We reference the Discord channel instead of Slack.
  • [Internal] We enabled writing code for this addon itself in TypeScript.

Upgrading

ember install ember-cli-typescript@latest

Backport: don't blow up system temp directory

24 Sep 19:42
6c06e6f
Compare
Choose a tag to compare

What changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Upgrading

ember install [email protected]

Backport: don't blow up system temp directory

24 Sep 19:42
917cd67
Compare
Choose a tag to compare

What changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Upgrading

ember install [email protected]

Backport: don't blow up system temp directory

24 Sep 19:42
0f5a1bc
Compare
Choose a tag to compare

What changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Upgrading

ember install [email protected]

v1.4.2

07 Sep 02:38
30cb5ed
Compare
Choose a tag to compare

What Changed?

Fixed

  • Ensure TS blueprints always take precedence over JS ones (#253)

Upgrading

ember install ember-cli-typescript@latest