Skip to content

Releases: typed-ember/ember-cli-typescript

Let's churn less

15 Apr 18:38
158d433
Compare
Choose a tag to compare
Let's churn less Pre-release
Pre-release

What Changed?

Added

  • The addon now supports failing the build when there are type errors, using noEmitOnError: true in tsconfig.json.

Changed

  • Clarified instructions for sourcemaps.

Fixed

  • TypeScript no longer churns on every change in the tmp directory.
  • Make sure ember-cli-typescript is a dev dependency when generating in-repo-addons, so their TypeScript gets built correctly.
  • Eliminated some lint errors in the build.

Upgrading

ember install ember-cli-typescript@beta

Please open an issue with "1.3.0-beta.1" in the title if you have any new errors!

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

Someday, in-repo-addons will Just Work™

15 Mar 00:01
4757002
Compare
Choose a tag to compare

What Changed?

Fixed

  • Blueprint now correctly adds ember-cli-typescript as a dependency, allowing TS to be merged into the regular app tree.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

What's Old is New Again

06 Mar 02:51
3a49263
Compare
Choose a tag to compare

What Changed?

Added

  • Blueprint (and tests) to generate in-repo addons configured for TypeScript
  • @ts-ignore component template import.
  • -addon blueprints for all the things to generate .ts files in app/ in an addon.

Changed

Fixed

  • Addon components need to manually set their layout property to the imported compiled template.
  • The declaration file for the <app-name>/config/environment module now resolves correctly from app code. If you have a version of this file previously generated at types/<app-name>/config/environment.d.ts, you'll likely want to move it to app/config/environment.d.ts.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

Out of the Box!

23 Feb 19:16
490cdb9
Compare
Choose a tag to compare

What Changed?

Fixes

  • The blueprints provided by ember-cli-typescript now deterministically override the base ones from ember-data and ember-source.
  • Correct type declarations are installed out of the box based on what test framework is present.
  • A catch-all model registry is generated on installation to avoid the "error TS2344" problem.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

In-repo-addons are addons too!

20 Feb 22:58
b5c9f22
Compare
Choose a tag to compare

What changed?

Fixes

  • Fixed a regression in 1.1.4 which caused in-repo-addons written in TypeScript not to work correctly.
  • Fixed the tsconfig.json blueprint to properly include the types directory.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

The app is last.

20 Feb 21:14
d140a7a
Compare
Choose a tag to compare

What changed?

Changed

  • The default tsconfig.json now includes inline source maps to support integrating with Babel sourcemaps, and the README has instructions for configuring Ember CLI's Babel integration.

Fixed

  • TypeScript files in addon app trees now get compiled properly.
  • App files now correctly take precedence over any files of the same name earlier in the tree. (If you had a component with the same name as an addon-supplied component, for example, the addon version could override yours.)

Upgrading

ember install ember-cli-typescript@latest

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

It’s okay, Mirage. We got you.

17 Feb 02:50
264585b
Compare
Choose a tag to compare

What changed?

Another day, another bunch of bug fixes.

Fixes

  • Fix default blueprint for types/<my app>/index.d.ts: add missing import and an export statement so ambient declarations work.
  • Add types to initializer and instance initializer blueprints.
  • Special-case handling for Mirage so that it works at all, and update generators so it works "out of the box".
  • Stop assuming the ember-cli-qunit version consumers have installed will be sufficiently high for our tests to pass.

Upgrading

ember install ember-cli-typescript@latest

Contributors

So basically peer dependencies… are not a thing. 🙄

14 Feb 02:07
Compare
Choose a tag to compare

Mostly see v1.1.0.

Fixed

  • Actually resolve the problem of throwing when running generators if ember-cli-version-checker version too low: put it in dependencies.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Edge cases with npm, booo

14 Feb 02:07
10181e8
Compare
Choose a tag to compare

Mostly see v1.1.0.

Fixed

  • No longer throw when running generators if ember-cli-version-checker version too low by putting it in peerDependencies.
  • Clarified some parts of the README that misled people on handling certain errors.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Faster! Generators! Addons!

12 Feb 15:07
747164f
Compare
Choose a tag to compare

This is the short version (and it mostly just duplicates the new CHANGELOG.md file). For the long version, read the announcement blog post!

Added

  • Generators: ember generate <blueprint> now creates TypeScript files for you
  • Support for addons: we now precompile addon TypeScript so ember-cli-typescript and typescript itself can remain in devDependencies instead of dependencies, and addons can easily distribute compiled JavaScript with TypeScript type definition (.d.ts) files.
  • Incremental compilation: ember serve or ember test --serve now use TypeScript's tsc --watch mode to only rebuild what changed, so your builds should be much faster

Fixed

  • tsconfig.json is no longer so annoyingly temperamental; you can largely do what you want with it.
  • ember serve no longer triggers a full rebuild of all TypeScript files every time any file in your project changes.

Upgrading

ember install ember-cli-typescript@latest

Credits and Thanks

Massive credit goes to Dan Freeman (@dfreeman) and Derek Wickern (@dwickern), who did most of the heavy lifting on the internals for this release, and together unlocked both incremental compilation and addon support. Derek also did the lion's share of the work on writing the types for Ember and Ember Data.

Thanks to Maarten Veenstra (@maerten) for the original inspiration (and a spike last summer) for using a type registry, and to Mike North (@mike-north) for some discussion and planning around the idea late in 2017. I may have implemented them, but the ideas came from the community!

Thanks to Frank Tan (@tansongyang) for doing a lot of the work on porting the generators from the Ember and Ember Data repositories to ember-cli-typescript, as well as converting them to TypeScript and to use the new formats. He also contributed the type definitions for the new (RFC #232) QUnit testing API.

Thanks to everyone who contributed to ember-cli-typescript or the Ember typings in any way since we released 1.0.0:

Thanks to Rob Jackson (@rwjblue) and Tobias Bieniek (@Turbo87 on GitHub, @tbieniek in the Ember Slack) for answer tons of questions and putting up with regular pestering about Ember CLI.

And last but not least, thanks to everyone who's popped into #topic-typescript on the Ember Community Slack with questions, comments, problem reports, and the occasional word of encouragement. It really does help.